2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bacula 9.0.3.
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.3'
591 PACKAGE_STRING='bacula 9.0.3'
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.3 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.3:";;
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 Qt4 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.3
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.3, 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 --atleast-version=4.2 QtGui`
21835 if test $pkg = 0; then
21836 BAT_DIR=src/qt-console
21838 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21856 # Check whether --enable-smartalloc was given.
21857 if test "${enable_smartalloc+set}" = set; then :
21858 enableval=$enable_smartalloc;
21859 if test x$enableval = xno; then
21860 support_smartalloc=no
21867 if test x$support_smartalloc = xyes; then
21869 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21873 # Check whether --enable-lockmgr was given.
21874 if test "${enable_lockmgr+set}" = set; then :
21875 enableval=$enable_lockmgr;
21876 if test x$enableval = xyes; then
21877 support_lockmgr=yes
21884 if test x$support_lockmgr = xyes; then
21886 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21891 # Check whether --enable-static-tools was given.
21892 if test "${enable_static_tools+set}" = set; then :
21893 enableval=$enable_static_tools;
21894 if test x$enableval = xyes; then
21895 if test x$use_libtool = xyes; then
21896 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21897 please rerun configure with --disable-libtool" "$LINENO" 5
21899 support_static_tools=yes
21907 if test x$support_static_tools = xyes; then
21908 TTOOL_LDFLAGS="-static"
21912 # Check whether --enable-static-fd was given.
21913 if test "${enable_static_fd+set}" = set; then :
21914 enableval=$enable_static_fd;
21915 if test x$enableval = xyes; then
21916 if test x$use_libtool = xyes; then
21917 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21918 please rerun configure with --disable-libtool" "$LINENO" 5
21920 support_static_fd=yes
21928 if test x$support_static_fd = xyes; then
21929 STATIC_FD="static-bacula-fd"
21933 # Check whether --enable-static-sd was given.
21934 if test "${enable_static_sd+set}" = set; then :
21935 enableval=$enable_static_sd;
21936 if test x$enableval = xyes; then
21937 if test x$use_libtool = xyes; then
21938 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21939 please rerun configure with --disable-libtool" "$LINENO" 5
21941 support_static_sd=yes
21949 if test x$support_static_sd = xyes; then
21950 STATIC_SD="static-bacula-sd"
21954 # Check whether --enable-static-dir was given.
21955 if test "${enable_static_dir+set}" = set; then :
21956 enableval=$enable_static_dir;
21957 if test x$enableval = xyes; then
21958 if test x$use_libtool = xyes; then
21959 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21960 please rerun configure with --disable-libtool" "$LINENO" 5
21962 support_static_dir=yes
21970 if test x$support_static_dir = xyes; then
21971 STATIC_DIR="static-bacula-dir"
21975 # Check whether --enable-static-cons was given.
21976 if test "${enable_static_cons+set}" = set; then :
21977 enableval=$enable_static_cons;
21978 if test x$enableval = xyes; then
21979 if test x$use_libtool = xyes; then
21980 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21981 please rerun configure with --disable-libtool" "$LINENO" 5
21983 support_static_cons=yes
21991 if test x$support_static_cons = xyes; then
21992 STATIC_CONS="static-bconsole"
21996 # Check whether --enable-client-only was given.
21997 if test "${enable_client_only+set}" = set; then :
21998 enableval=$enable_client_only;
21999 if test x$enableval = xyes; then
22000 build_client_only=yes
22008 if test x$build_client_only = xno; then
22015 # Check whether --enable-build-dird was given.
22016 if test "${enable_build_dird+set}" = set; then :
22017 enableval=$enable_build_dird;
22018 if test x$enableval = xno; then
22026 DIRD_DIR="src/dird"
22027 DIR_TOOLS="DIRTOOLS"
22032 # Check whether --enable-build-stored was given.
22033 if test "${enable_build_stored+set}" = set; then :
22034 enableval=$enable_build_stored;
22035 if test x$enableval = xno; then
22042 if test x$build_stored = xyes; then
22043 STORED_DIR="src/stored"
22049 # Check whether --enable-conio was given.
22050 if test "${enable_conio+set}" = set; then :
22051 enableval=$enable_conio;
22052 if test x$enableval = xno; then
22062 # Check whether --enable-ipv6 was given.
22063 if test "${enable_ipv6+set}" = set; then :
22064 enableval=$enable_ipv6;
22065 if test x$enableval = xno; then
22073 if test x$support_ipv6 = xyes; then
22074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22075 /* end confdefs.h. */
22076 #include <sys/types.h>
22077 #include <sys/socket.h>
22078 #include <netinet/in.h>
22082 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22087 if ac_fn_c_try_link "$LINENO"; then :
22088 support_in6addr_any=yes
22090 support_in6addr_any=no
22092 rm -f core conftest.err conftest.$ac_objext \
22093 conftest$ac_exeext conftest.$ac_ext
22095 if test x$support_in6addr_any = xno ; then
22096 in6addr_any="const struct in6_addr in6addr_any"
22101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22102 /* end confdefs.h. */
22103 #include <sys/types.h>
22104 #include <sys/socket.h>
22105 #include <netinet/in.h>
22109 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22114 if ac_fn_c_try_link "$LINENO"; then :
22119 rm -f core conftest.err conftest.$ac_objext \
22120 conftest$ac_exeext conftest.$ac_ext
22123 if test x$support_ipv6 = xyes; then
22125 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22128 if test x$support_in6addr_any = xno ; then
22130 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22136 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22137 if test "x$ac_cv_header_curses_h" = xyes; then :
22139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22140 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22141 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22142 $as_echo_n "(cached) " >&6
22144 ac_check_lib_save_LIBS=$LIBS
22145 LIBS="-ltinfo $LIBS"
22146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22147 /* end confdefs.h. */
22149 /* Override any GCC internal prototype to avoid an error.
22150 Use char because int might match the return type of a GCC
22151 builtin and then its argument prototype would still apply. */
22164 if ac_fn_c_try_link "$LINENO"; then :
22165 ac_cv_lib_tinfo_tgetent=yes
22167 ac_cv_lib_tinfo_tgetent=no
22169 rm -f core conftest.err conftest.$ac_objext \
22170 conftest$ac_exeext conftest.$ac_ext
22171 LIBS=$ac_check_lib_save_LIBS
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22174 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22175 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22180 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22181 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22182 $as_echo_n "(cached) " >&6
22184 ac_check_lib_save_LIBS=$LIBS
22185 LIBS="-lncurses $LIBS"
22186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22187 /* end confdefs.h. */
22189 /* Override any GCC internal prototype to avoid an error.
22190 Use char because int might match the return type of a GCC
22191 builtin and then its argument prototype would still apply. */
22204 if ac_fn_c_try_link "$LINENO"; then :
22205 ac_cv_lib_ncurses_tgetent=yes
22207 ac_cv_lib_ncurses_tgetent=no
22209 rm -f core conftest.err conftest.$ac_objext \
22210 conftest$ac_exeext conftest.$ac_ext
22211 LIBS=$ac_check_lib_save_LIBS
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22214 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22215 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22216 TERM_LIB="-lncurses"
22219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22220 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22221 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22222 $as_echo_n "(cached) " >&6
22224 ac_check_lib_save_LIBS=$LIBS
22225 LIBS="-ltermcap $LIBS"
22226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22227 /* end confdefs.h. */
22229 /* Override any GCC internal prototype to avoid an error.
22230 Use char because int might match the return type of a GCC
22231 builtin and then its argument prototype would still apply. */
22244 if ac_fn_c_try_link "$LINENO"; then :
22245 ac_cv_lib_termcap_tgetent=yes
22247 ac_cv_lib_termcap_tgetent=no
22249 rm -f core conftest.err conftest.$ac_objext \
22250 conftest$ac_exeext conftest.$ac_ext
22251 LIBS=$ac_check_lib_save_LIBS
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22254 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22255 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22256 TERM_LIB="-ltermcap"
22267 for ac_header in curses.h
22269 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22270 if test "x$ac_cv_header_curses_h" = xyes; then :
22271 cat >>confdefs.h <<_ACEOF
22272 #define HAVE_CURSES_H 1
22279 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22280 if test "x$ac_cv_header_term_h" = xyes; then :
22281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22282 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22283 if ${ac_cv_lib_curses_tgetent+:} false; then :
22284 $as_echo_n "(cached) " >&6
22286 ac_check_lib_save_LIBS=$LIBS
22287 LIBS="-lcurses $LIBS"
22288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22289 /* end confdefs.h. */
22291 /* Override any GCC internal prototype to avoid an error.
22292 Use char because int might match the return type of a GCC
22293 builtin and then its argument prototype would still apply. */
22306 if ac_fn_c_try_link "$LINENO"; then :
22307 ac_cv_lib_curses_tgetent=yes
22309 ac_cv_lib_curses_tgetent=no
22311 rm -f core conftest.err conftest.$ac_objext \
22312 conftest$ac_exeext conftest.$ac_ext
22313 LIBS=$ac_check_lib_save_LIBS
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22316 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22317 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22318 TERM_LIB="-lcurses"
22332 if test x$support_conio = xyes; then
22333 if test x$TERM_LIB != x; then
22334 CONS_LIBS=$TERM_LIB
22338 support_readline=no
22340 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22343 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22348 # Check whether --enable-readline was given.
22349 if test "${enable_readline+set}" = set; then :
22350 enableval=$enable_readline;
22351 if test x$enableval = xno; then
22352 support_readline=no
22361 if test x$support_readline = xyes; then
22363 # Check whether --with-readline was given.
22364 if test "${with_readline+set}" = set; then :
22365 withval=$with_readline;
22366 case "$with_readline" in
22371 if test -f ${with_readline}/readline.h; then
22372 CONS_INC="-I${with_readline}"
22373 CONS_LDFLAGS="-L$with_readline"
22374 elif test -f ${with_readline}/include/readline/readline.h; then
22375 CONS_INC="-I${with_readline}/include/readline"
22376 CONS_LDFLAGS="-L${with_readline}/lib"
22377 with_readline="${with_readline}/include/readline"
22379 with_readline="/usr/include/readline"
22382 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22383 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22384 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22387 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22389 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22395 echo "readline.h not found. readline turned off ..."
22407 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22408 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22411 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22414 CONS_INC="-I/usr/include/readline"
22415 CONS_LIBS="-lreadline ${TERM_LIB}"
22419 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22420 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22421 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22424 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22427 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22428 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22429 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22430 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22435 echo "readline.h not found. readline turned off ..."
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22463 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22464 if ${ac_cv_header_stat_broken+:} false; then :
22465 $as_echo_n "(cached) " >&6
22467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22468 /* end confdefs.h. */
22469 #include <sys/types.h>
22470 #include <sys/stat.h>
22472 #if defined S_ISBLK && defined S_IFDIR
22473 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22476 #if defined S_ISBLK && defined S_IFCHR
22477 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22480 #if defined S_ISLNK && defined S_IFREG
22481 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22484 #if defined S_ISSOCK && defined S_IFREG
22485 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22489 if ac_fn_c_try_compile "$LINENO"; then :
22490 ac_cv_header_stat_broken=no
22492 ac_cv_header_stat_broken=yes
22494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22497 $as_echo "$ac_cv_header_stat_broken" >&6; }
22498 if test $ac_cv_header_stat_broken = yes; then
22500 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22504 ac_header_dirent=no
22505 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22506 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22508 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22509 if eval \${$as_ac_Header+:} false; then :
22510 $as_echo_n "(cached) " >&6
22512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22513 /* end confdefs.h. */
22514 #include <sys/types.h>
22526 if ac_fn_c_try_compile "$LINENO"; then :
22527 eval "$as_ac_Header=yes"
22529 eval "$as_ac_Header=no"
22531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22533 eval ac_res=\$$as_ac_Header
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22535 $as_echo "$ac_res" >&6; }
22536 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22537 cat >>confdefs.h <<_ACEOF
22538 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22541 ac_header_dirent=$ac_hdr; break
22545 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22546 if test $ac_header_dirent = dirent.h; then
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22548 $as_echo_n "checking for library containing opendir... " >&6; }
22549 if ${ac_cv_search_opendir+:} false; then :
22550 $as_echo_n "(cached) " >&6
22552 ac_func_search_save_LIBS=$LIBS
22553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22554 /* end confdefs.h. */
22556 /* Override any GCC internal prototype to avoid an error.
22557 Use char because int might match the return type of a GCC
22558 builtin and then its argument prototype would still apply. */
22571 for ac_lib in '' dir; do
22572 if test -z "$ac_lib"; then
22573 ac_res="none required"
22576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22578 if ac_fn_c_try_link "$LINENO"; then :
22579 ac_cv_search_opendir=$ac_res
22581 rm -f core conftest.err conftest.$ac_objext \
22583 if ${ac_cv_search_opendir+:} false; then :
22587 if ${ac_cv_search_opendir+:} false; then :
22590 ac_cv_search_opendir=no
22592 rm conftest.$ac_ext
22593 LIBS=$ac_func_search_save_LIBS
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22596 $as_echo "$ac_cv_search_opendir" >&6; }
22597 ac_res=$ac_cv_search_opendir
22598 if test "$ac_res" != no; then :
22599 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22605 $as_echo_n "checking for library containing opendir... " >&6; }
22606 if ${ac_cv_search_opendir+:} false; then :
22607 $as_echo_n "(cached) " >&6
22609 ac_func_search_save_LIBS=$LIBS
22610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22611 /* end confdefs.h. */
22613 /* Override any GCC internal prototype to avoid an error.
22614 Use char because int might match the return type of a GCC
22615 builtin and then its argument prototype would still apply. */
22628 for ac_lib in '' x; do
22629 if test -z "$ac_lib"; then
22630 ac_res="none required"
22633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22635 if ac_fn_c_try_link "$LINENO"; then :
22636 ac_cv_search_opendir=$ac_res
22638 rm -f core conftest.err conftest.$ac_objext \
22640 if ${ac_cv_search_opendir+:} false; then :
22644 if ${ac_cv_search_opendir+:} false; then :
22647 ac_cv_search_opendir=no
22649 rm conftest.$ac_ext
22650 LIBS=$ac_func_search_save_LIBS
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22653 $as_echo "$ac_cv_search_opendir" >&6; }
22654 ac_res=$ac_cv_search_opendir
22655 if test "$ac_res" != no; then :
22656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22662 for ac_func in strcasecmp select setenv putenv tcgetattr
22664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22665 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22666 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22667 cat >>confdefs.h <<_ACEOF
22668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22674 for ac_func in lstat lchown lchmod futimes fchmod fchown lutimes
22676 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22677 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22678 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22679 cat >>confdefs.h <<_ACEOF
22680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22686 for ac_func in nanosleep nl_langinfo
22688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22689 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22690 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22691 cat >>confdefs.h <<_ACEOF
22692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22698 for ac_func in be64toh htobe64
22700 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22701 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22702 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22703 cat >>confdefs.h <<_ACEOF
22704 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22710 for ac_header in varargs.h
22712 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22713 if test "x$ac_cv_header_varargs_h" = xyes; then :
22714 cat >>confdefs.h <<_ACEOF
22715 #define HAVE_VARARGS_H 1
22724 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22725 if test "x$ac_cv_func_socket" = xyes; then :
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22727 $as_echo "using libc's socket" >&6; }
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22730 $as_echo_n "checking for socket in -lxnet... " >&6; }
22731 if ${ac_cv_lib_xnet_socket+:} false; then :
22732 $as_echo_n "(cached) " >&6
22734 ac_check_lib_save_LIBS=$LIBS
22735 LIBS="-lxnet $LIBS"
22736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22737 /* end confdefs.h. */
22739 /* Override any GCC internal prototype to avoid an error.
22740 Use char because int might match the return type of a GCC
22741 builtin and then its argument prototype would still apply. */
22754 if ac_fn_c_try_link "$LINENO"; then :
22755 ac_cv_lib_xnet_socket=yes
22757 ac_cv_lib_xnet_socket=no
22759 rm -f core conftest.err conftest.$ac_objext \
22760 conftest$ac_exeext conftest.$ac_ext
22761 LIBS=$ac_check_lib_save_LIBS
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22764 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22765 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22766 cat >>confdefs.h <<_ACEOF
22767 #define HAVE_LIBXNET 1
22770 LIBS="-lxnet $LIBS"
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22775 $as_echo_n "checking for socket in -lsocket... " >&6; }
22776 if ${ac_cv_lib_socket_socket+:} false; then :
22777 $as_echo_n "(cached) " >&6
22779 ac_check_lib_save_LIBS=$LIBS
22780 LIBS="-lsocket $LIBS"
22781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22782 /* end confdefs.h. */
22784 /* Override any GCC internal prototype to avoid an error.
22785 Use char because int might match the return type of a GCC
22786 builtin and then its argument prototype would still apply. */
22799 if ac_fn_c_try_link "$LINENO"; then :
22800 ac_cv_lib_socket_socket=yes
22802 ac_cv_lib_socket_socket=no
22804 rm -f core conftest.err conftest.$ac_objext \
22805 conftest$ac_exeext conftest.$ac_ext
22806 LIBS=$ac_check_lib_save_LIBS
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22809 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22810 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22811 cat >>confdefs.h <<_ACEOF
22812 #define HAVE_LIBSOCKET 1
22815 LIBS="-lsocket $LIBS"
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22820 $as_echo_n "checking for socket in -linet... " >&6; }
22821 if ${ac_cv_lib_inet_socket+:} false; then :
22822 $as_echo_n "(cached) " >&6
22824 ac_check_lib_save_LIBS=$LIBS
22825 LIBS="-linet $LIBS"
22826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22827 /* end confdefs.h. */
22829 /* Override any GCC internal prototype to avoid an error.
22830 Use char because int might match the return type of a GCC
22831 builtin and then its argument prototype would still apply. */
22844 if ac_fn_c_try_link "$LINENO"; then :
22845 ac_cv_lib_inet_socket=yes
22847 ac_cv_lib_inet_socket=no
22849 rm -f core conftest.err conftest.$ac_objext \
22850 conftest$ac_exeext conftest.$ac_ext
22851 LIBS=$ac_check_lib_save_LIBS
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22854 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22855 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22856 cat >>confdefs.h <<_ACEOF
22857 #define HAVE_LIBINET 1
22860 LIBS="-linet $LIBS"
22870 # Check whether --with-tcp-wrappers was given.
22871 if test "${with_tcp_wrappers+set}" = set; then :
22872 withval=$with_tcp_wrappers;
22873 if test "x$withval" != "xno" ; then
22875 LIBS="$saved_LIBS -lwrap"
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22877 $as_echo_n "checking for library containing nanosleep... " >&6; }
22878 if ${ac_cv_search_nanosleep+:} false; then :
22879 $as_echo_n "(cached) " >&6
22881 ac_func_search_save_LIBS=$LIBS
22882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22883 /* end confdefs.h. */
22885 /* Override any GCC internal prototype to avoid an error.
22886 Use char because int might match the return type of a GCC
22887 builtin and then its argument prototype would still apply. */
22895 return nanosleep ();
22900 for ac_lib in '' rt; do
22901 if test -z "$ac_lib"; then
22902 ac_res="none required"
22905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22907 if ac_fn_c_try_link "$LINENO"; then :
22908 ac_cv_search_nanosleep=$ac_res
22910 rm -f core conftest.err conftest.$ac_objext \
22912 if ${ac_cv_search_nanosleep+:} false; then :
22916 if ${ac_cv_search_nanosleep+:} false; then :
22919 ac_cv_search_nanosleep=no
22921 rm conftest.$ac_ext
22922 LIBS=$ac_func_search_save_LIBS
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22925 $as_echo "$ac_cv_search_nanosleep" >&6; }
22926 ac_res=$ac_cv_search_nanosleep
22927 if test "$ac_res" != no; then :
22928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22933 $as_echo_n "checking for libwrap... " >&6; }
22934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22935 /* end confdefs.h. */
22937 #include <sys/types.h>
22939 int deny_severity = 0;
22940 int allow_severity = 0;
22941 struct request_info *req;
22953 if ac_fn_c_try_link "$LINENO"; then :
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22956 $as_echo "yes" >&6; }
22958 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22966 LIBS="$saved_LIBS -lwrap -lnsl"
22967 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22969 /* end confdefs.h. */
22971 #include <sys/types.h>
22973 int deny_severity = 0;
22974 int allow_severity = 0;
22975 struct request_info *req;
22987 if ac_fn_c_try_link "$LINENO"; then :
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22990 $as_echo "yes" >&6; }
22992 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23000 as_fn_error $? "*** libwrap missing" "$LINENO" 5
23004 rm -f core conftest.err conftest.$ac_objext \
23005 conftest$ac_exeext conftest.$ac_ext
23009 rm -f core conftest.err conftest.$ac_objext \
23010 conftest$ac_exeext conftest.$ac_ext
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23018 $as_echo_n "checking for OpenSSL... " >&6; }
23020 # Check whether --with-openssl was given.
23021 if test "${with_openssl+set}" = set; then :
23022 withval=$with_openssl;
23023 with_openssl_directory=${withval}
23029 if test "x$with_openssl_directory" != "xno"; then
23030 OPENSSL_LIBS="-lssl -lcrypto"
23033 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23035 # Make sure the $with_openssl_directory also makes sense
23037 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23038 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23039 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23043 saved_LIBS="${LIBS}"
23044 saved_CFLAGS="${CFLAGS}"
23045 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23046 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23049 /* end confdefs.h. */
23051 #include <openssl/ssl.h>
23057 CRYPTO_set_id_callback(NULL);
23063 if ac_fn_c_try_link "$LINENO"; then :
23066 support_crypto="yes"
23071 support_crypto="no"
23075 rm -f core conftest.err conftest.$ac_objext \
23076 conftest$ac_exeext conftest.$ac_ext
23078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23079 /* end confdefs.h. */
23081 #include <openssl/evp.h>
23093 if ac_fn_c_try_link "$LINENO"; then :
23095 ac_cv_openssl_sha2="yes"
23099 ac_cv_openssl_sha2="no"
23103 rm -f core conftest.err conftest.$ac_objext \
23104 conftest$ac_exeext conftest.$ac_ext
23106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23107 /* end confdefs.h. */
23109 #include <openssl/evp.h>
23121 if ac_fn_c_try_link "$LINENO"; then :
23123 ac_cv_openssl_export="no"
23127 ac_cv_openssl_export="yes"
23131 rm -f core conftest.err conftest.$ac_objext \
23132 conftest$ac_exeext conftest.$ac_ext
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23135 $as_echo "$support_tls" >&6; }
23136 if test "$support_tls" = "yes"; then
23138 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23141 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23144 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23148 if test "$ac_cv_openssl_sha2" = "yes"; then
23150 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23154 if test "$ac_cv_openssl_export" = "yes"; then
23156 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23160 if test "$support_crypto" = "yes"; then
23161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23162 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23163 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23164 $as_echo_n "(cached) " >&6
23166 ac_check_lib_save_LIBS=$LIBS
23167 LIBS="-lcrypto $LIBS"
23168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23169 /* end confdefs.h. */
23171 /* Override any GCC internal prototype to avoid an error.
23172 Use char because int might match the return type of a GCC
23173 builtin and then its argument prototype would still apply. */
23177 char EVP_PKEY_encrypt_old ();
23181 return EVP_PKEY_encrypt_old ();
23186 if ac_fn_c_try_link "$LINENO"; then :
23187 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23189 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23191 rm -f core conftest.err conftest.$ac_objext \
23192 conftest$ac_exeext conftest.$ac_ext
23193 LIBS=$ac_check_lib_save_LIBS
23195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23196 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23197 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23199 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23205 LIBS="${saved_LIBS}"
23206 CFLAGS="${saved_CFLAGS}"
23209 support_crypto="no"
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23211 $as_echo "$support_tls" >&6; }
23214 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23223 $as_echo_n "checking for library containing dlopen... " >&6; }
23224 if ${ac_cv_search_dlopen+:} false; then :
23225 $as_echo_n "(cached) " >&6
23227 ac_func_search_save_LIBS=$LIBS
23228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23229 /* end confdefs.h. */
23231 /* Override any GCC internal prototype to avoid an error.
23232 Use char because int might match the return type of a GCC
23233 builtin and then its argument prototype would still apply. */
23246 for ac_lib in '' dl; do
23247 if test -z "$ac_lib"; then
23248 ac_res="none required"
23251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23253 if ac_fn_c_try_link "$LINENO"; then :
23254 ac_cv_search_dlopen=$ac_res
23256 rm -f core conftest.err conftest.$ac_objext \
23258 if ${ac_cv_search_dlopen+:} false; then :
23262 if ${ac_cv_search_dlopen+:} false; then :
23265 ac_cv_search_dlopen=no
23267 rm conftest.$ac_ext
23268 LIBS=$ac_func_search_save_LIBS
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23271 $as_echo "$ac_cv_search_dlopen" >&6; }
23272 ac_res=$ac_cv_search_dlopen
23273 if test "$ac_res" != no; then :
23274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23279 working_dir=`eval echo /opt/bacula/working`
23281 # Check whether --with-working-dir was given.
23282 if test "${with_working_dir+set}" = set; then :
23283 withval=$with_working_dir;
23284 if test "x$withval" != "xno" ; then
23285 working_dir=$withval
23296 # Check whether --with-archivedir was given.
23297 if test "${with_archivedir+set}" = set; then :
23298 withval=$with_archivedir;
23299 if test "x$withval" != "xno" ; then
23300 archivedir=$withval
23309 basename=`hostname`
23311 # Check whether --with-basename was given.
23312 if test "${with_basename+set}" = set; then :
23313 withval=$with_basename;
23314 if test "x$withval" != "xno" ; then
23324 hostname=`uname -n | cut -d '.' -f 1`
23325 if test x${hostname} = x ; then
23326 hostname="localhost"
23328 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23329 if test ! $? = 0; then
23330 hostname="localhost"
23333 # Check whether --with-hostname was given.
23334 if test "${with_hostname+set}" = set; then :
23335 withval=$with_hostname;
23336 if test "x$withval" != "xno" ; then
23347 scriptdir=`eval echo ${sysconfdir}`
23349 # Check whether --with-scriptdir was given.
23350 if test "${with_scriptdir+set}" = set; then :
23351 withval=$with_scriptdir;
23352 if test "x$withval" != "xno" ; then
23363 bsrdir=`eval echo /opt/bacula/bsr`
23365 # Check whether --with-bsrdir was given.
23366 if test "${with_bsrdir+set}" = set; then :
23367 withval=$with_bsrdir;
23368 if test "x$withval" != "xno" ; then
23378 logdir=`eval echo /opt/bacula/log`
23380 # Check whether --with-logdir was given.
23381 if test "${with_logdir+set}" = set; then :
23382 withval=$with_logdir;
23383 if test "x$withval" != "xno" ; then
23394 # ------------------------------------------
23395 # Where to place plugindir (plugin files)
23396 # ------------------------------------------
23397 plugindir=`eval echo ${libdir}`
23399 # Check whether --with-plugindir was given.
23400 if test "${with_plugindir+set}" = set; then :
23401 withval=$with_plugindir;
23402 if test "x$withval" != "xno" ; then
23413 dump_email=root@localhost
23415 # Check whether --with-dump-email was given.
23416 if test "${with_dump_email+set}" = set; then :
23417 withval=$with_dump_email;
23418 if test "x$withval" != "xno" ; then
23419 dump_email=$withval
23428 job_email=root@localhost
23430 # Check whether --with-job-email was given.
23431 if test "${with_job_email+set}" = set; then :
23432 withval=$with_job_email;
23433 if test "x$withval" != "xno" ; then
23443 smtp_host=localhost
23445 # Check whether --with-smtp_host was given.
23446 if test "${with_smtp_host+set}" = set; then :
23447 withval=$with_smtp_host;
23448 if test "x$withval" != "xno" ; then
23460 # Check whether --with-pid-dir was given.
23461 if test "${with_pid_dir+set}" = set; then :
23462 withval=$with_pid_dir;
23463 if test "x$withval" != "xno" ; then
23471 cat >>confdefs.h <<_ACEOF
23472 #define _PATH_BACULA_PIDDIR "$piddir"
23477 subsysdir=/var/run/subsys
23478 if test -d /var/run/subsys; then
23479 subsysdir=/var/run/subsys
23480 elif test -d /var/lock/subsys; then
23481 subsysdir=/var/lock/subsys
23483 subsysdir=/var/run/subsys
23486 # Check whether --with-subsys-dir was given.
23487 if test "${with_subsys_dir+set}" = set; then :
23488 withval=$with_subsys_dir;
23489 if test "x$withval" != "xno" ; then
23501 # Check whether --with-baseport was given.
23502 if test "${with_baseport+set}" = set; then :
23503 withval=$with_baseport;
23504 if test "x$withval" != "xno" ; then
23513 dir_port=`expr $baseport`
23514 fd_port=`expr $baseport + 1`
23515 sd_port=`expr $fd_port + 1`
23523 # Check whether --with-dir-password was given.
23524 if test "${with_dir_password+set}" = set; then :
23525 withval=$with_dir_password;
23526 if test "x$withval" != "xno" ; then
23527 dir_password=$withval
23534 if test "x$dir_password" = "x" ; then
23535 if test "x$OPENSSL" = "xnone" ; then
23536 key=`autoconf/randpass 33`
23538 key=`openssl rand -base64 33`
23545 # Check whether --with-fd-password was given.
23546 if test "${with_fd_password+set}" = set; then :
23547 withval=$with_fd_password;
23548 if test "x$withval" != "xno" ; then
23549 fd_password=$withval
23556 if test "x$fd_password" = "x" ; then
23557 if test "x$OPENSSL" = "xnone" ; then
23558 key=`autoconf/randpass 37`
23560 key=`openssl rand -base64 33`
23567 # Check whether --with-sd-password was given.
23568 if test "${with_sd_password+set}" = set; then :
23569 withval=$with_sd_password;
23570 if test "x$withval" != "xno" ; then
23571 sd_password=$withval
23578 if test "x$sd_password" = "x" ; then
23579 if test "x$OPENSSL" = "xnone" ; then
23580 key=`autoconf/randpass 41`
23582 key=`openssl rand -base64 33`
23589 # Check whether --with-mon-dir-password was given.
23590 if test "${with_mon_dir_password+set}" = set; then :
23591 withval=$with_mon_dir_password;
23592 if test "x$withval" != "xno" ; then
23593 mon_dir_password=$withval
23600 if test "x$mon_dir_password" = "x" ; then
23601 if test "x$OPENSSL" = "xnone" ; then
23602 key=`autoconf/randpass 33`
23604 key=`openssl rand -base64 33`
23606 mon_dir_password=$key
23611 # Check whether --with-mon-fd-password was given.
23612 if test "${with_mon_fd_password+set}" = set; then :
23613 withval=$with_mon_fd_password;
23614 if test "x$withval" != "xno" ; then
23615 mon_fd_password=$withval
23622 if test "x$mon_fd_password" = "x" ; then
23623 if test "x$OPENSSL" = "xnone" ; then
23624 key=`autoconf/randpass 37`
23626 key=`openssl rand -base64 33`
23628 mon_fd_password=$key
23633 # Check whether --with-mon-sd-password was given.
23634 if test "${with_mon_sd_password+set}" = set; then :
23635 withval=$with_mon_sd_password;
23636 if test "x$withval" != "xno" ; then
23637 mon_sd_password=$withval
23644 if test "x$mon_sd_password" = "x" ; then
23645 if test "x$OPENSSL" = "xnone" ; then
23646 key=`autoconf/randpass 41`
23648 key=`openssl rand -base64 33`
23650 mon_sd_password=$key
23662 # Check whether --with-db_name was given.
23663 if test "${with_db_name+set}" = set; then :
23664 withval=$with_db_name;
23665 if test "x$withval" != "x" ; then
23676 # Check whether --with-db_user was given.
23677 if test "${with_db_user+set}" = set; then :
23678 withval=$with_db_user;
23679 if test "x$withval" != "x" ; then
23690 # Check whether --with-db_password was given.
23691 if test "${with_db_password+set}" = set; then :
23692 withval=$with_db_password;
23693 if test "x$withval" != "x" ; then
23694 db_password=$withval
23704 # Check whether --with-db_port was given.
23705 if test "${with_db_port+set}" = set; then :
23706 withval=$with_db_port;
23707 if test "x$withval" != "x" ; then
23718 # Check whether --with-db_ssl_options was given.
23719 if test "${with_db_ssl_options+set}" = set; then :
23720 withval=$with_db_ssl_options;
23721 if test "x$withval" != "x" ; then
23722 db_ssl_options=$withval
23731 # Handle users and groups for each daemon
23735 # Check whether --with-dir_user was given.
23736 if test "${with_dir_user+set}" = set; then :
23737 withval=$with_dir_user;
23738 if test "x$withval" != "x" ; then
23748 # Check whether --with-dir_group was given.
23749 if test "${with_dir_group+set}" = set; then :
23750 withval=$with_dir_group;
23751 if test "x$withval" != "x" ; then
23761 # Check whether --with-sd_user was given.
23762 if test "${with_sd_user+set}" = set; then :
23763 withval=$with_sd_user;
23764 if test "x$withval" != "x" ; then
23774 # Check whether --with-sd_group was given.
23775 if test "${with_sd_group+set}" = set; then :
23776 withval=$with_sd_group;
23777 if test "x$withval" != "x" ; then
23787 # Check whether --with-fd_user was given.
23788 if test "${with_fd_user+set}" = set; then :
23789 withval=$with_fd_user;
23790 if test "x$withval" != "x" ; then
23800 # Check whether --with-fd_group was given.
23801 if test "${with_fd_group+set}" = set; then :
23802 withval=$with_fd_group;
23803 if test "x$withval" != "x" ; then
23820 # Check whether --with-sbin-perm was given.
23821 if test "${with_sbin_perm+set}" = set; then :
23822 withval=$with_sbin_perm;
23823 if test "x$withval" != "x" ; then
23833 support_batch_insert=yes
23834 # Check whether --enable-batch-insert was given.
23835 if test "${enable_batch_insert+set}" = set; then :
23836 enableval=$enable_batch_insert;
23837 if test x$enableval = xno; then
23838 support_batch_insert=no
23845 if test x$support_batch_insert = xyes; then
23847 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23856 $as_echo_n "checking for PostgreSQL support... " >&6; }
23858 # Check whether --with-postgresql was given.
23859 if test "${with_postgresql+set}" = set; then :
23860 withval=$with_postgresql;
23861 if test "$withval" != "no"; then
23862 if test "$withval" = "yes"; then
23863 PG_CONFIG=`which pg_config 2>/dev/null`
23864 if test -n "$PG_CONFIG"; then
23865 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23866 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23867 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23868 elif test -f /usr/local/include/libpq-fe.h; then
23869 POSTGRESQL_INCDIR=/usr/local/include
23870 if test -d /usr/local/lib64; then
23871 POSTGRESQL_LIBDIR=/usr/local/lib64
23873 POSTGRESQL_LIBDIR=/usr/local/lib
23875 POSTGRESQL_BINDIR=/usr/local/bin
23876 elif test -f /usr/include/libpq-fe.h; then
23877 POSTGRESQL_INCDIR=/usr/include
23878 if test -d /usr/lib64; then
23879 POSTGRESQL_LIBDIR=/usr/lib64
23881 POSTGRESQL_LIBDIR=/usr/lib
23883 POSTGRESQL_BINDIR=/usr/bin
23884 elif test -f /usr/include/pgsql/libpq-fe.h; then
23885 POSTGRESQL_INCDIR=/usr/include/pgsql
23886 if test -d /usr/lib64/pgsql; then
23887 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23889 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23891 POSTGRESQL_BINDIR=/usr/bin
23892 elif test -f /usr/include/postgresql/libpq-fe.h; then
23893 POSTGRESQL_INCDIR=/usr/include/postgresql
23894 if test -d /usr/lib64/postgresql; then
23895 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23897 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23899 POSTGRESQL_BINDIR=/usr/bin
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23902 $as_echo "no" >&6; }
23903 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23905 elif test -f $withval/include/libpq-fe.h; then
23906 POSTGRESQL_INCDIR=$withval/include
23907 POSTGRESQL_LIBDIR=$withval/lib
23908 POSTGRESQL_BINDIR=$withval/bin
23909 elif test -f $withval/include/postgresql/libpq-fe.h; then
23910 POSTGRESQL_INCDIR=$withval/include/postgresql
23911 if test -d $withval/lib64; then
23912 POSTGRESQL_LIBDIR=$withval/lib64
23914 POSTGRESQL_LIBDIR=$withval/lib
23916 POSTGRESQL_BINDIR=$withval/bin
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23919 $as_echo "no" >&6; }
23920 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23923 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23926 $as_echo "yes" >&6; }
23928 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23929 if test x$use_libtool != xno; then
23930 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23932 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23934 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23935 if test "x$ac_cv_func_crypt" = xyes; then :
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23939 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23940 if ${ac_cv_lib_crypt_crypt+:} false; then :
23941 $as_echo_n "(cached) " >&6
23943 ac_check_lib_save_LIBS=$LIBS
23944 LIBS="-lcrypt $LIBS"
23945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23946 /* end confdefs.h. */
23948 /* Override any GCC internal prototype to avoid an error.
23949 Use char because int might match the return type of a GCC
23950 builtin and then its argument prototype would still apply. */
23963 if ac_fn_c_try_link "$LINENO"; then :
23964 ac_cv_lib_crypt_crypt=yes
23966 ac_cv_lib_crypt_crypt=no
23968 rm -f core conftest.err conftest.$ac_objext \
23969 conftest$ac_exeext conftest.$ac_ext
23970 LIBS=$ac_check_lib_save_LIBS
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23973 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23974 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23975 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23980 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23981 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23983 if test -z "${db_backends}"; then
23984 db_backends="PostgreSQL"
23986 db_backends="${db_backends} PostgreSQL"
23988 if test -z "${DB_BACKENDS}"; then
23989 DB_BACKENDS="postgresql"
23991 DB_BACKENDS="${DB_BACKENDS} postgresql"
23994 if test "x$support_batch_insert" = "xyes"; then
23995 saved_LDFLAGS="${LDFLAGS}"
23996 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23997 saved_LIBS="${LIBS}"
23998 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23999 LIBS="${saved_LIBS} -lcrypt"
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24003 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24004 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24005 $as_echo_n "(cached) " >&6
24007 ac_check_lib_save_LIBS=$LIBS
24009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24010 /* end confdefs.h. */
24012 /* Override any GCC internal prototype to avoid an error.
24013 Use char because int might match the return type of a GCC
24014 builtin and then its argument prototype would still apply. */
24018 char PQisthreadsafe ();
24022 return PQisthreadsafe ();
24027 if ac_fn_c_try_link "$LINENO"; then :
24028 ac_cv_lib_pq_PQisthreadsafe=yes
24030 ac_cv_lib_pq_PQisthreadsafe=no
24032 rm -f core conftest.err conftest.$ac_objext \
24033 conftest$ac_exeext conftest.$ac_ext
24034 LIBS=$ac_check_lib_save_LIBS
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24037 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24038 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24040 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24045 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24046 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24047 $as_echo_n "(cached) " >&6
24049 ac_check_lib_save_LIBS=$LIBS
24051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24052 /* end confdefs.h. */
24054 /* Override any GCC internal prototype to avoid an error.
24055 Use char because int might match the return type of a GCC
24056 builtin and then its argument prototype would still apply. */
24060 char PQputCopyData ();
24064 return PQputCopyData ();
24069 if ac_fn_c_try_link "$LINENO"; then :
24070 ac_cv_lib_pq_PQputCopyData=yes
24072 ac_cv_lib_pq_PQputCopyData=no
24074 rm -f core conftest.err conftest.$ac_objext \
24075 conftest$ac_exeext conftest.$ac_ext
24076 LIBS=$ac_check_lib_save_LIBS
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24079 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24080 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24082 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24086 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24087 if test $support_batch_insert = yes ; then
24089 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24091 if test -z "${batch_insert_db_backends}"; then
24092 batch_insert_db_backends="PostgreSQL"
24094 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24099 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24101 echo "WARNING: Your PostgreSQL client library is too old to detect "
24102 echo "if it was compiled with --enable-thread-safety, consider to "
24103 echo "upgrade it in order to avoid problems with Batch insert mode"
24106 LDFLAGS="${saved_LDFLAGS}"
24107 LIBS="${saved_LIBS}"
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24111 $as_echo "no" >&6; }
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24117 $as_echo "no" >&6; }
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24129 $as_echo_n "checking for MySQL support... " >&6; }
24131 # Check whether --with-mysql was given.
24132 if test "${with_mysql+set}" = set; then :
24133 withval=$with_mysql;
24135 if test "$withval" != "no"; then
24136 if test "$withval" = "yes"; then
24137 MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24138 if test "x${MYSQL_CONFIG}" != x; then
24139 MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24140 ${MYSQL_CONFIG} --libs_r >/dev/null 2>&1
24141 if test $? = 0; then
24142 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r`
24143 MYSQL_INCDIR=`${MYSQL_CONFIG} --include`
24146 ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24147 if test $? = 0 ; then
24148 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24149 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24153 # if something wrong fall back to old method
24154 if test "x${MYSQL_LIBDIR}" = x -o "x${MYSQL_INCDIR}" = x ; then
24155 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24156 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24157 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24158 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24159 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24161 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24163 MYSQL_BINDIR=/usr/local/mysql/bin
24164 elif test -f /usr/include/mysql/mysql.h; then
24165 MYSQL_INCDIR=/usr/include/mysql
24166 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24167 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24168 MYSQL_LIBDIR=/usr/lib64/mysql
24169 elif test -f /usr/lib64/libmysqlclient_r.a \
24170 -o -f /usr/lib64/libmysqlclient_r.so; then
24171 MYSQL_LIBDIR=/usr/lib64
24172 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24173 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24174 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24175 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24176 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24177 MYSQL_LIBDIR=/usr/lib/mysql
24179 MYSQL_LIBDIR=/usr/lib
24181 MYSQL_BINDIR=/usr/bin
24182 elif test -f /usr/include/mysql.h; then
24183 MYSQL_INCDIR=/usr/include
24184 if test -f /usr/lib64/libmysqlclient_r.a \
24185 -o -f /usr/lib64/libmysqlclient_r.so; then
24186 MYSQL_LIBDIR=/usr/lib64
24188 MYSQL_LIBDIR=/usr/lib
24190 MYSQL_BINDIR=/usr/bin
24191 elif test -f /usr/local/include/mysql/mysql.h; then
24192 MYSQL_INCDIR=/usr/local/include/mysql
24193 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24194 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24195 MYSQL_LIBDIR=/usr/local/lib64/mysql
24197 MYSQL_LIBDIR=/usr/local/lib/mysql
24199 MYSQL_BINDIR=/usr/local/bin
24200 elif test -f /usr/local/include/mysql.h; then
24201 MYSQL_INCDIR=/usr/local/include
24202 if test -f /usr/local/lib64/libmysqlclient_r.a \
24203 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24204 MYSQL_LIBDIR=/usr/local/lib64
24206 MYSQL_LIBDIR=/usr/local/lib
24208 MYSQL_BINDIR=/usr/local/bin
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24211 $as_echo "no" >&6; }
24212 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24216 if test -f $withval/include/mysql/mysql.h; then
24217 MYSQL_INCDIR=$withval/include/mysql
24218 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24219 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24220 MYSQL_LIBDIR=$withval/lib64/mysql
24221 elif test -f $withval/lib64/libmysqlclient_r.a \
24222 -o -f $withval/lib64/libmysqlclient_r.so; then
24223 MYSQL_LIBDIR=$withval/lib64
24224 elif test -f $withval/lib/libmysqlclient_r.a \
24225 -o -f $withval/lib/libmysqlclient_r.so; then
24226 MYSQL_LIBDIR=$withval/lib
24228 MYSQL_LIBDIR=$withval/lib/mysql
24230 MYSQL_BINDIR=$withval/bin
24231 elif test -f $withval/include/mysql.h; then
24232 MYSQL_INCDIR=$withval/include
24233 if test -f $withval/lib64/libmysqlclient_r.a \
24234 -o -f $withval/lib64/libmysqlclient_r.so; then
24235 MYSQL_LIBDIR=$withval/lib64
24237 MYSQL_LIBDIR=$withval/lib
24239 MYSQL_BINDIR=$withval/bin
24240 elif test -f $withval/mysql.h; then
24241 MYSQL_INCDIR=$withval
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24243 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24244 case $MYSQL_INCDIR in
24246 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24247 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24248 if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24249 -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24251 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24252 MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24254 MYSQL_BINDIR=$prefix/lib/mysql55/bin
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24258 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24259 if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24260 -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24262 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24263 MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24265 MYSQL_BINDIR=$prefix/lib/mysql51/bin
24268 if test -z "${MYSQL_LIBDIR}" ; then
24269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24270 $as_echo "no" >&6; }
24271 as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24275 $as_echo "no" >&6; }
24276 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24279 if test "x${MYSQL_LIBDIR}" != x; then
24280 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24281 if test "x$HAVE_LIBSR" = "xyes"; then
24282 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24283 MYSQL_LIBS="$MYSQL_LIBDIR"
24284 MYSQL_INCLUDE="$MYSQL_INCDIR"
24286 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24288 if test -z "${batch_insert_db_backends}"; then
24289 batch_insert_db_backends="MySQL"
24291 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24293 elif test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24294 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24295 if test x$use_libtool != xno; then
24296 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24298 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24300 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24302 if test "x${MYSQL_LIBS}" = x; then
24303 MYSQL_LIBS=$MYSQL_LIBDIR/libmysqlclient_r.a
24307 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24310 $as_echo "yes" >&6; }
24312 if test -z "${db_backends}" ; then
24313 db_backends="MySQL"
24315 db_backends="${db_backends} MySQL"
24317 if test -z "${DB_BACKENDS}" ; then
24318 DB_BACKENDS="mysql"
24320 DB_BACKENDS="${DB_BACKENDS} mysql"
24323 if test "x$HAVE_LIBSR" = "xno"; then
24324 if test "x$support_batch_insert" = "xyes"; then
24325 saved_LDFLAGS="${LDFLAGS}"
24326 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24327 saved_LIBS="${LIBS}"
24328 LIBS="${saved_LIBS} -lz"
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24331 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24332 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24333 $as_echo_n "(cached) " >&6
24335 ac_check_lib_save_LIBS=$LIBS
24336 LIBS="-lmysqlclient_r $LIBS"
24337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24338 /* end confdefs.h. */
24340 /* Override any GCC internal prototype to avoid an error.
24341 Use char because int might match the return type of a GCC
24342 builtin and then its argument prototype would still apply. */
24346 char mysql_thread_safe ();
24350 return mysql_thread_safe ();
24355 if ac_fn_c_try_link "$LINENO"; then :
24356 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24358 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24360 rm -f core conftest.err conftest.$ac_objext \
24361 conftest$ac_exeext conftest.$ac_ext
24362 LIBS=$ac_check_lib_save_LIBS
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24365 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24366 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24368 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24372 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24373 if test -z "${batch_insert_db_backends}"; then
24374 batch_insert_db_backends="MySQL"
24376 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24380 LDFLAGS="${saved_LDFLAGS}"
24381 LIBS="${saved_LIBS}"
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24386 $as_echo "no" >&6; }
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24393 $as_echo "no" >&6; }
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24399 $as_echo_n "checking for MySQL embedded support... " >&6; }
24401 # Check whether --with-embedded-mysql was given.
24402 if test "${with_embedded_mysql+set}" = set; then :
24403 withval=$with_embedded_mysql;
24404 if test "$withval" != "no"; then
24405 if test "$withval" = "yes"; then
24406 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24407 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24408 if test -d /usr/local/mysql/lib64/mysql; then
24409 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24411 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24413 MYSQL_BINDIR=/usr/local/mysql/bin
24414 elif test -f /usr/include/mysql/mysql.h; then
24415 MYSQL_INCDIR=/usr/include/mysql
24416 if test -d /usr/lib64/mysql; then
24417 MYSQL_LIBDIR=/usr/lib64/mysql
24419 MYSQL_LIBDIR=/usr/lib/mysql
24421 MYSQL_BINDIR=/usr/bin
24422 elif test -f /usr/include/mysql.h; then
24423 MYSQL_INCDIR=/usr/include
24424 if test -d /usr/lib64; then
24425 MYSQL_LIBDIR=/usr/lib64
24427 MYSQL_LIBDIR=/usr/lib
24429 MYSQL_BINDIR=/usr/bin
24430 elif test -f /usr/local/include/mysql/mysql.h; then
24431 MYSQL_INCDIR=/usr/local/include/mysql
24432 if test -d /usr/local/lib64/mysql; then
24433 MYSQL_LIBDIR=/usr/local/lib64/mysql
24435 MYSQL_LIBDIR=/usr/local/lib/mysql
24437 MYSQL_BINDIR=/usr/local/bin
24438 elif test -f /usr/local/include/mysql.h; then
24439 MYSQL_INCDIR=/usr/local/include
24440 if test -d /usr/local/lib64; then
24441 MYSQL_LIBDIR=/usr/local/lib64
24443 MYSQL_LIBDIR=/usr/local/lib
24445 MYSQL_BINDIR=/usr/local/bin
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24448 $as_echo "no" >&6; }
24449 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24452 if test -f $withval/include/mysql/mysql.h; then
24453 MYSQL_INCDIR=$withval/include/mysql
24454 if test -d $withval/lib64/mysql; then
24455 MYSQL_LIBDIR=$withval/lib64/mysql
24457 MYSQL_LIBDIR=$withval/lib/mysql
24459 MYSQL_BINDIR=$withval/bin
24460 elif test -f $withval/include/mysql.h; then
24461 MYSQL_INCDIR=$withval/include
24462 if test -d $withval/lib64; then
24463 MYSQL_LIBDIR=$withval/lib64
24465 MYSQL_LIBDIR=$withval/lib
24467 MYSQL_BINDIR=$withval/bin
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24470 $as_echo "no" >&6; }
24471 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24474 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24475 if test x$use_libtool != xno; then
24476 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24478 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24480 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24481 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24484 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24487 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24490 $as_echo "yes" >&6; }
24492 if test -z "${db_backends}"; then
24493 db_backends="MySQL"
24495 db_backends="${db_backends} MySQL"
24497 if test -z "${DB_BACKENDS}"; then
24498 DB_BACKENDS="mysql"
24500 DB_BACKENDS="${DB_BACKENDS} mysql"
24503 if test "x$support_batch_insert" = "xyes"; then
24504 saved_LDFLAGS="${LDFLAGS}"
24505 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24506 saved_LIBS="${LIBS}"
24507 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24510 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24511 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24512 $as_echo_n "(cached) " >&6
24514 ac_check_lib_save_LIBS=$LIBS
24515 LIBS="-lmysqlclient_r $LIBS"
24516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24517 /* end confdefs.h. */
24519 /* Override any GCC internal prototype to avoid an error.
24520 Use char because int might match the return type of a GCC
24521 builtin and then its argument prototype would still apply. */
24525 char mysql_thread_safe ();
24529 return mysql_thread_safe ();
24534 if ac_fn_c_try_link "$LINENO"; then :
24535 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24537 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24539 rm -f core conftest.err conftest.$ac_objext \
24540 conftest$ac_exeext conftest.$ac_ext
24541 LIBS=$ac_check_lib_save_LIBS
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24544 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24545 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24547 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24551 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24552 if test -z "${batch_insert_db_backends}"; then
24553 batch_insert_db_backends="MySQL"
24555 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24559 LDFLAGS="${saved_LDFLAGS}"
24560 LIBS="${saved_LIBS}"
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24564 $as_echo "no" >&6; }
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24570 $as_echo "no" >&6; }
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24583 $as_echo_n "checking for SQLite3 support... " >&6; }
24585 # Check whether --with-sqlite3 was given.
24586 if test "${with_sqlite3+set}" = set; then :
24587 withval=$with_sqlite3;
24588 if test "$withval" != "no"; then
24589 if test "$withval" = "yes"; then
24590 if test -f /usr/local/include/sqlite3.h; then
24591 SQLITE_INCDIR=/usr/local/include
24592 if test -d /usr/local/lib64; then
24593 SQLITE_LIBDIR=/usr/local/lib64
24595 SQLITE_LIBDIR=/usr/local/lib
24597 SQLITE_BINDIR=/usr/local/bin
24598 elif test -f /usr/include/sqlite3.h; then
24599 SQLITE_INCDIR=/usr/include
24600 if test -d /usr/lib64; then
24601 SQLITE_LIBDIR=/usr/lib64
24603 SQLITE_LIBDIR=/usr/lib
24605 SQLITE_BINDIR=/usr/bin
24606 elif test -f $prefix/include/sqlite3.h; then
24607 SQLITE_INCDIR=$prefix/include
24608 if test -d $prefix/lib64; then
24609 SQLITE_LIBDIR=$prefix/lib64
24611 SQLITE_LIBDIR=$prefix/lib
24613 SQLITE_BINDIR=$prefix/bin
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24616 $as_echo "no" >&6; }
24617 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24620 if test -f $withval/sqlite3.h; then
24621 SQLITE_INCDIR=$withval
24622 SQLITE_LIBDIR=$withval
24623 SQLITE_BINDIR=$withval
24624 elif test -f $withval/include/sqlite3.h; then
24625 SQLITE_INCDIR=$withval/include
24626 if test -d $withval/lib64; then
24627 SQLITE_LIBDIR=$withval/lib64
24629 SQLITE_LIBDIR=$withval/lib
24631 SQLITE_BINDIR=$withval/bin
24633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24634 $as_echo "no" >&6; }
24635 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24638 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24639 if test x$use_libtool != xno; then
24640 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24642 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24644 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24645 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24648 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24651 $as_echo "yes" >&6; }
24653 if test -z "${db_backends}"; then
24654 db_backends="SQLite3"
24656 db_backends="${db_backends} SQLite3"
24658 if test -z "${DB_BACKENDS}"; then
24659 DB_BACKENDS="sqlite3"
24661 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24664 if test "x$support_batch_insert" = "xyes"; then
24665 saved_LDFLAGS="${LDFLAGS}"
24666 LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24669 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24670 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24671 $as_echo_n "(cached) " >&6
24673 ac_check_lib_save_LIBS=$LIBS
24674 LIBS="-lsqlite3 $LIBS"
24675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24676 /* end confdefs.h. */
24678 /* Override any GCC internal prototype to avoid an error.
24679 Use char because int might match the return type of a GCC
24680 builtin and then its argument prototype would still apply. */
24684 char sqlite3_threadsafe ();
24688 return sqlite3_threadsafe ();
24693 if ac_fn_c_try_link "$LINENO"; then :
24694 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24696 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24698 rm -f core conftest.err conftest.$ac_objext \
24699 conftest$ac_exeext conftest.$ac_ext
24700 LIBS=$ac_check_lib_save_LIBS
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24703 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24704 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24706 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24710 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24711 if test -z "${batch_insert_db_backends}"; then
24712 batch_insert_db_backends="SQLite3"
24714 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24718 LDFLAGS="${saved_LDFLAGS}"
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24722 $as_echo "no" >&6; }
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24728 $as_echo "no" >&6; }
24738 if test -z "${batch_insert_db_backends}"; then
24739 batch_insert_db_backends="None"
24742 if test "x${db_backends}" = "x" ; then
24745 echo "You have not specified either --enable-client-only or one of the"
24746 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24747 echo "This is not permitted. Please reconfigure."
24749 echo "Aborting the configuration ..."
24755 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24757 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24758 if test x$use_libtool = xno; then
24759 SHARED_CATALOG_TARGETS=""
24761 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24765 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24767 if test x$use_libtool = xno; then
24770 echo "You have specified two or more of the"
24771 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24772 echo "This is not permitted when not using libtool Please reconfigure."
24774 echo "Aborting the configuration ..."
24780 SHARED_CATALOG_TARGETS=""
24781 for db_type in ${DB_BACKENDS}
24783 if test -z "${SHARED_CATALOG_TARGETS}"; then
24784 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24786 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24792 if test x$use_libtool = xyes; then
24802 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24805 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24806 if test -z "$CCOPTS"; then
24807 CCOPTS='-g -O2 -Wall'
24814 largefile_support="no"
24816 # Check whether --enable-largefile was given.
24817 if test "${enable_largefile+set}" = set; then :
24818 enableval=$enable_largefile;
24821 if test "$enable_largefile" != no; then
24822 if test -n "$ac_tool_prefix"; then
24823 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24824 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24826 $as_echo_n "checking for $ac_word... " >&6; }
24827 if ${ac_cv_prog_GETCONF+:} false; then :
24828 $as_echo_n "(cached) " >&6
24830 if test -n "$GETCONF"; then
24831 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24834 for as_dir in $PATH
24837 test -z "$as_dir" && as_dir=.
24838 for ac_exec_ext in '' $ac_executable_extensions; do
24839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24840 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24850 GETCONF=$ac_cv_prog_GETCONF
24851 if test -n "$GETCONF"; then
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24853 $as_echo "$GETCONF" >&6; }
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24856 $as_echo "no" >&6; }
24861 if test -z "$ac_cv_prog_GETCONF"; then
24862 ac_ct_GETCONF=$GETCONF
24863 # Extract the first word of "getconf", so it can be a program name with args.
24864 set dummy getconf; ac_word=$2
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24866 $as_echo_n "checking for $ac_word... " >&6; }
24867 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24868 $as_echo_n "(cached) " >&6
24870 if test -n "$ac_ct_GETCONF"; then
24871 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24874 for as_dir in $PATH
24877 test -z "$as_dir" && as_dir=.
24878 for ac_exec_ext in '' $ac_executable_extensions; do
24879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24880 ac_cv_prog_ac_ct_GETCONF="getconf"
24881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24890 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24891 if test -n "$ac_ct_GETCONF"; then
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24893 $as_echo "$ac_ct_GETCONF" >&6; }
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24896 $as_echo "no" >&6; }
24899 if test "x$ac_ct_GETCONF" = x; then
24902 case $cross_compiling:$ac_tool_warned in
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24906 ac_tool_warned=yes ;;
24908 GETCONF=$ac_ct_GETCONF
24911 GETCONF="$ac_cv_prog_GETCONF"
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24915 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24916 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24917 $as_echo_n "(cached) " >&6
24919 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24920 ac_cv_sys_largefile_CFLAGS=no
24922 # IRIX 6.2 and later require cc -n32.
24923 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24924 if test "$GCC" != yes; then
24925 ac_cv_sys_largefile_CFLAGS=-n32
24928 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24930 /* end confdefs.h. */
24940 if ac_fn_c_try_link "$LINENO"; then :
24943 ac_cv_sys_largefile_CFLAGS=no
24945 rm -f core conftest.err conftest.$ac_objext \
24946 conftest$ac_exeext conftest.$ac_ext
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24952 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24954 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24955 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24956 $as_echo_n "(cached) " >&6
24958 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24959 ac_cv_sys_largefile_LDFLAGS=no
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24964 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24966 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24967 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24968 $as_echo_n "(cached) " >&6
24970 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24971 ac_cv_sys_largefile_LIBS=no
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24976 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24978 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24981 -D_FILE_OFFSET_BITS=*) ;;
24982 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24983 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24988 case "$CPPFLAGS" in
24989 '') CPPFLAGS="$ac_flag" ;;
24990 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24998 '') CFLAGS="$ac_flag" ;;
24999 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
25004 case "$ac_cv_sys_largefile_LDFLAGS" in
25008 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
25009 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
25012 case "$ac_cv_sys_largefile_LIBS" in
25016 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
25017 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
25021 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
25022 if ${ac_cv_sys_file_offset_bits+:} false; then :
25023 $as_echo_n "(cached) " >&6
25025 ac_cv_sys_file_offset_bits=no
25026 ac_cv_sys_file_offset_bits=64
25027 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25029 -D_FILE_OFFSET_BITS)
25030 ac_cv_sys_file_offset_bits=1 ;;
25031 -D_FILE_OFFSET_BITS=*)
25032 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25038 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25039 if test "$ac_cv_sys_file_offset_bits" != no; then
25041 cat >>confdefs.h <<_ACEOF
25042 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25047 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25048 if ${ac_cv_sys_largefile_source+:} false; then :
25049 $as_echo_n "(cached) " >&6
25051 ac_cv_sys_largefile_source=no
25052 ac_cv_sys_largefile_source=1
25053 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25055 -D_LARGEFILE_SOURCE)
25056 ac_cv_sys_largefile_source=1 ;;
25057 -D_LARGEFILE_SOURCE=*)
25058 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25064 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25065 if test "$ac_cv_sys_largefile_source" != no; then
25067 cat >>confdefs.h <<_ACEOF
25068 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25073 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25074 if ${ac_cv_sys_large_files+:} false; then :
25075 $as_echo_n "(cached) " >&6
25077 ac_cv_sys_large_files=no
25078 ac_cv_sys_large_files=1
25079 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25082 ac_cv_sys_large_files=1 ;;
25084 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25090 $as_echo "$ac_cv_sys_large_files" >&6; }
25091 if test "$ac_cv_sys_large_files" != no; then
25093 cat >>confdefs.h <<_ACEOF
25094 #define _LARGE_FILES $ac_cv_sys_large_files
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25102 $as_echo_n "checking for X... " >&6; }
25105 # Check whether --with-x was given.
25106 if test "${with_x+set}" = set; then :
25110 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25111 if test "x$with_x" = xno; then
25112 # The user explicitly disabled X.
25115 case $x_includes,$x_libraries in #(
25116 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25117 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25118 $as_echo_n "(cached) " >&6
25120 # One or both of the vars are not set, and there is no cached value.
25121 ac_x_includes=no ac_x_libraries=no
25122 rm -f -r conftest.dir
25123 if mkdir conftest.dir; then
25125 cat >Imakefile <<'_ACEOF'
25127 @echo incroot='${INCROOT}'
25129 @echo usrlibdir='${USRLIBDIR}'
25131 @echo libdir='${LIBDIR}'
25133 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25134 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25135 for ac_var in incroot usrlibdir libdir; do
25136 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25138 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25139 for ac_extension in a so sl dylib la dll; do
25140 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25141 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25142 ac_im_usrlibdir=$ac_im_libdir; break
25145 # Screen out bogus values from the imake configuration. They are
25146 # bogus both because they are the default anyway, and because
25147 # using them would break gcc on systems where it needs fixed includes.
25148 case $ac_im_incroot in
25149 /usr/include) ac_x_includes= ;;
25150 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25152 case $ac_im_usrlibdir in
25153 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25154 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25158 rm -f -r conftest.dir
25161 # Standard set of common directories for X headers.
25162 # Check X11 before X11Rn because it is often a symlink to the current release.
25176 /usr/local/X11/include
25177 /usr/local/X11R7/include
25178 /usr/local/X11R6/include
25179 /usr/local/X11R5/include
25180 /usr/local/X11R4/include
25182 /usr/local/include/X11
25183 /usr/local/include/X11R7
25184 /usr/local/include/X11R6
25185 /usr/local/include/X11R5
25186 /usr/local/include/X11R4
25190 /usr/XFree86/include/X11
25194 /usr/unsupported/include
25195 /usr/athena/include
25196 /usr/local/x11r5/include
25197 /usr/lpp/Xamples/include
25199 /usr/openwin/include
25200 /usr/openwin/share/include'
25202 if test "$ac_x_includes" = no; then
25203 # Guess where to find include files, by looking for Xlib.h.
25204 # First, try using that file with no special directory specified.
25205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25206 /* end confdefs.h. */
25207 #include <X11/Xlib.h>
25209 if ac_fn_c_try_cpp "$LINENO"; then :
25210 # We can compile using X headers with no special include directory.
25213 for ac_dir in $ac_x_header_dirs; do
25214 if test -r "$ac_dir/X11/Xlib.h"; then
25215 ac_x_includes=$ac_dir
25220 rm -f conftest.err conftest.i conftest.$ac_ext
25221 fi # $ac_x_includes = no
25223 if test "$ac_x_libraries" = no; then
25224 # Check for the libraries.
25225 # See if we find them without any special options.
25226 # Don't add to $LIBS permanently.
25229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25230 /* end confdefs.h. */
25231 #include <X11/Xlib.h>
25240 if ac_fn_c_try_link "$LINENO"; then :
25242 # We can link X programs with no special library path.
25246 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25248 # Don't even attempt the hair of trying to link an X program!
25249 for ac_extension in a so sl dylib la dll; do
25250 if test -r "$ac_dir/libX11.$ac_extension"; then
25251 ac_x_libraries=$ac_dir
25257 rm -f core conftest.err conftest.$ac_objext \
25258 conftest$ac_exeext conftest.$ac_ext
25259 fi # $ac_x_libraries = no
25261 case $ac_x_includes,$ac_x_libraries in #(
25262 no,* | *,no | *\'*)
25263 # Didn't find X, or a directory has "'" in its name.
25264 ac_cv_have_x="have_x=no";; #(
25266 # Record where we found X for the cache.
25267 ac_cv_have_x="have_x=yes\
25268 ac_x_includes='$ac_x_includes'\
25269 ac_x_libraries='$ac_x_libraries'"
25275 eval "$ac_cv_have_x"
25278 if test "$have_x" != yes; then
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25280 $as_echo "$have_x" >&6; }
25283 # If each of the values was on the command line, it overrides each guess.
25284 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25285 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25286 # Update the cache value to reflect the command line values.
25287 ac_cv_have_x="have_x=yes\
25288 ac_x_includes='$x_includes'\
25289 ac_x_libraries='$x_libraries'"
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25291 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25294 if test "$no_x" = yes; then
25295 # Not all programs may use this symbol, but it does not hurt to define it.
25297 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25299 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25301 if test -n "$x_includes"; then
25302 X_CFLAGS="$X_CFLAGS -I$x_includes"
25305 # It would also be nice to do this for all -L options, not just this one.
25306 if test -n "$x_libraries"; then
25307 X_LIBS="$X_LIBS -L$x_libraries"
25308 # For Solaris; some versions of Sun CC require a space after -R and
25309 # others require no space. Words are not sufficient . . . .
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25311 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25312 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25313 ac_xsave_c_werror_flag=$ac_c_werror_flag
25314 ac_c_werror_flag=yes
25315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25316 /* end confdefs.h. */
25326 if ac_fn_c_try_link "$LINENO"; then :
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25328 $as_echo "no" >&6; }
25329 X_LIBS="$X_LIBS -R$x_libraries"
25331 LIBS="$ac_xsave_LIBS -R $x_libraries"
25332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25333 /* end confdefs.h. */
25343 if ac_fn_c_try_link "$LINENO"; then :
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25345 $as_echo "yes" >&6; }
25346 X_LIBS="$X_LIBS -R $x_libraries"
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25349 $as_echo "neither works" >&6; }
25351 rm -f core conftest.err conftest.$ac_objext \
25352 conftest$ac_exeext conftest.$ac_ext
25354 rm -f core conftest.err conftest.$ac_objext \
25355 conftest$ac_exeext conftest.$ac_ext
25356 ac_c_werror_flag=$ac_xsave_c_werror_flag
25357 LIBS=$ac_xsave_LIBS
25360 # Check for system-dependent libraries X programs must link with.
25361 # Do this before checking for the system-independent R6 libraries
25362 # (-lICE), since we may need -lsocket or whatever for X linking.
25364 if test "$ISC" = yes; then
25365 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25367 # Martyn Johnson says this is needed for Ultrix, if the X
25368 # libraries were built with DECnet support. And Karl Berry says
25369 # the Alpha needs dnet_stub (dnet does not exist).
25370 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25372 /* end confdefs.h. */
25374 /* Override any GCC internal prototype to avoid an error.
25375 Use char because int might match the return type of a GCC
25376 builtin and then its argument prototype would still apply. */
25380 char XOpenDisplay ();
25384 return XOpenDisplay ();
25389 if ac_fn_c_try_link "$LINENO"; then :
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25393 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25394 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25395 $as_echo_n "(cached) " >&6
25397 ac_check_lib_save_LIBS=$LIBS
25398 LIBS="-ldnet $LIBS"
25399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25400 /* end confdefs.h. */
25402 /* Override any GCC internal prototype to avoid an error.
25403 Use char because int might match the return type of a GCC
25404 builtin and then its argument prototype would still apply. */
25412 return dnet_ntoa ();
25417 if ac_fn_c_try_link "$LINENO"; then :
25418 ac_cv_lib_dnet_dnet_ntoa=yes
25420 ac_cv_lib_dnet_dnet_ntoa=no
25422 rm -f core conftest.err conftest.$ac_objext \
25423 conftest$ac_exeext conftest.$ac_ext
25424 LIBS=$ac_check_lib_save_LIBS
25426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25427 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25428 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25429 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25432 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25434 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25435 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25436 $as_echo_n "(cached) " >&6
25438 ac_check_lib_save_LIBS=$LIBS
25439 LIBS="-ldnet_stub $LIBS"
25440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25441 /* end confdefs.h. */
25443 /* Override any GCC internal prototype to avoid an error.
25444 Use char because int might match the return type of a GCC
25445 builtin and then its argument prototype would still apply. */
25453 return dnet_ntoa ();
25458 if ac_fn_c_try_link "$LINENO"; then :
25459 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25461 ac_cv_lib_dnet_stub_dnet_ntoa=no
25463 rm -f core conftest.err conftest.$ac_objext \
25464 conftest$ac_exeext conftest.$ac_ext
25465 LIBS=$ac_check_lib_save_LIBS
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25468 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25469 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25470 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25475 rm -f core conftest.err conftest.$ac_objext \
25476 conftest$ac_exeext conftest.$ac_ext
25477 LIBS="$ac_xsave_LIBS"
25479 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25480 # to get the SysV transport functions.
25481 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25483 # The nsl library prevents programs from opening the X display
25484 # on Irix 5.2, according to T.E. Dickey.
25485 # The functions gethostbyname, getservbyname, and inet_addr are
25486 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25487 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25488 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25492 if test $ac_cv_func_gethostbyname = no; then
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25494 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25495 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25496 $as_echo_n "(cached) " >&6
25498 ac_check_lib_save_LIBS=$LIBS
25500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25501 /* end confdefs.h. */
25503 /* Override any GCC internal prototype to avoid an error.
25504 Use char because int might match the return type of a GCC
25505 builtin and then its argument prototype would still apply. */
25509 char gethostbyname ();
25513 return gethostbyname ();
25518 if ac_fn_c_try_link "$LINENO"; then :
25519 ac_cv_lib_nsl_gethostbyname=yes
25521 ac_cv_lib_nsl_gethostbyname=no
25523 rm -f core conftest.err conftest.$ac_objext \
25524 conftest$ac_exeext conftest.$ac_ext
25525 LIBS=$ac_check_lib_save_LIBS
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25528 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25529 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25530 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25533 if test $ac_cv_lib_nsl_gethostbyname = no; then
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25535 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25536 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25537 $as_echo_n "(cached) " >&6
25539 ac_check_lib_save_LIBS=$LIBS
25541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25542 /* end confdefs.h. */
25544 /* Override any GCC internal prototype to avoid an error.
25545 Use char because int might match the return type of a GCC
25546 builtin and then its argument prototype would still apply. */
25550 char gethostbyname ();
25554 return gethostbyname ();
25559 if ac_fn_c_try_link "$LINENO"; then :
25560 ac_cv_lib_bsd_gethostbyname=yes
25562 ac_cv_lib_bsd_gethostbyname=no
25564 rm -f core conftest.err conftest.$ac_objext \
25565 conftest$ac_exeext conftest.$ac_ext
25566 LIBS=$ac_check_lib_save_LIBS
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25569 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25570 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25571 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25577 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25578 # socket/setsockopt and other routines are undefined under SCO ODT
25579 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25580 # on later versions), says Simon Leinen: it contains gethostby*
25581 # variants that don't use the name server (or something). -lsocket
25582 # must be given before -lnsl if both are needed. We assume that
25583 # if connect needs -lnsl, so does gethostbyname.
25584 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25585 if test "x$ac_cv_func_connect" = xyes; then :
25589 if test $ac_cv_func_connect = no; then
25590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25591 $as_echo_n "checking for connect in -lsocket... " >&6; }
25592 if ${ac_cv_lib_socket_connect+:} false; then :
25593 $as_echo_n "(cached) " >&6
25595 ac_check_lib_save_LIBS=$LIBS
25596 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25598 /* end confdefs.h. */
25600 /* Override any GCC internal prototype to avoid an error.
25601 Use char because int might match the return type of a GCC
25602 builtin and then its argument prototype would still apply. */
25615 if ac_fn_c_try_link "$LINENO"; then :
25616 ac_cv_lib_socket_connect=yes
25618 ac_cv_lib_socket_connect=no
25620 rm -f core conftest.err conftest.$ac_objext \
25621 conftest$ac_exeext conftest.$ac_ext
25622 LIBS=$ac_check_lib_save_LIBS
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25625 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25626 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25627 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25632 # Guillermo Gomez says -lposix is necessary on A/UX.
25633 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25634 if test "x$ac_cv_func_remove" = xyes; then :
25638 if test $ac_cv_func_remove = no; then
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25640 $as_echo_n "checking for remove in -lposix... " >&6; }
25641 if ${ac_cv_lib_posix_remove+:} false; then :
25642 $as_echo_n "(cached) " >&6
25644 ac_check_lib_save_LIBS=$LIBS
25645 LIBS="-lposix $LIBS"
25646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25647 /* end confdefs.h. */
25649 /* Override any GCC internal prototype to avoid an error.
25650 Use char because int might match the return type of a GCC
25651 builtin and then its argument prototype would still apply. */
25664 if ac_fn_c_try_link "$LINENO"; then :
25665 ac_cv_lib_posix_remove=yes
25667 ac_cv_lib_posix_remove=no
25669 rm -f core conftest.err conftest.$ac_objext \
25670 conftest$ac_exeext conftest.$ac_ext
25671 LIBS=$ac_check_lib_save_LIBS
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25674 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25675 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25676 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25681 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25682 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25683 if test "x$ac_cv_func_shmat" = xyes; then :
25687 if test $ac_cv_func_shmat = no; then
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25689 $as_echo_n "checking for shmat in -lipc... " >&6; }
25690 if ${ac_cv_lib_ipc_shmat+:} false; then :
25691 $as_echo_n "(cached) " >&6
25693 ac_check_lib_save_LIBS=$LIBS
25695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25696 /* end confdefs.h. */
25698 /* Override any GCC internal prototype to avoid an error.
25699 Use char because int might match the return type of a GCC
25700 builtin and then its argument prototype would still apply. */
25713 if ac_fn_c_try_link "$LINENO"; then :
25714 ac_cv_lib_ipc_shmat=yes
25716 ac_cv_lib_ipc_shmat=no
25718 rm -f core conftest.err conftest.$ac_objext \
25719 conftest$ac_exeext conftest.$ac_ext
25720 LIBS=$ac_check_lib_save_LIBS
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25723 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25724 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25725 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25731 # Check for libraries that X11R6 Xt/Xaw programs need.
25732 ac_save_LDFLAGS=$LDFLAGS
25733 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25734 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25735 # check for ICE first), but we must link in the order -lSM -lICE or
25736 # we get undefined symbols. So assume we have SM if we have ICE.
25737 # These have to be linked with before -lX11, unlike the other
25738 # libraries we check for below, so use a different variable.
25739 # John Interrante, Karl Berry
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25741 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25742 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25743 $as_echo_n "(cached) " >&6
25745 ac_check_lib_save_LIBS=$LIBS
25746 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25748 /* end confdefs.h. */
25750 /* Override any GCC internal prototype to avoid an error.
25751 Use char because int might match the return type of a GCC
25752 builtin and then its argument prototype would still apply. */
25756 char IceConnectionNumber ();
25760 return IceConnectionNumber ();
25765 if ac_fn_c_try_link "$LINENO"; then :
25766 ac_cv_lib_ICE_IceConnectionNumber=yes
25768 ac_cv_lib_ICE_IceConnectionNumber=no
25770 rm -f core conftest.err conftest.$ac_objext \
25771 conftest$ac_exeext conftest.$ac_ext
25772 LIBS=$ac_check_lib_save_LIBS
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25775 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25776 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25777 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25780 LDFLAGS=$ac_save_LDFLAGS
25818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25819 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25820 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25821 cat >>confdefs.h <<_ACEOF
25822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25830 $as_echo_n "checking for ANSI C header files... " >&6; }
25831 if ${ac_cv_header_stdc+:} false; then :
25832 $as_echo_n "(cached) " >&6
25834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25835 /* end confdefs.h. */
25836 #include <stdlib.h>
25837 #include <stdarg.h>
25838 #include <string.h>
25849 if ac_fn_c_try_compile "$LINENO"; then :
25850 ac_cv_header_stdc=yes
25852 ac_cv_header_stdc=no
25854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25856 if test $ac_cv_header_stdc = yes; then
25857 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25859 /* end confdefs.h. */
25860 #include <string.h>
25863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25864 $EGREP "memchr" >/dev/null 2>&1; then :
25867 ac_cv_header_stdc=no
25873 if test $ac_cv_header_stdc = yes; then
25874 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25876 /* end confdefs.h. */
25877 #include <stdlib.h>
25880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25881 $EGREP "free" >/dev/null 2>&1; then :
25884 ac_cv_header_stdc=no
25890 if test $ac_cv_header_stdc = yes; then
25891 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25892 if test "$cross_compiling" = yes; then :
25895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25896 /* end confdefs.h. */
25898 #include <stdlib.h>
25899 #if ((' ' & 0x0FF) == 0x020)
25900 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25901 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25903 # define ISLOWER(c) \
25904 (('a' <= (c) && (c) <= 'i') \
25905 || ('j' <= (c) && (c) <= 'r') \
25906 || ('s' <= (c) && (c) <= 'z'))
25907 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25910 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25915 for (i = 0; i < 256; i++)
25916 if (XOR (islower (i), ISLOWER (i))
25917 || toupper (i) != TOUPPER (i))
25922 if ac_fn_c_try_run "$LINENO"; then :
25925 ac_cv_header_stdc=no
25927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25928 conftest.$ac_objext conftest.beam conftest.$ac_ext
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25934 $as_echo "$ac_cv_header_stdc" >&6; }
25935 if test $ac_cv_header_stdc = yes; then
25937 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25942 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25943 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25944 $as_echo_n "(cached) " >&6
25946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25947 /* end confdefs.h. */
25948 #include <sys/types.h>
25952 return makedev(0, 0);
25957 if ac_fn_c_try_link "$LINENO"; then :
25958 ac_cv_header_sys_types_h_makedev=yes
25960 ac_cv_header_sys_types_h_makedev=no
25962 rm -f core conftest.err conftest.$ac_objext \
25963 conftest$ac_exeext conftest.$ac_ext
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25967 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25969 if test $ac_cv_header_sys_types_h_makedev = no; then
25970 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25971 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25973 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25979 if test $ac_cv_header_sys_mkdev_h = no; then
25980 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25981 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25983 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25991 ac_header_dirent=no
25992 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25993 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25995 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25996 if eval \${$as_ac_Header+:} false; then :
25997 $as_echo_n "(cached) " >&6
25999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26000 /* end confdefs.h. */
26001 #include <sys/types.h>
26013 if ac_fn_c_try_compile "$LINENO"; then :
26014 eval "$as_ac_Header=yes"
26016 eval "$as_ac_Header=no"
26018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26020 eval ac_res=\$$as_ac_Header
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26022 $as_echo "$ac_res" >&6; }
26023 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26024 cat >>confdefs.h <<_ACEOF
26025 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26028 ac_header_dirent=$ac_hdr; break
26032 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26033 if test $ac_header_dirent = dirent.h; then
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26035 $as_echo_n "checking for library containing opendir... " >&6; }
26036 if ${ac_cv_search_opendir+:} false; then :
26037 $as_echo_n "(cached) " >&6
26039 ac_func_search_save_LIBS=$LIBS
26040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26041 /* end confdefs.h. */
26043 /* Override any GCC internal prototype to avoid an error.
26044 Use char because int might match the return type of a GCC
26045 builtin and then its argument prototype would still apply. */
26058 for ac_lib in '' dir; do
26059 if test -z "$ac_lib"; then
26060 ac_res="none required"
26063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26065 if ac_fn_c_try_link "$LINENO"; then :
26066 ac_cv_search_opendir=$ac_res
26068 rm -f core conftest.err conftest.$ac_objext \
26070 if ${ac_cv_search_opendir+:} false; then :
26074 if ${ac_cv_search_opendir+:} false; then :
26077 ac_cv_search_opendir=no
26079 rm conftest.$ac_ext
26080 LIBS=$ac_func_search_save_LIBS
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26083 $as_echo "$ac_cv_search_opendir" >&6; }
26084 ac_res=$ac_cv_search_opendir
26085 if test "$ac_res" != no; then :
26086 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26092 $as_echo_n "checking for library containing opendir... " >&6; }
26093 if ${ac_cv_search_opendir+:} false; then :
26094 $as_echo_n "(cached) " >&6
26096 ac_func_search_save_LIBS=$LIBS
26097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26098 /* end confdefs.h. */
26100 /* Override any GCC internal prototype to avoid an error.
26101 Use char because int might match the return type of a GCC
26102 builtin and then its argument prototype would still apply. */
26115 for ac_lib in '' x; do
26116 if test -z "$ac_lib"; then
26117 ac_res="none required"
26120 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26122 if ac_fn_c_try_link "$LINENO"; then :
26123 ac_cv_search_opendir=$ac_res
26125 rm -f core conftest.err conftest.$ac_objext \
26127 if ${ac_cv_search_opendir+:} false; then :
26131 if ${ac_cv_search_opendir+:} false; then :
26134 ac_cv_search_opendir=no
26136 rm conftest.$ac_ext
26137 LIBS=$ac_func_search_save_LIBS
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26140 $as_echo "$ac_cv_search_opendir" >&6; }
26141 ac_res=$ac_cv_search_opendir
26142 if test "$ac_res" != no; then :
26143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26150 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26151 if ${ac_cv_header_stat_broken+:} false; then :
26152 $as_echo_n "(cached) " >&6
26154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26155 /* end confdefs.h. */
26156 #include <sys/types.h>
26157 #include <sys/stat.h>
26159 #if defined S_ISBLK && defined S_IFDIR
26160 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26163 #if defined S_ISBLK && defined S_IFCHR
26164 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26167 #if defined S_ISLNK && defined S_IFREG
26168 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26171 #if defined S_ISSOCK && defined S_IFREG
26172 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26176 if ac_fn_c_try_compile "$LINENO"; then :
26177 ac_cv_header_stat_broken=no
26179 ac_cv_header_stat_broken=yes
26181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26184 $as_echo "$ac_cv_header_stat_broken" >&6; }
26185 if test $ac_cv_header_stat_broken = yes; then
26187 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26192 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26193 if ${ac_cv_header_sys_wait_h+:} false; then :
26194 $as_echo_n "(cached) " >&6
26196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26197 /* end confdefs.h. */
26198 #include <sys/types.h>
26199 #include <sys/wait.h>
26200 #ifndef WEXITSTATUS
26201 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26204 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26212 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26217 if ac_fn_c_try_compile "$LINENO"; then :
26218 ac_cv_header_sys_wait_h=yes
26220 ac_cv_header_sys_wait_h=no
26222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26225 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26226 if test $ac_cv_header_sys_wait_h = yes; then
26228 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26233 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26234 if ${ac_cv_header_time+:} false; then :
26235 $as_echo_n "(cached) " >&6
26237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26238 /* end confdefs.h. */
26239 #include <sys/types.h>
26240 #include <sys/time.h>
26246 if ((struct tm *) 0)
26252 if ac_fn_c_try_compile "$LINENO"; then :
26253 ac_cv_header_time=yes
26255 ac_cv_header_time=no
26257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26260 $as_echo "$ac_cv_header_time" >&6; }
26261 if test $ac_cv_header_time = yes; then
26263 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26267 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26268 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26270 cat >>confdefs.h <<_ACEOF
26271 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26275 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26280 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26281 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26283 cat >>confdefs.h <<_ACEOF
26284 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26288 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26291 case " $LIBOBJS " in
26292 *" fileblocks.$ac_objext "* ) ;;
26293 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26301 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26302 if ${ac_cv_struct_tm+:} false; then :
26303 $as_echo_n "(cached) " >&6
26305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26306 /* end confdefs.h. */
26307 #include <sys/types.h>
26314 int *p = &tm.tm_sec;
26320 if ac_fn_c_try_compile "$LINENO"; then :
26321 ac_cv_struct_tm=time.h
26323 ac_cv_struct_tm=sys/time.h
26325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26328 $as_echo "$ac_cv_struct_tm" >&6; }
26329 if test $ac_cv_struct_tm = sys/time.h; then
26331 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26335 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26336 #include <$ac_cv_struct_tm>
26339 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26341 cat >>confdefs.h <<_ACEOF
26342 #define HAVE_STRUCT_TM_TM_ZONE 1
26348 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26350 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26353 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26355 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26361 cat >>confdefs.h <<_ACEOF
26362 #define HAVE_DECL_TZNAME $ac_have_decl
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26366 $as_echo_n "checking for tzname... " >&6; }
26367 if ${ac_cv_var_tzname+:} false; then :
26368 $as_echo_n "(cached) " >&6
26370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26371 /* end confdefs.h. */
26373 #if !HAVE_DECL_TZNAME
26374 extern char *tzname[];
26380 return tzname[0][0];
26385 if ac_fn_c_try_link "$LINENO"; then :
26386 ac_cv_var_tzname=yes
26388 ac_cv_var_tzname=no
26390 rm -f core conftest.err conftest.$ac_objext \
26391 conftest$ac_exeext conftest.$ac_ext
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26394 $as_echo "$ac_cv_var_tzname" >&6; }
26395 if test $ac_cv_var_tzname = yes; then
26397 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26404 $as_echo_n "checking for utime.h... " >&6; }
26405 if ${ba_cv_header_utime_h+:} false; then :
26406 $as_echo_n "(cached) " >&6
26409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26410 /* end confdefs.h. */
26412 #include <sys/types.h>
26425 if ac_fn_c_try_compile "$LINENO"; then :
26427 ba_cv_header_utime_h=yes
26431 ba_cv_header_utime_h=no
26435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26440 $as_echo "$ba_cv_header_utime_h" >&6; }
26441 test $ba_cv_header_utime_h = yes &&
26442 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26446 $as_echo_n "checking for socklen_t... " >&6; }
26447 if ${ba_cv_header_socklen_t+:} false; then :
26448 $as_echo_n "(cached) " >&6
26451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26452 /* end confdefs.h. */
26454 #include <sys/types.h>
26455 #include <sys/socket.h>
26467 if ac_fn_c_try_compile "$LINENO"; then :
26469 ba_cv_header_socklen_t=yes
26473 ba_cv_header_socklen_t=no
26477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26482 $as_echo "$ba_cv_header_socklen_t" >&6; }
26483 test $ba_cv_header_socklen_t = yes &&
26484 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26488 ac_cpp='$CXXCPP $CPPFLAGS'
26489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26494 $as_echo_n "checking for ioctl_req_t... " >&6; }
26495 if ${ba_cv_header_ioctl_req_t+:} false; then :
26496 $as_echo_n "(cached) " >&6
26499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26500 /* end confdefs.h. */
26502 #include <unistd.h>
26503 #include <sys/types.h>
26504 #include <sys/ioctl.h>
26510 int (*d_ioctl)(int fd, unsigned long int request, ...);
26517 if ac_fn_cxx_try_compile "$LINENO"; then :
26519 ba_cv_header_ioctl_req_t=yes
26523 ba_cv_header_ioctl_req_t=no
26527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26532 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26533 test $ba_cv_header_ioctl_req_t = yes &&
26534 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26538 ac_cpp='$CPP $CPPFLAGS'
26539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26545 ac_cpp='$CXXCPP $CPPFLAGS'
26546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26551 $as_echo_n "checking for typeof... " >&6; }
26552 if ${ba_cv_have_typeof+:} false; then :
26553 $as_echo_n "(cached) " >&6
26556 if test "$cross_compiling" = yes; then :
26558 ba_cv_have_typeof=no
26562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26563 /* end confdefs.h. */
26565 main(){char *a = 0; a = (typeof a)a;}
26568 if ac_fn_cxx_try_run "$LINENO"; then :
26570 ba_cv_have_typeof=yes
26574 ba_cv_have_typeof=no
26577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26578 conftest.$ac_objext conftest.beam conftest.$ac_ext
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26585 $as_echo "$ba_cv_have_typeof" >&6; }
26586 test $ba_cv_have_typeof = yes &&
26587 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26590 ac_cpp='$CPP $CPPFLAGS'
26591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26597 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26598 if ${ac_cv_c_const+:} false; then :
26599 $as_echo_n "(cached) " >&6
26601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26602 /* end confdefs.h. */
26608 #ifndef __cplusplus
26609 /* Ultrix mips cc rejects this sort of thing. */
26610 typedef int charset[2];
26611 const charset cs = { 0, 0 };
26612 /* SunOS 4.1.1 cc rejects this. */
26613 char const *const *pcpcc;
26615 /* NEC SVR4.0.2 mips cc rejects this. */
26616 struct point {int x, y;};
26617 static struct point const zero = {0,0};
26618 /* AIX XL C 1.02.0.0 rejects this.
26619 It does not let you subtract one const X* pointer from another in
26620 an arm of an if-expression whose if-part is not a constant
26622 const char *g = "string";
26623 pcpcc = &g + (g ? g-g : 0);
26624 /* HPUX 7.0 cc rejects these. */
26626 ppc = (char**) pcpcc;
26627 pcpcc = (char const *const *) ppc;
26628 { /* SCO 3.2v4 cc rejects this sort of thing. */
26631 char const *s = 0 ? (char *) 0 : (char const *) 0;
26636 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26637 int x[] = {25, 17};
26638 const int *foo = &x[0];
26641 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26642 typedef const int *iptr;
26646 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26647 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26648 struct s { int j; const int *ap[3]; } bx;
26649 struct s *b = &bx; b->j = 5;
26651 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26652 const int foo = 10;
26653 if (!foo) return 0;
26655 return !cs[0] && !zero.x;
26662 if ac_fn_c_try_compile "$LINENO"; then :
26667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26670 $as_echo "$ac_cv_c_const" >&6; }
26671 if test $ac_cv_c_const = no; then
26673 $as_echo "#define const /**/" >>confdefs.h
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26679 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26680 if ${ac_cv_c_bigendian+:} false; then :
26681 $as_echo_n "(cached) " >&6
26683 ac_cv_c_bigendian=unknown
26684 # See if we're dealing with a universal compiler.
26685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26686 /* end confdefs.h. */
26687 #ifndef __APPLE_CC__
26688 not a universal capable compiler
26693 if ac_fn_c_try_compile "$LINENO"; then :
26695 # Check for potential -arch flags. It is not universal unless
26696 # there are at least two -arch flags with different values.
26699 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26700 if test -n "$ac_prev"; then
26702 i?86 | x86_64 | ppc | ppc64)
26703 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26706 ac_cv_c_bigendian=universal
26712 elif test "x$ac_word" = "x-arch"; then
26717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26718 if test $ac_cv_c_bigendian = unknown; then
26719 # See if sys/param.h defines the BYTE_ORDER macro.
26720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26721 /* end confdefs.h. */
26722 #include <sys/types.h>
26723 #include <sys/param.h>
26728 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26729 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26731 bogus endian macros
26738 if ac_fn_c_try_compile "$LINENO"; then :
26739 # It does; now see whether it defined to BIG_ENDIAN or not.
26740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26741 /* end confdefs.h. */
26742 #include <sys/types.h>
26743 #include <sys/param.h>
26748 #if BYTE_ORDER != BIG_ENDIAN
26756 if ac_fn_c_try_compile "$LINENO"; then :
26757 ac_cv_c_bigendian=yes
26759 ac_cv_c_bigendian=no
26761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26765 if test $ac_cv_c_bigendian = unknown; then
26766 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26768 /* end confdefs.h. */
26769 #include <limits.h>
26774 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26775 bogus endian macros
26782 if ac_fn_c_try_compile "$LINENO"; then :
26783 # It does; now see whether it defined to _BIG_ENDIAN or not.
26784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26785 /* end confdefs.h. */
26786 #include <limits.h>
26791 #ifndef _BIG_ENDIAN
26799 if ac_fn_c_try_compile "$LINENO"; then :
26800 ac_cv_c_bigendian=yes
26802 ac_cv_c_bigendian=no
26804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26808 if test $ac_cv_c_bigendian = unknown; then
26809 # Compile a test program.
26810 if test "$cross_compiling" = yes; then :
26811 # Try to guess by grepping values from an object file.
26812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26813 /* end confdefs.h. */
26814 short int ascii_mm[] =
26815 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26816 short int ascii_ii[] =
26817 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26818 int use_ascii (int i) {
26819 return ascii_mm[i] + ascii_ii[i];
26821 short int ebcdic_ii[] =
26822 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26823 short int ebcdic_mm[] =
26824 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26825 int use_ebcdic (int i) {
26826 return ebcdic_mm[i] + ebcdic_ii[i];
26833 return use_ascii (foo) == use_ebcdic (foo);
26838 if ac_fn_c_try_compile "$LINENO"; then :
26839 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26840 ac_cv_c_bigendian=yes
26842 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26843 if test "$ac_cv_c_bigendian" = unknown; then
26844 ac_cv_c_bigendian=no
26846 # finding both strings is unlikely to happen, but who knows?
26847 ac_cv_c_bigendian=unknown
26851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26854 /* end confdefs.h. */
26855 $ac_includes_default
26860 /* Are we little or big endian? From Harbison&Steele. */
26864 char c[sizeof (long int)];
26867 return u.c[sizeof (long int) - 1] == 1;
26873 if ac_fn_c_try_run "$LINENO"; then :
26874 ac_cv_c_bigendian=no
26876 ac_cv_c_bigendian=yes
26878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26879 conftest.$ac_objext conftest.beam conftest.$ac_ext
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26885 $as_echo "$ac_cv_c_bigendian" >&6; }
26886 case $ac_cv_c_bigendian in #(
26889 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26893 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26897 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26901 as_fn_error $? "unknown endianness
26902 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26907 $as_echo_n "checking how to get filesystem type... " >&6; }
26909 # The order of these tests is important.
26910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26911 /* end confdefs.h. */
26913 #include <sys/statvfs.h>
26914 #include <sys/fstyp.h>
26917 if ac_fn_c_try_cpp "$LINENO"; then :
26918 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26922 rm -f conftest.err conftest.i conftest.$ac_ext
26923 if test $fstype = no; then
26924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26925 /* end confdefs.h. */
26927 #include <sys/statfs.h>
26928 #include <sys/fstyp.h>
26931 if ac_fn_c_try_cpp "$LINENO"; then :
26932 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26936 rm -f conftest.err conftest.i conftest.$ac_ext
26938 if test $fstype = no; then
26939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26940 /* end confdefs.h. */
26942 #include <sys/statfs.h>
26943 #include <sys/vmount.h>
26946 if ac_fn_c_try_cpp "$LINENO"; then :
26947 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26951 rm -f conftest.err conftest.i conftest.$ac_ext
26953 if test $fstype = no; then
26954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26955 /* end confdefs.h. */
26957 #include <mntent.h>
26960 if ac_fn_c_try_cpp "$LINENO"; then :
26961 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26965 rm -f conftest.err conftest.i conftest.$ac_ext
26967 if test $fstype = no; then
26968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26969 /* end confdefs.h. */
26970 #include <sys/mount.h>
26973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26974 $EGREP "f_type;" >/dev/null 2>&1; then :
26975 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26981 if test $fstype = no; then
26982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26983 /* end confdefs.h. */
26985 #include <sys/mount.h>
26986 #include <sys/fs_types.h>
26989 if ac_fn_c_try_cpp "$LINENO"; then :
26990 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26994 rm -f conftest.err conftest.i conftest.$ac_ext
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26997 $as_echo "$fstype" >&6; }
26999 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
27000 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
27002 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
27008 ac_fn_c_check_decl "$LINENO" "O_CLOEXEC" "ac_cv_have_decl_O_CLOEXEC" "
27009 #ifdef HAVE_FCNTL_H
27010 # include <fcntl.h>
27014 if test "x$ac_cv_have_decl_O_CLOEXEC" = xyes; then :
27020 cat >>confdefs.h <<_ACEOF
27021 #define HAVE_DECL_O_CLOEXEC $ac_have_decl
27023 if test $ac_have_decl = 1; then :
27027 $as_echo "#define O_CLOEXEC 0" >>confdefs.h
27032 ac_fn_c_check_decl "$LINENO" "FD_CLOEXEC" "ac_cv_have_decl_FD_CLOEXEC" "
27033 #ifdef HAVE_FCNTL_H
27034 # include <fcntl.h>
27038 if test "x$ac_cv_have_decl_FD_CLOEXEC" = xyes; then :
27044 cat >>confdefs.h <<_ACEOF
27045 #define HAVE_DECL_FD_CLOEXEC $ac_have_decl
27047 if test $ac_have_decl = 1; then :
27051 $as_echo "#define FD_CLOEXEC 0" >>confdefs.h
27056 ac_fn_c_check_decl "$LINENO" "SOCK_CLOEXEC" "ac_cv_have_decl_SOCK_CLOEXEC" "
27057 #ifdef HAVE_SYS_SOCKET_H
27058 # include <sys/socket.h>
27062 if test "x$ac_cv_have_decl_SOCK_CLOEXEC" = xyes; then :
27068 cat >>confdefs.h <<_ACEOF
27069 #define HAVE_DECL_SOCK_CLOEXEC $ac_have_decl
27071 if test $ac_have_decl = 1; then :
27075 $as_echo "#define SOCK_CLOEXEC 0" >>confdefs.h
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close on exec modifier for fopen()" >&5
27081 $as_echo_n "checking for close on exec modifier for fopen()... " >&6; }
27082 if ${ac_cv_feature_stream_cloexec_flag+:} false; then :
27083 $as_echo_n "(cached) " >&6
27085 if test $ac_cv_have_decl_O_CLOEXEC = yes ; then
27086 if test $ac_cv_have_decl_SOCK_CLOEXEC = yes ; then
27087 ac_cv_feature_stream_cloexec_flag="e"
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_feature_stream_cloexec_flag" >&5
27092 $as_echo "$ac_cv_feature_stream_cloexec_flag" >&6; }
27094 if test "x$ac_cv_feature_stream_cloexec_flag" = "xe" ; then
27096 $as_echo "#define HAVE_STREAM_CLOEXEC 0" >>confdefs.h
27101 cat >>confdefs.h <<_ACEOF
27102 #define STREAM_CLOEXEC "$ac_cv_feature_stream_cloexec_flag"
27106 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
27107 if test "x$ac_cv_func_accept4" = xyes; then :
27109 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
27119 if test x$support_s3 = xyes; then
27121 # Check whether --with-s3 was given.
27122 if test "${with_s3+set}" = set; then :
27129 if test -f ${with_s3}/include/libs3.h; then
27130 S3_INC="-I${with_s3}/include"
27131 S3_LDFLAGS="-L${with_s3}/lib"
27132 with_s3="${with_s3}/include"
27134 with_s3="/usr/include"
27137 as_ac_Header=`$as_echo "ac_cv_header_${with_s3}/libs3.h" | $as_tr_sh`
27138 ac_fn_c_check_header_mongrel "$LINENO" "${with_s3}/libs3.h" "$as_ac_Header" "$ac_includes_default"
27139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27142 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27144 S3_LIBS="${S3_LDFLAGS} -ls3"
27150 echo "libs3.h not found. s3 turned off ..."
27162 ac_fn_c_check_header_mongrel "$LINENO" "libs3.h" "ac_cv_header_libs3_h" "$ac_includes_default"
27163 if test "x$ac_cv_header_libs3_h" = xyes; then :
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S3_initialize in -ls3" >&5
27166 $as_echo_n "checking for S3_initialize in -ls3... " >&6; }
27167 if ${ac_cv_lib_s3_S3_initialize+:} false; then :
27168 $as_echo_n "(cached) " >&6
27170 ac_check_lib_save_LIBS=$LIBS
27172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27173 /* end confdefs.h. */
27175 /* Override any GCC internal prototype to avoid an error.
27176 Use char because int might match the return type of a GCC
27177 builtin and then its argument prototype would still apply. */
27181 char S3_initialize ();
27185 return S3_initialize ();
27190 if ac_fn_c_try_link "$LINENO"; then :
27191 ac_cv_lib_s3_S3_initialize=yes
27193 ac_cv_lib_s3_S3_initialize=no
27195 rm -f core conftest.err conftest.$ac_objext \
27196 conftest$ac_exeext conftest.$ac_ext
27197 LIBS=$ac_check_lib_save_LIBS
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s3_S3_initialize" >&5
27200 $as_echo "$ac_cv_lib_s3_S3_initialize" >&6; }
27201 if test "x$ac_cv_lib_s3_S3_initialize" = xyes; then :
27205 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27224 ac_cpp='$CXXCPP $CPPFLAGS'
27225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27229 for ac_func in backtrace
27231 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27232 if test "x$ac_cv_func_backtrace" = xyes; then :
27233 cat >>confdefs.h <<_ACEOF
27234 #define HAVE_BACKTRACE 1
27241 ac_cpp='$CPP $CPPFLAGS'
27242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27248 $as_echo_n "checking return type of signal handlers... " >&6; }
27249 if ${ac_cv_type_signal+:} false; then :
27250 $as_echo_n "(cached) " >&6
27252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27253 /* end confdefs.h. */
27254 #include <sys/types.h>
27255 #include <signal.h>
27260 return *(signal (0, 0)) (0) == 1;
27265 if ac_fn_c_try_compile "$LINENO"; then :
27266 ac_cv_type_signal=int
27268 ac_cv_type_signal=void
27270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27273 $as_echo "$ac_cv_type_signal" >&6; }
27275 cat >>confdefs.h <<_ACEOF
27276 #define RETSIGTYPE $ac_cv_type_signal
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27282 $as_echo_n "checking for type of signal functions... " >&6; }
27283 if ${bash_cv_signal_vintage+:} false; then :
27284 $as_echo_n "(cached) " >&6
27287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27288 /* end confdefs.h. */
27289 #include <signal.h>
27295 struct sigaction sa;
27296 sigemptyset(&ss); sigsuspend(&ss);
27297 sigaction(SIGINT, &sa, (struct sigaction *) 0);
27298 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27304 if ac_fn_c_try_link "$LINENO"; then :
27305 bash_cv_signal_vintage="posix"
27308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27309 /* end confdefs.h. */
27310 #include <signal.h>
27315 int mask = sigmask(SIGINT);
27316 sigsetmask(mask); sigblock(mask); sigpause(mask);
27322 if ac_fn_c_try_link "$LINENO"; then :
27323 bash_cv_signal_vintage="4.2bsd"
27326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27327 /* end confdefs.h. */
27329 #include <signal.h>
27330 RETSIGTYPE foo() { }
27335 int mask = sigmask(SIGINT);
27336 sigset(SIGINT, foo); sigrelse(SIGINT);
27337 sighold(SIGINT); sigpause(SIGINT);
27343 if ac_fn_c_try_link "$LINENO"; then :
27344 bash_cv_signal_vintage="svr3"
27346 bash_cv_signal_vintage="v7"
27349 rm -f core conftest.err conftest.$ac_objext \
27350 conftest$ac_exeext conftest.$ac_ext
27353 rm -f core conftest.err conftest.$ac_objext \
27354 conftest$ac_exeext conftest.$ac_ext
27357 rm -f core conftest.err conftest.$ac_objext \
27358 conftest$ac_exeext conftest.$ac_ext
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27363 $as_echo "$bash_cv_signal_vintage" >&6; }
27364 if test "$bash_cv_signal_vintage" = "posix"; then
27365 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27367 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27368 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27370 elif test "$bash_cv_signal_vintage" = "svr3"; then
27371 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27375 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27376 if test "x$ac_cv_type_mode_t" = xyes; then :
27380 cat >>confdefs.h <<_ACEOF
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27387 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27388 if ${ac_cv_type_uid_t+:} false; then :
27389 $as_echo_n "(cached) " >&6
27391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27392 /* end confdefs.h. */
27393 #include <sys/types.h>
27396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27397 $EGREP "uid_t" >/dev/null 2>&1; then :
27398 ac_cv_type_uid_t=yes
27400 ac_cv_type_uid_t=no
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27406 $as_echo "$ac_cv_type_uid_t" >&6; }
27407 if test $ac_cv_type_uid_t = no; then
27409 $as_echo "#define uid_t int" >>confdefs.h
27412 $as_echo "#define gid_t int" >>confdefs.h
27416 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27417 if test "x$ac_cv_type_size_t" = xyes; then :
27421 cat >>confdefs.h <<_ACEOF
27422 #define size_t unsigned int
27427 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27428 if test "x$ac_cv_type_pid_t" = xyes; then :
27432 cat >>confdefs.h <<_ACEOF
27438 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27439 if test "x$ac_cv_type_off_t" = xyes; then :
27443 cat >>confdefs.h <<_ACEOF
27444 #define off_t long int
27450 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27451 if test "x$ac_cv_type_intptr_t" = xyes; then :
27453 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27456 for ac_type in 'int' 'long int' 'long long int'; do
27457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27458 /* end confdefs.h. */
27459 $ac_includes_default
27463 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27464 test_array [0] = 0;
27465 return test_array [0];
27471 if ac_fn_c_try_compile "$LINENO"; then :
27473 cat >>confdefs.h <<_ACEOF
27474 #define intptr_t $ac_type
27479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27480 test -z "$ac_type" && break
27486 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27487 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27489 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27492 for ac_type in 'unsigned int' 'unsigned long int' \
27493 'unsigned long long int'; do
27494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27495 /* end confdefs.h. */
27496 $ac_includes_default
27500 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27501 test_array [0] = 0;
27502 return test_array [0];
27508 if ac_fn_c_try_compile "$LINENO"; then :
27510 cat >>confdefs.h <<_ACEOF
27511 #define uintptr_t $ac_type
27516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27517 test -z "$ac_type" && break
27522 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27523 if test "x$ac_cv_type_ino_t" = xyes; then :
27527 cat >>confdefs.h <<_ACEOF
27528 #define ino_t unsigned long
27533 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27534 if test "x$ac_cv_type_dev_t" = xyes; then :
27538 cat >>confdefs.h <<_ACEOF
27539 #define dev_t unsigned long
27544 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27545 if test "x$ac_cv_type_daddr_t" = xyes; then :
27549 cat >>confdefs.h <<_ACEOF
27550 #define daddr_t long
27555 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27556 if test "x$ac_cv_type_major_t" = xyes; then :
27560 cat >>confdefs.h <<_ACEOF
27561 #define major_t int
27566 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27567 if test "x$ac_cv_type_minor_t" = xyes; then :
27571 cat >>confdefs.h <<_ACEOF
27572 #define minor_t int
27577 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27578 if test "x$ac_cv_type_ssize_t" = xyes; then :
27582 cat >>confdefs.h <<_ACEOF
27583 #define ssize_t int
27588 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27589 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27591 cat >>confdefs.h <<_ACEOF
27592 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27596 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27599 case " $LIBOBJS " in
27600 *" fileblocks.$ac_objext "* ) ;;
27601 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27608 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27609 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27611 cat >>confdefs.h <<_ACEOF
27612 #define HAVE_STRUCT_STAT_ST_RDEV 1
27616 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27622 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27623 if ${ac_cv_struct_tm+:} false; then :
27624 $as_echo_n "(cached) " >&6
27626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27627 /* end confdefs.h. */
27628 #include <sys/types.h>
27635 int *p = &tm.tm_sec;
27641 if ac_fn_c_try_compile "$LINENO"; then :
27642 ac_cv_struct_tm=time.h
27644 ac_cv_struct_tm=sys/time.h
27646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27649 $as_echo "$ac_cv_struct_tm" >&6; }
27650 if test $ac_cv_struct_tm = sys/time.h; then
27652 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27657 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27658 if ${ac_cv_c_const+:} false; then :
27659 $as_echo_n "(cached) " >&6
27661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27662 /* end confdefs.h. */
27668 #ifndef __cplusplus
27669 /* Ultrix mips cc rejects this sort of thing. */
27670 typedef int charset[2];
27671 const charset cs = { 0, 0 };
27672 /* SunOS 4.1.1 cc rejects this. */
27673 char const *const *pcpcc;
27675 /* NEC SVR4.0.2 mips cc rejects this. */
27676 struct point {int x, y;};
27677 static struct point const zero = {0,0};
27678 /* AIX XL C 1.02.0.0 rejects this.
27679 It does not let you subtract one const X* pointer from another in
27680 an arm of an if-expression whose if-part is not a constant
27682 const char *g = "string";
27683 pcpcc = &g + (g ? g-g : 0);
27684 /* HPUX 7.0 cc rejects these. */
27686 ppc = (char**) pcpcc;
27687 pcpcc = (char const *const *) ppc;
27688 { /* SCO 3.2v4 cc rejects this sort of thing. */
27691 char const *s = 0 ? (char *) 0 : (char const *) 0;
27696 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27697 int x[] = {25, 17};
27698 const int *foo = &x[0];
27701 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27702 typedef const int *iptr;
27706 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27707 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27708 struct s { int j; const int *ap[3]; } bx;
27709 struct s *b = &bx; b->j = 5;
27711 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27712 const int foo = 10;
27713 if (!foo) return 0;
27715 return !cs[0] && !zero.x;
27722 if ac_fn_c_try_compile "$LINENO"; then :
27727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27730 $as_echo "$ac_cv_c_const" >&6; }
27731 if test $ac_cv_c_const = no; then
27733 $as_echo "#define const /**/" >>confdefs.h
27737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27738 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27739 if ${ac_cv_c_restrict+:} false; then :
27740 $as_echo_n "(cached) " >&6
27742 ac_cv_c_restrict=no
27743 # The order here caters to the fact that C++ does not require restrict.
27744 for ac_kw in __restrict __restrict__ _Restrict restrict; do
27745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27746 /* end confdefs.h. */
27747 typedef int * int_ptr;
27748 int foo (int_ptr $ac_kw ip) {
27755 int * $ac_kw t = s;
27762 if ac_fn_c_try_compile "$LINENO"; then :
27763 ac_cv_c_restrict=$ac_kw
27765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27766 test "$ac_cv_c_restrict" != no && break
27770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27771 $as_echo "$ac_cv_c_restrict" >&6; }
27773 case $ac_cv_c_restrict in
27775 no) $as_echo "#define restrict /**/" >>confdefs.h
27777 *) cat >>confdefs.h <<_ACEOF
27778 #define restrict $ac_cv_c_restrict
27784 # The cast to long int works around a bug in the HP C Compiler
27785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27787 # This bug is HP SR number 8606223364.
27788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27789 $as_echo_n "checking size of char... " >&6; }
27790 if ${ac_cv_sizeof_char+:} false; then :
27791 $as_echo_n "(cached) " >&6
27793 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27796 if test "$ac_cv_type_char" = yes; then
27797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27799 as_fn_error 77 "cannot compute sizeof (char)
27800 See \`config.log' for more details" "$LINENO" 5; }
27802 ac_cv_sizeof_char=0
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27808 $as_echo "$ac_cv_sizeof_char" >&6; }
27812 cat >>confdefs.h <<_ACEOF
27813 #define SIZEOF_CHAR $ac_cv_sizeof_char
27817 # The cast to long int works around a bug in the HP C Compiler
27818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27820 # This bug is HP SR number 8606223364.
27821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27822 $as_echo_n "checking size of short int... " >&6; }
27823 if ${ac_cv_sizeof_short_int+:} false; then :
27824 $as_echo_n "(cached) " >&6
27826 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27829 if test "$ac_cv_type_short_int" = yes; then
27830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27832 as_fn_error 77 "cannot compute sizeof (short int)
27833 See \`config.log' for more details" "$LINENO" 5; }
27835 ac_cv_sizeof_short_int=0
27840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27841 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27845 cat >>confdefs.h <<_ACEOF
27846 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27850 # The cast to long int works around a bug in the HP C Compiler
27851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27853 # This bug is HP SR number 8606223364.
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27855 $as_echo_n "checking size of int... " >&6; }
27856 if ${ac_cv_sizeof_int+:} false; then :
27857 $as_echo_n "(cached) " >&6
27859 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27862 if test "$ac_cv_type_int" = yes; then
27863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27865 as_fn_error 77 "cannot compute sizeof (int)
27866 See \`config.log' for more details" "$LINENO" 5; }
27873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27874 $as_echo "$ac_cv_sizeof_int" >&6; }
27878 cat >>confdefs.h <<_ACEOF
27879 #define SIZEOF_INT $ac_cv_sizeof_int
27883 # The cast to long int works around a bug in the HP C Compiler
27884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27886 # This bug is HP SR number 8606223364.
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27888 $as_echo_n "checking size of long int... " >&6; }
27889 if ${ac_cv_sizeof_long_int+:} false; then :
27890 $as_echo_n "(cached) " >&6
27892 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27895 if test "$ac_cv_type_long_int" = yes; then
27896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27898 as_fn_error 77 "cannot compute sizeof (long int)
27899 See \`config.log' for more details" "$LINENO" 5; }
27901 ac_cv_sizeof_long_int=0
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27907 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27911 cat >>confdefs.h <<_ACEOF
27912 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27916 # The cast to long int works around a bug in the HP C Compiler
27917 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27918 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27919 # This bug is HP SR number 8606223364.
27920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27921 $as_echo_n "checking size of long long int... " >&6; }
27922 if ${ac_cv_sizeof_long_long_int+:} false; then :
27923 $as_echo_n "(cached) " >&6
27925 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27928 if test "$ac_cv_type_long_long_int" = yes; then
27929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27931 as_fn_error 77 "cannot compute sizeof (long long int)
27932 See \`config.log' for more details" "$LINENO" 5; }
27934 ac_cv_sizeof_long_long_int=0
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27940 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27944 cat >>confdefs.h <<_ACEOF
27945 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27949 # The cast to long int works around a bug in the HP C Compiler
27950 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27951 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27952 # This bug is HP SR number 8606223364.
27953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27954 $as_echo_n "checking size of int *... " >&6; }
27955 if ${ac_cv_sizeof_int_p+:} false; then :
27956 $as_echo_n "(cached) " >&6
27958 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27961 if test "$ac_cv_type_int_p" = yes; then
27962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27964 as_fn_error 77 "cannot compute sizeof (int *)
27965 See \`config.log' for more details" "$LINENO" 5; }
27967 ac_cv_sizeof_int_p=0
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27973 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27977 cat >>confdefs.h <<_ACEOF
27978 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27984 $as_echo_n "checking for u_int type... " >&6; }
27985 if ${ac_cv_have_u_int+:} false; then :
27986 $as_echo_n "(cached) " >&6
27989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27990 /* end confdefs.h. */
27992 #include <sys/types.h>
28004 if ac_fn_c_try_compile "$LINENO"; then :
28006 ac_cv_have_u_int="yes"
28010 ac_cv_have_u_int="no"
28014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
28019 $as_echo "$ac_cv_have_u_int" >&6; }
28020 if test "x$ac_cv_have_u_int" = "xyes" ; then
28021 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
28027 $as_echo_n "checking for intmax_t type... " >&6; }
28028 if ${ac_cv_have_intmax_t+:} false; then :
28029 $as_echo_n "(cached) " >&6
28032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28033 /* end confdefs.h. */
28035 #include <sys/types.h>
28047 if ac_fn_c_try_compile "$LINENO"; then :
28049 ac_cv_have_intmax_t="yes"
28053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28054 /* end confdefs.h. */
28056 #include <stdint.h>
28068 if ac_fn_c_try_compile "$LINENO"; then :
28070 ac_cv_have_intmax_t="yes"
28074 ac_cv_have_intmax_t="no"
28078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
28087 $as_echo "$ac_cv_have_intmax_t" >&6; }
28088 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
28089 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
28094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
28095 $as_echo_n "checking for u_intmax_t type... " >&6; }
28096 if ${ac_cv_have_u_intmax_t+:} false; then :
28097 $as_echo_n "(cached) " >&6
28100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28101 /* end confdefs.h. */
28103 #include <sys/types.h>
28109 u_intmax_t a; a = 1;
28115 if ac_fn_c_try_compile "$LINENO"; then :
28117 ac_cv_have_u_intmax_t="yes"
28121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28122 /* end confdefs.h. */
28124 #include <stdint.h>
28130 u_intmax_t a; a = 1;
28136 if ac_fn_c_try_compile "$LINENO"; then :
28138 ac_cv_have_u_intmax_t="yes"
28142 ac_cv_have_u_intmax_t="no"
28146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
28155 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
28156 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
28157 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
28163 $as_echo_n "checking for intXX_t types... " >&6; }
28164 if ${ac_cv_have_intxx_t+:} false; then :
28165 $as_echo_n "(cached) " >&6
28168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28169 /* end confdefs.h. */
28171 #include <sys/types.h>
28177 int8_t a; int16_t b; int32_t c; a = b = c = 1;
28183 if ac_fn_c_try_compile "$LINENO"; then :
28185 ac_cv_have_intxx_t="yes"
28189 ac_cv_have_intxx_t="no"
28193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
28198 $as_echo "$ac_cv_have_intxx_t" >&6; }
28199 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
28200 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
28206 $as_echo_n "checking for int64_t type... " >&6; }
28207 if ${ac_cv_have_int64_t+:} false; then :
28208 $as_echo_n "(cached) " >&6
28211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28212 /* end confdefs.h. */
28214 #include <sys/types.h>
28226 if ac_fn_c_try_compile "$LINENO"; then :
28228 ac_cv_have_int64_t="yes"
28232 ac_cv_have_int64_t="no"
28236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
28241 $as_echo "$ac_cv_have_int64_t" >&6; }
28242 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28243 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28249 $as_echo_n "checking for u_intXX_t types... " >&6; }
28250 if ${ac_cv_have_u_intxx_t+:} false; then :
28251 $as_echo_n "(cached) " >&6
28254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28255 /* end confdefs.h. */
28257 #include <sys/types.h>
28263 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28269 if ac_fn_c_try_compile "$LINENO"; then :
28271 ac_cv_have_u_intxx_t="yes"
28275 ac_cv_have_u_intxx_t="no"
28279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28284 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28285 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28286 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28292 $as_echo_n "checking for u_int64_t types... " >&6; }
28293 if ${ac_cv_have_u_int64_t+:} false; then :
28294 $as_echo_n "(cached) " >&6
28297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28298 /* end confdefs.h. */
28300 #include <sys/types.h>
28306 u_int64_t a; a = 1;
28312 if ac_fn_c_try_compile "$LINENO"; then :
28314 ac_cv_have_u_int64_t="yes"
28318 ac_cv_have_u_int64_t="no"
28322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28327 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28328 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28329 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28334 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28335 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28338 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28340 /* end confdefs.h. */
28342 #include <sys/bitypes.h>
28348 int8_t a; int16_t b; int32_t c;
28349 u_int8_t e; u_int16_t f; u_int32_t g;
28350 a = b = c = e = f = g = 1;
28356 if ac_fn_c_try_compile "$LINENO"; then :
28358 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28360 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28362 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28365 $as_echo "yes" >&6; }
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28370 $as_echo "no" >&6; }
28374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28377 if test -z "$have_u_intxx_t" ; then
28378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28379 $as_echo_n "checking for uintXX_t types... " >&6; }
28380 if ${ac_cv_have_uintxx_t+:} false; then :
28381 $as_echo_n "(cached) " >&6
28384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28385 /* end confdefs.h. */
28387 #include <sys/types.h>
28393 uint8_t a; uint16_t b;
28394 uint32_t c; a = b = c = 1;
28400 if ac_fn_c_try_compile "$LINENO"; then :
28402 ac_cv_have_uintxx_t="yes"
28406 ac_cv_have_uintxx_t="no"
28410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28415 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28416 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28417 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28422 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28423 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28426 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28428 /* end confdefs.h. */
28430 #include <sys/bitypes.h>
28436 int64_t a; u_int64_t b;
28443 if ac_fn_c_try_compile "$LINENO"; then :
28445 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28447 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28450 $as_echo "yes" >&6; }
28454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28455 $as_echo "no" >&6; }
28459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28462 if (test -z "$have_uintxx_t" && \
28463 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28466 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28468 /* end confdefs.h. */
28470 #include <sys/bitypes.h>
28476 uint8_t a; uint16_t b;
28477 uint32_t c; a = b = c = 1;
28483 if ac_fn_c_try_compile "$LINENO"; then :
28485 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28488 $as_echo "yes" >&6; }
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28493 $as_echo "no" >&6; }
28497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28517 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28518 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28519 cat >>confdefs.h <<_ACEOF
28520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28524 echo 'configure: cannot find needed function.'; exit 1
28530 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28533 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28535 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28540 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28543 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28545 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28550 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28551 if test "x$ac_cv_func_closefrom" = xyes; then :
28553 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28557 for ac_func in getpagesize
28559 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28560 if test "x$ac_cv_func_getpagesize" = xyes; then :
28561 cat >>confdefs.h <<_ACEOF
28562 #define HAVE_GETPAGESIZE 1
28565 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28570 for ac_func in malloc_trim
28572 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28573 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28574 cat >>confdefs.h <<_ACEOF
28575 #define HAVE_MALLOC_TRIM 1
28578 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28584 for ac_func in fchdir
28586 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28587 if test "x$ac_cv_func_fchdir" = xyes; then :
28588 cat >>confdefs.h <<_ACEOF
28589 #define HAVE_FCHDIR 1
28591 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28596 for ac_func in strtoll
28598 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28599 if test "x$ac_cv_func_strtoll" = xyes; then :
28600 cat >>confdefs.h <<_ACEOF
28601 #define HAVE_STRTOLL 1
28603 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28608 for ac_func in posix_fadvise
28610 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28611 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28612 cat >>confdefs.h <<_ACEOF
28613 #define HAVE_POSIX_FADVISE 1
28619 for ac_func in posix_fallocate
28621 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28622 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28623 cat >>confdefs.h <<_ACEOF
28624 #define HAVE_POSIX_FALLOCATE 1
28630 for ac_func in fdatasync
28632 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28633 if test "x$ac_cv_func_fdatasync" = xyes; then :
28634 cat >>confdefs.h <<_ACEOF
28635 #define HAVE_FDATASYNC 1
28642 for ac_func in chflags
28644 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28645 if test "x$ac_cv_func_chflags" = xyes; then :
28646 cat >>confdefs.h <<_ACEOF
28647 #define HAVE_CHFLAGS 1
28654 for ac_func in snprintf vsnprintf gethostid fseeko
28656 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28657 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28658 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28659 cat >>confdefs.h <<_ACEOF
28660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28668 $as_echo_n "checking for va_copy... " >&6; }
28669 if ${ba_cv_va_copy+:} false; then :
28670 $as_echo_n "(cached) " >&6
28673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28674 /* end confdefs.h. */
28676 #include <stdarg.h>
28677 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28678 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28684 call_use_va_copy(1,2,3)
28690 if ac_fn_c_try_link "$LINENO"; then :
28700 rm -f core conftest.err conftest.$ac_objext \
28701 conftest$ac_exeext conftest.$ac_ext
28705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28706 $as_echo "$ba_cv_va_copy" >&6; }
28707 test $ba_cv_va_copy = yes &&
28708 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28711 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28713 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28714 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28715 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28716 cat >>confdefs.h <<_ACEOF
28717 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28724 # If resolver functions are not in libc check for -lnsl or -lresolv.
28725 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28726 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28728 $as_echo "using libc's resolver" >&6; }
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28731 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28732 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28733 $as_echo_n "(cached) " >&6
28735 ac_check_lib_save_LIBS=$LIBS
28737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28738 /* end confdefs.h. */
28740 /* Override any GCC internal prototype to avoid an error.
28741 Use char because int might match the return type of a GCC
28742 builtin and then its argument prototype would still apply. */
28746 char gethostbyname_r ();
28750 return gethostbyname_r ();
28755 if ac_fn_c_try_link "$LINENO"; then :
28756 ac_cv_lib_nsl_gethostbyname_r=yes
28758 ac_cv_lib_nsl_gethostbyname_r=no
28760 rm -f core conftest.err conftest.$ac_objext \
28761 conftest$ac_exeext conftest.$ac_ext
28762 LIBS=$ac_check_lib_save_LIBS
28764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28765 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28766 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28767 cat >>confdefs.h <<_ACEOF
28768 #define HAVE_LIBNSL 1
28775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28776 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28777 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28778 $as_echo_n "(cached) " >&6
28780 ac_check_lib_save_LIBS=$LIBS
28781 LIBS="-lresolv $LIBS"
28782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28783 /* end confdefs.h. */
28785 /* Override any GCC internal prototype to avoid an error.
28786 Use char because int might match the return type of a GCC
28787 builtin and then its argument prototype would still apply. */
28791 char gethostbyname_r ();
28795 return gethostbyname_r ();
28800 if ac_fn_c_try_link "$LINENO"; then :
28801 ac_cv_lib_resolv_gethostbyname_r=yes
28803 ac_cv_lib_resolv_gethostbyname_r=no
28805 rm -f core conftest.err conftest.$ac_objext \
28806 conftest$ac_exeext conftest.$ac_ext
28807 LIBS=$ac_check_lib_save_LIBS
28809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28810 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28811 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28812 cat >>confdefs.h <<_ACEOF
28813 #define HAVE_LIBRESOLV 1
28816 LIBS="-lresolv $LIBS"
28823 for ac_func in inet_pton
28825 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28826 if test "x$ac_cv_func_inet_pton" = xyes; then :
28827 cat >>confdefs.h <<_ACEOF
28828 #define HAVE_INET_PTON 1
28830 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28835 for ac_func in inet_ntop
28837 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28838 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28839 cat >>confdefs.h <<_ACEOF
28840 #define HAVE_INET_NTOP 1
28842 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28847 for ac_func in gethostbyname2
28849 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28850 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28851 cat >>confdefs.h <<_ACEOF
28852 #define HAVE_GETHOSTBYNAME2 1
28854 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28859 for ac_func in getnameinfo
28861 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28862 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28863 cat >>confdefs.h <<_ACEOF
28864 #define HAVE_GETNAMEINFO 1
28866 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28874 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28875 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28876 $as_echo_n "(cached) " >&6
28879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28880 /* end confdefs.h. */
28882 #include <sys/socket.h>
28888 struct sockaddr s; s.sa_len;
28894 if ac_fn_c_try_compile "$LINENO"; then :
28896 ac_cv_struct_sockaddr_sa_len=yes
28899 ac_cv_struct_sockaddr_sa_len=no
28903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28908 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28910 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28912 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28917 $as_echo_n "checking for working getaddrinfo... " >&6; }
28918 if ${ac_cv_working_getaddrinfo+:} false; then :
28919 $as_echo_n "(cached) " >&6
28922 if test "$cross_compiling" = yes; then :
28924 ac_cv_working_getaddrinfo="yes"
28928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28929 /* end confdefs.h. */
28932 #include <string.h>
28933 #include <sys/types.h>
28934 #include <sys/socket.h>
28937 struct addrinfo hints, *ai;
28940 memset(&hints, 0, sizeof(hints));
28941 hints.ai_family = AF_UNSPEC;
28942 hints.ai_socktype = SOCK_STREAM;
28943 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28947 if (ai->ai_addr->sa_family != AF_INET) {
28954 if ac_fn_c_try_run "$LINENO"; then :
28956 ac_cv_working_getaddrinfo="yes"
28960 ac_cv_working_getaddrinfo="no"
28963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28964 conftest.$ac_objext conftest.beam conftest.$ac_ext
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28971 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28972 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28973 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28975 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28980 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28981 if test "$ac_cv_func_gai_strerror" != "yes"; then
28982 ac_cv_working_getaddrinfo="no"
28985 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28990 for ac_func in strftime
28992 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28993 if test "x$ac_cv_func_strftime" = xyes; then :
28994 cat >>confdefs.h <<_ACEOF
28995 #define HAVE_STRFTIME 1
28999 # strftime is in -lintl on SCO UNIX.
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
29001 $as_echo_n "checking for strftime in -lintl... " >&6; }
29002 if ${ac_cv_lib_intl_strftime+:} false; then :
29003 $as_echo_n "(cached) " >&6
29005 ac_check_lib_save_LIBS=$LIBS
29006 LIBS="-lintl $LIBS"
29007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29008 /* end confdefs.h. */
29010 /* Override any GCC internal prototype to avoid an error.
29011 Use char because int might match the return type of a GCC
29012 builtin and then its argument prototype would still apply. */
29020 return strftime ();
29025 if ac_fn_c_try_link "$LINENO"; then :
29026 ac_cv_lib_intl_strftime=yes
29028 ac_cv_lib_intl_strftime=no
29030 rm -f core conftest.err conftest.$ac_objext \
29031 conftest$ac_exeext conftest.$ac_ext
29032 LIBS=$ac_check_lib_save_LIBS
29034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
29035 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
29036 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
29037 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
29039 LIBS="-lintl $LIBS"
29045 for ac_func in vprintf
29047 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
29048 if test "x$ac_cv_func_vprintf" = xyes; then :
29049 cat >>confdefs.h <<_ACEOF
29050 #define HAVE_VPRINTF 1
29053 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
29054 if test "x$ac_cv_func__doprnt" = xyes; then :
29056 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
29064 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29065 # for constant arguments. Useless!
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
29067 $as_echo_n "checking for working alloca.h... " >&6; }
29068 if ${ac_cv_working_alloca_h+:} false; then :
29069 $as_echo_n "(cached) " >&6
29071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29072 /* end confdefs.h. */
29073 #include <alloca.h>
29077 char *p = (char *) alloca (2 * sizeof (int));
29083 if ac_fn_c_try_link "$LINENO"; then :
29084 ac_cv_working_alloca_h=yes
29086 ac_cv_working_alloca_h=no
29088 rm -f core conftest.err conftest.$ac_objext \
29089 conftest$ac_exeext conftest.$ac_ext
29091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
29092 $as_echo "$ac_cv_working_alloca_h" >&6; }
29093 if test $ac_cv_working_alloca_h = yes; then
29095 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
29100 $as_echo_n "checking for alloca... " >&6; }
29101 if ${ac_cv_func_alloca_works+:} false; then :
29102 $as_echo_n "(cached) " >&6
29104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29105 /* end confdefs.h. */
29107 # define alloca __builtin_alloca
29110 # include <malloc.h>
29111 # define alloca _alloca
29113 # ifdef HAVE_ALLOCA_H
29114 # include <alloca.h>
29119 # ifndef alloca /* predefined by HP cc +Olibcalls */
29120 void *alloca (size_t);
29130 char *p = (char *) alloca (1);
29136 if ac_fn_c_try_link "$LINENO"; then :
29137 ac_cv_func_alloca_works=yes
29139 ac_cv_func_alloca_works=no
29141 rm -f core conftest.err conftest.$ac_objext \
29142 conftest$ac_exeext conftest.$ac_ext
29144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
29145 $as_echo "$ac_cv_func_alloca_works" >&6; }
29147 if test $ac_cv_func_alloca_works = yes; then
29149 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
29152 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29153 # that cause trouble. Some versions do not even contain alloca or
29154 # contain a buggy version. If you still want to use their alloca,
29155 # use ar to extract alloca.o from them instead of compiling alloca.c.
29157 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29159 $as_echo "#define C_ALLOCA 1" >>confdefs.h
29162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
29163 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
29164 if ${ac_cv_os_cray+:} false; then :
29165 $as_echo_n "(cached) " >&6
29167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29168 /* end confdefs.h. */
29169 #if defined CRAY && ! defined CRAY2
29176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29177 $EGREP "webecray" >/dev/null 2>&1; then :
29185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
29186 $as_echo "$ac_cv_os_cray" >&6; }
29187 if test $ac_cv_os_cray = yes; then
29188 for ac_func in _getb67 GETB67 getb67; do
29189 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29190 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29191 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29193 cat >>confdefs.h <<_ACEOF
29194 #define CRAY_STACKSEG_END $ac_func
29203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
29204 $as_echo_n "checking stack direction for C alloca... " >&6; }
29205 if ${ac_cv_c_stack_direction+:} false; then :
29206 $as_echo_n "(cached) " >&6
29208 if test "$cross_compiling" = yes; then :
29209 ac_cv_c_stack_direction=0
29211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29212 /* end confdefs.h. */
29213 $ac_includes_default
29215 find_stack_direction (int *addr, int depth)
29217 int dir, dummy = 0;
29220 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
29221 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
29222 return dir + dummy;
29226 main (int argc, char **argv)
29228 return find_stack_direction (0, argc + !argv + 20) < 0;
29231 if ac_fn_c_try_run "$LINENO"; then :
29232 ac_cv_c_stack_direction=1
29234 ac_cv_c_stack_direction=-1
29236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29237 conftest.$ac_objext conftest.beam conftest.$ac_ext
29241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29242 $as_echo "$ac_cv_c_stack_direction" >&6; }
29243 cat >>confdefs.h <<_ACEOF
29244 #define STACK_DIRECTION $ac_cv_c_stack_direction
29250 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29251 # -lseq on Dynix/PTX, -lgen on Unixware.
29252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29253 $as_echo_n "checking for library containing getmntent... " >&6; }
29254 if ${ac_cv_search_getmntent+:} false; then :
29255 $as_echo_n "(cached) " >&6
29257 ac_func_search_save_LIBS=$LIBS
29258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29259 /* end confdefs.h. */
29261 /* Override any GCC internal prototype to avoid an error.
29262 Use char because int might match the return type of a GCC
29263 builtin and then its argument prototype would still apply. */
29271 return getmntent ();
29276 for ac_lib in '' sun seq gen; do
29277 if test -z "$ac_lib"; then
29278 ac_res="none required"
29281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29283 if ac_fn_c_try_link "$LINENO"; then :
29284 ac_cv_search_getmntent=$ac_res
29286 rm -f core conftest.err conftest.$ac_objext \
29288 if ${ac_cv_search_getmntent+:} false; then :
29292 if ${ac_cv_search_getmntent+:} false; then :
29295 ac_cv_search_getmntent=no
29297 rm conftest.$ac_ext
29298 LIBS=$ac_func_search_save_LIBS
29300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29301 $as_echo "$ac_cv_search_getmntent" >&6; }
29302 ac_res=$ac_cv_search_getmntent
29303 if test "$ac_res" != no; then :
29304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29305 ac_cv_func_getmntent=yes
29307 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29310 ac_cv_func_getmntent=no
29314 for ac_func in getmntinfo
29316 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29317 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29318 cat >>confdefs.h <<_ACEOF
29319 #define HAVE_GETMNTINFO 1
29321 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29327 $as_echo_n "checking whether closedir returns void... " >&6; }
29328 if ${ac_cv_func_closedir_void+:} false; then :
29329 $as_echo_n "(cached) " >&6
29331 if test "$cross_compiling" = yes; then :
29332 ac_cv_func_closedir_void=yes
29334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29335 /* end confdefs.h. */
29336 $ac_includes_default
29337 #include <$ac_header_dirent>
29338 #ifndef __cplusplus
29345 return closedir (opendir (".")) != 0;
29350 if ac_fn_c_try_run "$LINENO"; then :
29351 ac_cv_func_closedir_void=no
29353 ac_cv_func_closedir_void=yes
29355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29356 conftest.$ac_objext conftest.beam conftest.$ac_ext
29360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29361 $as_echo "$ac_cv_func_closedir_void" >&6; }
29362 if test $ac_cv_func_closedir_void = yes; then
29364 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29369 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29370 if ${ac_cv_func_setpgrp_void+:} false; then :
29371 $as_echo_n "(cached) " >&6
29373 if test "$cross_compiling" = yes; then :
29374 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29377 /* end confdefs.h. */
29378 $ac_includes_default
29382 /* If this system has a BSD-style setpgrp which takes arguments,
29383 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29384 exit successfully. */
29385 return setpgrp (1,1) != -1;
29390 if ac_fn_c_try_run "$LINENO"; then :
29391 ac_cv_func_setpgrp_void=no
29393 ac_cv_func_setpgrp_void=yes
29395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29396 conftest.$ac_objext conftest.beam conftest.$ac_ext
29400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29401 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29402 if test $ac_cv_func_setpgrp_void = yes; then
29404 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29407 # AC_FUNC_FNMATCH dnl use local version
29409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29410 $as_echo_n "checking for gettext in -lintl... " >&6; }
29411 if ${ac_cv_lib_intl_gettext+:} false; then :
29412 $as_echo_n "(cached) " >&6
29414 ac_check_lib_save_LIBS=$LIBS
29415 LIBS="-lintl $LIBS"
29416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29417 /* end confdefs.h. */
29419 /* Override any GCC internal prototype to avoid an error.
29420 Use char because int might match the return type of a GCC
29421 builtin and then its argument prototype would still apply. */
29434 if ac_fn_c_try_link "$LINENO"; then :
29435 ac_cv_lib_intl_gettext=yes
29437 ac_cv_lib_intl_gettext=no
29439 rm -f core conftest.err conftest.$ac_objext \
29440 conftest$ac_exeext conftest.$ac_ext
29441 LIBS=$ac_check_lib_save_LIBS
29443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29444 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29445 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29446 LIBS="$LIBS -lintl"
29450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29451 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29452 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29453 $as_echo_n "(cached) " >&6
29455 ac_check_lib_save_LIBS=$LIBS
29457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29458 /* end confdefs.h. */
29460 /* Override any GCC internal prototype to avoid an error.
29461 Use char because int might match the return type of a GCC
29462 builtin and then its argument prototype would still apply. */
29470 return getpwnam ();
29475 if ac_fn_c_try_link "$LINENO"; then :
29476 ac_cv_lib_sun_getpwnam=yes
29478 ac_cv_lib_sun_getpwnam=no
29480 rm -f core conftest.err conftest.$ac_objext \
29481 conftest$ac_exeext conftest.$ac_ext
29482 LIBS=$ac_check_lib_save_LIBS
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29485 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29486 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29487 cat >>confdefs.h <<_ACEOF
29488 #define HAVE_LIBSUN 1
29496 for ac_header in zlib.h
29498 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29499 if test "x$ac_cv_header_zlib_h" = xyes; then :
29500 cat >>confdefs.h <<_ACEOF
29501 #define HAVE_ZLIB_H 1
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29509 $as_echo_n "checking for deflate in -lz... " >&6; }
29510 if ${ac_cv_lib_z_deflate+:} false; then :
29511 $as_echo_n "(cached) " >&6
29513 ac_check_lib_save_LIBS=$LIBS
29515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29516 /* end confdefs.h. */
29518 /* Override any GCC internal prototype to avoid an error.
29519 Use char because int might match the return type of a GCC
29520 builtin and then its argument prototype would still apply. */
29533 if ac_fn_c_try_link "$LINENO"; then :
29534 ac_cv_lib_z_deflate=yes
29536 ac_cv_lib_z_deflate=no
29538 rm -f core conftest.err conftest.$ac_objext \
29539 conftest$ac_exeext conftest.$ac_ext
29540 LIBS=$ac_check_lib_save_LIBS
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29543 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29544 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29549 if test x$ZLIBS = x-lz; then
29550 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29559 # Check whether --enable-afs was given.
29560 if test "${enable_afs+set}" = set; then :
29561 enableval=$enable_afs;
29562 if test x$enableval = xyes; then
29564 elif test x$enableval = xno; then
29573 if test x$support_afs = xyes -o x$support_afs = xauto; then
29575 # Check whether --with-afsdir was given.
29576 if test "${with_afsdir+set}" = set; then :
29577 withval=$with_afsdir; with_afsdir=$withval
29582 if test x$with_afsdir = x; then
29583 for root in /usr /usr/local; do
29584 if test -d ${root}/include/afs/ ; then
29585 with_afsdir=${root}
29588 if test -d ${root}/include/openafs/afs/ ; then
29589 with_afsdir=${root}
29595 if test -d ${with_afsdir}/include/afs/ ; then
29596 AFS_CFLAGS="-I${with_afsdir}/include"
29598 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29599 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29603 saved_CFLAGS="${CFLAGS}"
29604 saved_CPPFLAGS="${CPPFLAGS}"
29605 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29606 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29608 for ac_header in afs/afsint.h
29610 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29611 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29612 cat >>confdefs.h <<_ACEOF
29613 #define HAVE_AFS_AFSINT_H 1
29620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29621 /* end confdefs.h. */
29623 #include <afs/afsint.h>
29624 #include <afs/venus.h>
29627 if ac_fn_c_try_cpp "$LINENO"; then :
29629 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29633 rm -f conftest.err conftest.i conftest.$ac_ext
29635 CFLAGS="${saved_CFLAGS}"
29636 CPPFLAGS="${saved_CPPFLAGS}"
29638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29639 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29640 for dir in ${with_afsdir}/lib \
29641 ${with_afsdir}/lib/afs \
29642 ${with_afsdir}/lib/openafs \
29643 ${with_afsdir}/lib64 \
29644 ${with_afsdir}/lib64/afs \
29645 ${with_afsdir}/lib64/openafs
29647 for arch_type in .a .so
29649 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29651 if test $pkg = 0; then
29653 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29659 if test $have_afs = yes; then
29660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29661 $as_echo "yes" >&6; }
29663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29664 $as_echo "no" >&6; }
29667 if test x$support_afs = xyes -a $have_afs != yes; then
29668 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29669 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29671 if test $have_afs = yes; then
29673 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29676 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29685 # Check whether --enable-lzo was given.
29686 if test "${enable_lzo+set}" = set; then :
29687 enableval=$enable_lzo;
29688 if test x$enableval = xno; then
29701 if test x$support_lzo = xyes; then
29703 # Check whether --with-lzo was given.
29704 if test "${with_lzo+set}" = set; then :
29706 case "$with_lzo" in
29711 if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29712 LZO_INC="-I${with_lzo}/include"
29713 LZO_LDFLAGS="-L${with_lzo}/lib"
29714 with_lzo="${with_lzo}/include"
29716 with_lzo="/usr/include"
29719 as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29720 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29721 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29724 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29726 LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29732 echo "lzoconf.h not found. lzo turned off ..."
29744 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29745 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29747 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29748 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29751 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29752 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29753 $as_echo_n "(cached) " >&6
29755 ac_check_lib_save_LIBS=$LIBS
29756 LIBS="-llzo2 $LIBS"
29757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29758 /* end confdefs.h. */
29760 /* Override any GCC internal prototype to avoid an error.
29761 Use char because int might match the return type of a GCC
29762 builtin and then its argument prototype would still apply. */
29766 char lzo1x_1_compress ();
29770 return lzo1x_1_compress ();
29775 if ac_fn_c_try_link "$LINENO"; then :
29776 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29778 ac_cv_lib_lzo2_lzo1x_1_compress=no
29780 rm -f core conftest.err conftest.$ac_objext \
29781 conftest$ac_exeext conftest.$ac_ext
29782 LIBS=$ac_check_lib_save_LIBS
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29785 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29786 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29790 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29814 # Check whether --enable-acl was given.
29815 if test "${enable_acl+set}" = set; then :
29816 enableval=$enable_acl;
29817 if test x$enableval = xyes; then
29819 elif test x$enableval = xno; then
29828 have_extended_acl=no
29829 if test x$support_acl = xyes -o x$support_acl = xauto; then
29830 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29831 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29833 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29839 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29840 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29848 if test $have_acl = no; then
29849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29850 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29851 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29852 $as_echo_n "(cached) " >&6
29854 ac_check_lib_save_LIBS=$LIBS
29856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29857 /* end confdefs.h. */
29859 /* Override any GCC internal prototype to avoid an error.
29860 Use char because int might match the return type of a GCC
29861 builtin and then its argument prototype would still apply. */
29865 char acl_get_file ();
29869 return acl_get_file ();
29874 if ac_fn_c_try_link "$LINENO"; then :
29875 ac_cv_lib_acl_acl_get_file=yes
29877 ac_cv_lib_acl_acl_get_file=no
29879 rm -f core conftest.err conftest.$ac_objext \
29880 conftest$ac_exeext conftest.$ac_ext
29881 LIBS=$ac_check_lib_save_LIBS
29883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29884 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29885 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29888 if test $have_afs = yes; then
29889 if test -d /usr/lib64/; then
29890 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29892 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29895 FDLIBS="-lacl $FDLIBS"
29903 if test $have_acl = no -a \
29904 x${HAVE_OSF1_OS_TRUE} = x; then
29905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29906 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29907 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29908 $as_echo_n "(cached) " >&6
29910 ac_check_lib_save_LIBS=$LIBS
29911 LIBS="-lpacl $LIBS"
29912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29913 /* end confdefs.h. */
29915 /* Override any GCC internal prototype to avoid an error.
29916 Use char because int might match the return type of a GCC
29917 builtin and then its argument prototype would still apply. */
29921 char acl_get_file ();
29925 return acl_get_file ();
29930 if ac_fn_c_try_link "$LINENO"; then :
29931 ac_cv_lib_pacl_acl_get_file=yes
29933 ac_cv_lib_pacl_acl_get_file=no
29935 rm -f core conftest.err conftest.$ac_objext \
29936 conftest$ac_exeext conftest.$ac_ext
29937 LIBS=$ac_check_lib_save_LIBS
29939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29940 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29941 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29944 FDLIBS="-lpacl $FDLIBS"
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29951 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29952 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29953 if test $? = 0; then
29955 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29958 $as_echo "yes" >&6; }
29960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29961 $as_echo "no" >&6; }
29965 if test $have_acl = yes -a \
29966 x${HAVE_DARWIN_OS_TRUE} = x; then
29967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29968 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29969 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29970 if test $? = 0; then
29972 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29975 $as_echo "yes" >&6; }
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29978 $as_echo "no" >&6; }
29982 if test $have_acl = yes -a \
29983 x${HAVE_FREEBSD_OS_TRUE} = x; then
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29985 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29986 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29987 if test $? = 0; then
29989 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29992 $as_echo "yes" >&6; }
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29995 $as_echo "no" >&6; }
29999 if test $have_acl = no -a \
30000 x${HAVE_SUN_OS_TRUE} = x; then
30001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
30002 $as_echo_n "checking for acltotext in -lsec... " >&6; }
30003 if ${ac_cv_lib_sec_acltotext+:} false; then :
30004 $as_echo_n "(cached) " >&6
30006 ac_check_lib_save_LIBS=$LIBS
30008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30009 /* end confdefs.h. */
30011 /* Override any GCC internal prototype to avoid an error.
30012 Use char because int might match the return type of a GCC
30013 builtin and then its argument prototype would still apply. */
30021 return acltotext ();
30026 if ac_fn_c_try_link "$LINENO"; then :
30027 ac_cv_lib_sec_acltotext=yes
30029 ac_cv_lib_sec_acltotext=no
30031 rm -f core conftest.err conftest.$ac_objext \
30032 conftest$ac_exeext conftest.$ac_ext
30033 LIBS=$ac_check_lib_save_LIBS
30035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
30036 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
30037 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
30040 FDLIBS="-lsec $FDLIBS"
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
30043 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
30044 if ${ac_cv_lib_sec_acl_totext+:} false; then :
30045 $as_echo_n "(cached) " >&6
30047 ac_check_lib_save_LIBS=$LIBS
30049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30050 /* end confdefs.h. */
30052 /* Override any GCC internal prototype to avoid an error.
30053 Use char because int might match the return type of a GCC
30054 builtin and then its argument prototype would still apply. */
30058 char acl_totext ();
30062 return acl_totext ();
30067 if ac_fn_c_try_link "$LINENO"; then :
30068 ac_cv_lib_sec_acl_totext=yes
30070 ac_cv_lib_sec_acl_totext=no
30072 rm -f core conftest.err conftest.$ac_objext \
30073 conftest$ac_exeext conftest.$ac_ext
30074 LIBS=$ac_check_lib_save_LIBS
30076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
30077 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
30078 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
30080 have_extended_acl=yes
30091 if test $have_acl = no -a \
30092 x${HAVE_AIX_OS_TRUE} = x; then
30093 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
30094 if test "x$ac_cv_func_acl_get" = xyes; then :
30098 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
30099 if test "x$ac_cv_func_aclx_get" = xyes; then :
30101 have_extended_acl=yes
30112 if test x$support_acl = xyes -a $have_acl != yes; then
30113 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
30114 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
30116 if test $have_acl = yes; then
30118 $as_echo "#define HAVE_ACL 1" >>confdefs.h
30122 if test $have_extended_acl = yes; then
30124 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
30131 # Check whether --enable-xattr was given.
30132 if test "${enable_xattr+set}" = set; then :
30133 enableval=$enable_xattr;
30134 if test x$enableval = xyes; then
30136 elif test x$enableval = xno; then
30145 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
30146 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
30147 x${HAVE_NETBSD_OS_TRUE} = x -o \
30148 x${HAVE_OPENBSD_OS_TRUE} = x; then
30149 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
30150 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
30152 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
30157 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
30158 if test "x$ac_cv_header_libutil_h" = xyes; then :
30160 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
30165 for ac_func in extattr_get_link extattr_set_link extattr_list_link
30167 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30168 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30169 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30170 cat >>confdefs.h <<_ACEOF
30171 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30176 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
30179 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
30182 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
30190 if test $have_xattr = no; then
30191 for ac_func in extattr_get_file extattr_set_file extattr_list_file
30193 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30194 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30195 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30196 cat >>confdefs.h <<_ACEOF
30197 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30202 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
30205 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
30208 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
30217 if test $have_xattr = yes; then
30218 have_extattr_string_in_libc=no
30219 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
30221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30222 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30223 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30224 cat >>confdefs.h <<_ACEOF
30225 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30228 have_extattr_string_in_libc=yes
30230 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30233 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30241 if test $have_extattr_string_in_libc = no; then
30242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
30243 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
30244 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
30245 $as_echo_n "(cached) " >&6
30247 ac_check_lib_save_LIBS=$LIBS
30248 LIBS="-lutil $LIBS"
30249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30250 /* end confdefs.h. */
30252 /* Override any GCC internal prototype to avoid an error.
30253 Use char because int might match the return type of a GCC
30254 builtin and then its argument prototype would still apply. */
30258 char extattr_namespace_to_string extattr_string_to_namespace ();
30262 return extattr_namespace_to_string extattr_string_to_namespace ();
30267 if ac_fn_c_try_link "$LINENO"; then :
30268 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30270 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30272 rm -f core conftest.err conftest.$ac_objext \
30273 conftest$ac_exeext conftest.$ac_ext
30274 LIBS=$ac_check_lib_save_LIBS
30276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30277 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30278 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30281 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30284 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30286 FDLIBS="-lutil $FDLIBS"
30295 if test $have_xattr = no -a \
30296 x${HAVE_AIX_OS_TRUE} = x; then
30297 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30298 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30300 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30305 for ac_func in llistea lgetea lsetea
30307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30308 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30309 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30310 cat >>confdefs.h <<_ACEOF
30311 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30316 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30319 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30322 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30330 if test $have_xattr = no; then
30331 for ac_func in listea getea setea
30333 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30334 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30335 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30336 cat >>confdefs.h <<_ACEOF
30337 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30342 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30345 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30348 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30358 if test $have_xattr = no -a \
30359 x${HAVE_OSF1_OS_TRUE} = x; then
30360 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30361 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30363 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30368 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30370 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30371 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30372 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30373 cat >>confdefs.h <<_ACEOF
30374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30379 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30382 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30385 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30388 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30391 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30400 if test $have_xattr = no -a \
30401 x${HAVE_SUN_OS_TRUE} = x; then
30402 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30403 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30405 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30410 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30411 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30413 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30418 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30419 if test "x$ac_cv_header_attr_h" = xyes; then :
30421 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30427 for ac_func in openat fstatat unlinkat fchownat futimesat
30429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30430 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30431 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30432 cat >>confdefs.h <<_ACEOF
30433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30438 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30441 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30444 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30447 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30450 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30458 if test $have_xattr = yes; then
30459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30460 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30461 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30462 $as_echo_n "(cached) " >&6
30464 ac_check_lib_save_LIBS=$LIBS
30465 LIBS="-lnvpair $LIBS"
30466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30467 /* end confdefs.h. */
30469 /* Override any GCC internal prototype to avoid an error.
30470 Use char because int might match the return type of a GCC
30471 builtin and then its argument prototype would still apply. */
30475 char nvlist_next_nvpair ();
30479 return nvlist_next_nvpair ();
30484 if ac_fn_c_try_link "$LINENO"; then :
30485 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30487 ac_cv_lib_nvpair_nvlist_next_nvpair=no
30489 rm -f core conftest.err conftest.$ac_objext \
30490 conftest$ac_exeext conftest.$ac_ext
30491 LIBS=$ac_check_lib_save_LIBS
30493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30494 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30495 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30498 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30500 FDLIBS="-lnvpair $FDLIBS"
30508 if test $have_xattr = no; then
30509 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30510 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30512 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30517 for ac_func in llistxattr lgetxattr lsetxattr
30519 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30520 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30521 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30522 cat >>confdefs.h <<_ACEOF
30523 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30528 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30531 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30534 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30542 if test $have_xattr = no; then
30543 for ac_func in listxattr getxattr setxattr
30545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30546 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30547 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30548 cat >>confdefs.h <<_ACEOF
30549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30554 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30557 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30560 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30570 if test x$support_xattr = xyes -a $have_xattr != yes; then
30571 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30572 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30574 if test $have_xattr = yes; then
30576 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30584 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30585 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30586 $as_echo_n "(cached) " >&6
30588 ac_check_lib_save_LIBS=$LIBS
30589 LIBS="-lpthread $LIBS"
30590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30591 /* end confdefs.h. */
30593 /* Override any GCC internal prototype to avoid an error.
30594 Use char because int might match the return type of a GCC
30595 builtin and then its argument prototype would still apply. */
30599 char pthread_create ();
30603 return pthread_create ();
30608 if ac_fn_c_try_link "$LINENO"; then :
30609 ac_cv_lib_pthread_pthread_create=yes
30611 ac_cv_lib_pthread_pthread_create=no
30613 rm -f core conftest.err conftest.$ac_objext \
30614 conftest$ac_exeext conftest.$ac_ext
30615 LIBS=$ac_check_lib_save_LIBS
30617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30618 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30619 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30620 PTHREAD_LIB="-lpthread"
30623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30624 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30625 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30626 $as_echo_n "(cached) " >&6
30628 ac_check_lib_save_LIBS=$LIBS
30629 LIBS="-lpthreads $LIBS"
30630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30631 /* end confdefs.h. */
30633 /* Override any GCC internal prototype to avoid an error.
30634 Use char because int might match the return type of a GCC
30635 builtin and then its argument prototype would still apply. */
30639 char pthread_create ();
30643 return pthread_create ();
30648 if ac_fn_c_try_link "$LINENO"; then :
30649 ac_cv_lib_pthreads_pthread_create=yes
30651 ac_cv_lib_pthreads_pthread_create=no
30653 rm -f core conftest.err conftest.$ac_objext \
30654 conftest$ac_exeext conftest.$ac_ext
30655 LIBS=$ac_check_lib_save_LIBS
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30658 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30659 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30660 PTHREAD_LIB="-lpthreads"
30663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30664 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30665 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30666 $as_echo_n "(cached) " >&6
30668 ac_check_lib_save_LIBS=$LIBS
30670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30671 /* end confdefs.h. */
30673 /* Override any GCC internal prototype to avoid an error.
30674 Use char because int might match the return type of a GCC
30675 builtin and then its argument prototype would still apply. */
30679 char pthread_create ();
30683 return pthread_create ();
30688 if ac_fn_c_try_link "$LINENO"; then :
30689 ac_cv_lib_c_r_pthread_create=yes
30691 ac_cv_lib_c_r_pthread_create=no
30693 rm -f core conftest.err conftest.$ac_objext \
30694 conftest$ac_exeext conftest.$ac_ext
30695 LIBS=$ac_check_lib_save_LIBS
30697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30698 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30699 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30700 PTHREAD_LIB="-lc_r"
30703 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30704 if test "x$ac_cv_func_pthread_create" = xyes; then :
30721 for ac_header in sys/prctl.h sys/capability.h
30723 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30724 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30725 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30726 cat >>confdefs.h <<_ACEOF
30727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30734 for ac_func in prctl setreuid
30736 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30737 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30738 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30739 cat >>confdefs.h <<_ACEOF
30740 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30747 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30748 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30749 $as_echo_n "(cached) " >&6
30751 ac_check_lib_save_LIBS=$LIBS
30753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30754 /* end confdefs.h. */
30756 /* Override any GCC internal prototype to avoid an error.
30757 Use char because int might match the return type of a GCC
30758 builtin and then its argument prototype would still apply. */
30762 char cap_set_proc ();
30766 return cap_set_proc ();
30771 if ac_fn_c_try_link "$LINENO"; then :
30772 ac_cv_lib_cap_cap_set_proc=yes
30774 ac_cv_lib_cap_cap_set_proc=no
30776 rm -f core conftest.err conftest.$ac_objext \
30777 conftest$ac_exeext conftest.$ac_ext
30778 LIBS=$ac_check_lib_save_LIBS
30780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30781 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30782 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30788 if test x$CAP_LIBS = x-lcap; then
30790 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30796 $as_echo "#define FDLIBS 1" >>confdefs.h
30799 CFLAGS=${CFLAGS--O}
30801 if test x$have_gcc = xyes ; then
30802 CPPFLAGS="$CPPFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30803 CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30805 LDFLAGS=${LDFLAGS--O}
30806 CPPFLAGS="$CPPFLAGS"
30835 COMPRESS_MANPAGES=yes
30837 case "$DISTNAME" in
30840 PSCMD="ps -e -o pid,comm"
30841 PFILES="${PFILES} platforms/aix/Makefile"
30842 TAPEDRIVE="/dev/rmt0.1"
30846 PTHREAD_LIB="-lpthread -lexc"
30847 if test "${CC}" = "gcc" ; then
30854 TAPEDRIVE="/dev/nrmt0"
30857 DISTVER=`uname -a |awk '{print $3}'`
30858 TAPEDRIVE="/dev/nrmt0"
30859 PTHREAD_LIB="-pthread"
30860 CFLAGS="${CFLAGS} -pthread"
30861 PSCMD="ps -ax -o pid,command"
30864 PFILES="${PFILES} \
30865 platforms/bsdi/Makefile \
30866 platforms/bsdi/bacula-fd \
30867 platforms/bsdi/bacula-sd \
30868 platforms/bsdi/bacula-dir"
30869 largefile_support="yes"
30872 DISTVER=`uname -a |awk '{print $3}'`
30873 TAPEDRIVE="/dev/nrst0"
30875 WCFLAGS="-mwindows"
30876 WLDFLAGS="-mwindows"
30880 TAPEDRIVE="/dev/nst0"
30881 PSCMD="ps -e -o pid,command"
30883 PFILES="${PFILES} \
30884 platforms/darwin/Makefile"
30888 TAPEDRIVE="/dev/nst0"
30889 PSCMD="ps -e -o pid,command"
30891 PFILES="${PFILES} \
30892 platforms/osx/Makefile"
30895 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30898 DISTVER=`cat /etc/debian_version`
30899 if test -f /etc/lsb-release ; then
30901 if test "x$DISTRIB_ID" != "x" ; then
30902 DISTNAME=$DISTRIB_ID
30904 if test "x$DISTRIB_RELEASE" != "x" ; then
30905 DISTVER=$DISTRIB_RELEASE
30908 if test "$DISTNAME" = "Ubuntu" ; then
30911 TAPEDRIVE="/dev/nst0"
30912 PSCMD="ps -e -o pid,command"
30913 if test "$DISTNAME" = "ubuntu" ; then
30914 PFILES="${PFILES} \
30915 platforms/ubuntu/Makefile \
30916 platforms/ubuntu/bacula-fd \
30917 platforms/ubuntu/bacula-sd \
30918 platforms/ubuntu/bacula-dir"
30920 PFILES="${PFILES} \
30921 platforms/debian/Makefile \
30922 platforms/debian/bacula-fd \
30923 platforms/debian/bacula-sd \
30924 platforms/debian/bacula-dir"
30928 DISTVER=`uname -a |awk '{print $3}'`
30929 VER=`echo $DISTVER | cut -c 1`
30930 if test x$VER = x4 ; then
30931 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30932 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30936 TAPEDRIVE="/dev/nrsa0"
30937 PSCMD="ps -ax -o pid,command"
30938 PFILES="${PFILES} \
30939 platforms/freebsd/Makefile \
30940 platforms/freebsd/bacula-fd \
30941 platforms/freebsd/bacula-sd \
30942 platforms/freebsd/bacula-dir"
30943 largefile_support="yes"
30947 TAPEDRIVE="/dev/nst0"
30948 PSCMD="ps -e -o pid,command"
30949 PFILES="${PFILES} \
30950 platforms/hurd/Makefile \
30951 platforms/hurd/bacula-fd \
30952 platforms/hurd/bacula-sd \
30953 platforms/hurd/bacula-dir"
30956 PSCMD="UNIX95=1; ps -e -o pid,comm"
30957 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30959 TAPEDRIVE="/dev/rmt/0hnb"
30960 PTHREAD_LIB="-lpthread"
30961 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30966 TAPEDRIVE="/dev/rmt/0cbn"
30967 PSCMD="ps -e -o pid,comm"
30968 PFILES="${PFILES} \
30969 platforms/irix/Makefile \
30970 platforms/irix/bacula-fd \
30971 platforms/irix/bacula-sd \
30972 platforms/irix/bacula-dir"
30975 DISTVER=`uname -a |awk '{print $3}'`
30978 TAPEDRIVE="/dev/nrst0"
30979 PSCMD="ps -ax -o pid,command"
30980 PTHREAD_LIB="-pthread"
30981 CFLAGS="${CFLAGS} -pthread"
30984 DISTVER=`uname -a |awk '{print $3}'`
30987 TAPEDRIVE="/dev/nrst0"
30988 PSCMD="ps -ax -o pid,command"
30989 PTHREAD_LIB="-pthread"
30990 CFLAGS="${CFLAGS} -pthread"
30991 PFILES="${PFILES} \
30992 platforms/openbsd/Makefile \
30993 platforms/openbsd/bacula-fd \
30994 platforms/openbsd/bacula-sd \
30995 platforms/openbsd/bacula-dir"
30998 if test -f /etc/whitebox-release ; then
30999 f=/etc/whitebox-release
31001 f=/etc/redhat-release
31003 if test `cat $f | grep release |\
31004 cut -f 3 -d ' '`x = "Enterprise"x ; then
31005 DISTVER="Enterprise "`cat $f | grep release |\
31008 DISTVER=`cat /etc/redhat-release | grep release |\
31011 TAPEDRIVE="/dev/nst0"
31012 PSCMD="ps -e -o pid,command"
31013 PFILES="${PFILES} \
31014 platforms/redhat/Makefile \
31015 platforms/redhat/bacula-fd \
31016 platforms/redhat/bacula-sd \
31017 platforms/redhat/bacula-dir
31021 DISTVER=`cat /etc/mandrake-release | grep release |\
31023 TAPEDRIVE="/dev/nst0"
31024 PSCMD="ps -e -o pid,command"
31025 PFILES="${PFILES} \
31026 platforms/mandrake/Makefile \
31027 platforms/mandrake/bacula-fd \
31028 platforms/mandrake/bacula-sd \
31029 platforms/mandrake/bacula-dir \
31033 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
31034 TAPEDRIVE="/dev/nst0"
31035 PSCMD="ps -e -o pid,command"
31036 PFILES="${PFILES} \
31037 platforms/gentoo/Makefile \
31038 platforms/gentoo/bacula-init \
31039 platforms/gentoo/bacula-fd \
31040 platforms/gentoo/bacula-sd \
31041 platforms/gentoo/bacula-dir"
31044 DISTVER=`cat /etc/slackware-version`
31045 TAPEDRIVE="/dev/nst0"
31046 PSCMD="ps -e -o pid,command"
31047 PFILES="${PFILES} \
31048 platforms/slackware/Makefile \
31049 platforms/slackware/rc.bacula-fd \
31050 platforms/slackware/rc.bacula-sd \
31051 platforms/slackware/rc.bacula-dir\
31052 platforms/slackware/functions.bacula"
31056 TAPEDRIVE="/dev/rmt/0cbn"
31057 PSCMD="ps -e -o pid,comm"
31058 PFILES="${PFILES} \
31059 platforms/solaris/Makefile \
31060 platforms/solaris/bacula-fd \
31061 platforms/solaris/bacula-sd \
31062 platforms/solaris/bacula-dir"
31066 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
31068 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
31072 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
31077 $as_echo "#define HAVE_SOLARIS10 1" >>confdefs.h
31083 LIBS="$LIBS -lresolv -lrt"
31086 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
31088 TAPEDRIVE="/dev/nst0"
31089 PSCMD="ps -e -o pid,command"
31090 PFILES="${PFILES} \
31091 platforms/suse/Makefile \
31092 platforms/suse/bacula-fd \
31093 platforms/suse/bacula-sd \
31094 platforms/suse/bacula-dir \
31095 platforms/suse/bacula"
31100 TAPEDRIVE="/dev/nst0"
31101 PSCMD="ps -e -o pid,command"
31102 PFILES="${PFILES} \
31103 platforms/suse/Makefile \
31104 platforms/suse/bacula-fd \
31105 platforms/suse/bacula-sd \
31106 platforms/suse/bacula-dir"
31110 TAPEDRIVE="/dev/nst0"
31113 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
31117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
31118 $as_echo_n "checking for systemd support... " >&6; }
31120 # Check whether --with-systemd was given.
31121 if test "${with_systemd+set}" = set; then :
31122 withval=$with_systemd;
31123 if test "$withval" != "no"; then
31124 if test "$withval" = "yes"; then
31125 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
31127 SYSTEMD_UNITDIR="${withval}"
31130 PFILES="${PFILES} \
31131 platforms/systemd/Makefile \
31132 platforms/systemd/bacula-dir.service \
31133 platforms/systemd/bacula-fd.service \
31134 platforms/systemd/bacula-sd.service"
31136 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31139 $as_echo "yes" >&6; }
31140 support_systemd="yes"
31142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31143 $as_echo "no" >&6; }
31144 support_systemd="no"
31149 support_systemd="no"
31150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31151 $as_echo "no" >&6; }
31160 LIBS="$PTHREAD_LIB $LIBS"
31162 cat >>confdefs.h <<_ACEOF
31166 cat >>confdefs.h <<_ACEOF
31178 MCOMMON=./autoconf/Make.common
31181 if test "x${subsysdir}" = "x${sbindir}" ; then
31184 echo "You have set both --sbindir and --with-subsys-dir"
31185 echo " equal to: ${subsysdir} "
31186 echo "This is not permitted. Please reconfigure."
31188 echo "Aborting configuration ..."
31195 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"
31197 ac_config_commands="$ac_config_commands default"
31199 cat >confcache <<\_ACEOF
31200 # This file is a shell script that caches the results of configure
31201 # tests run on this system so they can be shared between configure
31202 # scripts and configure runs, see configure's option --config-cache.
31203 # It is not useful on other systems. If it contains results you don't
31204 # want to keep, you may remove or edit it.
31206 # config.status only pays attention to the cache file if you give it
31207 # the --recheck option to rerun configure.
31209 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31210 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31211 # following values.
31215 # The following way of writing the cache mishandles newlines in values,
31216 # but we know of no workaround that is simple, portable, and efficient.
31217 # So, we kill variables containing newlines.
31218 # Ultrix sh set writes to stderr and can't be redirected directly,
31219 # and sets the high bit in the cache file unless we assign to the vars.
31221 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31222 eval ac_val=\$$ac_var
31226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31227 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31230 _ | IFS | as_nl) ;; #(
31231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31232 *) { eval $ac_var=; unset $ac_var;} ;;
31238 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31239 *${as_nl}ac_space=\ *)
31240 # `set' does not quote correctly, so add quotes: double-quote
31241 # substitution turns \\\\ into \\, and sed turns \\ into \.
31244 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31247 # `set' quotes correctly as required by POSIX, so do not add quotes.
31248 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31257 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31259 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31261 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31262 if test -w "$cache_file"; then
31263 if test "x$cache_file" != "x/dev/null"; then
31264 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31265 $as_echo "$as_me: updating cache $cache_file" >&6;}
31266 if test ! -f "$cache_file" || test -h "$cache_file"; then
31267 cat confcache >"$cache_file"
31269 case $cache_file in #(
31271 mv -f confcache "$cache_file"$$ &&
31272 mv -f "$cache_file"$$ "$cache_file" ;; #(
31274 mv -f confcache "$cache_file" ;;
31279 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31280 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31285 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31286 # Let make expand exec_prefix.
31287 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31289 DEFS=-DHAVE_CONFIG_H
31294 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31295 # 1. Remove the extension, and $U if already installed.
31296 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31297 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31298 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31299 # will be set to the directory where LIBOBJS objects are built.
31300 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31301 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31303 LIBOBJS=$ac_libobjs
31305 LTLIBOBJS=$ac_ltlibobjs
31310 : "${CONFIG_STATUS=./config.status}"
31312 ac_clean_files_save=$ac_clean_files
31313 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31314 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31315 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31317 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31319 # Generated by $as_me.
31320 # Run this file to recreate the current configuration.
31321 # Compiler output produced by configure, useful for debugging
31322 # configure, is in config.log if it exists.
31325 ac_cs_recheck=false
31328 SHELL=\${CONFIG_SHELL-$SHELL}
31331 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31332 ## -------------------- ##
31333 ## M4sh Initialization. ##
31334 ## -------------------- ##
31336 # Be more Bourne compatible
31337 DUALCASE=1; export DUALCASE # for MKS sh
31338 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31341 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31342 # is contrary to our usage. Disable this feature.
31343 alias -g '${1+"$@"}'='"$@"'
31344 setopt NO_GLOB_SUBST
31346 case `(set -o) 2>/dev/null` in #(
31358 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31359 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31360 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31361 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31362 # Prefer a ksh shell builtin over an external printf program on Solaris,
31363 # but without wasting forks for bash or zsh.
31364 if test -z "$BASH_VERSION$ZSH_VERSION" \
31365 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31366 as_echo='print -r --'
31367 as_echo_n='print -rn --'
31368 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31369 as_echo='printf %s\n'
31370 as_echo_n='printf %s'
31372 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31373 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31374 as_echo_n='/usr/ucb/echo -n'
31376 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31377 as_echo_n_body='eval
31381 expr "X$arg" : "X\\(.*\\)$as_nl";
31382 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31384 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31386 export as_echo_n_body
31387 as_echo_n='sh -c $as_echo_n_body as_echo'
31389 export as_echo_body
31390 as_echo='sh -c $as_echo_body as_echo'
31393 # The user is always right.
31394 if test "${PATH_SEPARATOR+set}" != set; then
31396 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31397 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31404 # We need space, tab and new line, in precisely that order. Quoting is
31405 # there to prevent editors from complaining about space-tab.
31406 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31407 # splitting by setting IFS to empty value.)
31410 # Find who we are. Look in the path if we contain no directory separator.
31413 *[\\/]* ) as_myself=$0 ;;
31414 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31415 for as_dir in $PATH
31418 test -z "$as_dir" && as_dir=.
31419 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31425 # We did not find ourselves, most probably we were run as `sh COMMAND'
31426 # in which case we are not to be found in the path.
31427 if test "x$as_myself" = x; then
31430 if test ! -f "$as_myself"; then
31431 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31435 # Unset variables that we do not need and which cause bugs (e.g. in
31436 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31437 # suppresses any "Segmentation fault" message there. '((' could
31438 # trigger a bug in pdksh 5.2.14.
31439 for as_var in BASH_ENV ENV MAIL MAILPATH
31440 do eval test x\${$as_var+set} = xset \
31441 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31454 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31457 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31458 # ----------------------------------------
31459 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31460 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31461 # script with STATUS, using 1 if that was 0.
31464 as_status=$1; test $as_status -eq 0 && as_status=1
31466 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31467 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31469 $as_echo "$as_me: error: $2" >&2
31470 as_fn_exit $as_status
31474 # as_fn_set_status STATUS
31475 # -----------------------
31476 # Set $? to STATUS, without forking.
31477 as_fn_set_status ()
31480 } # as_fn_set_status
31482 # as_fn_exit STATUS
31483 # -----------------
31484 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31488 as_fn_set_status $1
31494 # Portably unset VAR.
31497 { eval $1=; unset $1;}
31499 as_unset=as_fn_unset
31500 # as_fn_append VAR VALUE
31501 # ----------------------
31502 # Append the text in VALUE to the end of the definition contained in VAR. Take
31503 # advantage of any shell optimizations that allow amortized linear growth over
31504 # repeated appends, instead of the typical quadratic growth present in naive
31506 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31507 eval 'as_fn_append ()
31518 # as_fn_arith ARG...
31519 # ------------------
31520 # Perform arithmetic evaluation on the ARGs, and store the result in the
31521 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31522 # must be portable across $(()) and expr.
31523 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31524 eval 'as_fn_arith ()
31531 as_val=`expr "$@" || test $? -eq 1`
31536 if expr a : '\(a\)' >/dev/null 2>&1 &&
31537 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31543 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31544 as_basename=basename
31549 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31555 as_me=`$as_basename -- "$0" ||
31556 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31557 X"$0" : 'X\(//\)$' \| \
31558 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31560 sed '/^.*\/\([^/][^/]*\)\/*$/{
31574 # Avoid depending upon Character Ranges.
31575 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31576 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31577 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31578 as_cr_digits='0123456789'
31579 as_cr_alnum=$as_cr_Letters$as_cr_digits
31581 ECHO_C= ECHO_N= ECHO_T=
31582 case `echo -n x` in #(((((
31584 case `echo 'xy\c'` in
31585 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31587 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31594 rm -f conf$$ conf$$.exe conf$$.file
31595 if test -d conf$$.dir; then
31596 rm -f conf$$.dir/conf$$.file
31599 mkdir conf$$.dir 2>/dev/null
31601 if (echo >conf$$.file) 2>/dev/null; then
31602 if ln -s conf$$.file conf$$ 2>/dev/null; then
31604 # ... but there are two gotchas:
31605 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31606 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31607 # In both cases, we have to default to `cp -pR'.
31608 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31610 elif ln conf$$.file conf$$ 2>/dev/null; then
31618 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31619 rmdir conf$$.dir 2>/dev/null
31624 # Create "$as_dir" as a directory, including parents if necessary.
31629 -*) as_dir=./$as_dir;;
31631 test -d "$as_dir" || eval $as_mkdir_p || {
31635 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31636 *) as_qdir=$as_dir;;
31638 as_dirs="'$as_qdir' $as_dirs"
31639 as_dir=`$as_dirname -- "$as_dir" ||
31640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31641 X"$as_dir" : 'X\(//\)[^/]' \| \
31642 X"$as_dir" : 'X\(//\)$' \| \
31643 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31644 $as_echo X"$as_dir" |
31645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31649 /^X\(\/\/\)[^/].*/{
31662 test -d "$as_dir" && break
31664 test -z "$as_dirs" || eval "mkdir $as_dirs"
31665 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31669 if mkdir -p . 2>/dev/null; then
31670 as_mkdir_p='mkdir -p "$as_dir"'
31672 test -d ./-p && rmdir ./-p
31677 # as_fn_executable_p FILE
31678 # -----------------------
31679 # Test if FILE is an executable regular file.
31680 as_fn_executable_p ()
31682 test -f "$1" && test -x "$1"
31683 } # as_fn_executable_p
31684 as_test_x='test -x'
31685 as_executable_p=as_fn_executable_p
31687 # Sed expression to map a string onto a valid CPP name.
31688 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31690 # Sed expression to map a string onto a valid variable name.
31691 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31695 ## ----------------------------------- ##
31696 ## Main body of $CONFIG_STATUS script. ##
31697 ## ----------------------------------- ##
31699 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31702 # Save the log message, to keep $0 and so on meaningful, and to
31703 # report actual input values of CONFIG_FILES etc. instead of their
31704 # values after options handling.
31706 This file was extended by bacula $as_me 9.0.3, which was
31707 generated by GNU Autoconf 2.69. Invocation command line was
31709 CONFIG_FILES = $CONFIG_FILES
31710 CONFIG_HEADERS = $CONFIG_HEADERS
31711 CONFIG_LINKS = $CONFIG_LINKS
31712 CONFIG_COMMANDS = $CONFIG_COMMANDS
31715 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31720 case $ac_config_files in *"
31721 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31724 case $ac_config_headers in *"
31725 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31730 # Files that config.status was made for.
31731 config_files="$ac_config_files"
31732 config_headers="$ac_config_headers"
31733 config_commands="$ac_config_commands"
31737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31739 \`$as_me' instantiates files and other configuration actions
31740 from templates according to the current configuration. Unless the files
31741 and actions are specified as TAGs, all are instantiated by default.
31743 Usage: $0 [OPTION]... [TAG]...
31745 -h, --help print this help, then exit
31746 -V, --version print version number and configuration settings, then exit
31747 --config print configuration, then exit
31748 -q, --quiet, --silent
31749 do not print progress messages
31750 -d, --debug don't remove temporary files
31751 --recheck update $as_me by reconfiguring in the same conditions
31752 --file=FILE[:TEMPLATE]
31753 instantiate the configuration file FILE
31754 --header=FILE[:TEMPLATE]
31755 instantiate the configuration header FILE
31757 Configuration files:
31760 Configuration headers:
31763 Configuration commands:
31766 Report bugs to the package provider."
31769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31770 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31772 bacula config.status 9.0.3
31773 configured by $0, generated by GNU Autoconf 2.69,
31774 with options \\"\$ac_cs_config\\"
31776 Copyright (C) 2012 Free Software Foundation, Inc.
31777 This config.status script is free software; the Free Software Foundation
31778 gives unlimited permission to copy, distribute and modify it."
31784 test -n "\$AWK" || AWK=awk
31787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31788 # The default lists apply if the user does not specify any file.
31794 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31795 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31799 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31811 # Handling of the options.
31812 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31814 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31815 $as_echo "$ac_cs_version"; exit ;;
31816 --config | --confi | --conf | --con | --co | --c )
31817 $as_echo "$ac_cs_config"; exit ;;
31818 --debug | --debu | --deb | --de | --d | -d )
31820 --file | --fil | --fi | --f )
31823 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31824 '') as_fn_error $? "missing file argument" ;;
31826 as_fn_append CONFIG_FILES " '$ac_optarg'"
31827 ac_need_defaults=false;;
31828 --header | --heade | --head | --hea )
31831 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31833 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31834 ac_need_defaults=false;;
31836 # Conflict between --help and --header
31837 as_fn_error $? "ambiguous option: \`$1'
31838 Try \`$0 --help' for more information.";;
31839 --help | --hel | -h )
31840 $as_echo "$ac_cs_usage"; exit ;;
31841 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31842 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31845 # This is an error.
31846 -*) as_fn_error $? "unrecognized option: \`$1'
31847 Try \`$0 --help' for more information." ;;
31849 *) as_fn_append ac_config_targets " $1"
31850 ac_need_defaults=false ;;
31856 ac_configure_extra_args=
31858 if $ac_cs_silent; then
31860 ac_configure_extra_args="$ac_configure_extra_args --silent"
31864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31865 if \$ac_cs_recheck; then
31866 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31868 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31869 CONFIG_SHELL='$SHELL'
31870 export CONFIG_SHELL
31875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31879 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31880 ## Running $as_me. ##
31886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31892 # The HP-UX ksh and POSIX shell print the target directory to stdout
31893 # if CDPATH is set.
31894 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31896 sed_quote_subst='$sed_quote_subst'
31897 double_quote_subst='$double_quote_subst'
31898 delay_variable_subst='$delay_variable_subst'
31899 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31900 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31901 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31902 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31903 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31904 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31905 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31906 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31907 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31908 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31909 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31910 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31911 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31912 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31913 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31914 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31915 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31916 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31917 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31918 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31919 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31920 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31921 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31922 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31923 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31924 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31925 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31926 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31927 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31928 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31929 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31930 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31931 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31932 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31933 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31934 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31935 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31936 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31937 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31938 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31939 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31940 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31941 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31942 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31943 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31944 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31945 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31946 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31947 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31948 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31949 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31950 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31951 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31952 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31953 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31954 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31955 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"`'
31956 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31957 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31958 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31959 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31960 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31961 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31962 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31963 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31964 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31965 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31966 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31967 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31968 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31969 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31970 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31971 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31972 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31973 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31974 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31975 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31976 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31977 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31978 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31979 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31980 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31981 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31982 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31983 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31984 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31985 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31986 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31987 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31988 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31989 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31990 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31991 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31992 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31993 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31994 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31995 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31996 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31997 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31998 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31999 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32000 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32001 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32002 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32003 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
32004 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32005 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32006 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32007 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32008 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32009 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32010 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32011 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32012 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32013 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32014 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32015 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32016 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32017 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32018 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32019 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32020 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32021 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32022 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
32023 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32024 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32025 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32026 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32027 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32028 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32029 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32030 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32031 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32032 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32033 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32034 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32035 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32036 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32037 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32038 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32039 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32040 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32041 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32042 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32043 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32044 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32045 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32046 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32047 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32048 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32049 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32050 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32051 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32052 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32053 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32054 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32055 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32056 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32057 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32058 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32059 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32060 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32061 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32062 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32063 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32064 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32065 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32066 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32067 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32068 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32069 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32070 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32071 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32072 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32073 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32074 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32075 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
32076 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
32077 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
32078 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32079 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32080 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
32081 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
32082 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
32085 LTCFLAGS='$LTCFLAGS'
32086 compiler='$compiler_DEFAULT'
32088 # A function that is used when there is no print builtin or printf.
32089 func_fallback_echo ()
32091 eval 'cat <<_LTECHO_EOF
32096 # Quote evaled strings.
32111 deplibs_check_method \
32116 sharedlib_from_linklib_cmd \
32119 archiver_list_spec \
32125 lt_cv_sys_global_symbol_pipe \
32126 lt_cv_sys_global_symbol_to_cdecl \
32127 lt_cv_sys_global_symbol_to_c_name_address \
32128 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32129 nm_file_list_spec \
32130 lt_prog_compiler_no_builtin_flag \
32131 lt_prog_compiler_pic \
32132 lt_prog_compiler_wl \
32133 lt_prog_compiler_static \
32134 lt_cv_prog_compiler_c_o \
32143 export_dynamic_flag_spec \
32144 whole_archive_flag_spec \
32145 compiler_needs_object \
32147 allow_undefined_flag \
32148 no_undefined_flag \
32149 hardcode_libdir_flag_spec \
32150 hardcode_libdir_separator \
32154 variables_saved_for_relink \
32156 library_names_spec \
32158 install_override_mode \
32162 compiler_lib_search_dirs \
32167 compiler_lib_search_path \
32171 lt_prog_compiler_no_builtin_flag_CXX \
32172 lt_prog_compiler_pic_CXX \
32173 lt_prog_compiler_wl_CXX \
32174 lt_prog_compiler_static_CXX \
32175 lt_cv_prog_compiler_c_o_CXX \
32176 export_dynamic_flag_spec_CXX \
32177 whole_archive_flag_spec_CXX \
32178 compiler_needs_object_CXX \
32180 allow_undefined_flag_CXX \
32181 no_undefined_flag_CXX \
32182 hardcode_libdir_flag_spec_CXX \
32183 hardcode_libdir_separator_CXX \
32184 exclude_expsyms_CXX \
32185 include_expsyms_CXX \
32186 file_list_spec_CXX \
32187 compiler_lib_search_dirs_CXX \
32188 predep_objects_CXX \
32189 postdep_objects_CXX \
32192 compiler_lib_search_path_CXX; do
32193 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32194 *[\\\\\\\`\\"\\\$]*)
32195 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32198 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32203 # Double-quote double-evaled strings.
32204 for var in reload_cmds \
32205 old_postinstall_cmds \
32206 old_postuninstall_cmds \
32208 extract_expsyms_cmds \
32209 old_archive_from_new_cmds \
32210 old_archive_from_expsyms_cmds \
32212 archive_expsym_cmds \
32214 module_expsym_cmds \
32215 export_symbols_cmds \
32219 postuninstall_cmds \
32221 sys_lib_search_path_spec \
32222 sys_lib_dlsearch_path_spec \
32224 old_archive_cmds_CXX \
32225 old_archive_from_new_cmds_CXX \
32226 old_archive_from_expsyms_cmds_CXX \
32228 archive_expsym_cmds_CXX \
32230 module_expsym_cmds_CXX \
32231 export_symbols_cmds_CXX \
32233 postlink_cmds_CXX; do
32234 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32235 *[\\\\\\\`\\"\\\$]*)
32236 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32239 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32244 ac_aux_dir='$ac_aux_dir'
32245 xsi_shell='$xsi_shell'
32246 lt_shell_append='$lt_shell_append'
32248 # See if we are running on zsh, and set the options which allow our
32249 # commands through without removal of \ escapes INIT.
32250 if test -n "\${ZSH_VERSION+set}" ; then
32251 setopt NO_GLOB_SUBST
32257 TIMESTAMP='$TIMESTAMP'
32265 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32266 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32268 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32269 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32270 LINGUAS="${LINGUAS-%UNSET%}"
32275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32277 # Handling of arguments.
32278 for ac_config_target in $ac_config_targets
32280 case $ac_config_target in
32281 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32282 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32283 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32284 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32285 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32286 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32287 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32288 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32289 "scripts/baculabackupreport") CONFIG_FILES="$CONFIG_FILES scripts/baculabackupreport" ;;
32290 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32291 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32292 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32293 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32294 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32295 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32296 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32297 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32298 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32299 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32300 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32301 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32302 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32303 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32304 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32305 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32306 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32307 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
32308 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32309 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32310 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32311 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32312 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32313 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32314 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32315 "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32316 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32317 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32318 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32319 "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32320 "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32321 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32322 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32323 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32324 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32325 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32326 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32327 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32328 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32329 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32330 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32331 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32332 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32333 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32334 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32335 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32336 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32337 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32338 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32339 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32340 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32341 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32342 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32343 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32344 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32345 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32346 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32347 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32348 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32349 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32350 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32351 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32352 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32353 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32354 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32355 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32356 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32357 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32358 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32359 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32360 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32361 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32362 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32363 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32364 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32365 "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32366 "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32367 "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32368 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32369 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32370 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32371 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32372 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32373 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32374 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32375 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32376 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32377 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32378 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32379 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32380 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32381 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32382 "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32383 "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32384 "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32385 "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32386 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32387 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32389 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32394 # If the user did not use the arguments to specify the items to instantiate,
32395 # then the envvar interface is used. Set only those that are not.
32396 # We use the long form for the default assignment because of an extremely
32397 # bizarre bug on SunOS 4.1.3.
32398 if $ac_need_defaults; then
32399 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32400 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32401 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32404 # Have a temporary directory for convenience. Make it in the build tree
32405 # simply because there is no reason against having it here, and in addition,
32406 # creating and moving files from /tmp can sometimes cause problems.
32407 # Hook for its removal unless debugging.
32408 # Note that there is a small window in which the directory will not be cleaned:
32409 # after its creation but before its name has been assigned to `$tmp'.
32413 trap 'exit_status=$?
32414 : "${ac_tmp:=$tmp}"
32415 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32417 trap 'as_fn_exit 1' 1 2 13 15
32419 # Create a (secure) tmp directory for tmp files.
32422 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32426 tmp=./conf$$-$RANDOM
32427 (umask 077 && mkdir "$tmp")
32428 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32431 # Set up the scripts for CONFIG_FILES section.
32432 # No need to generate them if there are no CONFIG_FILES.
32433 # This happens for instance with `./config.status config.h'.
32434 if test -n "$CONFIG_FILES"; then
32436 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32437 ac_cs_awk_getline=:
32438 ac_cs_awk_pipe_init=
32439 ac_cs_awk_read_file='
32440 while ((getline aline < (F[key])) > 0)
32443 ac_cs_awk_pipe_fini=
32445 ac_cs_awk_getline=false
32446 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32447 ac_cs_awk_read_file='
32449 print "cat " F[key] " &&"
32450 '$ac_cs_awk_pipe_init
32451 # The final `:' finishes the AND list.
32452 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32454 ac_cr=`echo X | tr X '\015'`
32455 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32456 # But we know of no other shell where ac_cr would be empty at this
32457 # point, so we can use a bashism as a fallback.
32458 if test "x$ac_cr" = x; then
32459 eval ac_cr=\$\'\\r\'
32461 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32462 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32465 ac_cs_awk_cr=$ac_cr
32468 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32471 # Create commands to substitute file output variables.
32473 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32474 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32475 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32478 } >conf$$files.sh &&
32479 . ./conf$$files.sh ||
32480 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32481 rm -f conf$$files.sh
32484 echo "cat >conf$$subs.awk <<_ACEOF" &&
32485 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32487 } >conf$$subs.sh ||
32488 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32489 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32491 for ac_last_try in false false false false false :; do
32492 . ./conf$$subs.sh ||
32493 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32495 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32496 if test $ac_delim_n = $ac_delim_num; then
32498 elif $ac_last_try; then
32499 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32501 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32504 rm -f conf$$subs.sh
32506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32507 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32511 s/^/S["/; s/!.*/"]=/
32521 s/\(.\{148\}\)..*/\1/
32523 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32528 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32535 s/\(.\{148\}\)..*/\1/
32537 s/["\\]/\\&/g; s/^/"/; s/$/"/
32541 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32546 ' <conf$$subs.awk | sed '
32551 ' >>$CONFIG_STATUS || ac_write_fail=1
32552 rm -f conf$$subs.awk
32553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32555 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32556 for (key in S) S_is_set[key] = 1
32558 \$ac_cs_awk_pipe_init
32562 nfields = split(line, field, "@")
32564 len = length(field[1])
32565 for (i = 2; i < nfields; i++) {
32567 keylen = length(key)
32568 if (S_is_set[key]) {
32570 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32571 len += length(value) + length(field[++i])
32576 if (nfields == 3 && !substed) {
32578 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32579 \$ac_cs_awk_read_file
32585 \$ac_cs_awk_pipe_fini
32588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32589 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32590 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32593 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32594 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32597 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32598 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32599 # trailing colons and then remove the whole line if VPATH becomes empty
32600 # (actually we leave an empty line to preserve line numbers).
32601 if test "x$srcdir" = x.; then
32602 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32621 fi # test -n "$CONFIG_FILES"
32623 # Set up the scripts for CONFIG_HEADERS section.
32624 # No need to generate them if there are no CONFIG_HEADERS.
32625 # This happens for instance with `./config.status Makefile'.
32626 if test -n "$CONFIG_HEADERS"; then
32627 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32631 # Transform confdefs.h into an awk script `defines.awk', embedded as
32632 # here-document in config.status, that substitutes the proper values into
32633 # config.h.in to produce config.h.
32635 # Create a delimiter string that does not exist in confdefs.h, to ease
32636 # handling of long lines.
32638 for ac_last_try in false false :; do
32639 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32640 if test -z "$ac_tt"; then
32642 elif $ac_last_try; then
32643 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32645 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32649 # For the awk script, D is an array of macro values keyed by name,
32650 # likewise P contains macro parameters if any. Preserve backslash
32651 # newline sequences.
32653 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32655 s/.\{148\}/&'"$ac_delim"'/g
32658 s/^[ ]*#[ ]*define[ ][ ]*/ /
32665 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32667 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32671 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32672 D["\1"]=" \3\\\\\\n"\\/p
32674 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32679 s/.\{148\}/&'"$ac_delim"'/g
32684 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32687 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32689 ' <confdefs.h | sed '
32690 s/'"$ac_delim"'/"\\\
32691 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32694 for (key in D) D_is_set[key] = 1
32697 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32699 split(line, arg, " ")
32700 if (arg[1] == "#") {
32704 defundef = substr(arg[1], 2)
32707 split(mac1, mac2, "(") #)
32709 prefix = substr(line, 1, index(line, defundef) - 1)
32710 if (D_is_set[macro]) {
32711 # Preserve the white space surrounding the "#".
32712 print prefix "define", macro P[macro] D[macro]
32715 # Replace #undef with comments. This is necessary, for example,
32716 # in the case of _POSIX_SOURCE, which is predefined and required
32717 # on some systems where configure will not decide to define it.
32718 if (defundef == "undef") {
32719 print "/*", prefix defundef, macro, "*/"
32727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32728 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32729 fi # test -n "$CONFIG_HEADERS"
32732 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32737 :[FHLC]) ac_mode=$ac_tag; continue;;
32739 case $ac_mode$ac_tag in
32741 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32742 :[FH]-) ac_tag=-:-;;
32743 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32760 -) ac_f="$ac_tmp/stdin";;
32761 *) # Look for the file first in the build tree, then in the source tree
32762 # (if the path is not absolute). The absolute path cannot be DOS-style,
32763 # because $ac_f cannot contain `:'.
32767 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32769 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32771 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32772 as_fn_append ac_file_inputs " '$ac_f'"
32775 # Let's still pretend it is `configure' which instantiates (i.e., don't
32776 # use $as_me), people would be surprised to read:
32777 # /* config.h. Generated by config.status. */
32778 configure_input='Generated from '`
32779 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32781 if test x"$ac_file" != x-; then
32782 configure_input="$ac_file. $configure_input"
32783 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32784 $as_echo "$as_me: creating $ac_file" >&6;}
32786 # Neutralize special characters interpreted by sed in replacement strings.
32787 case $configure_input in #(
32788 *\&* | *\|* | *\\* )
32789 ac_sed_conf_input=`$as_echo "$configure_input" |
32790 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32791 *) ac_sed_conf_input=$configure_input;;
32795 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32796 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32801 ac_dir=`$as_dirname -- "$ac_file" ||
32802 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32803 X"$ac_file" : 'X\(//\)[^/]' \| \
32804 X"$ac_file" : 'X\(//\)$' \| \
32805 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32806 $as_echo X"$ac_file" |
32807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32811 /^X\(\/\/\)[^/].*/{
32824 as_dir="$ac_dir"; as_fn_mkdir_p
32828 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32830 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32831 # A ".." for each directory in $ac_dir_suffix.
32832 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32833 case $ac_top_builddir_sub in
32834 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32835 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32838 ac_abs_top_builddir=$ac_pwd
32839 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32840 # for backward compatibility:
32841 ac_top_builddir=$ac_top_build_prefix
32844 .) # We are building in place.
32846 ac_top_srcdir=$ac_top_builddir_sub
32847 ac_abs_top_srcdir=$ac_pwd ;;
32848 [\\/]* | ?:[\\/]* ) # Absolute name.
32849 ac_srcdir=$srcdir$ac_dir_suffix;
32850 ac_top_srcdir=$srcdir
32851 ac_abs_top_srcdir=$srcdir ;;
32852 *) # Relative name.
32853 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32854 ac_top_srcdir=$ac_top_build_prefix$srcdir
32855 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32857 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32867 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32868 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32873 # If the template does not know about datarootdir, expand it.
32874 # FIXME: This hack should be removed a few years after 2.60.
32875 ac_datarootdir_hack=; ac_datarootdir_seen=
32886 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32887 *datarootdir*) ac_datarootdir_seen=yes;;
32888 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32890 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32893 ac_datarootdir_hack='
32894 s&@datadir@&$datadir&g
32895 s&@docdir@&$docdir&g
32896 s&@infodir@&$infodir&g
32897 s&@localedir@&$localedir&g
32898 s&@mandir@&$mandir&g
32899 s&\\\${datarootdir}&$datarootdir&g' ;;
32903 # Neutralize VPATH when `$srcdir' = `.'.
32904 # Shell code in configure.ac might set extrasub.
32905 # FIXME: do we really want to maintain this feature?
32906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32907 ac_sed_extra="$ac_vpsub
32910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32912 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32913 s|@configure_input@|$ac_sed_conf_input|;t t
32914 s&@top_builddir@&$ac_top_builddir_sub&;t t
32915 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32916 s&@srcdir@&$ac_srcdir&;t t
32917 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32918 s&@top_srcdir@&$ac_top_srcdir&;t t
32919 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32920 s&@builddir@&$ac_builddir&;t t
32921 s&@abs_builddir@&$ac_abs_builddir&;t t
32922 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32923 s&@INSTALL@&$ac_INSTALL&;t t
32924 $ac_datarootdir_hack
32926 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32927 if $ac_cs_awk_getline; then
32928 $AWK -f "$ac_tmp/subs.awk"
32930 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32932 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32934 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32935 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32936 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32937 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32939 which seems to be undefined. Please make sure it is defined" >&5
32940 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32941 which seems to be undefined. Please make sure it is defined" >&2;}
32943 rm -f "$ac_tmp/stdin"
32945 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32946 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32954 if test x"$ac_file" != x-; then
32956 $as_echo "/* $configure_input */" \
32957 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32958 } >"$ac_tmp/config.h" \
32959 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32960 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32961 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32962 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32965 mv "$ac_tmp/config.h" "$ac_file" \
32966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32969 $as_echo "/* $configure_input */" \
32970 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32971 || as_fn_error $? "could not create -" "$LINENO" 5
32975 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32976 $as_echo "$as_me: executing $ac_file commands" >&6;}
32981 case $ac_file$ac_mode in
32984 # See if we are running on zsh, and set the options which allow our
32985 # commands through without removal of \ escapes.
32986 if test -n "${ZSH_VERSION+set}" ; then
32987 setopt NO_GLOB_SUBST
32990 cfgfile="${ofile}T"
32991 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32994 cat <<_LT_EOF >> "$cfgfile"
32997 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32998 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32999 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33000 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33002 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33003 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
33005 # Written by Gordon Matzigkeit, 1996
33007 # This file is part of GNU Libtool.
33009 # GNU Libtool is free software; you can redistribute it and/or
33010 # modify it under the terms of the GNU General Public License as
33011 # published by the Free Software Foundation; either version 2 of
33012 # the License, or (at your option) any later version.
33014 # As a special exception to the GNU General Public License,
33015 # if you distribute this file as part of a program or library that
33016 # is built using GNU Libtool, you may include this file under the
33017 # same distribution terms that you use for the rest of that program.
33019 # GNU Libtool is distributed in the hope that it will be useful,
33020 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33021 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33022 # GNU General Public License for more details.
33024 # You should have received a copy of the GNU General Public License
33025 # along with GNU Libtool; see the file COPYING. If not, a copy
33026 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33027 # obtained by writing to the Free Software Foundation, Inc.,
33028 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33031 # The names of the tagged configurations supported by this script.
33032 available_tags="CXX "
33034 # ### BEGIN LIBTOOL CONFIG
33036 # Which release of libtool.m4 was used?
33037 macro_version=$macro_version
33038 macro_revision=$macro_revision
33040 # Whether or not to build shared libraries.
33041 build_libtool_libs=$enable_shared
33043 # Whether or not to build static libraries.
33044 build_old_libs=$enable_static
33046 # What type of objects to build.
33049 # Whether or not to optimize for fast installation.
33050 fast_install=$enable_fast_install
33052 # Shell to use when invoking shell scripts.
33055 # An echo program that protects backslashes.
33058 # The PATH separator for the build system.
33059 PATH_SEPARATOR=$lt_PATH_SEPARATOR
33062 host_alias=$host_alias
33066 # The build system.
33067 build_alias=$build_alias
33071 # A sed program that does not truncate output.
33074 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33075 Xsed="\$SED -e 1s/^X//"
33077 # A grep program that handles long lines.
33083 # A literal string matcher.
33086 # A BSD- or MS-compatible name lister.
33089 # Whether we need soft or hard links.
33092 # What is the maximum length of a command?
33093 max_cmd_len=$max_cmd_len
33095 # Object file suffix (normally "o").
33098 # Executable file suffix (normally "").
33101 # whether the shell understands "unset".
33104 # turn spaces into newlines.
33107 # turn newlines into spaces.
33110 # convert \$build file names to \$host format.
33111 to_host_file_cmd=$lt_cv_to_host_file_cmd
33113 # convert \$build files to toolchain format.
33114 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33116 # An object symbol dumper.
33117 OBJDUMP=$lt_OBJDUMP
33119 # Method to check whether dependent libraries are shared objects.
33120 deplibs_check_method=$lt_deplibs_check_method
33122 # Command to use when deplibs_check_method = "file_magic".
33123 file_magic_cmd=$lt_file_magic_cmd
33125 # How to find potential files when deplibs_check_method = "file_magic".
33126 file_magic_glob=$lt_file_magic_glob
33128 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33129 want_nocaseglob=$lt_want_nocaseglob
33131 # DLL creation program.
33132 DLLTOOL=$lt_DLLTOOL
33134 # Command to associate shared and link libraries.
33135 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33140 # Flags to create an archive.
33141 AR_FLAGS=$lt_AR_FLAGS
33143 # How to feed a file listing to the archiver.
33144 archiver_list_spec=$lt_archiver_list_spec
33146 # A symbol stripping program.
33149 # Commands used to install an old-style archive.
33151 old_postinstall_cmds=$lt_old_postinstall_cmds
33152 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33154 # Whether to use a lock for old archive extraction.
33155 lock_old_archive_extraction=$lock_old_archive_extraction
33160 # LTCC compiler flags.
33161 LTCFLAGS=$lt_CFLAGS
33163 # Take the output of nm and produce a listing of raw symbols and C names.
33164 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33166 # Transform the output of nm in a proper C declaration.
33167 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33169 # Transform the output of nm in a C name address pair.
33170 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33172 # Transform the output of nm in a C name address pair when lib prefix is needed.
33173 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33175 # Specify filename containing input files for \$NM.
33176 nm_file_list_spec=$lt_nm_file_list_spec
33178 # The root where to search for dependent libraries,and in which our libraries should be installed.
33179 lt_sysroot=$lt_sysroot
33181 # The name of the directory that contains temporary libtool files.
33184 # Used to examine libraries when file_magic_cmd begins with "file".
33185 MAGIC_CMD=$MAGIC_CMD
33187 # Must we lock files when doing compilation?
33188 need_locks=$lt_need_locks
33191 MANIFEST_TOOL=$lt_MANIFEST_TOOL
33193 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33194 DSYMUTIL=$lt_DSYMUTIL
33196 # Tool to change global to local symbols on Mac OS X.
33199 # Tool to manipulate fat objects and archives on Mac OS X.
33202 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33205 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33206 OTOOL64=$lt_OTOOL64
33208 # Old archive suffix (normally "a").
33211 # Shared library suffix (normally ".so").
33212 shrext_cmds=$lt_shrext_cmds
33214 # The commands to extract the exported symbol list from a shared archive.
33215 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33217 # Variables whose values should be saved in libtool wrapper scripts and
33218 # restored at link time.
33219 variables_saved_for_relink=$lt_variables_saved_for_relink
33221 # Do we need the "lib" prefix for modules?
33222 need_lib_prefix=$need_lib_prefix
33224 # Do we need a version for libraries?
33225 need_version=$need_version
33227 # Library versioning type.
33228 version_type=$version_type
33230 # Shared library runtime path variable.
33231 runpath_var=$runpath_var
33233 # Shared library path variable.
33234 shlibpath_var=$shlibpath_var
33236 # Is shlibpath searched before the hard-coded library search path?
33237 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33239 # Format of library name prefix.
33240 libname_spec=$lt_libname_spec
33242 # List of archive names. First name is the real one, the rest are links.
33243 # The last name is the one that the linker finds with -lNAME
33244 library_names_spec=$lt_library_names_spec
33246 # The coded name of the library, if different from the real name.
33247 soname_spec=$lt_soname_spec
33249 # Permission mode override for installation of shared libraries.
33250 install_override_mode=$lt_install_override_mode
33252 # Command to use after installation of a shared archive.
33253 postinstall_cmds=$lt_postinstall_cmds
33255 # Command to use after uninstallation of a shared archive.
33256 postuninstall_cmds=$lt_postuninstall_cmds
33258 # Commands used to finish a libtool library installation in a directory.
33259 finish_cmds=$lt_finish_cmds
33261 # As "finish_cmds", except a single script fragment to be evaled but
33263 finish_eval=$lt_finish_eval
33265 # Whether we should hardcode library paths into libraries.
33266 hardcode_into_libs=$hardcode_into_libs
33268 # Compile-time system search path for libraries.
33269 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33271 # Run-time system search path for libraries.
33272 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33274 # Whether dlopen is supported.
33275 dlopen_support=$enable_dlopen
33277 # Whether dlopen of programs is supported.
33278 dlopen_self=$enable_dlopen_self
33280 # Whether dlopen of statically linked programs is supported.
33281 dlopen_self_static=$enable_dlopen_self_static
33283 # Commands to strip libraries.
33284 old_striplib=$lt_old_striplib
33285 striplib=$lt_striplib
33288 # The linker used to build libraries.
33291 # How to create reloadable object files.
33292 reload_flag=$lt_reload_flag
33293 reload_cmds=$lt_reload_cmds
33295 # Commands used to build an old-style archive.
33296 old_archive_cmds=$lt_old_archive_cmds
33298 # A language specific compiler.
33301 # Is the compiler the GNU compiler?
33304 # Compiler flag to turn off builtin functions.
33305 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33307 # Additional compiler flags for building library objects.
33308 pic_flag=$lt_lt_prog_compiler_pic
33310 # How to pass a linker flag through the compiler.
33311 wl=$lt_lt_prog_compiler_wl
33313 # Compiler flag to prevent dynamic linking.
33314 link_static_flag=$lt_lt_prog_compiler_static
33316 # Does compiler simultaneously support -c and -o options?
33317 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33319 # Whether or not to add -lc for building shared libraries.
33320 build_libtool_need_lc=$archive_cmds_need_lc
33322 # Whether or not to disallow shared libs when runtime libs are static.
33323 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33325 # Compiler flag to allow reflexive dlopens.
33326 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33328 # Compiler flag to generate shared objects directly from archives.
33329 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33331 # Whether the compiler copes with passing no objects directly.
33332 compiler_needs_object=$lt_compiler_needs_object
33334 # Create an old-style archive from a shared archive.
33335 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33337 # Create a temporary old-style archive to link instead of a shared archive.
33338 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33340 # Commands used to build a shared archive.
33341 archive_cmds=$lt_archive_cmds
33342 archive_expsym_cmds=$lt_archive_expsym_cmds
33344 # Commands used to build a loadable module if different from building
33345 # a shared archive.
33346 module_cmds=$lt_module_cmds
33347 module_expsym_cmds=$lt_module_expsym_cmds
33349 # Whether we are building with GNU ld or not.
33350 with_gnu_ld=$lt_with_gnu_ld
33352 # Flag that allows shared libraries with undefined symbols to be built.
33353 allow_undefined_flag=$lt_allow_undefined_flag
33355 # Flag that enforces no undefined symbols.
33356 no_undefined_flag=$lt_no_undefined_flag
33358 # Flag to hardcode \$libdir into a binary during linking.
33359 # This must work even if \$libdir does not exist
33360 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33362 # Whether we need a single "-rpath" flag with a separated argument.
33363 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33365 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33366 # DIR into the resulting binary.
33367 hardcode_direct=$hardcode_direct
33369 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33370 # DIR into the resulting binary and the resulting library dependency is
33371 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33372 # library is relocated.
33373 hardcode_direct_absolute=$hardcode_direct_absolute
33375 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33376 # into the resulting binary.
33377 hardcode_minus_L=$hardcode_minus_L
33379 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33380 # into the resulting binary.
33381 hardcode_shlibpath_var=$hardcode_shlibpath_var
33383 # Set to "yes" if building a shared library automatically hardcodes DIR
33384 # into the library and all subsequent libraries and executables linked
33386 hardcode_automatic=$hardcode_automatic
33388 # Set to yes if linker adds runtime paths of dependent libraries
33389 # to runtime path list.
33390 inherit_rpath=$inherit_rpath
33392 # Whether libtool must link a program against all its dependency libraries.
33393 link_all_deplibs=$link_all_deplibs
33395 # Set to "yes" if exported symbols are required.
33396 always_export_symbols=$always_export_symbols
33398 # The commands to list exported symbols.
33399 export_symbols_cmds=$lt_export_symbols_cmds
33401 # Symbols that should not be listed in the preloaded symbols.
33402 exclude_expsyms=$lt_exclude_expsyms
33404 # Symbols that must always be exported.
33405 include_expsyms=$lt_include_expsyms
33407 # Commands necessary for linking programs (against libraries) with templates.
33408 prelink_cmds=$lt_prelink_cmds
33410 # Commands necessary for finishing linking programs.
33411 postlink_cmds=$lt_postlink_cmds
33413 # Specify filename containing input files.
33414 file_list_spec=$lt_file_list_spec
33416 # How to hardcode a shared library path into an executable.
33417 hardcode_action=$hardcode_action
33419 # The directories searched by this compiler when creating a shared library.
33420 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33422 # Dependencies to place before and after the objects being linked to
33423 # create a shared library.
33424 predep_objects=$lt_predep_objects
33425 postdep_objects=$lt_postdep_objects
33426 predeps=$lt_predeps
33427 postdeps=$lt_postdeps
33429 # The library search path used internally by the compiler when linking
33430 # a shared library.
33431 compiler_lib_search_path=$lt_compiler_lib_search_path
33433 # ### END LIBTOOL CONFIG
33439 cat <<\_LT_EOF >> "$cfgfile"
33440 # AIX sometimes has problems with the GCC collect2 program. For some
33441 # reason, if we set the COLLECT_NAMES environment variable, the problems
33442 # vanish in a puff of smoke.
33443 if test "X${COLLECT_NAMES+set}" != Xset; then
33445 export COLLECT_NAMES
33452 ltmain="$ac_aux_dir/ltmain.sh"
33455 # We use sed instead of cat because bash on DJGPP gets confused if
33456 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33457 # text mode, it properly converts lines to CR/LF. This bash problem
33458 # is reportedly fixed, but why not run on old versions too?
33459 sed '$q' "$ltmain" >> "$cfgfile" \
33460 || (rm -f "$cfgfile"; exit 1)
33462 if test x"$xsi_shell" = xyes; then
33463 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33467 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33468 \ * ) func_dirname_result="${3}" ;;\
33470 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33471 && mv -f "$cfgfile.tmp" "$cfgfile" \
33472 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33473 test 0 -eq $? || _lt_function_replace_fail=:
33476 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33479 \ func_basename_result="${1##*/}"\
33480 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33481 && mv -f "$cfgfile.tmp" "$cfgfile" \
33482 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33483 test 0 -eq $? || _lt_function_replace_fail=:
33486 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33487 func_dirname_and_basename ()\
33490 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33491 \ * ) func_dirname_result="${3}" ;;\
33493 \ func_basename_result="${1##*/}"\
33494 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33495 && mv -f "$cfgfile.tmp" "$cfgfile" \
33496 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33497 test 0 -eq $? || _lt_function_replace_fail=:
33500 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33503 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33504 \ # positional parameters, so assign one to ordinary parameter first.\
33505 \ func_stripname_result=${3}\
33506 \ func_stripname_result=${func_stripname_result#"${1}"}\
33507 \ func_stripname_result=${func_stripname_result%"${2}"}\
33508 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33509 && mv -f "$cfgfile.tmp" "$cfgfile" \
33510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33511 test 0 -eq $? || _lt_function_replace_fail=:
33514 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33515 func_split_long_opt ()\
33517 \ func_split_long_opt_name=${1%%=*}\
33518 \ func_split_long_opt_arg=${1#*=}\
33519 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33520 && mv -f "$cfgfile.tmp" "$cfgfile" \
33521 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33522 test 0 -eq $? || _lt_function_replace_fail=:
33525 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33526 func_split_short_opt ()\
33528 \ func_split_short_opt_arg=${1#??}\
33529 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33530 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33531 && mv -f "$cfgfile.tmp" "$cfgfile" \
33532 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33533 test 0 -eq $? || _lt_function_replace_fail=:
33536 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33540 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33541 \ *) func_lo2o_result=${1} ;;\
33543 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33544 && mv -f "$cfgfile.tmp" "$cfgfile" \
33545 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33546 test 0 -eq $? || _lt_function_replace_fail=:
33549 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33552 func_xform_result=${1%.*}.lo\
33553 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33554 && mv -f "$cfgfile.tmp" "$cfgfile" \
33555 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33556 test 0 -eq $? || _lt_function_replace_fail=:
33559 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33562 func_arith_result=$(( $* ))\
33563 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33564 && mv -f "$cfgfile.tmp" "$cfgfile" \
33565 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33566 test 0 -eq $? || _lt_function_replace_fail=:
33569 sed -e '/^func_len ()$/,/^} # func_len /c\
33572 func_len_result=${#1}\
33573 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33574 && mv -f "$cfgfile.tmp" "$cfgfile" \
33575 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33576 test 0 -eq $? || _lt_function_replace_fail=:
33580 if test x"$lt_shell_append" = xyes; then
33581 sed -e '/^func_append ()$/,/^} # func_append /c\
33584 eval "${1}+=\\${2}"\
33585 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33586 && mv -f "$cfgfile.tmp" "$cfgfile" \
33587 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33588 test 0 -eq $? || _lt_function_replace_fail=:
33591 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33592 func_append_quoted ()\
33594 \ func_quote_for_eval "${2}"\
33595 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33596 } # Extended-shell func_append_quoted implementation' "$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=:
33602 # Save a `func_append' function call where possible by direct use of '+='
33603 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33604 && mv -f "$cfgfile.tmp" "$cfgfile" \
33605 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33606 test 0 -eq $? || _lt_function_replace_fail=:
33608 # Save a `func_append' function call even when '+=' is not available
33609 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33610 && mv -f "$cfgfile.tmp" "$cfgfile" \
33611 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33612 test 0 -eq $? || _lt_function_replace_fail=:
33615 if test x"$_lt_function_replace_fail" = x":"; then
33616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33617 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33621 mv -f "$cfgfile" "$ofile" ||
33622 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33626 cat <<_LT_EOF >> "$ofile"
33628 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33630 # The linker used to build libraries.
33633 # How to create reloadable object files.
33634 reload_flag=$lt_reload_flag_CXX
33635 reload_cmds=$lt_reload_cmds_CXX
33637 # Commands used to build an old-style archive.
33638 old_archive_cmds=$lt_old_archive_cmds_CXX
33640 # A language specific compiler.
33641 CC=$lt_compiler_CXX
33643 # Is the compiler the GNU compiler?
33646 # Compiler flag to turn off builtin functions.
33647 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33649 # Additional compiler flags for building library objects.
33650 pic_flag=$lt_lt_prog_compiler_pic_CXX
33652 # How to pass a linker flag through the compiler.
33653 wl=$lt_lt_prog_compiler_wl_CXX
33655 # Compiler flag to prevent dynamic linking.
33656 link_static_flag=$lt_lt_prog_compiler_static_CXX
33658 # Does compiler simultaneously support -c and -o options?
33659 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33661 # Whether or not to add -lc for building shared libraries.
33662 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33664 # Whether or not to disallow shared libs when runtime libs are static.
33665 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33667 # Compiler flag to allow reflexive dlopens.
33668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33670 # Compiler flag to generate shared objects directly from archives.
33671 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33673 # Whether the compiler copes with passing no objects directly.
33674 compiler_needs_object=$lt_compiler_needs_object_CXX
33676 # Create an old-style archive from a shared archive.
33677 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33679 # Create a temporary old-style archive to link instead of a shared archive.
33680 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33682 # Commands used to build a shared archive.
33683 archive_cmds=$lt_archive_cmds_CXX
33684 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33686 # Commands used to build a loadable module if different from building
33687 # a shared archive.
33688 module_cmds=$lt_module_cmds_CXX
33689 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33691 # Whether we are building with GNU ld or not.
33692 with_gnu_ld=$lt_with_gnu_ld_CXX
33694 # Flag that allows shared libraries with undefined symbols to be built.
33695 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33697 # Flag that enforces no undefined symbols.
33698 no_undefined_flag=$lt_no_undefined_flag_CXX
33700 # Flag to hardcode \$libdir into a binary during linking.
33701 # This must work even if \$libdir does not exist
33702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33704 # Whether we need a single "-rpath" flag with a separated argument.
33705 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33707 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33708 # DIR into the resulting binary.
33709 hardcode_direct=$hardcode_direct_CXX
33711 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33712 # DIR into the resulting binary and the resulting library dependency is
33713 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33714 # library is relocated.
33715 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33717 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33718 # into the resulting binary.
33719 hardcode_minus_L=$hardcode_minus_L_CXX
33721 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33722 # into the resulting binary.
33723 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33725 # Set to "yes" if building a shared library automatically hardcodes DIR
33726 # into the library and all subsequent libraries and executables linked
33728 hardcode_automatic=$hardcode_automatic_CXX
33730 # Set to yes if linker adds runtime paths of dependent libraries
33731 # to runtime path list.
33732 inherit_rpath=$inherit_rpath_CXX
33734 # Whether libtool must link a program against all its dependency libraries.
33735 link_all_deplibs=$link_all_deplibs_CXX
33737 # Set to "yes" if exported symbols are required.
33738 always_export_symbols=$always_export_symbols_CXX
33740 # The commands to list exported symbols.
33741 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33743 # Symbols that should not be listed in the preloaded symbols.
33744 exclude_expsyms=$lt_exclude_expsyms_CXX
33746 # Symbols that must always be exported.
33747 include_expsyms=$lt_include_expsyms_CXX
33749 # Commands necessary for linking programs (against libraries) with templates.
33750 prelink_cmds=$lt_prelink_cmds_CXX
33752 # Commands necessary for finishing linking programs.
33753 postlink_cmds=$lt_postlink_cmds_CXX
33755 # Specify filename containing input files.
33756 file_list_spec=$lt_file_list_spec_CXX
33758 # How to hardcode a shared library path into an executable.
33759 hardcode_action=$hardcode_action_CXX
33761 # The directories searched by this compiler when creating a shared library.
33762 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33764 # Dependencies to place before and after the objects being linked to
33765 # create a shared library.
33766 predep_objects=$lt_predep_objects_CXX
33767 postdep_objects=$lt_postdep_objects_CXX
33768 predeps=$lt_predeps_CXX
33769 postdeps=$lt_postdeps_CXX
33771 # The library search path used internally by the compiler when linking
33772 # a shared library.
33773 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33775 # ### END LIBTOOL TAG CONFIG: CXX
33780 for ac_file in $CONFIG_FILES; do
33781 # Support "outfile[:infile[:infile...]]"
33783 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33785 # PO directories have a Makefile.in generated from Makefile.in.in.
33786 case "$ac_file" in */Makefile.in)
33787 # Adjust a relative srcdir.
33788 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33789 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33790 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33791 # In autoconf-2.13 it is called $ac_given_srcdir.
33792 # In autoconf-2.50 it is called $srcdir.
33793 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33794 case "$ac_given_srcdir" in
33795 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33796 /*) top_srcdir="$ac_given_srcdir" ;;
33797 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33799 # Treat a directory as a PO directory if and only if it has a
33800 # POTFILES.in file. This allows packages to have multiple PO
33801 # directories under different names or in different locations.
33802 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33803 rm -f "$ac_dir/POTFILES"
33804 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33805 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33806 POMAKEFILEDEPS="POTFILES.in"
33807 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33808 # on $ac_dir but don't depend on user-specified configuration
33810 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33811 # The LINGUAS file contains the set of available languages.
33812 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33813 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33815 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33816 # Hide the ALL_LINGUAS assigment from automake.
33817 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33818 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33820 # The set of available languages was given in configure.in.
33821 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33824 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33825 # Compute UPDATEPOFILES
33826 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33827 # Compute DUMMYPOFILES
33828 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33830 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33831 case "$ac_given_srcdir" in
33833 *) srcdirpre='$(srcdir)/' ;;
33839 for lang in $ALL_LINGUAS; do
33840 POFILES="$POFILES $srcdirpre$lang.po"
33841 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33842 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33843 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33845 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33846 # environment variable.
33848 if test -n "$ALL_LINGUAS"; then
33849 for presentlang in $ALL_LINGUAS; do
33851 if test "%UNSET%" != "$LINGUAS"; then
33852 desiredlanguages="$LINGUAS"
33854 desiredlanguages="$ALL_LINGUAS"
33856 for desiredlang in $desiredlanguages; do
33857 # Use the presentlang catalog if desiredlang is
33858 # a. equal to presentlang, or
33859 # b. a variant of presentlang (because in this case,
33860 # presentlang can be used as a fallback for messages
33861 # which are not translated in the desiredlang catalog).
33862 case "$desiredlang" in
33863 "$presentlang"*) useit=yes;;
33866 if test $useit = yes; then
33867 INST_LINGUAS="$INST_LINGUAS $presentlang"
33872 if test -n "$INST_LINGUAS"; then
33873 for lang in $INST_LINGUAS; do
33874 CATALOGS="$CATALOGS $lang.gmo"
33877 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33878 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"
33879 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33880 if test -f "$f"; then
33882 *.orig | *.bak | *~) ;;
33883 *) cat "$f" >> "$ac_dir/Makefile" ;;
33900 ac_clean_files=$ac_clean_files_save
33902 test $ac_write_fail = 0 ||
33903 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33906 # configure is writing to config.log, and then calls config.status.
33907 # config.status does its own redirection, appending to config.log.
33908 # Unfortunately, on DOS this fails, as config.log is still kept open
33909 # by configure, so config.status won't be able to write to it; its
33910 # output is simply discarded. So we exec the FD to /dev/null,
33911 # effectively closing config.log, so it can be properly (re)opened and
33912 # appended to by config.status. When coming back to configure, we
33913 # need to make the FD available again.
33914 if test "$no_create" != yes; then
33916 ac_config_status_args=
33917 test "$silent" = yes &&
33918 ac_config_status_args="$ac_config_status_args --quiet"
33920 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33922 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33923 # would make configure fail if this is the last instruction.
33924 $ac_cs_success || as_fn_exit 1
33926 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33928 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33932 if test "${support_bat}" = "yes" ; then
33933 if test "x$QMAKE" = "xnone"; then
33934 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33938 echo "Creating bat Makefile"
33944 ${MAKE:-make} clean
33948 if test X"$GCC" = "Xyes" ; then
33949 echo "Doing make of dependencies"
33950 ${MAKE:-make} depend
33954 chmod 755 install_conf_file build-depkgs-qt-console
33958 chmod 755 bacula btraceback mtx-changer
33959 chmod 755 dvd-handler dvd-simulator
33960 chmod 755 bconsole disk-changer devel_bacula logrotate
33964 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33965 chmod 755 $c/update_postgresql_tables_10_to_11
33966 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33967 chmod 755 $c/update_postgresql_tables_11_to_12
33972 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33973 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33975 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33976 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33978 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33979 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33981 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33982 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33984 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33985 chmod 755 $c/sqlite
33988 chmod 755 $c/install-default-backend
33990 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33991 largefile_support="yes"
33994 if test X"$GCC" = "Xyes" ; then
33995 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33996 if test "x${CCVERSION}" = "x" ; then
33997 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33999 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
34000 if test x"${CXXVERSION}" = x ; then
34001 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
34005 # clean up any old junk
34009 ${MAKE:-make} clean
34012 Configuration on `date`:
34014 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
34015 Bacula version: ${BACULA} ${VERSION} (${DATE})
34016 Source code location: ${srcdir}
34017 Install binaries: ${sbindir}
34018 Install libraries: ${libdir}
34019 Install config files: ${sysconfdir}
34020 Scripts directory: ${scriptdir}
34021 Archive directory: ${archivedir}
34022 Working directory: ${working_dir}
34023 PID directory: ${piddir}
34024 Subsys directory: ${subsysdir}
34025 Man directory: ${mandir}
34026 Data directory: ${datarootdir}
34027 Plugin directory: ${plugindir}
34028 C Compiler: ${CC} ${CCVERSION}
34029 C++ Compiler: ${CXX} ${CXXVERSION}
34030 Compiler flags: ${WCFLAGS} ${CFLAGS}
34031 Linker flags: ${WLDFLAGS} ${LDFLAGS}
34033 Statically Linked Tools: ${support_static_tools}
34034 Statically Linked FD: ${support_static_fd}
34035 Statically Linked SD: ${support_static_sd}
34036 Statically Linked DIR: ${support_static_dir}
34037 Statically Linked CONS: ${support_static_cons}
34038 Database backends: ${db_backends}
34039 Database port: ${db_port}
34040 Database name: ${db_name}
34041 Database user: ${db_user}
34042 Database SSL options: ${db_ssl_options}
34044 Job Output Email: ${job_email}
34045 Traceback Email: ${dump_email}
34046 SMTP Host Address: ${smtp_host}
34048 Director Port: ${dir_port}
34049 File daemon Port: ${fd_port}
34050 Storage daemon Port: ${sd_port}
34052 Director User: ${dir_user}
34053 Director Group: ${dir_group}
34054 Storage Daemon User: ${sd_user}
34055 Storage DaemonGroup: ${sd_group}
34056 File Daemon User: ${fd_user}
34057 File Daemon Group: ${fd_group}
34059 Large file support: $largefile_support
34060 Bacula conio support: ${got_conio} ${CONS_LIBS}
34061 readline support: ${got_readline} ${PRTREADLINE_SRC}
34062 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
34063 TLS support: ${support_tls}
34064 Encryption support: ${support_crypto}
34065 ZLIB support: ${have_zlib}
34066 LZO support: ${have_lzo}
34067 enable-smartalloc: ${support_smartalloc}
34068 enable-lockmgr: ${support_lockmgr}
34069 bat support: ${support_bat}
34070 client-only: ${build_client_only}
34071 build-dird: ${build_dird}
34072 build-stored: ${build_stored}
34073 Plugin support: ${have_plugins}
34074 AFS support: ${have_afs}
34075 ACL support: ${have_acl}
34076 XATTR support: ${have_xattr}
34077 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
34078 Batch insert enabled: ${batch_insert_db_backends}
34082 # create a small shell script useful for support with
34083 # configure options and config.out info
34084 cat > scripts/bacula_config << EOF
34087 $ $0 $ac_configure_args
34089 cat config.out >> scripts/bacula_config
34090 echo __EOC__ >> scripts/bacula_config
34091 chmod 755 scripts/bacula_config