2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bacula 7.4.1.
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='7.4.1'
591 PACKAGE_STRING='bacula 7.4.1'
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
663 SHARED_CATALOG_TARGETS
734 INTL_LIBTOOL_SUFFIX_PREFIX
741 BUILD_INCLUDED_LIBINTL
764 HAVE_KFREEBSD_OS_FALSE
765 HAVE_KFREEBSD_OS_TRUE
774 HAVE_OPENBSD_OS_FALSE
778 HAVE_FREEBSD_OS_FALSE
792 INCLUDE_UNINSTALL_TARGET
793 INCLUDE_INSTALL_TARGET
797 LIBTOOL_UNINSTALL_TARGET
798 LIBTOOL_INSTALL_TARGET
799 DEFAULT_SHARED_OBJECT_TYPE
878 LIBBACFIND_LT_RELEASE
879 LIBBACCATS_LT_RELEASE
923 program_transform_name
934 ac_subst_files='MCOMMON'
936 enable_option_checking
950 with_included_gettext
985 with_mon_dir_password
1015 ac_precious_vars='build_alias
1031 # Initialize some variables set by options.
1033 ac_init_version=false
1034 ac_unrecognized_opts=
1035 ac_unrecognized_sep=
1036 # The variables have the same names as the options, with
1037 # dashes changed to underlines.
1038 cache_file=/dev/null
1045 program_transform_name=s,x,x,
1053 # Installation directory options.
1054 # These are left unexpanded so users can "make install exec_prefix=/foo"
1055 # and all the variables that are supposed to be based on exec_prefix
1056 # by default will actually change.
1057 # Use braces instead of parens because sh, perl, etc. also accept them.
1058 # (The list follows the same order as the GNU Coding Standards.)
1059 bindir='${exec_prefix}/bin'
1060 sbindir='${exec_prefix}/sbin'
1061 libexecdir='${exec_prefix}/libexec'
1062 datarootdir='${prefix}/share'
1063 datadir='${datarootdir}'
1064 sysconfdir='${prefix}/etc'
1065 sharedstatedir='${prefix}/com'
1066 localstatedir='${prefix}/var'
1067 includedir='${prefix}/include'
1068 oldincludedir='/usr/include'
1069 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1070 infodir='${datarootdir}/info'
1075 libdir='${exec_prefix}/lib'
1076 localedir='${datarootdir}/locale'
1077 mandir='${datarootdir}/man'
1083 # If the previous option needs an argument, assign it.
1084 if test -n "$ac_prev"; then
1085 eval $ac_prev=\$ac_option
1091 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1096 # Accept the important Cygnus configure options, so we can diagnose typos.
1098 case $ac_dashdash$ac_option in
1102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1105 bindir=$ac_optarg ;;
1107 -build | --build | --buil | --bui | --bu)
1108 ac_prev=build_alias ;;
1109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1110 build_alias=$ac_optarg ;;
1112 -cache-file | --cache-file | --cache-fil | --cache-fi \
1113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1114 ac_prev=cache_file ;;
1115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1117 cache_file=$ac_optarg ;;
1119 --config-cache | -C)
1120 cache_file=config.cache ;;
1122 -datadir | --datadir | --datadi | --datad)
1124 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1125 datadir=$ac_optarg ;;
1127 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1128 | --dataroo | --dataro | --datar)
1129 ac_prev=datarootdir ;;
1130 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1131 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1132 datarootdir=$ac_optarg ;;
1134 -disable-* | --disable-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid feature name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1143 "enable_$ac_useropt"
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1148 eval enable_$ac_useropt=no ;;
1150 -docdir | --docdir | --docdi | --doc | --do)
1152 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1153 docdir=$ac_optarg ;;
1155 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1157 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1158 dvidir=$ac_optarg ;;
1160 -enable-* | --enable-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error $? "invalid feature name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1169 "enable_$ac_useropt"
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1174 eval enable_$ac_useropt=\$ac_optarg ;;
1176 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1177 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1178 | --exec | --exe | --ex)
1179 ac_prev=exec_prefix ;;
1180 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1181 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1182 | --exec=* | --exe=* | --ex=*)
1183 exec_prefix=$ac_optarg ;;
1185 -gas | --gas | --ga | --g)
1186 # Obsolete; use --with-gas.
1189 -help | --help | --hel | --he | -h)
1190 ac_init_help=long ;;
1191 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1192 ac_init_help=recursive ;;
1193 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1194 ac_init_help=short ;;
1196 -host | --host | --hos | --ho)
1197 ac_prev=host_alias ;;
1198 -host=* | --host=* | --hos=* | --ho=*)
1199 host_alias=$ac_optarg ;;
1201 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1203 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1205 htmldir=$ac_optarg ;;
1207 -includedir | --includedir | --includedi | --included | --include \
1208 | --includ | --inclu | --incl | --inc)
1209 ac_prev=includedir ;;
1210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1211 | --includ=* | --inclu=* | --incl=* | --inc=*)
1212 includedir=$ac_optarg ;;
1214 -infodir | --infodir | --infodi | --infod | --info | --inf)
1216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1217 infodir=$ac_optarg ;;
1219 -libdir | --libdir | --libdi | --libd)
1221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1222 libdir=$ac_optarg ;;
1224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1225 | --libexe | --libex | --libe)
1226 ac_prev=libexecdir ;;
1227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1228 | --libexe=* | --libex=* | --libe=*)
1229 libexecdir=$ac_optarg ;;
1231 -localedir | --localedir | --localedi | --localed | --locale)
1232 ac_prev=localedir ;;
1233 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1234 localedir=$ac_optarg ;;
1236 -localstatedir | --localstatedir | --localstatedi | --localstated \
1237 | --localstate | --localstat | --localsta | --localst | --locals)
1238 ac_prev=localstatedir ;;
1239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1240 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1241 localstatedir=$ac_optarg ;;
1243 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1245 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1246 mandir=$ac_optarg ;;
1248 -nfp | --nfp | --nf)
1249 # Obsolete; use --without-fp.
1252 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1253 | --no-cr | --no-c | -n)
1256 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1257 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1260 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1261 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1262 | --oldin | --oldi | --old | --ol | --o)
1263 ac_prev=oldincludedir ;;
1264 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1265 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1266 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1267 oldincludedir=$ac_optarg ;;
1269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1272 prefix=$ac_optarg ;;
1274 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1275 | --program-pre | --program-pr | --program-p)
1276 ac_prev=program_prefix ;;
1277 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1278 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1279 program_prefix=$ac_optarg ;;
1281 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1282 | --program-suf | --program-su | --program-s)
1283 ac_prev=program_suffix ;;
1284 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1285 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1286 program_suffix=$ac_optarg ;;
1288 -program-transform-name | --program-transform-name \
1289 | --program-transform-nam | --program-transform-na \
1290 | --program-transform-n | --program-transform- \
1291 | --program-transform | --program-transfor \
1292 | --program-transfo | --program-transf \
1293 | --program-trans | --program-tran \
1294 | --progr-tra | --program-tr | --program-t)
1295 ac_prev=program_transform_name ;;
1296 -program-transform-name=* | --program-transform-name=* \
1297 | --program-transform-nam=* | --program-transform-na=* \
1298 | --program-transform-n=* | --program-transform-=* \
1299 | --program-transform=* | --program-transfor=* \
1300 | --program-transfo=* | --program-transf=* \
1301 | --program-trans=* | --program-tran=* \
1302 | --progr-tra=* | --program-tr=* | --program-t=*)
1303 program_transform_name=$ac_optarg ;;
1305 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1307 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1308 pdfdir=$ac_optarg ;;
1310 -psdir | --psdir | --psdi | --psd | --ps)
1312 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1316 | -silent | --silent | --silen | --sile | --sil)
1319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1323 sbindir=$ac_optarg ;;
1325 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1327 | --sharedst | --shareds | --shared | --share | --shar \
1329 ac_prev=sharedstatedir ;;
1330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1334 sharedstatedir=$ac_optarg ;;
1336 -site | --site | --sit)
1338 -site=* | --site=* | --sit=*)
1341 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1343 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1344 srcdir=$ac_optarg ;;
1346 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1347 | --syscon | --sysco | --sysc | --sys | --sy)
1348 ac_prev=sysconfdir ;;
1349 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1350 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1351 sysconfdir=$ac_optarg ;;
1353 -target | --target | --targe | --targ | --tar | --ta | --t)
1354 ac_prev=target_alias ;;
1355 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1356 target_alias=$ac_optarg ;;
1358 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1361 -version | --version | --versio | --versi | --vers | -V)
1362 ac_init_version=: ;;
1365 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1366 # Reject names that are not valid shell variable names.
1367 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1368 as_fn_error $? "invalid package name: $ac_useropt"
1369 ac_useropt_orig=$ac_useropt
1370 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1371 case $ac_user_opts in
1375 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1376 ac_unrecognized_sep=', ';;
1378 eval with_$ac_useropt=\$ac_optarg ;;
1380 -without-* | --without-*)
1381 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1382 # Reject names that are not valid shell variable names.
1383 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1384 as_fn_error $? "invalid package name: $ac_useropt"
1385 ac_useropt_orig=$ac_useropt
1386 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1387 case $ac_user_opts in
1391 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1392 ac_unrecognized_sep=', ';;
1394 eval with_$ac_useropt=no ;;
1397 # Obsolete; use --with-x.
1400 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1401 | --x-incl | --x-inc | --x-in | --x-i)
1402 ac_prev=x_includes ;;
1403 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1404 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1405 x_includes=$ac_optarg ;;
1407 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1408 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1409 ac_prev=x_libraries ;;
1410 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1411 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1412 x_libraries=$ac_optarg ;;
1414 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1415 Try \`$0 --help' for more information"
1419 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1420 # Reject names that are not valid shell variable names.
1421 case $ac_envvar in #(
1422 '' | [0-9]* | *[!_$as_cr_alnum]* )
1423 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1425 eval $ac_envvar=\$ac_optarg
1426 export $ac_envvar ;;
1429 # FIXME: should be removed in autoconf 3.0.
1430 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1431 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1432 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1433 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1439 if test -n "$ac_prev"; then
1440 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1441 as_fn_error $? "missing argument to $ac_option"
1444 if test -n "$ac_unrecognized_opts"; then
1445 case $enable_option_checking in
1447 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1448 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1452 # Check all directory arguments for consistency.
1453 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1454 datadir sysconfdir sharedstatedir localstatedir includedir \
1455 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1456 libdir localedir mandir
1458 eval ac_val=\$$ac_var
1459 # Remove trailing slashes.
1462 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1463 eval $ac_var=\$ac_val;;
1465 # Be sure to have absolute directory names.
1467 [\\/$]* | ?:[\\/]* ) continue;;
1468 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1470 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1473 # There might be people who depend on the old broken behavior: `$host'
1474 # used to hold the argument of --host etc.
1475 # FIXME: To remove some day.
1478 target=$target_alias
1480 # FIXME: To remove some day.
1481 if test "x$host_alias" != x; then
1482 if test "x$build_alias" = x; then
1483 cross_compiling=maybe
1484 elif test "x$build_alias" != "x$host_alias"; then
1490 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1492 test "$silent" = yes && exec 6>/dev/null
1495 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1496 ac_ls_di=`ls -di .` &&
1497 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1498 as_fn_error $? "working directory cannot be determined"
1499 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1500 as_fn_error $? "pwd does not report name of working directory"
1503 # Find the source files, if location was not specified.
1504 if test -z "$srcdir"; then
1505 ac_srcdir_defaulted=yes
1506 # Try the directory containing this script, then the parent directory.
1507 ac_confdir=`$as_dirname -- "$as_myself" ||
1508 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1509 X"$as_myself" : 'X\(//\)[^/]' \| \
1510 X"$as_myself" : 'X\(//\)$' \| \
1511 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1512 $as_echo X"$as_myself" |
1513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1531 if test ! -r "$srcdir/$ac_unique_file"; then
1535 ac_srcdir_defaulted=no
1537 if test ! -r "$srcdir/$ac_unique_file"; then
1538 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1539 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1541 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1543 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1545 # When building in place, set srcdir=.
1546 if test "$ac_abs_confdir" = "$ac_pwd"; then
1549 # Remove unnecessary trailing slashes from srcdir.
1550 # Double slashes in file names in object file debugging info
1551 # mess up M-x gdb in Emacs.
1553 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1555 for ac_var in $ac_precious_vars; do
1556 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1557 eval ac_env_${ac_var}_value=\$${ac_var}
1558 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1559 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1563 # Report the --help message.
1565 if test "$ac_init_help" = "long"; then
1566 # Omit some internal or obsolete options to make the list less imposing.
1567 # This message is too long to be a string in the A/UX 3.1 sh.
1569 \`configure' configures bacula 7.4.1 to adapt to many kinds of systems.
1571 Usage: $0 [OPTION]... [VAR=VALUE]...
1573 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1574 VAR=VALUE. See below for descriptions of some of the useful variables.
1576 Defaults for the options are specified in brackets.
1579 -h, --help display this help and exit
1580 --help=short display options specific to this package
1581 --help=recursive display the short help of all the included packages
1582 -V, --version display version information and exit
1583 -q, --quiet, --silent do not print \`checking ...' messages
1584 --cache-file=FILE cache test results in FILE [disabled]
1585 -C, --config-cache alias for \`--cache-file=config.cache'
1586 -n, --no-create do not create output files
1587 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1589 Installation directories:
1590 --prefix=PREFIX install architecture-independent files in PREFIX
1591 [$ac_default_prefix]
1592 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1595 By default, \`make install' will install all the files in
1596 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1597 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1598 for instance \`--prefix=\$HOME'.
1600 For better control, use the options below.
1602 Fine tuning of the installation directories:
1603 --bindir=DIR user executables [EPREFIX/bin]
1604 --sbindir=DIR system admin executables [EPREFIX/sbin]
1605 --libexecdir=DIR program executables [EPREFIX/libexec]
1606 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1607 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1608 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1609 --libdir=DIR object code libraries [EPREFIX/lib]
1610 --includedir=DIR C header files [PREFIX/include]
1611 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1612 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1613 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1614 --infodir=DIR info documentation [DATAROOTDIR/info]
1615 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1616 --mandir=DIR man documentation [DATAROOTDIR/man]
1617 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1618 --htmldir=DIR html documentation [DOCDIR]
1619 --dvidir=DIR dvi documentation [DOCDIR]
1620 --pdfdir=DIR pdf documentation [DOCDIR]
1621 --psdir=DIR ps documentation [DOCDIR]
1627 --x-includes=DIR X include files are in DIR
1628 --x-libraries=DIR X library files are in DIR
1631 --build=BUILD configure for building on BUILD [guessed]
1632 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1636 if test -n "$ac_init_help"; then
1637 case $ac_init_help in
1638 short | recursive ) echo "Configuration of bacula 7.4.1:";;
1643 --disable-option-checking ignore unrecognized --enable/--with options
1644 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1645 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1646 --enable-libtool enable building using GNU libtool [default=yes]
1647 --enable-shared[=PKGS] build shared libraries [default=yes]
1648 --enable-static[=PKGS] build static libraries [default=no]
1649 --enable-fast-install[=PKGS]
1650 optimize for fast installation [default=yes]
1651 --disable-libtool-lock avoid locking (might break parallel builds)
1652 --enable-includes enable installing of include files [default=no]
1653 --disable-nls do not use Native Language Support
1654 --disable-rpath do not hardcode runtime library paths
1655 --enable-bat enable build of bat Qt4 GUI [default=no]
1656 --enable-smartalloc enable smartalloc debugging support [default=no]
1657 --enable-lockmgr enable lock manager support [default=no]
1658 --enable-static-tools enable static tape tools [default=no]
1659 --enable-static-fd enable static File daemon [default=no]
1660 --enable-static-sd enable static Storage daemon [default=no]
1661 --enable-static-dir enable static Director [default=no]
1662 --enable-static-cons enable static Console [default=no]
1663 --enable-client-only build client (File daemon) only [default=no]
1664 --enable-build-dird enable building of dird (Director) [default=yes]
1665 --enable-build-stored enable building of stored (Storage daemon)
1667 --disable-conio disable conio support [default=no]
1668 --enable-ipv6 enable ipv6 support [default=yes]
1669 --disable-readline disable readline support [default=yes]
1670 --enable-batch-insert enable the DB batch insert code [default=yes]
1671 --disable-largefile omit support for large files
1672 --disable-afs disable afs support [default=auto]
1673 --disable-lzo disable lzo support [default=yes]
1674 --disable-acl disable acl support [default=auto]
1675 --disable-xattr disable xattr support [default=auto]
1678 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1679 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1680 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1682 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1683 --with-sysroot=DIR Search for dependent libraries within DIR
1684 (or the compiler's sysroot if not specified).
1685 --with-gnu-ld assume the C compiler uses GNU ld default=no
1686 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1687 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1688 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1689 --without-libintl-prefix don't search for libintl in includedir and libdir
1690 --with-included-gettext use the GNU gettext library included here
1691 --with-readline[=DIR] specify readline library directory
1692 --with-tcp-wrappers[=DIR]
1693 enable tcpwrappers support
1694 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1695 --with-working-dir=PATH specify path of Bacula working directory
1696 --with-archivedir=PATH specify path of SD archive directory
1697 --with-basename=RESNAME specify base resource name for daemons
1698 --with-hostname=RESNAME specify host name for daemons
1699 --with-scriptdir=PATH specify path of Bacula scripts directory
1700 --with-bsrdir=PATH specify path of Bacula bsrs directory
1701 --with-logdir=PATH specify path of Bacula logs directory
1702 --with-plugindir=PATH specify path of Bacula plugins directory
1703 --with-dump-email=EMAIL dump email address
1704 --with-job-email=EMAIL job output email address
1705 --with-smtp-host=HOST SMTP mail host address
1706 --with-pid-dir=PATH specify location of Bacula pid files
1707 --with-subsys-dir=PATH specify location of Bacula subsys file
1708 --with-baseport=PORT specify base port address for daemons
1709 --with-dir-password=PASSWORD
1710 specify Director's password
1711 --with-fd-password=PASSWORD
1712 specify Client's password
1713 --with-sd-password=PASSWORD
1714 specify Storage daemon's password
1715 --with-mon-dir-password=PASSWORD
1716 specify Director's password used by the monitor
1717 --with-mon-fd-password=PASSWORD
1718 specify Client's password used by the monitor
1719 --with-mon-sd-password=PASSWORD
1720 specify Storage daemon's password used by the
1722 --with-db-name=DBNAME specify database name [default=bacula]
1723 --with-db-user=UNAME specify database user [default=bacula]
1724 --with-db-password=PWD specify database password [default=*none*]
1725 --with-db-port=DBPORT specify a database port [default=null]
1726 --with-db-ssl-options=DBSSLOPTIONS
1727 specify SSL options for database user connection
1729 --with-dir-user=USER specify user for Director daemon
1730 --with-dir-group=GROUP specify group for Director daemon
1731 --with-sd-user=USER specify user for Storage daemon
1732 --with-sd-group=GROUP specify group for Storage daemon
1733 --with-fd-user=USER specify user for File daemon
1734 --with-fd-group=GROUP specify group for File daemon
1735 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1736 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1737 base install directory, [default=/usr/local/pgsql]
1738 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1739 directory, default is to search through a number of
1740 common places for the MySQL files.
1741 --with-embedded-mysql[=DIR]
1742 Include MySQL support. DIR is the MySQL base install
1743 directory, default is to search through a number of
1744 common places for the MySQL files.
1745 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1746 install directory, default is to search through a
1747 number of common places for the SQLite3 files.
1748 --with-x use the X Window System
1749 --with-afsdir[=DIR] Directory holding AFS includes/libs
1750 --with-lzo[=DIR] specify lzo library directory
1751 --with-systemd[=UNITDIR]
1752 Include systemd support. UNITDIR is where systemd
1753 system .service files are located, default is to ask
1756 Some influential environment variables:
1757 CC C compiler command
1758 CFLAGS C compiler flags
1759 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1760 nonstandard directory <lib dir>
1761 LIBS libraries to pass to the linker, e.g. -l<library>
1762 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1763 you have headers in a nonstandard directory <include dir>
1764 CXX C++ compiler command
1765 CXXFLAGS C++ compiler flags
1767 CXXCPP C++ preprocessor
1768 XMKMF Path to xmkmf, Makefile generator for X Window System
1770 Use these variables to override the choices made by `configure' or to help
1771 it to find libraries and programs with nonstandard names/locations.
1773 Report bugs to the package provider.
1778 if test "$ac_init_help" = "recursive"; then
1779 # If there are subdirs, report their specific --help.
1780 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1781 test -d "$ac_dir" ||
1782 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1790 # A ".." for each directory in $ac_dir_suffix.
1791 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1792 case $ac_top_builddir_sub in
1793 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1797 ac_abs_top_builddir=$ac_pwd
1798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799 # for backward compatibility:
1800 ac_top_builddir=$ac_top_build_prefix
1803 .) # We are building in place.
1805 ac_top_srcdir=$ac_top_builddir_sub
1806 ac_abs_top_srcdir=$ac_pwd ;;
1807 [\\/]* | ?:[\\/]* ) # Absolute name.
1808 ac_srcdir=$srcdir$ac_dir_suffix;
1809 ac_top_srcdir=$srcdir
1810 ac_abs_top_srcdir=$srcdir ;;
1812 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813 ac_top_srcdir=$ac_top_build_prefix$srcdir
1814 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1818 cd "$ac_dir" || { ac_status=$?; continue; }
1819 # Check for guested configure.
1820 if test -f "$ac_srcdir/configure.gnu"; then
1822 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823 elif test -f "$ac_srcdir/configure"; then
1825 $SHELL "$ac_srcdir/configure" --help=recursive
1827 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1829 cd "$ac_pwd" || { ac_status=$?; break; }
1833 test -n "$ac_init_help" && exit $ac_status
1834 if $ac_init_version; then
1836 bacula configure 7.4.1
1837 generated by GNU Autoconf 2.69
1839 Copyright (C) 2012 Free Software Foundation, Inc.
1840 This configure script is free software; the Free Software Foundation
1841 gives unlimited permission to copy, distribute and modify it.
1846 ## ------------------------ ##
1847 ## Autoconf initialization. ##
1848 ## ------------------------ ##
1850 # ac_fn_c_try_compile LINENO
1851 # --------------------------
1852 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_compile ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext
1857 if { { ac_try="$ac_compile"
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_compile") 2>conftest.err
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_c_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest.$ac_objext; then :
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 as_fn_set_status $ac_retval
1886 } # ac_fn_c_try_compile
1888 # ac_fn_cxx_try_compile LINENO
1889 # ----------------------------
1890 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_cxx_try_compile ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 rm -f conftest.$ac_objext
1895 if { { ac_try="$ac_compile"
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_compile") 2>conftest.err
1904 if test -s conftest.err; then
1905 grep -v '^ *+' conftest.err >conftest.er1
1906 cat conftest.er1 >&5
1907 mv -f conftest.er1 conftest.err
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; } && {
1911 test -z "$ac_cxx_werror_flag" ||
1912 test ! -s conftest.err
1913 } && test -s conftest.$ac_objext; then :
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1924 } # ac_fn_cxx_try_compile
1926 # ac_fn_c_try_cpp LINENO
1927 # ----------------------
1928 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if { { ac_try="$ac_cpp conftest.$ac_ext"
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } > conftest.i && {
1948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1949 test ! -s conftest.err
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1963 # ac_fn_c_try_link LINENO
1964 # -----------------------
1965 # Try to link conftest.$ac_ext, and return whether this succeeded.
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 rm -f conftest.$ac_objext conftest$ac_exeext
1970 if { { ac_try="$ac_link"
1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977 (eval "$ac_link") 2>conftest.err
1979 if test -s conftest.err; then
1980 grep -v '^ *+' conftest.err >conftest.er1
1981 cat conftest.er1 >&5
1982 mv -f conftest.er1 conftest.err
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; } && {
1986 test -z "$ac_c_werror_flag" ||
1987 test ! -s conftest.err
1988 } && test -s conftest$ac_exeext && {
1989 test "$cross_compiling" = yes ||
1990 test -x conftest$ac_exeext
1994 $as_echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1999 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2000 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2001 # interfere with the next link command; also delete a directory that is
2002 # left behind by Apple's compiler. We do this before executing the actions.
2003 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 as_fn_set_status $ac_retval
2007 } # ac_fn_c_try_link
2009 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2010 # -------------------------------------------------------
2011 # Tests whether HEADER exists and can be compiled using the include files in
2012 # INCLUDES, setting the cache variable VAR accordingly.
2013 ac_fn_c_check_header_compile ()
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2026 if ac_fn_c_try_compile "$LINENO"; then :
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038 } # ac_fn_c_check_header_compile
2040 # ac_fn_c_try_run LINENO
2041 # ----------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2043 # that executables *can* be run.
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if { { ac_try="$ac_link"
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_link") 2>&5
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2058 { { case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_try") 2>&5
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; }; }; then :
2070 $as_echo "$as_me: program exited with status $ac_status" >&5
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 ac_retval=$ac_status
2076 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 as_fn_set_status $ac_retval
2082 # ac_fn_c_check_func LINENO FUNC VAR
2083 # ----------------------------------
2084 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2085 ac_fn_c_check_func ()
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if eval \${$3+:} false; then :
2091 $as_echo_n "(cached) " >&6
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2095 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2097 #define $2 innocuous_$2
2099 /* System header to define __stub macros and hopefully few prototypes,
2100 which can conflict with char $2 (); below.
2101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2102 <limits.h> exists even on freestanding compilers. */
2105 # include <limits.h>
2107 # include <assert.h>
2112 /* Override any GCC internal prototype to avoid an error.
2113 Use char because int might match the return type of a GCC
2114 builtin and then its argument prototype would still apply. */
2119 /* The GNU C library defines this for functions which it implements
2120 to always fail with ENOSYS. Some functions are actually named
2121 something starting with __ and the normal name is an alias. */
2122 #if defined __stub_$2 || defined __stub___$2
2134 if ac_fn_c_try_link "$LINENO"; then :
2139 rm -f core conftest.err conftest.$ac_objext \
2140 conftest$ac_exeext conftest.$ac_ext
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 $as_echo "$ac_res" >&6; }
2145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147 } # ac_fn_c_check_func
2149 # ac_fn_cxx_try_cpp LINENO
2150 # ------------------------
2151 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2152 ac_fn_cxx_try_cpp ()
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 if { { ac_try="$ac_cpp conftest.$ac_ext"
2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158 *) ac_try_echo=$ac_try;;
2160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2161 $as_echo "$ac_try_echo"; } >&5
2162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2164 if test -s conftest.err; then
2165 grep -v '^ *+' conftest.err >conftest.er1
2166 cat conftest.er1 >&5
2167 mv -f conftest.er1 conftest.err
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } > conftest.i && {
2171 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2172 test ! -s conftest.err
2176 $as_echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 as_fn_set_status $ac_retval
2184 } # ac_fn_cxx_try_cpp
2186 # ac_fn_cxx_try_link LINENO
2187 # -------------------------
2188 # Try to link conftest.$ac_ext, and return whether this succeeded.
2189 ac_fn_cxx_try_link ()
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 rm -f conftest.$ac_objext conftest$ac_exeext
2193 if { { ac_try="$ac_link"
2195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196 *) ac_try_echo=$ac_try;;
2198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199 $as_echo "$ac_try_echo"; } >&5
2200 (eval "$ac_link") 2>conftest.err
2202 if test -s conftest.err; then
2203 grep -v '^ *+' conftest.err >conftest.er1
2204 cat conftest.er1 >&5
2205 mv -f conftest.er1 conftest.err
2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208 test $ac_status = 0; } && {
2209 test -z "$ac_cxx_werror_flag" ||
2210 test ! -s conftest.err
2211 } && test -s conftest$ac_exeext && {
2212 test "$cross_compiling" = yes ||
2213 test -x conftest$ac_exeext
2217 $as_echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2222 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2223 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2224 # interfere with the next link command; also delete a directory that is
2225 # left behind by Apple's compiler. We do this before executing the actions.
2226 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228 as_fn_set_status $ac_retval
2230 } # ac_fn_cxx_try_link
2232 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2233 # ---------------------------------------------
2234 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2236 ac_fn_c_check_decl ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 as_decl_name=`echo $2|sed 's/ *(.*//'`
2240 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2242 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2243 if eval \${$3+:} false; then :
2244 $as_echo_n "(cached) " >&6
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2252 #ifndef $as_decl_name
2254 (void) $as_decl_use;
2256 (void) $as_decl_name;
2264 if ac_fn_c_try_compile "$LINENO"; then :
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276 } # ac_fn_c_check_decl
2278 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2279 # -------------------------------------------
2280 # Tests whether TYPE exists after having included INCLUDES, setting cache
2281 # variable VAR accordingly.
2282 ac_fn_c_check_type ()
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2286 $as_echo_n "checking for $2... " >&6; }
2287 if eval \${$3+:} false; then :
2288 $as_echo_n "(cached) " >&6
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2316 if ac_fn_c_try_compile "$LINENO"; then :
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327 $as_echo "$ac_res" >&6; }
2328 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2330 } # ac_fn_c_check_type
2332 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2333 # -------------------------------------------------------
2334 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2335 # the include files in INCLUDES and setting the cache variable VAR
2337 ac_fn_c_check_header_mongrel ()
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 if eval \${$3+:} false; then :
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if eval \${$3+:} false; then :
2344 $as_echo_n "(cached) " >&6
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2348 $as_echo "$ac_res" >&6; }
2350 # Is the header compilable?
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2352 $as_echo_n "checking $2 usability... " >&6; }
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2358 if ac_fn_c_try_compile "$LINENO"; then :
2359 ac_header_compiler=yes
2361 ac_header_compiler=no
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2365 $as_echo "$ac_header_compiler" >&6; }
2367 # Is the header present?
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2369 $as_echo_n "checking $2 presence... " >&6; }
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2374 if ac_fn_c_try_cpp "$LINENO"; then :
2375 ac_header_preproc=yes
2377 ac_header_preproc=no
2379 rm -f conftest.err conftest.i conftest.$ac_ext
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2381 $as_echo "$ac_header_preproc" >&6; }
2383 # So? What about this header?
2384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2387 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2389 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2393 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2395 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2397 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2399 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2401 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2405 $as_echo_n "checking for $2... " >&6; }
2406 if eval \${$3+:} false; then :
2407 $as_echo_n "(cached) " >&6
2409 eval "$3=\$ac_header_compiler"
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2413 $as_echo "$ac_res" >&6; }
2415 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417 } # ac_fn_c_check_header_mongrel
2419 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2420 # --------------------------------------------
2421 # Tries to find the compile-time value of EXPR in a program that includes
2422 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2424 ac_fn_c_compute_int ()
2426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427 if test "$cross_compiling" = yes; then
2428 # Depending upon the size, compute the lo and hi bounds.
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2435 static int test_array [1 - 2 * !(($2) >= 0)];
2437 return test_array [0];
2443 if ac_fn_c_try_compile "$LINENO"; then :
2446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h. */
2452 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2454 return test_array [0];
2460 if ac_fn_c_try_compile "$LINENO"; then :
2461 ac_hi=$ac_mid; break
2463 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2464 if test $ac_lo -le $ac_mid; then
2468 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h. */
2479 static int test_array [1 - 2 * !(($2) < 0)];
2481 return test_array [0];
2487 if ac_fn_c_try_compile "$LINENO"; then :
2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h. */
2496 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2498 return test_array [0];
2504 if ac_fn_c_try_compile "$LINENO"; then :
2505 ac_lo=$ac_mid; break
2507 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2508 if test $ac_mid -le $ac_hi; then
2512 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522 # Binary search between lo and hi bounds.
2523 while test "x$ac_lo" != "x$ac_hi"; do
2524 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2531 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2533 return test_array [0];
2539 if ac_fn_c_try_compile "$LINENO"; then :
2542 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2547 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2554 static long int longval () { return $2; }
2555 static unsigned long int ulongval () { return $2; }
2562 FILE *f = fopen ("conftest.val", "w");
2567 long int i = longval ();
2570 fprintf (f, "%ld", i);
2574 unsigned long int i = ulongval ();
2577 fprintf (f, "%lu", i);
2579 /* Do not output a trailing newline, as this causes \r\n confusion
2580 on some platforms. */
2581 return ferror (f) || fclose (f) != 0;
2587 if ac_fn_c_try_run "$LINENO"; then :
2588 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2593 conftest.$ac_objext conftest.beam conftest.$ac_ext
2597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2598 as_fn_set_status $ac_retval
2600 } # ac_fn_c_compute_int
2602 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2603 # ----------------------------------------------------
2604 # Tries to find if the field MEMBER exists in type AGGR, after including
2605 # INCLUDES, setting cache variable VAR accordingly.
2606 ac_fn_c_check_member ()
2608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2610 $as_echo_n "checking for $2.$3... " >&6; }
2611 if eval \${$4+:} false; then :
2612 $as_echo_n "(cached) " >&6
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h. */
2627 if ac_fn_c_try_compile "$LINENO"; then :
2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h. */
2637 if (sizeof ac_aggr.$3)
2643 if ac_fn_c_try_compile "$LINENO"; then :
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2654 $as_echo "$ac_res" >&6; }
2655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2657 } # ac_fn_c_check_member
2659 # ac_fn_cxx_try_run LINENO
2660 # ------------------------
2661 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2662 # that executables *can* be run.
2663 ac_fn_cxx_try_run ()
2665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666 if { { ac_try="$ac_link"
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2672 $as_echo "$ac_try_echo"; } >&5
2673 (eval "$ac_link") 2>&5
2675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2676 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2677 { { case "(($ac_try" in
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2682 $as_echo "$ac_try_echo"; } >&5
2683 (eval "$ac_try") 2>&5
2685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2686 test $ac_status = 0; }; }; then :
2689 $as_echo "$as_me: program exited with status $ac_status" >&5
2690 $as_echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2693 ac_retval=$ac_status
2695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2697 as_fn_set_status $ac_retval
2699 } # ac_fn_cxx_try_run
2701 # ac_fn_cxx_check_func LINENO FUNC VAR
2702 # ------------------------------------
2703 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2704 ac_fn_cxx_check_func ()
2706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2708 $as_echo_n "checking for $2... " >&6; }
2709 if eval \${$3+:} false; then :
2710 $as_echo_n "(cached) " >&6
2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h. */
2714 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2716 #define $2 innocuous_$2
2718 /* System header to define __stub macros and hopefully few prototypes,
2719 which can conflict with char $2 (); below.
2720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2721 <limits.h> exists even on freestanding compilers. */
2724 # include <limits.h>
2726 # include <assert.h>
2731 /* Override any GCC internal prototype to avoid an error.
2732 Use char because int might match the return type of a GCC
2733 builtin and then its argument prototype would still apply. */
2738 /* The GNU C library defines this for functions which it implements
2739 to always fail with ENOSYS. Some functions are actually named
2740 something starting with __ and the normal name is an alias. */
2741 #if defined __stub_$2 || defined __stub___$2
2753 if ac_fn_cxx_try_link "$LINENO"; then :
2758 rm -f core conftest.err conftest.$ac_objext \
2759 conftest$ac_exeext conftest.$ac_ext
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2763 $as_echo "$ac_res" >&6; }
2764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2766 } # ac_fn_cxx_check_func
2767 cat >config.log <<_ACEOF
2768 This file contains any messages produced by compilers while
2769 running configure, to aid debugging if configure makes a mistake.
2771 It was created by bacula $as_me 7.4.1, which was
2772 generated by GNU Autoconf 2.69. Invocation command line was
2784 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2785 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2786 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2787 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2788 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2790 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2791 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2793 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2794 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2795 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2796 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2797 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2798 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2799 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir=.
2808 $as_echo "PATH: $as_dir"
2824 # Keep a trace of the command line.
2825 # Strip out --no-create and --no-recursion so they do not pile up.
2826 # Strip out --silent because we don't want to record it for future runs.
2827 # Also quote any args containing shell meta-characters.
2828 # Make two passes to allow for proper duplicate-argument suppression.
2832 ac_must_keep_next=false
2838 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2839 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2840 | -silent | --silent | --silen | --sile | --sil)
2843 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2846 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2848 as_fn_append ac_configure_args1 " '$ac_arg'"
2849 if test $ac_must_keep_next = true; then
2850 ac_must_keep_next=false # Got value, back to normal.
2853 *=* | --config-cache | -C | -disable-* | --disable-* \
2854 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2855 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2856 | -with-* | --with-* | -without-* | --without-* | --x)
2857 case "$ac_configure_args0 " in
2858 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2861 -* ) ac_must_keep_next=true ;;
2864 as_fn_append ac_configure_args " '$ac_arg'"
2869 { ac_configure_args0=; unset ac_configure_args0;}
2870 { ac_configure_args1=; unset ac_configure_args1;}
2872 # When interrupted or exit'd, cleanup temporary files, and complete
2873 # config.log. We remove comments because anyway the quotes in there
2874 # would cause problems or look ugly.
2875 # WARNING: Use '\'' to represent an apostrophe within the trap.
2876 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2877 trap 'exit_status=$?
2878 # Save into config.log some information that might help in debugging.
2882 $as_echo "## ---------------- ##
2883 ## Cache variables. ##
2884 ## ---------------- ##"
2886 # The following way of writing the cache mishandles newlines in values,
2888 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2889 eval ac_val=\$$ac_var
2893 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2894 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2897 _ | IFS | as_nl) ;; #(
2898 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2899 *) { eval $ac_var=; unset $ac_var;} ;;
2904 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2905 *${as_nl}ac_space=\ *)
2907 "s/'\''/'\''\\\\'\'''\''/g;
2908 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2911 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2918 $as_echo "## ----------------- ##
2919 ## Output variables. ##
2920 ## ----------------- ##"
2922 for ac_var in $ac_subst_vars
2924 eval ac_val=\$$ac_var
2926 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2928 $as_echo "$ac_var='\''$ac_val'\''"
2932 if test -n "$ac_subst_files"; then
2933 $as_echo "## ------------------- ##
2934 ## File substitutions. ##
2935 ## ------------------- ##"
2937 for ac_var in $ac_subst_files
2939 eval ac_val=\$$ac_var
2941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2943 $as_echo "$ac_var='\''$ac_val'\''"
2948 if test -s confdefs.h; then
2949 $as_echo "## ----------- ##
2956 test "$ac_signal" != 0 &&
2957 $as_echo "$as_me: caught signal $ac_signal"
2958 $as_echo "$as_me: exit $exit_status"
2960 rm -f core *.core core.conftest.* &&
2961 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2964 for ac_signal in 1 2 13 15; do
2965 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2969 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2970 rm -f -r conftest* confdefs.h
2972 $as_echo "/* confdefs.h */" > confdefs.h
2974 # Predefined preprocessor variables.
2976 cat >>confdefs.h <<_ACEOF
2977 #define PACKAGE_NAME "$PACKAGE_NAME"
2980 cat >>confdefs.h <<_ACEOF
2981 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2984 cat >>confdefs.h <<_ACEOF
2985 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2988 cat >>confdefs.h <<_ACEOF
2989 #define PACKAGE_STRING "$PACKAGE_STRING"
2992 cat >>confdefs.h <<_ACEOF
2993 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2996 cat >>confdefs.h <<_ACEOF
2997 #define PACKAGE_URL "$PACKAGE_URL"
3001 # Let the site file select an alternate cache file if it wants to.
3002 # Prefer an explicitly selected file to automatically selected ones.
3005 if test -n "$CONFIG_SITE"; then
3006 # We do not want a PATH search for config.site.
3007 case $CONFIG_SITE in #((
3008 -*) ac_site_file1=./$CONFIG_SITE;;
3009 */*) ac_site_file1=$CONFIG_SITE;;
3010 *) ac_site_file1=./$CONFIG_SITE;;
3012 elif test "x$prefix" != xNONE; then
3013 ac_site_file1=$prefix/share/config.site
3014 ac_site_file2=$prefix/etc/config.site
3016 ac_site_file1=$ac_default_prefix/share/config.site
3017 ac_site_file2=$ac_default_prefix/etc/config.site
3019 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3021 test "x$ac_site_file" = xNONE && continue
3022 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3024 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3025 sed 's/^/| /' "$ac_site_file" >&5
3027 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029 as_fn_error $? "failed to load site script $ac_site_file
3030 See \`config.log' for more details" "$LINENO" 5; }
3034 if test -r "$cache_file"; then
3035 # Some versions of bash will fail to source /dev/null (special files
3036 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3037 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3039 $as_echo "$as_me: loading cache $cache_file" >&6;}
3041 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3042 *) . "./$cache_file";;
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3047 $as_echo "$as_me: creating cache $cache_file" >&6;}
3051 as_fn_append ac_header_list " stdlib.h"
3052 as_fn_append ac_header_list " unistd.h"
3053 as_fn_append ac_header_list " sys/param.h"
3054 # Check that the precious variables saved in the cache have kept the same
3056 ac_cache_corrupted=false
3057 for ac_var in $ac_precious_vars; do
3058 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3059 eval ac_new_set=\$ac_env_${ac_var}_set
3060 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3061 eval ac_new_val=\$ac_env_${ac_var}_value
3062 case $ac_old_set,$ac_new_set in
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3065 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3066 ac_cache_corrupted=: ;;
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3069 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3070 ac_cache_corrupted=: ;;
3073 if test "x$ac_old_val" != "x$ac_new_val"; then
3074 # differences in whitespace do not lead to failure.
3075 ac_old_val_w=`echo x $ac_old_val`
3076 ac_new_val_w=`echo x $ac_new_val`
3077 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3079 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3080 ac_cache_corrupted=:
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3083 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3084 eval $ac_var=\$ac_old_val
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3087 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3089 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3092 # Pass precious variables to config.status.
3093 if test "$ac_new_set" = set; then
3095 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3096 *) ac_arg=$ac_var=$ac_new_val ;;
3098 case " $ac_configure_args " in
3099 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3100 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3104 if $ac_cache_corrupted; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3108 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3109 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3111 ## -------------------- ##
3112 ## Main body of script. ##
3113 ## -------------------- ##
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3132 if test -f "$ac_dir/install-sh"; then
3134 ac_install_sh="$ac_aux_dir/install-sh -c"
3136 elif test -f "$ac_dir/install.sh"; then
3138 ac_install_sh="$ac_aux_dir/install.sh -c"
3140 elif test -f "$ac_dir/shtool"; then
3142 ac_install_sh="$ac_aux_dir/shtool install -c"
3146 if test -z "$ac_aux_dir"; then
3147 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3150 # These three variables are undocumented and unsupported,
3151 # and are intended to be withdrawn in a future Autoconf release.
3152 # They can cause serious problems if a builder's source tree is in a directory
3153 # whose full name contains unusual characters.
3154 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3155 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3156 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3159 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3164 # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_path_TRUEPRG+:} false; then :
3169 $as_echo_n "(cached) " >&6
3173 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 TRUEPRG=$ac_cv_path_TRUEPRG
3195 if test -n "$TRUEPRG"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3197 $as_echo "$TRUEPRG" >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3204 test -n "$TRUEPRG" && break
3206 test -n "$TRUEPRG" || TRUEPRG=":"
3208 for ac_prog in false
3210 # Extract the first word of "$ac_prog", so it can be a program name with args.
3211 set dummy $ac_prog; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_path_FALSEPRG+:} false; then :
3215 $as_echo_n "(cached) " >&6
3219 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 FALSEPRG=$ac_cv_path_FALSEPRG
3241 if test -n "$FALSEPRG"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3243 $as_echo "$FALSEPRG" >&6; }
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3250 test -n "$FALSEPRG" && break
3252 test -n "$FALSEPRG" || FALSEPRG=":"
3257 if test "x$BACULA" != x; then
3258 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3260 BACULA=${BACULA:-Bacula}
3261 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3262 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3263 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3264 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3265 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3266 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3267 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3268 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3270 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3271 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3272 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3274 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3275 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3278 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3279 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3281 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3282 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3285 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3287 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3291 PFILES="platforms/Makefile"
3293 echo "configuring for ${BACULA} $VERSION ($DATE)"
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302 if test -n "$ac_tool_prefix"; then
3303 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3304 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_CC+:} false; then :
3308 $as_echo_n "(cached) " >&6
3310 if test -n "$CC"; then
3311 ac_cv_prog_CC="$CC" # Let the user override the test.
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 if test -n "$CC"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333 $as_echo "$CC" >&6; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3341 if test -z "$ac_cv_prog_CC"; then
3343 # Extract the first word of "gcc", so it can be a program name with args.
3344 set dummy gcc; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3348 $as_echo_n "(cached) " >&6
3350 if test -n "$ac_ct_CC"; then
3351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360 ac_cv_prog_ac_ct_CC="gcc"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3371 if test -n "$ac_ct_CC"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3373 $as_echo "$ac_ct_CC" >&6; }
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3379 if test "x$ac_ct_CC" = x; then
3382 case $cross_compiling:$ac_tool_warned in
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386 ac_tool_warned=yes ;;
3394 if test -z "$CC"; then
3395 if test -n "$ac_tool_prefix"; then
3396 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3397 set dummy ${ac_tool_prefix}cc; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_CC+:} false; then :
3401 $as_echo_n "(cached) " >&6
3403 if test -n "$CC"; then
3404 ac_cv_prog_CC="$CC" # Let the user override the test.
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 ac_cv_prog_CC="${ac_tool_prefix}cc"
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 if test -n "$CC"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426 $as_echo "$CC" >&6; }
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3435 if test -z "$CC"; then
3436 # Extract the first word of "cc", so it can be a program name with args.
3437 set dummy cc; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if ${ac_cv_prog_CC+:} false; then :
3441 $as_echo_n "(cached) " >&6
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455 ac_prog_rejected=yes
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 if test $ac_prog_rejected = yes; then
3467 # We found a bogon in the path, so make sure we never use it.
3468 set dummy $ac_cv_prog_CC
3470 if test $# != 0; then
3471 # We chose a different compiler from the bogus one.
3472 # However, it has the same basename, so the bogon will be chosen
3473 # first if we set CC to just the basename; use the full file name.
3475 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3481 if test -n "$CC"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483 $as_echo "$CC" >&6; }
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3491 if test -z "$CC"; then
3492 if test -n "$ac_tool_prefix"; then
3493 for ac_prog in cl.exe
3495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_CC+:} false; then :
3500 $as_echo_n "(cached) " >&6
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3532 test -n "$CC" && break
3535 if test -z "$CC"; then
3537 for ac_prog in cl.exe
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3544 $as_echo_n "(cached) " >&6
3546 if test -n "$ac_ct_CC"; then
3547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_ac_ct_CC="$ac_prog"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3567 if test -n "$ac_ct_CC"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3569 $as_echo "$ac_ct_CC" >&6; }
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3576 test -n "$ac_ct_CC" && break
3579 if test "x$ac_ct_CC" = x; then
3582 case $cross_compiling:$ac_tool_warned in
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned=yes ;;
3595 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error $? "no acceptable C compiler found in \$PATH
3598 See \`config.log' for more details" "$LINENO" 5; }
3600 # Provide some information about the compiler.
3601 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3604 for ac_option in --version -v -V -qversion; do
3605 { { ac_try="$ac_compiler $ac_option >&5"
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611 $as_echo "$ac_try_echo"; } >&5
3612 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3614 if test -s conftest.err; then
3616 ... rest of stderr output deleted ...
3617 10q' conftest.err >conftest.er1
3618 cat conftest.er1 >&5
3620 rm -f conftest.er1 conftest.err
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3636 ac_clean_files_save=$ac_clean_files
3637 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3638 # Try to create an executable without -o first, disregard a.out.
3639 # It will help us diagnose broken compilers, and finding out an intuition
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3642 $as_echo_n "checking whether the C compiler works... " >&6; }
3643 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3645 # The possible output files:
3646 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3649 for ac_file in $ac_files
3652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3653 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3658 if { { ac_try="$ac_link_default"
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_link_default") 2>&5
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }; then :
3669 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3670 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3671 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3672 # so that the user can short-circuit this test for compilers unknown to
3674 for ac_file in $ac_files ''
3676 test -f "$ac_file" || continue
3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3681 # We found the default executable, but exeext='' is most
3685 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3687 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3689 # We set ac_cv_exeext here because the later test for it is not
3690 # safe: cross compilers may not add the suffix if given an `-o'
3691 # argument, so we may need to know it at that point already.
3692 # Even if this section looks crufty: it has the advantage of
3699 test "$ac_cv_exeext" = no && ac_cv_exeext=
3704 if test -z "$ac_file"; then :
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706 $as_echo "no" >&6; }
3707 $as_echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error 77 "C compiler cannot create executables
3713 See \`config.log' for more details" "$LINENO" 5; }
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3716 $as_echo "yes" >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3719 $as_echo_n "checking for C compiler default output file name... " >&6; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3721 $as_echo "$ac_file" >&6; }
3722 ac_exeext=$ac_cv_exeext
3724 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3725 ac_clean_files=$ac_clean_files_save
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3727 $as_echo_n "checking for suffix of executables... " >&6; }
3728 if { { ac_try="$ac_link"
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 $as_echo "$ac_try_echo"; } >&5
3735 (eval "$ac_link") 2>&5
3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }; then :
3739 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3740 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3741 # work properly (i.e., refer to `conftest.exe'), while it won't with
3743 for ac_file in conftest.exe conftest conftest.*; do
3744 test -f "$ac_file" || continue
3746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3747 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3756 See \`config.log' for more details" "$LINENO" 5; }
3758 rm -f conftest conftest$ac_cv_exeext
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3760 $as_echo "$ac_cv_exeext" >&6; }
3762 rm -f conftest.$ac_ext
3763 EXEEXT=$ac_cv_exeext
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3771 FILE *f = fopen ("conftest.out", "w");
3772 return ferror (f) || fclose (f) != 0;
3778 ac_clean_files="$ac_clean_files conftest.out"
3779 # Check that the compiler produces executables we can run. If not, either
3780 # the compiler is broken, or we cross compile.
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3782 $as_echo_n "checking whether we are cross compiling... " >&6; }
3783 if test "$cross_compiling" != yes; then
3784 { { ac_try="$ac_link"
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790 $as_echo "$ac_try_echo"; } >&5
3791 (eval "$ac_link") 2>&5
3793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794 test $ac_status = 0; }
3795 if { ac_try='./conftest$ac_cv_exeext'
3796 { { case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_try") 2>&5
3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805 test $ac_status = 0; }; }; then
3808 if test "$cross_compiling" = maybe; then
3811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813 as_fn_error $? "cannot run C compiled programs.
3814 If you meant to cross compile, use \`--host'.
3815 See \`config.log' for more details" "$LINENO" 5; }
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3820 $as_echo "$cross_compiling" >&6; }
3822 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3823 ac_clean_files=$ac_clean_files_save
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3825 $as_echo_n "checking for suffix of object files... " >&6; }
3826 if ${ac_cv_objext+:} false; then :
3827 $as_echo_n "(cached) " >&6
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3840 rm -f conftest.o conftest.obj
3841 if { { ac_try="$ac_compile"
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848 (eval "$ac_compile") 2>&5
3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851 test $ac_status = 0; }; then :
3852 for ac_file in conftest.o conftest.obj conftest.*; do
3853 test -f "$ac_file" || continue;
3855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3856 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3861 $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866 as_fn_error $? "cannot compute suffix of object files: cannot compile
3867 See \`config.log' for more details" "$LINENO" 5; }
3869 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3872 $as_echo "$ac_cv_objext" >&6; }
3873 OBJEXT=$ac_cv_objext
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3876 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3877 if ${ac_cv_c_compiler_gnu+:} false; then :
3878 $as_echo_n "(cached) " >&6
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3894 if ac_fn_c_try_compile "$LINENO"; then :
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3904 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3905 if test $ac_compiler_gnu = yes; then
3910 ac_test_CFLAGS=${CFLAGS+set}
3911 ac_save_CFLAGS=$CFLAGS
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3913 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3914 if ${ac_cv_prog_cc_g+:} false; then :
3915 $as_echo_n "(cached) " >&6
3917 ac_save_c_werror_flag=$ac_c_werror_flag
3918 ac_c_werror_flag=yes
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3932 if ac_fn_c_try_compile "$LINENO"; then :
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3947 if ac_fn_c_try_compile "$LINENO"; then :
3950 ac_c_werror_flag=$ac_save_c_werror_flag
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3963 if ac_fn_c_try_compile "$LINENO"; then :
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 ac_c_werror_flag=$ac_save_c_werror_flag
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3974 $as_echo "$ac_cv_prog_cc_g" >&6; }
3975 if test "$ac_test_CFLAGS" = set; then
3976 CFLAGS=$ac_save_CFLAGS
3977 elif test $ac_cv_prog_cc_g = yes; then
3978 if test "$GCC" = yes; then
3984 if test "$GCC" = yes; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3991 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3992 if ${ac_cv_prog_cc_c89+:} false; then :
3993 $as_echo_n "(cached) " >&6
3995 ac_cv_prog_cc_c89=no
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4003 struct buf { int x; };
4004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4005 static char *e (p, i)
4011 static char *f (char * (*g) (char **, int), char **p, ...)
4016 s = g (p, va_arg (v,int));
4021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4022 function prototypes and stuff, but not '\xHH' hex character constants.
4023 These don't provoke an error unfortunately, instead are silently treated
4024 as 'x'. The following induces an error, until -std is added to get
4025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4026 array size at least. It's necessary to write '\x00'==0 to get something
4027 that's true only with -std. */
4028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4030 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4031 inside strings and character constants. */
4033 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4035 int test (int i, double x);
4036 struct s1 {int (*f) (int a);};
4037 struct s2 {int (*f) (double a);};
4038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4044 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4049 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4050 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4052 CC="$ac_save_CC $ac_arg"
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054 ac_cv_prog_cc_c89=$ac_arg
4056 rm -f core conftest.err conftest.$ac_objext
4057 test "x$ac_cv_prog_cc_c89" != "xno" && break
4059 rm -f conftest.$ac_ext
4064 case "x$ac_cv_prog_cc_c89" in
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4067 $as_echo "none needed" >&6; } ;;
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4070 $as_echo "unsupported" >&6; } ;;
4072 CC="$CC $ac_cv_prog_cc_c89"
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4074 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4076 if test "x$ac_cv_prog_cc_c89" != xno; then :
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086 ac_cpp='$CXXCPP $CPPFLAGS'
4087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4090 if test -z "$CXX"; then
4091 if test -n "$CCC"; then
4094 if test -n "$ac_tool_prefix"; then
4095 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if ${ac_cv_prog_CXX+:} false; then :
4102 $as_echo_n "(cached) " >&6
4104 if test -n "$CXX"; then
4105 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 if test -n "$CXX"; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4127 $as_echo "$CXX" >&6; }
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4134 test -n "$CXX" && break
4137 if test -z "$CXX"; then
4139 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4141 # Extract the first word of "$ac_prog", so it can be a program name with args.
4142 set dummy $ac_prog; ac_word=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4146 $as_echo_n "(cached) " >&6
4148 if test -n "$ac_ct_CXX"; then
4149 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_ac_ct_CXX="$ac_prog"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4169 if test -n "$ac_ct_CXX"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4171 $as_echo "$ac_ct_CXX" >&6; }
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4178 test -n "$ac_ct_CXX" && break
4181 if test "x$ac_ct_CXX" = x; then
4184 case $cross_compiling:$ac_tool_warned in
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4188 ac_tool_warned=yes ;;
4196 # Provide some information about the compiler.
4197 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4200 for ac_option in --version -v -V -qversion; do
4201 { { ac_try="$ac_compiler $ac_option >&5"
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4207 $as_echo "$ac_try_echo"; } >&5
4208 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4210 if test -s conftest.err; then
4212 ... rest of stderr output deleted ...
4213 10q' conftest.err >conftest.er1
4214 cat conftest.er1 >&5
4216 rm -f conftest.er1 conftest.err
4217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4218 test $ac_status = 0; }
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4222 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4223 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4224 $as_echo_n "(cached) " >&6
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4240 if ac_fn_cxx_try_compile "$LINENO"; then :
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4250 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4251 if test $ac_compiler_gnu = yes; then
4256 ac_test_CXXFLAGS=${CXXFLAGS+set}
4257 ac_save_CXXFLAGS=$CXXFLAGS
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4259 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4260 if ${ac_cv_prog_cxx_g+:} false; then :
4261 $as_echo_n "(cached) " >&6
4263 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4264 ac_cxx_werror_flag=yes
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4278 if ac_fn_cxx_try_compile "$LINENO"; then :
4279 ac_cv_prog_cxx_g=yes
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4293 if ac_fn_cxx_try_compile "$LINENO"; then :
4296 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4309 if ac_fn_cxx_try_compile "$LINENO"; then :
4310 ac_cv_prog_cxx_g=yes
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4320 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4321 if test "$ac_test_CXXFLAGS" = set; then
4322 CXXFLAGS=$ac_save_CXXFLAGS
4323 elif test $ac_cv_prog_cxx_g = yes; then
4324 if test "$GXX" = yes; then
4330 if test "$GXX" = yes; then
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342 if test "x$CC" != xcc; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4344 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4347 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4349 set dummy $CC; ac_cc=`$as_echo "$2" |
4350 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4351 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4352 $as_echo_n "(cached) " >&6
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4365 # Make sure it works both with $CC and with simple cc.
4366 # We do the test twice because some compilers refuse to overwrite an
4367 # existing .o file with -o, though they will create one.
4368 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4370 if { { case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375 $as_echo "$ac_try_echo"; } >&5
4376 (eval "$ac_try") 2>&5
4378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4379 test $ac_status = 0; } &&
4380 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385 $as_echo "$ac_try_echo"; } >&5
4386 (eval "$ac_try") 2>&5
4388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389 test $ac_status = 0; };
4391 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4392 if test "x$CC" != xcc; then
4393 # Test first that cc exists at all.
4394 if { ac_try='cc -c conftest.$ac_ext >&5'
4395 { { case "(($ac_try" in
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4400 $as_echo "$ac_try_echo"; } >&5
4401 (eval "$ac_try") 2>&5
4403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4404 test $ac_status = 0; }; }; then
4405 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4407 if { { case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4412 $as_echo "$ac_try_echo"; } >&5
4413 (eval "$ac_try") 2>&5
4415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416 test $ac_status = 0; } &&
4417 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4422 $as_echo "$ac_try_echo"; } >&5
4423 (eval "$ac_try") 2>&5
4425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4426 test $ac_status = 0; };
4431 # cc exists but doesn't like -o.
4432 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4437 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4439 rm -f core conftest*
4442 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4444 $as_echo "yes" >&6; }
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4449 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4454 ac_cpp='$CPP $CPPFLAGS'
4455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4459 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4460 # On Suns, sometimes $CPP names a directory.
4461 if test -n "$CPP" && test -d "$CPP"; then
4464 if test -z "$CPP"; then
4465 if ${ac_cv_prog_CPP+:} false; then :
4466 $as_echo_n "(cached) " >&6
4468 # Double quotes because CPP needs to be expanded
4469 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4472 for ac_c_preproc_warn_flag in '' yes
4474 # Use a header file that comes with gcc, so configuring glibc
4475 # with a fresh cross-compiler works.
4476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4477 # <limits.h> exists even on freestanding compilers.
4478 # On the NeXT, cc -E runs the code through the compiler's parser,
4479 # not just through cpp. "Syntax error" is here to catch this case.
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4483 # include <limits.h>
4485 # include <assert.h>
4489 if ac_fn_c_try_cpp "$LINENO"; then :
4492 # Broken: fails on valid input.
4495 rm -f conftest.err conftest.i conftest.$ac_ext
4497 # OK, works on sane cases. Now check whether nonexistent headers
4498 # can be detected and how.
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4501 #include <ac_nonexistent.h>
4503 if ac_fn_c_try_cpp "$LINENO"; then :
4504 # Broken: success on invalid input.
4507 # Passes both tests.
4511 rm -f conftest.err conftest.i conftest.$ac_ext
4514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4515 rm -f conftest.i conftest.err conftest.$ac_ext
4516 if $ac_preproc_ok; then :
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4529 $as_echo "$CPP" >&6; }
4531 for ac_c_preproc_warn_flag in '' yes
4533 # Use a header file that comes with gcc, so configuring glibc
4534 # with a fresh cross-compiler works.
4535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4536 # <limits.h> exists even on freestanding compilers.
4537 # On the NeXT, cc -E runs the code through the compiler's parser,
4538 # not just through cpp. "Syntax error" is here to catch this case.
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4542 # include <limits.h>
4544 # include <assert.h>
4548 if ac_fn_c_try_cpp "$LINENO"; then :
4551 # Broken: fails on valid input.
4554 rm -f conftest.err conftest.i conftest.$ac_ext
4556 # OK, works on sane cases. Now check whether nonexistent headers
4557 # can be detected and how.
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560 #include <ac_nonexistent.h>
4562 if ac_fn_c_try_cpp "$LINENO"; then :
4563 # Broken: success on invalid input.
4566 # Passes both tests.
4570 rm -f conftest.err conftest.i conftest.$ac_ext
4573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4574 rm -f conftest.i conftest.err conftest.$ac_ext
4575 if $ac_preproc_ok; then :
4578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4580 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4581 See \`config.log' for more details" "$LINENO" 5; }
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4592 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4593 if ${ac_cv_path_GREP+:} false; then :
4594 $as_echo_n "(cached) " >&6
4596 if test -z "$GREP"; then
4597 ac_path_GREP_found=false
4598 # Loop through the user's path and test for each of PROGNAME-LIST
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4603 test -z "$as_dir" && as_dir=.
4604 for ac_prog in grep ggrep; do
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4607 as_fn_executable_p "$ac_path_GREP" || continue
4608 # Check for GNU ac_path_GREP and select it if it is found.
4609 # Check for GNU $ac_path_GREP
4610 case `"$ac_path_GREP" --version 2>&1` in
4612 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4615 $as_echo_n 0123456789 >"conftest.in"
4618 cat "conftest.in" "conftest.in" >"conftest.tmp"
4619 mv "conftest.tmp" "conftest.in"
4620 cp "conftest.in" "conftest.nl"
4621 $as_echo 'GREP' >> "conftest.nl"
4622 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624 as_fn_arith $ac_count + 1 && ac_count=$as_val
4625 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4626 # Best one so far, save it but keep looking for a better one
4627 ac_cv_path_GREP="$ac_path_GREP"
4628 ac_path_GREP_max=$ac_count
4630 # 10*(2^10) chars as input seems more than enough
4631 test $ac_count -gt 10 && break
4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4636 $ac_path_GREP_found && break 3
4641 if test -z "$ac_cv_path_GREP"; then
4642 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4645 ac_cv_path_GREP=$GREP
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4650 $as_echo "$ac_cv_path_GREP" >&6; }
4651 GREP="$ac_cv_path_GREP"
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4655 $as_echo_n "checking for egrep... " >&6; }
4656 if ${ac_cv_path_EGREP+:} false; then :
4657 $as_echo_n "(cached) " >&6
4659 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4660 then ac_cv_path_EGREP="$GREP -E"
4662 if test -z "$EGREP"; then
4663 ac_path_EGREP_found=false
4664 # Loop through the user's path and test for each of PROGNAME-LIST
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4669 test -z "$as_dir" && as_dir=.
4670 for ac_prog in egrep; do
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4673 as_fn_executable_p "$ac_path_EGREP" || continue
4674 # Check for GNU ac_path_EGREP and select it if it is found.
4675 # Check for GNU $ac_path_EGREP
4676 case `"$ac_path_EGREP" --version 2>&1` in
4678 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4681 $as_echo_n 0123456789 >"conftest.in"
4684 cat "conftest.in" "conftest.in" >"conftest.tmp"
4685 mv "conftest.tmp" "conftest.in"
4686 cp "conftest.in" "conftest.nl"
4687 $as_echo 'EGREP' >> "conftest.nl"
4688 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4690 as_fn_arith $ac_count + 1 && ac_count=$as_val
4691 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4692 # Best one so far, save it but keep looking for a better one
4693 ac_cv_path_EGREP="$ac_path_EGREP"
4694 ac_path_EGREP_max=$ac_count
4696 # 10*(2^10) chars as input seems more than enough
4697 test $ac_count -gt 10 && break
4699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4702 $ac_path_EGREP_found && break 3
4707 if test -z "$ac_cv_path_EGREP"; then
4708 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4711 ac_cv_path_EGREP=$EGREP
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4717 $as_echo "$ac_cv_path_EGREP" >&6; }
4718 EGREP="$ac_cv_path_EGREP"
4721 if test $ac_cv_c_compiler_gnu = yes; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4723 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4724 if ${ac_cv_prog_gcc_traditional+:} false; then :
4725 $as_echo_n "(cached) " >&6
4727 ac_pattern="Autoconf.*'x'"
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4734 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4735 ac_cv_prog_gcc_traditional=yes
4737 ac_cv_prog_gcc_traditional=no
4742 if test $ac_cv_prog_gcc_traditional = no; then
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4749 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4750 ac_cv_prog_gcc_traditional=yes
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4757 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4758 if test $ac_cv_prog_gcc_traditional = yes; then
4759 CC="$CC -traditional"
4763 BASECC=`basename $CC`
4765 if test x"$GCC" = "xyes"; then
4766 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4770 # Extract the first word of "$CXX", so it can be a program name with args.
4771 set dummy $CXX; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if ${ac_cv_path_CXX+:} false; then :
4775 $as_echo_n "(cached) " >&6
4779 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4802 if test -n "$CXX"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4804 $as_echo "$CXX" >&6; }
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4811 if test ! -e $CXX; then
4812 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4815 # Find a good install program. We prefer a C program (faster),
4816 # so one script is as good as another. But avoid the broken or
4817 # incompatible versions:
4818 # SysV /etc/install, /usr/sbin/install
4819 # SunOS /usr/etc/install
4820 # IRIX /sbin/install
4822 # AmigaOS /C/install, which installs bootblocks on floppy discs
4823 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4824 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4825 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4826 # OS/2's system install, which has a completely different semantic
4827 # ./install, which can be erroneously created by make from ./install.sh.
4828 # Reject install programs that cannot install multiple files.
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4830 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4831 if test -z "$INSTALL"; then
4832 if ${ac_cv_path_install+:} false; then :
4833 $as_echo_n "(cached) " >&6
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 test -z "$as_dir" && as_dir=.
4840 # Account for people who put trailing slashes in PATH elements.
4841 case $as_dir/ in #((
4842 ./ | .// | /[cC]/* | \
4843 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4844 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4847 # OSF1 and SCO ODT 3.0 have their own names for install.
4848 # Don't use installbsd from OSF since it installs stuff as root
4850 for ac_prog in ginstall scoinst install; do
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4853 if test $ac_prog = install &&
4854 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4855 # AIX install. It has an incompatible calling convention.
4857 elif test $ac_prog = install &&
4858 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4859 # program-specific install script used by HP pwplus--don't use.
4862 rm -rf conftest.one conftest.two conftest.dir
4863 echo one > conftest.one
4864 echo two > conftest.two
4866 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4867 test -s conftest.one && test -s conftest.two &&
4868 test -s conftest.dir/conftest.one &&
4869 test -s conftest.dir/conftest.two
4871 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4884 rm -rf conftest.one conftest.two conftest.dir
4887 if test "${ac_cv_path_install+set}" = set; then
4888 INSTALL=$ac_cv_path_install
4890 # As a last resort, use the slow shell script. Don't cache a
4891 # value for INSTALL within a source directory, because that will
4892 # break other packages using the cache if that directory is
4893 # removed, or if the value is a relative name.
4894 INSTALL=$ac_install_sh
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4898 $as_echo "$INSTALL" >&6; }
4900 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4901 # It thinks the first close brace ends the variable substitution.
4902 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4904 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4906 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4908 # Extract the first word of "mv", so it can be a program name with args.
4909 set dummy mv; ac_word=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if ${ac_cv_path_MV+:} false; then :
4913 $as_echo_n "(cached) " >&6
4917 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4940 if test -n "$MV"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4942 $as_echo "$MV" >&6; }
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4949 # Extract the first word of "rm", so it can be a program name with args.
4950 set dummy rm; ac_word=$2
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952 $as_echo_n "checking for $ac_word... " >&6; }
4953 if ${ac_cv_path_REMOVE+:} false; then :
4954 $as_echo_n "(cached) " >&6
4958 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4980 REMOVE=$ac_cv_path_REMOVE
4981 if test -n "$REMOVE"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4983 $as_echo "$REMOVE" >&6; }
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4990 # Extract the first word of "cp", so it can be a program name with args.
4991 set dummy cp; ac_word=$2
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if ${ac_cv_path_CP+:} false; then :
4995 $as_echo_n "(cached) " >&6
4999 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5022 if test -n "$CP"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5024 $as_echo "$CP" >&6; }
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5031 # Extract the first word of "sed", so it can be a program name with args.
5032 set dummy sed; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_path_SED+:} false; then :
5036 $as_echo_n "(cached) " >&6
5040 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5063 if test -n "$SED"; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5065 $as_echo "$SED" >&6; }
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068 $as_echo "no" >&6; }
5072 # Extract the first word of "echo", so it can be a program name with args.
5073 set dummy echo; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if ${ac_cv_path_ECHO+:} false; then :
5077 $as_echo_n "(cached) " >&6
5081 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5103 ECHO=$ac_cv_path_ECHO
5104 if test -n "$ECHO"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5106 $as_echo "$ECHO" >&6; }
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5113 # Extract the first word of "cmp", so it can be a program name with args.
5114 set dummy cmp; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_path_CMP+:} false; then :
5118 $as_echo_n "(cached) " >&6
5122 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5145 if test -n "$CMP"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5147 $as_echo "$CMP" >&6; }
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5154 # Extract the first word of "tbl", so it can be a program name with args.
5155 set dummy tbl; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_path_TBL+:} false; then :
5159 $as_echo_n "(cached) " >&6
5163 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5186 if test -n "$TBL"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5188 $as_echo "$TBL" >&6; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5195 # Extract the first word of "ar", so it can be a program name with args.
5196 set dummy ar; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_path_AR+:} false; then :
5200 $as_echo_n "(cached) " >&6
5204 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5227 if test -n "$AR"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5229 $as_echo "$AR" >&6; }
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5236 # Extract the first word of "openssl", so it can be a program name with args.
5237 set dummy openssl; ac_word=$2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if ${ac_cv_path_OPENSSL+:} false; then :
5241 $as_echo_n "(cached) " >&6
5245 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5267 OPENSSL=$ac_cv_path_OPENSSL
5268 if test -n "$OPENSSL"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5270 $as_echo "$OPENSSL" >&6; }
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5277 # Extract the first word of "mtx", so it can be a program name with args.
5278 set dummy mtx; ac_word=$2
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if ${ac_cv_path_MTX+:} false; then :
5282 $as_echo_n "(cached) " >&6
5286 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5296 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5309 if test -n "$MTX"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5311 $as_echo "$MTX" >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5318 # Extract the first word of "dd", so it can be a program name with args.
5319 set dummy dd; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if ${ac_cv_path_DD+:} false; then :
5323 $as_echo_n "(cached) " >&6
5327 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5350 if test -n "$DD"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5352 $as_echo "$DD" >&6; }
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5359 # Extract the first word of "mkisofs", so it can be a program name with args.
5360 set dummy mkisofs; ac_word=$2
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362 $as_echo_n "checking for $ac_word... " >&6; }
5363 if ${ac_cv_path_MKISOFS+:} false; then :
5364 $as_echo_n "(cached) " >&6
5368 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5390 MKISOFS=$ac_cv_path_MKISOFS
5391 if test -n "$MKISOFS"; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5393 $as_echo "$MKISOFS" >&6; }
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5400 # Extract the first word of "python", so it can be a program name with args.
5401 set dummy python; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if ${ac_cv_path_PYTHON+:} false; then :
5405 $as_echo_n "(cached) " >&6
5409 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5431 PYTHON=$ac_cv_path_PYTHON
5432 if test -n "$PYTHON"; then
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5434 $as_echo "$PYTHON" >&6; }
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5441 # Extract the first word of "growisofs", so it can be a program name with args.
5442 set dummy growisofs; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_path_GROWISOFS+:} false; then :
5446 $as_echo_n "(cached) " >&6
5450 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5472 GROWISOFS=$ac_cv_path_GROWISOFS
5473 if test -n "$GROWISOFS"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5475 $as_echo "$GROWISOFS" >&6; }
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5482 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5483 set dummy dvd+rw-mediainfo; ac_word=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5487 $as_echo_n "(cached) " >&6
5489 case $DVDRWMEDIAINFO in
5491 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5513 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5514 if test -n "$DVDRWMEDIAINFO"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5516 $as_echo "$DVDRWMEDIAINFO" >&6; }
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5523 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5524 set dummy dvd+rw-format; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5528 $as_echo_n "(cached) " >&6
5530 case $DVDRWFORMAT in
5532 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5554 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5555 if test -n "$DVDRWFORMAT"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5557 $as_echo "$DVDRWFORMAT" >&6; }
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5564 # Extract the first word of "pkg-config", so it can be a program name with args.
5565 set dummy pkg-config; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_path_PKGCONFIG+:} false; then :
5569 $as_echo_n "(cached) " >&6
5573 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5595 PKGCONFIG=$ac_cv_path_PKGCONFIG
5596 if test -n "$PKGCONFIG"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5598 $as_echo "$PKGCONFIG" >&6; }
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5605 # Extract the first word of "qmake", so it can be a program name with args.
5606 set dummy qmake; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if ${ac_cv_path_QMAKE+:} false; then :
5610 $as_echo_n "(cached) " >&6
5614 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5636 QMAKE=$ac_cv_path_QMAKE
5637 if test -n "$QMAKE"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5639 $as_echo "$QMAKE" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5646 # Extract the first word of "gmake", so it can be a program name with args.
5647 set dummy gmake; ac_word=$2
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649 $as_echo_n "checking for $ac_word... " >&6; }
5650 if ${ac_cv_path_GMAKE+:} false; then :
5651 $as_echo_n "(cached) " >&6
5655 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 test -z "$as_dir" && as_dir=.
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5677 GMAKE=$ac_cv_path_GMAKE
5678 if test -n "$GMAKE"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5680 $as_echo "$GMAKE" >&6; }
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5687 # Extract the first word of "pidof", so it can be a program name with args.
5688 set dummy pidof; ac_word=$2
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if ${ac_cv_path_PIDOF+:} false; then :
5692 $as_echo_n "(cached) " >&6
5696 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5706 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5718 PIDOF=$ac_cv_path_PIDOF
5719 if test -n "$PIDOF"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5721 $as_echo "$PIDOF" >&6; }
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5728 for ac_prog in gawk mawk nawk awk
5730 # Extract the first word of "$ac_prog", so it can be a program name with args.
5731 set dummy $ac_prog; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_prog_AWK+:} false; then :
5735 $as_echo_n "(cached) " >&6
5737 if test -n "$AWK"; then
5738 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747 ac_cv_prog_AWK="$ac_prog"
5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 if test -n "$AWK"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5760 $as_echo "$AWK" >&6; }
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5767 test -n "$AWK" && break
5770 # Some AWK programs fail, so test it and warn the user
5771 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5772 { if ((prog == $2) || (("(" prog ")") == $2) ||
5773 (("" prog "") == $2) ||
5774 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5776 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5777 The regex engine of $AWK is too broken to be used you
5778 might want to install GNU AWK.
5779 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5782 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5783 set dummy $THE_AWK; ac_word=$2
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 $as_echo_n "checking for $ac_word... " >&6; }
5786 if ${ac_cv_path_AWK+:} false; then :
5787 $as_echo_n "(cached) " >&6
5791 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5801 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5814 if test -n "$AWK"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5816 $as_echo "$AWK" >&6; }
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5825 test -n "$ARFLAG" || ARFLAGS="cr"
5837 # Check whether --enable-libtool was given.
5838 if test "${enable_libtool+set}" = set; then :
5839 enableval=$enable_libtool;
5840 if test x$enableval = xno; then
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5850 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5855 macro_version='2.4.2'
5856 macro_revision='1.3337'
5870 ltmain="$ac_aux_dir/ltmain.sh"
5872 # Make sure we can run config.sub.
5873 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5874 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5877 $as_echo_n "checking build system type... " >&6; }
5878 if ${ac_cv_build+:} false; then :
5879 $as_echo_n "(cached) " >&6
5881 ac_build_alias=$build_alias
5882 test "x$ac_build_alias" = x &&
5883 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5884 test "x$ac_build_alias" = x &&
5885 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5886 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5887 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5891 $as_echo "$ac_cv_build" >&6; }
5892 case $ac_cv_build in
5894 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5897 ac_save_IFS=$IFS; IFS='-'
5903 # Remember, the first character of IFS is used to create $*,
5904 # except with old shells:
5907 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5911 $as_echo_n "checking host system type... " >&6; }
5912 if ${ac_cv_host+:} false; then :
5913 $as_echo_n "(cached) " >&6
5915 if test "x$host_alias" = x; then
5916 ac_cv_host=$ac_cv_build
5918 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5919 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5924 $as_echo "$ac_cv_host" >&6; }
5927 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5930 ac_save_IFS=$IFS; IFS='-'
5936 # Remember, the first character of IFS is used to create $*,
5937 # except with old shells:
5940 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5943 # Backslashify metacharacters that are still active within
5944 # double-quoted strings.
5945 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5947 # Same as above, but do not quote variable references.
5948 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5950 # Sed substitution to delay expansion of an escaped shell variable in a
5951 # double_quote_subst'ed string.
5952 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5954 # Sed substitution to delay expansion of an escaped single quote.
5955 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5957 # Sed substitution to avoid accidental globbing in evaled expressions
5958 no_glob_subst='s/\*/\\\*/g'
5960 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5961 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5962 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5965 $as_echo_n "checking how to print strings... " >&6; }
5966 # Test print first, because it will be a builtin if present.
5967 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5968 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5970 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5973 # Use this function as a fallback that always works.
5974 func_fallback_echo ()
5976 eval 'cat <<_LTECHO_EOF
5980 ECHO='func_fallback_echo'
5983 # func_echo_all arg...
5984 # Invoke $ECHO with all args, space-separated.
5991 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5992 $as_echo "printf" >&6; } ;;
5993 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5994 $as_echo "print -r" >&6; } ;;
5995 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5996 $as_echo "cat" >&6; } ;;
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6013 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6014 if ${ac_cv_path_SED+:} false; then :
6015 $as_echo_n "(cached) " >&6
6017 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6018 for ac_i in 1 2 3 4 5 6 7; do
6019 ac_script="$ac_script$as_nl$ac_script"
6021 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6022 { ac_script=; unset ac_script;}
6023 if test -z "$SED"; then
6024 ac_path_SED_found=false
6025 # Loop through the user's path and test for each of PROGNAME-LIST
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 test -z "$as_dir" && as_dir=.
6031 for ac_prog in sed gsed; do
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6034 as_fn_executable_p "$ac_path_SED" || continue
6035 # Check for GNU ac_path_SED and select it if it is found.
6036 # Check for GNU $ac_path_SED
6037 case `"$ac_path_SED" --version 2>&1` in
6039 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6042 $as_echo_n 0123456789 >"conftest.in"
6045 cat "conftest.in" "conftest.in" >"conftest.tmp"
6046 mv "conftest.tmp" "conftest.in"
6047 cp "conftest.in" "conftest.nl"
6048 $as_echo '' >> "conftest.nl"
6049 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6051 as_fn_arith $ac_count + 1 && ac_count=$as_val
6052 if test $ac_count -gt ${ac_path_SED_max-0}; then
6053 # Best one so far, save it but keep looking for a better one
6054 ac_cv_path_SED="$ac_path_SED"
6055 ac_path_SED_max=$ac_count
6057 # 10*(2^10) chars as input seems more than enough
6058 test $ac_count -gt 10 && break
6060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6063 $ac_path_SED_found && break 3
6068 if test -z "$ac_cv_path_SED"; then
6069 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6077 $as_echo "$ac_cv_path_SED" >&6; }
6078 SED="$ac_cv_path_SED"
6081 test -z "$SED" && SED=sed
6082 Xsed="$SED -e 1s/^X//"
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6095 $as_echo_n "checking for fgrep... " >&6; }
6096 if ${ac_cv_path_FGREP+:} false; then :
6097 $as_echo_n "(cached) " >&6
6099 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6100 then ac_cv_path_FGREP="$GREP -F"
6102 if test -z "$FGREP"; then
6103 ac_path_FGREP_found=false
6104 # Loop through the user's path and test for each of PROGNAME-LIST
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6109 test -z "$as_dir" && as_dir=.
6110 for ac_prog in fgrep; do
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6113 as_fn_executable_p "$ac_path_FGREP" || continue
6114 # Check for GNU ac_path_FGREP and select it if it is found.
6115 # Check for GNU $ac_path_FGREP
6116 case `"$ac_path_FGREP" --version 2>&1` in
6118 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6121 $as_echo_n 0123456789 >"conftest.in"
6124 cat "conftest.in" "conftest.in" >"conftest.tmp"
6125 mv "conftest.tmp" "conftest.in"
6126 cp "conftest.in" "conftest.nl"
6127 $as_echo 'FGREP' >> "conftest.nl"
6128 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6129 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6130 as_fn_arith $ac_count + 1 && ac_count=$as_val
6131 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6132 # Best one so far, save it but keep looking for a better one
6133 ac_cv_path_FGREP="$ac_path_FGREP"
6134 ac_path_FGREP_max=$ac_count
6136 # 10*(2^10) chars as input seems more than enough
6137 test $ac_count -gt 10 && break
6139 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6142 $ac_path_FGREP_found && break 3
6147 if test -z "$ac_cv_path_FGREP"; then
6148 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6151 ac_cv_path_FGREP=$FGREP
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6157 $as_echo "$ac_cv_path_FGREP" >&6; }
6158 FGREP="$ac_cv_path_FGREP"
6161 test -z "$GREP" && GREP=grep
6181 # Check whether --with-gnu-ld was given.
6182 if test "${with_gnu_ld+set}" = set; then :
6183 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6189 if test "$GCC" = yes; then
6190 # Check if gcc -print-prog-name=ld gives a path.
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6192 $as_echo_n "checking for ld used by $CC... " >&6; }
6195 # gcc leaves a trailing carriage return which upsets mingw
6196 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6198 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6201 # Accept absolute paths.
6203 re_direlt='/[^/][^/]*/\.\./'
6204 # Canonicalize the pathname of ld
6205 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6206 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6207 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6209 test -z "$LD" && LD="$ac_prog"
6212 # If it fails, then pretend we aren't using GCC.
6216 # If it is relative, then search for the first ld in PATH.
6220 elif test "$with_gnu_ld" = yes; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6222 $as_echo_n "checking for GNU ld... " >&6; }
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6225 $as_echo_n "checking for non-GNU ld... " >&6; }
6227 if ${lt_cv_path_LD+:} false; then :
6228 $as_echo_n "(cached) " >&6
6230 if test -z "$LD"; then
6231 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6232 for ac_dir in $PATH; do
6234 test -z "$ac_dir" && ac_dir=.
6235 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6236 lt_cv_path_LD="$ac_dir/$ac_prog"
6237 # Check to see if the program is GNU ld. I'd rather use --version,
6238 # but apparently some variants of GNU ld only accept -v.
6239 # Break only if it was the GNU/non-GNU ld that we prefer.
6240 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6241 *GNU* | *'with BFD'*)
6242 test "$with_gnu_ld" != no && break
6245 test "$with_gnu_ld" != yes && break
6252 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6257 if test -n "$LD"; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6259 $as_echo "$LD" >&6; }
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262 $as_echo "no" >&6; }
6264 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6266 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6267 if ${lt_cv_prog_gnu_ld+:} false; then :
6268 $as_echo_n "(cached) " >&6
6270 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6271 case `$LD -v 2>&1 </dev/null` in
6272 *GNU* | *'with BFD'*)
6273 lt_cv_prog_gnu_ld=yes
6276 lt_cv_prog_gnu_ld=no
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6281 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6282 with_gnu_ld=$lt_cv_prog_gnu_ld
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6293 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6294 if ${lt_cv_path_NM+:} false; then :
6295 $as_echo_n "(cached) " >&6
6297 if test -n "$NM"; then
6298 # Let the user override the test.
6301 lt_nm_to_check="${ac_tool_prefix}nm"
6302 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6303 lt_nm_to_check="$lt_nm_to_check nm"
6305 for lt_tmp_nm in $lt_nm_to_check; do
6306 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6307 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6309 test -z "$ac_dir" && ac_dir=.
6310 tmp_nm="$ac_dir/$lt_tmp_nm"
6311 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6312 # Check to see if the nm accepts a BSD-compat flag.
6313 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6314 # nm: unknown option "B" ignored
6315 # Tru64's nm complains that /dev/null is an invalid object file
6316 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6317 */dev/null* | *'Invalid file or object type'*)
6318 lt_cv_path_NM="$tmp_nm -B"
6322 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6324 lt_cv_path_NM="$tmp_nm -p"
6328 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6329 continue # so that we can try to find one that supports BSD flags
6338 : ${lt_cv_path_NM=no}
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6342 $as_echo "$lt_cv_path_NM" >&6; }
6343 if test "$lt_cv_path_NM" != "no"; then
6346 # Didn't find any BSD compatible name lister, look for dumpbin.
6347 if test -n "$DUMPBIN"; then :
6348 # Let the user override the test.
6350 if test -n "$ac_tool_prefix"; then
6351 for ac_prog in dumpbin "link -dump"
6353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if ${ac_cv_prog_DUMPBIN+:} false; then :
6358 $as_echo_n "(cached) " >&6
6360 if test -n "$DUMPBIN"; then
6361 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6370 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 DUMPBIN=$ac_cv_prog_DUMPBIN
6381 if test -n "$DUMPBIN"; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6383 $as_echo "$DUMPBIN" >&6; }
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6390 test -n "$DUMPBIN" && break
6393 if test -z "$DUMPBIN"; then
6394 ac_ct_DUMPBIN=$DUMPBIN
6395 for ac_prog in dumpbin "link -dump"
6397 # Extract the first word of "$ac_prog", so it can be a program name with args.
6398 set dummy $ac_prog; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6402 $as_echo_n "(cached) " >&6
6404 if test -n "$ac_ct_DUMPBIN"; then
6405 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6425 if test -n "$ac_ct_DUMPBIN"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6427 $as_echo "$ac_ct_DUMPBIN" >&6; }
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6434 test -n "$ac_ct_DUMPBIN" && break
6437 if test "x$ac_ct_DUMPBIN" = x; then
6440 case $cross_compiling:$ac_tool_warned in
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6444 ac_tool_warned=yes ;;
6446 DUMPBIN=$ac_ct_DUMPBIN
6450 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6452 DUMPBIN="$DUMPBIN -symbols"
6460 if test "$DUMPBIN" != ":"; then
6464 test -z "$NM" && NM=nm
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6472 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6473 if ${lt_cv_nm_interface+:} false; then :
6474 $as_echo_n "(cached) " >&6
6476 lt_cv_nm_interface="BSD nm"
6477 echo "int some_variable = 0;" > conftest.$ac_ext
6478 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6479 (eval "$ac_compile" 2>conftest.err)
6480 cat conftest.err >&5
6481 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6482 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6483 cat conftest.err >&5
6484 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6485 cat conftest.out >&5
6486 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6487 lt_cv_nm_interface="MS dumpbin"
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6492 $as_echo "$lt_cv_nm_interface" >&6; }
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6495 $as_echo_n "checking whether ln -s works... " >&6; }
6497 if test "$LN_S" = "ln -s"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6499 $as_echo "yes" >&6; }
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6502 $as_echo "no, using $LN_S" >&6; }
6505 # find the maximum length of command line arguments
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6507 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6508 if ${lt_cv_sys_max_cmd_len+:} false; then :
6509 $as_echo_n "(cached) " >&6
6516 # On DJGPP, this test can blow up pretty badly due to problems in libc
6517 # (any single argument exceeding 2000 bytes causes a buffer overrun
6518 # during glob expansion). Even if it were fixed, the result of this
6519 # check would be larger than it should be.
6520 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6524 # Under GNU Hurd, this test is not required because there is
6525 # no limit to the length of command line arguments.
6526 # Libtool will interpret -1 as no limit whatsoever
6527 lt_cv_sys_max_cmd_len=-1;
6530 cygwin* | mingw* | cegcc*)
6531 # On Win9x/ME, this test blows up -- it succeeds, but takes
6532 # about 5 minutes as the teststring grows exponentially.
6533 # Worse, since 9x/ME are not pre-emptively multitasking,
6534 # you end up with a "frozen" computer, even though with patience
6535 # the test eventually succeeds (with a max line length of 256k).
6536 # Instead, let's just punt: use the minimum linelength reported by
6537 # all of the supported platforms: 8192 (on NT/2K/XP).
6538 lt_cv_sys_max_cmd_len=8192;
6542 # On MiNT this can take a long time and run out of memory.
6543 lt_cv_sys_max_cmd_len=8192;
6547 # On AmigaOS with pdksh, this test takes hours, literally.
6548 # So we just punt and use a minimum line length of 8192.
6549 lt_cv_sys_max_cmd_len=8192;
6552 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6553 # This has been around since 386BSD, at least. Likely further.
6554 if test -x /sbin/sysctl; then
6555 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6556 elif test -x /usr/sbin/sysctl; then
6557 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6559 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6561 # And add a safety zone
6562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6567 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6568 lt_cv_sys_max_cmd_len=196608
6572 # The test takes a long time on OS/2.
6573 lt_cv_sys_max_cmd_len=8192
6577 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6578 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6579 # nice to cause kernel panics so lets avoid the loop below.
6580 # First set a reasonable default.
6581 lt_cv_sys_max_cmd_len=16384
6583 if test -x /sbin/sysconfig; then
6584 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6585 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6590 lt_cv_sys_max_cmd_len=102400
6592 sysv5* | sco5v6* | sysv4.2uw2*)
6593 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6594 if test -n "$kargmax"; then
6595 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6597 lt_cv_sys_max_cmd_len=32768
6601 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6602 if test -n "$lt_cv_sys_max_cmd_len" && \
6603 test undefined != "$lt_cv_sys_max_cmd_len"; then
6604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6607 # Make teststring a little bigger before we do anything with it.
6608 # a 1K string should be a reasonable start.
6609 for i in 1 2 3 4 5 6 7 8 ; do
6610 teststring=$teststring$teststring
6612 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6613 # If test is not a shell built-in, we'll probably end up computing a
6614 # maximum length that is only half of the actual maximum length, but
6616 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6617 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6618 test $i != 17 # 1/2 MB should be enough
6621 teststring=$teststring$teststring
6623 # Only check the string length outside the loop.
6624 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6626 # Add a significant safety factor because C++ compilers can tack on
6627 # massive amounts of additional arguments before passing them to the
6628 # linker. It appears as though 1/2 is a usable value.
6629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6636 if test -n $lt_cv_sys_max_cmd_len ; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6638 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6641 $as_echo "none" >&6; }
6643 max_cmd_len=$lt_cv_sys_max_cmd_len
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6655 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6656 # Try some XSI features
6659 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6661 && eval 'test $(( 1 + 1 )) -eq 2 \
6662 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6665 $as_echo "$xsi_shell" >&6; }
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6669 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6671 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6673 && lt_shell_append=yes
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6675 $as_echo "$lt_shell_append" >&6; }
6678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6688 # test EBCDIC or ASCII
6689 case `echo X|tr X '\101'` in
6690 A) # ASCII based system
6691 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6692 lt_SP2NL='tr \040 \012'
6693 lt_NL2SP='tr \015\012 \040\040'
6695 *) # EBCDIC based system
6696 lt_SP2NL='tr \100 \n'
6697 lt_NL2SP='tr \r\n \100\100'
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6710 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6711 if ${lt_cv_to_host_file_cmd+:} false; then :
6712 $as_echo_n "(cached) " >&6
6717 *-*-mingw* ) # actually msys
6718 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6721 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6723 * ) # otherwise, assume *nix
6724 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6730 *-*-mingw* ) # actually msys
6731 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6734 lt_cv_to_host_file_cmd=func_convert_file_noop
6736 * ) # otherwise, assume *nix
6737 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6741 * ) # unhandled hosts (and "normal" native builds)
6742 lt_cv_to_host_file_cmd=func_convert_file_noop
6748 to_host_file_cmd=$lt_cv_to_host_file_cmd
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6750 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6757 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6758 if ${lt_cv_to_tool_file_cmd+:} false; then :
6759 $as_echo_n "(cached) " >&6
6761 #assume ordinary cross tools, or native build.
6762 lt_cv_to_tool_file_cmd=func_convert_file_noop
6766 *-*-mingw* ) # actually msys
6767 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6775 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6777 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6784 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6785 if ${lt_cv_ld_reload_flag+:} false; then :
6786 $as_echo_n "(cached) " >&6
6788 lt_cv_ld_reload_flag='-r'
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6791 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6792 reload_flag=$lt_cv_ld_reload_flag
6793 case $reload_flag in
6795 *) reload_flag=" $reload_flag" ;;
6797 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6799 cygwin* | mingw* | pw32* | cegcc*)
6800 if test "$GCC" != yes; then
6805 if test "$GCC" = yes; then
6806 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6808 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6821 if test -n "$ac_tool_prefix"; then
6822 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6823 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_OBJDUMP+:} false; then :
6827 $as_echo_n "(cached) " >&6
6829 if test -n "$OBJDUMP"; then
6830 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 OBJDUMP=$ac_cv_prog_OBJDUMP
6850 if test -n "$OBJDUMP"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6852 $as_echo "$OBJDUMP" >&6; }
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6860 if test -z "$ac_cv_prog_OBJDUMP"; then
6861 ac_ct_OBJDUMP=$OBJDUMP
6862 # Extract the first word of "objdump", so it can be a program name with args.
6863 set dummy objdump; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6867 $as_echo_n "(cached) " >&6
6869 if test -n "$ac_ct_OBJDUMP"; then
6870 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6879 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6890 if test -n "$ac_ct_OBJDUMP"; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6892 $as_echo "$ac_ct_OBJDUMP" >&6; }
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6898 if test "x$ac_ct_OBJDUMP" = x; then
6901 case $cross_compiling:$ac_tool_warned in
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905 ac_tool_warned=yes ;;
6907 OBJDUMP=$ac_ct_OBJDUMP
6910 OBJDUMP="$ac_cv_prog_OBJDUMP"
6913 test -z "$OBJDUMP" && OBJDUMP=objdump
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6924 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6925 if ${lt_cv_deplibs_check_method+:} false; then :
6926 $as_echo_n "(cached) " >&6
6928 lt_cv_file_magic_cmd='$MAGIC_CMD'
6929 lt_cv_file_magic_test_file=
6930 lt_cv_deplibs_check_method='unknown'
6931 # Need to set the preceding variable on all platforms that support
6932 # interlibrary dependencies.
6933 # 'none' -- dependencies not supported.
6934 # `unknown' -- same as none, but documents that we really don't know.
6935 # 'pass_all' -- all dependencies passed with no checks.
6936 # 'test_compile' -- check by making test program.
6937 # 'file_magic [[regex]]' -- check by looking for files in library path
6938 # which responds to the $file_magic_cmd with a given extended regex.
6939 # If you have `file' or equivalent on your system and you're not sure
6940 # whether `pass_all' will *always* work, you probably want this one.
6944 lt_cv_deplibs_check_method=pass_all
6948 lt_cv_deplibs_check_method=pass_all
6952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6953 lt_cv_file_magic_cmd='/usr/bin/file -L'
6954 lt_cv_file_magic_test_file=/shlib/libc.so
6958 # func_win32_libid is a shell function defined in ltmain.sh
6959 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6960 lt_cv_file_magic_cmd='func_win32_libid'
6964 # Base MSYS/MinGW do not provide the 'file' command needed by
6965 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6966 # unless we find 'file', for example because we are cross-compiling.
6967 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6968 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6969 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6970 lt_cv_file_magic_cmd='func_win32_libid'
6972 # Keep this pattern in sync with the one in func_win32_libid.
6973 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6974 lt_cv_file_magic_cmd='$OBJDUMP -f'
6979 # use the weaker test based on 'objdump'. See mingw*.
6980 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6981 lt_cv_file_magic_cmd='$OBJDUMP -f'
6984 darwin* | rhapsody*)
6985 lt_cv_deplibs_check_method=pass_all
6988 freebsd* | dragonfly*)
6989 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6992 # Not sure whether the presence of OpenBSD here was a mistake.
6993 # Let's accept both of them until this is cleared up.
6994 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6995 lt_cv_file_magic_cmd=/usr/bin/file
6996 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7000 lt_cv_deplibs_check_method=pass_all
7005 lt_cv_deplibs_check_method=pass_all
7008 hpux10.20* | hpux11*)
7009 lt_cv_file_magic_cmd=/usr/bin/file
7012 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7013 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7016 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]'
7017 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7020 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7021 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7027 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7031 irix5* | irix6* | nonstopux*)
7033 *-32|*"-32 ") libmagic=32-bit;;
7034 *-n32|*"-n32 ") libmagic=N32;;
7035 *-64|*"-64 ") libmagic=64-bit;;
7036 *) libmagic=never-match;;
7038 lt_cv_deplibs_check_method=pass_all
7041 # This must be glibc/ELF.
7042 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7043 lt_cv_deplibs_check_method=pass_all
7046 netbsd* | netbsdelf*-gnu)
7047 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7050 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7056 lt_cv_file_magic_cmd=/usr/bin/file
7057 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7061 lt_cv_deplibs_check_method=pass_all
7065 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7072 osf3* | osf4* | osf5*)
7073 lt_cv_deplibs_check_method=pass_all
7077 lt_cv_deplibs_check_method=pass_all
7081 lt_cv_deplibs_check_method=pass_all
7084 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7085 lt_cv_deplibs_check_method=pass_all
7089 case $host_vendor in
7091 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]'
7092 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7095 lt_cv_deplibs_check_method=pass_all
7098 lt_cv_file_magic_cmd='/bin/file'
7099 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7102 lt_cv_file_magic_cmd='/bin/file'
7103 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7104 lt_cv_file_magic_test_file=/lib/libc.so
7107 lt_cv_deplibs_check_method=pass_all
7110 lt_cv_deplibs_check_method=pass_all
7116 lt_cv_deplibs_check_method=pass_all
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7122 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7126 if test "$build" = "$host"; then
7129 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7132 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7138 file_magic_cmd=$lt_cv_file_magic_cmd
7139 deplibs_check_method=$lt_cv_deplibs_check_method
7140 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7163 if test -n "$ac_tool_prefix"; then
7164 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7165 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if ${ac_cv_prog_DLLTOOL+:} false; then :
7169 $as_echo_n "(cached) " >&6
7171 if test -n "$DLLTOOL"; then
7172 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 DLLTOOL=$ac_cv_prog_DLLTOOL
7192 if test -n "$DLLTOOL"; then
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7194 $as_echo "$DLLTOOL" >&6; }
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7202 if test -z "$ac_cv_prog_DLLTOOL"; then
7203 ac_ct_DLLTOOL=$DLLTOOL
7204 # Extract the first word of "dlltool", so it can be a program name with args.
7205 set dummy dlltool; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7209 $as_echo_n "(cached) " >&6
7211 if test -n "$ac_ct_DLLTOOL"; then
7212 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7232 if test -n "$ac_ct_DLLTOOL"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7234 $as_echo "$ac_ct_DLLTOOL" >&6; }
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7240 if test "x$ac_ct_DLLTOOL" = x; then
7243 case $cross_compiling:$ac_tool_warned in
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7247 ac_tool_warned=yes ;;
7249 DLLTOOL=$ac_ct_DLLTOOL
7252 DLLTOOL="$ac_cv_prog_DLLTOOL"
7255 test -z "$DLLTOOL" && DLLTOOL=dlltool
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7267 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7268 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7269 $as_echo_n "(cached) " >&6
7271 lt_cv_sharedlib_from_linklib_cmd='unknown'
7274 cygwin* | mingw* | pw32* | cegcc*)
7275 # two different shell functions defined in ltmain.sh
7276 # decide which to use based on capabilities of $DLLTOOL
7277 case `$DLLTOOL --help 2>&1` in
7278 *--identify-strict*)
7279 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7282 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7287 # fallback: assume linklib IS sharedlib
7288 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7294 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7295 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7296 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7304 if test -n "$ac_tool_prefix"; then
7307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_AR+:} false; then :
7312 $as_echo_n "(cached) " >&6
7314 if test -n "$AR"; then
7315 ac_cv_prog_AR="$AR" # Let the user override the test.
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 if test -n "$AR"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7337 $as_echo "$AR" >&6; }
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7344 test -n "$AR" && break
7347 if test -z "$AR"; then
7351 # Extract the first word of "$ac_prog", so it can be a program name with args.
7352 set dummy $ac_prog; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7356 $as_echo_n "(cached) " >&6
7358 if test -n "$ac_ct_AR"; then
7359 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368 ac_cv_prog_ac_ct_AR="$ac_prog"
7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7379 if test -n "$ac_ct_AR"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7381 $as_echo "$ac_ct_AR" >&6; }
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7388 test -n "$ac_ct_AR" && break
7391 if test "x$ac_ct_AR" = x; then
7394 case $cross_compiling:$ac_tool_warned in
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398 ac_tool_warned=yes ;;
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7418 $as_echo_n "checking for archiver @FILE support... " >&6; }
7419 if ${lt_cv_ar_at_file+:} false; then :
7420 $as_echo_n "(cached) " >&6
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7434 if ac_fn_c_try_compile "$LINENO"; then :
7435 echo conftest.$ac_objext > conftest.lst
7436 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7438 (eval $lt_ar_try) 2>&5
7440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7441 test $ac_status = 0; }
7442 if test "$ac_status" -eq 0; then
7443 # Ensure the archiver fails upon bogus file names.
7444 rm -f conftest.$ac_objext libconftest.a
7445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7446 (eval $lt_ar_try) 2>&5
7448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449 test $ac_status = 0; }
7450 if test "$ac_status" -ne 0; then
7454 rm -f conftest.* libconftest.a
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7461 $as_echo "$lt_cv_ar_at_file" >&6; }
7463 if test "x$lt_cv_ar_at_file" = xno; then
7466 archiver_list_spec=$lt_cv_ar_at_file
7475 if test -n "$ac_tool_prefix"; then
7476 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7477 set dummy ${ac_tool_prefix}strip; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_STRIP+:} false; then :
7481 $as_echo_n "(cached) " >&6
7483 if test -n "$STRIP"; then
7484 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 STRIP=$ac_cv_prog_STRIP
7504 if test -n "$STRIP"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7506 $as_echo "$STRIP" >&6; }
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7514 if test -z "$ac_cv_prog_STRIP"; then
7516 # Extract the first word of "strip", so it can be a program name with args.
7517 set dummy strip; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7521 $as_echo_n "(cached) " >&6
7523 if test -n "$ac_ct_STRIP"; then
7524 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533 ac_cv_prog_ac_ct_STRIP="strip"
7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7544 if test -n "$ac_ct_STRIP"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7546 $as_echo "$ac_ct_STRIP" >&6; }
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7552 if test "x$ac_ct_STRIP" = x; then
7555 case $cross_compiling:$ac_tool_warned in
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7559 ac_tool_warned=yes ;;
7564 STRIP="$ac_cv_prog_STRIP"
7567 test -z "$STRIP" && STRIP=:
7574 if test -n "$ac_tool_prefix"; then
7575 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7576 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if ${ac_cv_prog_RANLIB+:} false; then :
7580 $as_echo_n "(cached) " >&6
7582 if test -n "$RANLIB"; then
7583 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 RANLIB=$ac_cv_prog_RANLIB
7603 if test -n "$RANLIB"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7605 $as_echo "$RANLIB" >&6; }
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7613 if test -z "$ac_cv_prog_RANLIB"; then
7614 ac_ct_RANLIB=$RANLIB
7615 # Extract the first word of "ranlib", so it can be a program name with args.
7616 set dummy ranlib; ac_word=$2
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618 $as_echo_n "checking for $ac_word... " >&6; }
7619 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7620 $as_echo_n "(cached) " >&6
7622 if test -n "$ac_ct_RANLIB"; then
7623 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632 ac_cv_prog_ac_ct_RANLIB="ranlib"
7633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7643 if test -n "$ac_ct_RANLIB"; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7645 $as_echo "$ac_ct_RANLIB" >&6; }
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7651 if test "x$ac_ct_RANLIB" = x; then
7654 case $cross_compiling:$ac_tool_warned in
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7658 ac_tool_warned=yes ;;
7660 RANLIB=$ac_ct_RANLIB
7663 RANLIB="$ac_cv_prog_RANLIB"
7666 test -z "$RANLIB" && RANLIB=:
7673 # Determine commands to create old-style static archives.
7674 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7675 old_postinstall_cmds='chmod 644 $oldlib'
7676 old_postuninstall_cmds=
7678 if test -n "$RANLIB"; then
7681 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7684 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7687 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7692 lock_old_archive_extraction=yes ;;
7694 lock_old_archive_extraction=no ;;
7735 # If no C compiler was specified, use CC.
7738 # If no C compiler flags were specified, use CFLAGS.
7739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7741 # Allow CC to be a program name with arguments.
7745 # Check for command to grab the raw symbol name followed by C symbol from nm.
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7747 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7748 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7749 $as_echo_n "(cached) " >&6
7752 # These are sane defaults that work on at least a few old systems.
7753 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7755 # Character class describing NM global symbol codes.
7756 symcode='[BCDEGRST]'
7758 # Regexp to match symbols that can be accessed directly from C.
7759 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7761 # Define system-specific variables.
7766 cygwin* | mingw* | pw32* | cegcc*)
7767 symcode='[ABCDGISTW]'
7770 if test "$host_cpu" = ia64; then
7771 symcode='[ABCDEGRST]'
7775 symcode='[BCDEGRST]'
7778 symcode='[BCDEGQRST]'
7789 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7797 # If we're using GNU nm, then use its standard symbol codes.
7798 case `$NM -V 2>&1` in
7799 *GNU* | *'with BFD'*)
7800 symcode='[ABCDGIRSTW]' ;;
7803 # Transform an extracted symbol line into a proper C declaration.
7804 # Some systems (esp. on ia64) link data and code symbols differently,
7805 # so use this general approach.
7806 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7808 # Transform an extracted symbol line into symbol name and symbol address
7809 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7810 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'"
7812 # Handle CRLF in mingw tool chain
7816 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7820 # Try without a prefix underscore, then with it.
7821 for ac_symprfx in "" "_"; do
7823 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7824 symxfrm="\\1 $ac_symprfx\\2 \\2"
7826 # Write the raw and C identifiers.
7827 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7828 # Fake it for dumpbin and say T for any non-static function
7829 # and D for any global variable.
7830 # Also find C++ and __fastcall symbols from MSVC++,
7831 # which start with @ or ?.
7832 lt_cv_sys_global_symbol_pipe="$AWK '"\
7833 " {last_section=section; section=\$ 3};"\
7834 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7835 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7836 " \$ 0!~/External *\|/{next};"\
7837 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7838 " {if(hide[section]) next};"\
7839 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7840 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7841 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7842 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7843 " ' prfx=^$ac_symprfx"
7845 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7847 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7849 # Check to see that the pipe works correctly.
7853 cat > conftest.$ac_ext <<_LT_EOF
7858 void nm_test_func(void);
7859 void nm_test_func(void){}
7863 int main(){nm_test_var='a';nm_test_func();return(0);}
7866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7867 (eval $ac_compile) 2>&5
7869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7870 test $ac_status = 0; }; then
7871 # Now try to grab the symbols.
7873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7874 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7877 test $ac_status = 0; } && test -s "$nlist"; then
7878 # Try sorting and uniquifying the output.
7879 if sort "$nlist" | uniq > "$nlist"T; then
7880 mv -f "$nlist"T "$nlist"
7885 # Make sure that we snagged all the symbols we need.
7886 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7887 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7888 cat <<_LT_EOF > conftest.$ac_ext
7889 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7890 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7891 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7892 relocations are performed -- see ld's documentation on pseudo-relocs. */
7893 # define LT_DLSYM_CONST
7894 #elif defined(__osf__)
7895 /* This system does not cope well with relocations in const data. */
7896 # define LT_DLSYM_CONST
7898 # define LT_DLSYM_CONST const
7906 # Now generate the symbol file.
7907 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7909 cat <<_LT_EOF >> conftest.$ac_ext
7911 /* The mapping between symbol names and symbols. */
7912 LT_DLSYM_CONST struct {
7916 lt__PROGRAM__LTX_preloaded_symbols[] =
7918 { "@PROGRAM@", (void *) 0 },
7920 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7921 cat <<\_LT_EOF >> conftest.$ac_ext
7925 /* This works around a problem in FreeBSD linker */
7926 #ifdef FREEBSD_WORKAROUND
7927 static const void *lt_preloaded_setup() {
7928 return lt__PROGRAM__LTX_preloaded_symbols;
7936 # Now try linking the two files.
7937 mv conftest.$ac_objext conftstm.$ac_objext
7938 lt_globsym_save_LIBS=$LIBS
7939 lt_globsym_save_CFLAGS=$CFLAGS
7940 LIBS="conftstm.$ac_objext"
7941 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7943 (eval $ac_link) 2>&5
7945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7946 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7949 LIBS=$lt_globsym_save_LIBS
7950 CFLAGS=$lt_globsym_save_CFLAGS
7952 echo "cannot find nm_test_func in $nlist" >&5
7955 echo "cannot find nm_test_var in $nlist" >&5
7958 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7961 echo "$progname: failed program was:" >&5
7962 cat conftest.$ac_ext >&5
7964 rm -rf conftest* conftst*
7966 # Do not use the global_symbol_pipe unless it works.
7967 if test "$pipe_works" = yes; then
7970 lt_cv_sys_global_symbol_pipe=
7976 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7977 lt_cv_sys_global_symbol_to_cdecl=
7979 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7981 $as_echo "failed" >&6; }
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7984 $as_echo "ok" >&6; }
7987 # Response file support.
7988 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7989 nm_file_list_spec='@'
7990 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7991 nm_file_list_spec='@'
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8021 $as_echo_n "checking for sysroot... " >&6; }
8023 # Check whether --with-sysroot was given.
8024 if test "${with_sysroot+set}" = set; then :
8025 withval=$with_sysroot;
8032 case ${with_sysroot} in #(
8034 if test "$GCC" = yes; then
8035 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8039 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8045 $as_echo "${with_sysroot}" >&6; }
8046 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8051 $as_echo "${lt_sysroot:-no}" >&6; }
8057 # Check whether --enable-libtool-lock was given.
8058 if test "${enable_libtool_lock+set}" = set; then :
8059 enableval=$enable_libtool_lock;
8062 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8064 # Some flags need to be propagated to the compiler or linker for good
8068 # Find out which ABI we are using.
8069 echo 'int i;' > conftest.$ac_ext
8070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8071 (eval $ac_compile) 2>&5
8073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8074 test $ac_status = 0; }; then
8075 case `/usr/bin/file conftest.$ac_objext` in
8087 # Find out which ABI we are using.
8088 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8090 (eval $ac_compile) 2>&5
8092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8093 test $ac_status = 0; }; then
8094 if test "$lt_cv_prog_gnu_ld" = yes; then
8095 case `/usr/bin/file conftest.$ac_objext` in
8097 LD="${LD-ld} -melf32bsmip"
8100 LD="${LD-ld} -melf32bmipn32"
8103 LD="${LD-ld} -melf64bmip"
8107 case `/usr/bin/file conftest.$ac_objext` in
8123 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8124 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8125 # Find out which ABI we are using.
8126 echo 'int i;' > conftest.$ac_ext
8127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8128 (eval $ac_compile) 2>&5
8130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8131 test $ac_status = 0; }; then
8132 case `/usr/bin/file conftest.o` in
8135 x86_64-*kfreebsd*-gnu)
8136 LD="${LD-ld} -m elf_i386_fbsd"
8139 case `/usr/bin/file conftest.o` in
8141 LD="${LD-ld} -m elf32_x86_64"
8144 LD="${LD-ld} -m elf_i386"
8149 LD="${LD-ld} -m elf32lppclinux"
8152 LD="${LD-ld} -m elf32ppclinux"
8155 LD="${LD-ld} -m elf_s390"
8158 LD="${LD-ld} -m elf32_sparc"
8164 x86_64-*kfreebsd*-gnu)
8165 LD="${LD-ld} -m elf_x86_64_fbsd"
8168 LD="${LD-ld} -m elf_x86_64"
8171 LD="${LD-ld} -m elf64lppc"
8174 LD="${LD-ld} -m elf64ppc"
8176 s390*-*linux*|s390*-*tpf*)
8177 LD="${LD-ld} -m elf64_s390"
8180 LD="${LD-ld} -m elf64_sparc"
8190 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8191 SAVE_CFLAGS="$CFLAGS"
8192 CFLAGS="$CFLAGS -belf"
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8194 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8195 if ${lt_cv_cc_needs_belf+:} false; then :
8196 $as_echo_n "(cached) " >&6
8199 ac_cpp='$CPP $CPPFLAGS'
8200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8215 if ac_fn_c_try_link "$LINENO"; then :
8216 lt_cv_cc_needs_belf=yes
8218 lt_cv_cc_needs_belf=no
8220 rm -f core conftest.err conftest.$ac_objext \
8221 conftest$ac_exeext conftest.$ac_ext
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
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8230 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8231 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8232 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8233 CFLAGS="$SAVE_CFLAGS"
8237 # Find out which ABI we are using.
8238 echo 'int i;' > conftest.$ac_ext
8239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8240 (eval $ac_compile) 2>&5
8242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8243 test $ac_status = 0; }; then
8244 case `/usr/bin/file conftest.o` in
8246 case $lt_cv_prog_gnu_ld in
8250 LD="${LD-ld} -m elf_x86_64"
8253 LD="${LD-ld} -m elf64_sparc"
8256 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8257 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8262 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8274 need_locks="$enable_libtool_lock"
8276 if test -n "$ac_tool_prefix"; then
8277 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8278 set dummy ${ac_tool_prefix}mt; ac_word=$2
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 $as_echo_n "checking for $ac_word... " >&6; }
8281 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8282 $as_echo_n "(cached) " >&6
8284 if test -n "$MANIFEST_TOOL"; then
8285 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 test -z "$as_dir" && as_dir=.
8292 for ac_exec_ext in '' $ac_executable_extensions; do
8293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8294 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8305 if test -n "$MANIFEST_TOOL"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8307 $as_echo "$MANIFEST_TOOL" >&6; }
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8315 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8316 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8317 # Extract the first word of "mt", so it can be a program name with args.
8318 set dummy mt; ac_word=$2
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320 $as_echo_n "checking for $ac_word... " >&6; }
8321 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8322 $as_echo_n "(cached) " >&6
8324 if test -n "$ac_ct_MANIFEST_TOOL"; then
8325 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 test -z "$as_dir" && as_dir=.
8332 for ac_exec_ext in '' $ac_executable_extensions; do
8333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8334 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8345 if test -n "$ac_ct_MANIFEST_TOOL"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8347 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8353 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8356 case $cross_compiling:$ac_tool_warned in
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8360 ac_tool_warned=yes ;;
8362 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8365 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8368 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8370 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8371 if ${lt_cv_path_mainfest_tool+:} false; then :
8372 $as_echo_n "(cached) " >&6
8374 lt_cv_path_mainfest_tool=no
8375 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8376 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8377 cat conftest.err >&5
8378 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8379 lt_cv_path_mainfest_tool=yes
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8384 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8385 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8395 rhapsody* | darwin*)
8396 if test -n "$ac_tool_prefix"; then
8397 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8398 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8402 $as_echo_n "(cached) " >&6
8404 if test -n "$DSYMUTIL"; then
8405 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8425 if test -n "$DSYMUTIL"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8427 $as_echo "$DSYMUTIL" >&6; }
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8435 if test -z "$ac_cv_prog_DSYMUTIL"; then
8436 ac_ct_DSYMUTIL=$DSYMUTIL
8437 # Extract the first word of "dsymutil", so it can be a program name with args.
8438 set dummy dsymutil; ac_word=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8442 $as_echo_n "(cached) " >&6
8444 if test -n "$ac_ct_DSYMUTIL"; then
8445 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8454 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8465 if test -n "$ac_ct_DSYMUTIL"; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8467 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8473 if test "x$ac_ct_DSYMUTIL" = x; then
8476 case $cross_compiling:$ac_tool_warned in
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8480 ac_tool_warned=yes ;;
8482 DSYMUTIL=$ac_ct_DSYMUTIL
8485 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8488 if test -n "$ac_tool_prefix"; then
8489 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8490 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if ${ac_cv_prog_NMEDIT+:} false; then :
8494 $as_echo_n "(cached) " >&6
8496 if test -n "$NMEDIT"; then
8497 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 test -z "$as_dir" && as_dir=.
8504 for ac_exec_ext in '' $ac_executable_extensions; do
8505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8506 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 NMEDIT=$ac_cv_prog_NMEDIT
8517 if test -n "$NMEDIT"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8519 $as_echo "$NMEDIT" >&6; }
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8527 if test -z "$ac_cv_prog_NMEDIT"; then
8528 ac_ct_NMEDIT=$NMEDIT
8529 # Extract the first word of "nmedit", so it can be a program name with args.
8530 set dummy nmedit; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8534 $as_echo_n "(cached) " >&6
8536 if test -n "$ac_ct_NMEDIT"; then
8537 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8557 if test -n "$ac_ct_NMEDIT"; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8559 $as_echo "$ac_ct_NMEDIT" >&6; }
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8565 if test "x$ac_ct_NMEDIT" = x; then
8568 case $cross_compiling:$ac_tool_warned in
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8572 ac_tool_warned=yes ;;
8574 NMEDIT=$ac_ct_NMEDIT
8577 NMEDIT="$ac_cv_prog_NMEDIT"
8580 if test -n "$ac_tool_prefix"; then
8581 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8582 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584 $as_echo_n "checking for $ac_word... " >&6; }
8585 if ${ac_cv_prog_LIPO+:} false; then :
8586 $as_echo_n "(cached) " >&6
8588 if test -n "$LIPO"; then
8589 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8598 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8608 LIPO=$ac_cv_prog_LIPO
8609 if test -n "$LIPO"; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8611 $as_echo "$LIPO" >&6; }
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8619 if test -z "$ac_cv_prog_LIPO"; then
8621 # Extract the first word of "lipo", so it can be a program name with args.
8622 set dummy lipo; ac_word=$2
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624 $as_echo_n "checking for $ac_word... " >&6; }
8625 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8626 $as_echo_n "(cached) " >&6
8628 if test -n "$ac_ct_LIPO"; then
8629 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635 test -z "$as_dir" && as_dir=.
8636 for ac_exec_ext in '' $ac_executable_extensions; do
8637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8638 ac_cv_prog_ac_ct_LIPO="lipo"
8639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8649 if test -n "$ac_ct_LIPO"; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8651 $as_echo "$ac_ct_LIPO" >&6; }
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8657 if test "x$ac_ct_LIPO" = x; then
8660 case $cross_compiling:$ac_tool_warned in
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8664 ac_tool_warned=yes ;;
8669 LIPO="$ac_cv_prog_LIPO"
8672 if test -n "$ac_tool_prefix"; then
8673 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8674 set dummy ${ac_tool_prefix}otool; ac_word=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if ${ac_cv_prog_OTOOL+:} false; then :
8678 $as_echo_n "(cached) " >&6
8680 if test -n "$OTOOL"; then
8681 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 OTOOL=$ac_cv_prog_OTOOL
8701 if test -n "$OTOOL"; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8703 $as_echo "$OTOOL" >&6; }
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 $as_echo "no" >&6; }
8711 if test -z "$ac_cv_prog_OTOOL"; then
8713 # Extract the first word of "otool", so it can be a program name with args.
8714 set dummy otool; ac_word=$2
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716 $as_echo_n "checking for $ac_word... " >&6; }
8717 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8718 $as_echo_n "(cached) " >&6
8720 if test -n "$ac_ct_OTOOL"; then
8721 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 test -z "$as_dir" && as_dir=.
8728 for ac_exec_ext in '' $ac_executable_extensions; do
8729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8730 ac_cv_prog_ac_ct_OTOOL="otool"
8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8741 if test -n "$ac_ct_OTOOL"; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8743 $as_echo "$ac_ct_OTOOL" >&6; }
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8749 if test "x$ac_ct_OTOOL" = x; then
8752 case $cross_compiling:$ac_tool_warned in
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8756 ac_tool_warned=yes ;;
8761 OTOOL="$ac_cv_prog_OTOOL"
8764 if test -n "$ac_tool_prefix"; then
8765 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8766 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768 $as_echo_n "checking for $ac_word... " >&6; }
8769 if ${ac_cv_prog_OTOOL64+:} false; then :
8770 $as_echo_n "(cached) " >&6
8772 if test -n "$OTOOL64"; then
8773 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779 test -z "$as_dir" && as_dir=.
8780 for ac_exec_ext in '' $ac_executable_extensions; do
8781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8782 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 OTOOL64=$ac_cv_prog_OTOOL64
8793 if test -n "$OTOOL64"; then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8795 $as_echo "$OTOOL64" >&6; }
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8803 if test -z "$ac_cv_prog_OTOOL64"; then
8804 ac_ct_OTOOL64=$OTOOL64
8805 # Extract the first word of "otool64", so it can be a program name with args.
8806 set dummy otool64; ac_word=$2
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8808 $as_echo_n "checking for $ac_word... " >&6; }
8809 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8810 $as_echo_n "(cached) " >&6
8812 if test -n "$ac_ct_OTOOL64"; then
8813 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 test -z "$as_dir" && as_dir=.
8820 for ac_exec_ext in '' $ac_executable_extensions; do
8821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8822 ac_cv_prog_ac_ct_OTOOL64="otool64"
8823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8833 if test -n "$ac_ct_OTOOL64"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8835 $as_echo "$ac_ct_OTOOL64" >&6; }
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8841 if test "x$ac_ct_OTOOL64" = x; then
8844 case $cross_compiling:$ac_tool_warned in
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8848 ac_tool_warned=yes ;;
8850 OTOOL64=$ac_ct_OTOOL64
8853 OTOOL64="$ac_cv_prog_OTOOL64"
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8883 $as_echo_n "checking for -single_module linker flag... " >&6; }
8884 if ${lt_cv_apple_cc_single_mod+:} false; then :
8885 $as_echo_n "(cached) " >&6
8887 lt_cv_apple_cc_single_mod=no
8888 if test -z "${LT_MULTI_MODULE}"; then
8889 # By default we will add the -single_module flag. You can override
8890 # by either setting the environment variable LT_MULTI_MODULE
8891 # non-empty at configure time, or by adding -multi_module to the
8893 rm -rf libconftest.dylib*
8894 echo "int foo(void){return 1;}" > conftest.c
8895 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8896 -dynamiclib -Wl,-single_module conftest.c" >&5
8897 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8898 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8900 # If there is a non-empty error log, and "single_module"
8901 # appears in it, assume the flag caused a linker warning
8902 if test -s conftest.err && $GREP single_module conftest.err; then
8903 cat conftest.err >&5
8904 # Otherwise, if the output was created with a 0 exit code from
8905 # the compiler, it worked.
8906 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8907 lt_cv_apple_cc_single_mod=yes
8909 cat conftest.err >&5
8911 rm -rf libconftest.dylib*
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8916 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8919 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8920 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8921 $as_echo_n "(cached) " >&6
8923 lt_cv_ld_exported_symbols_list=no
8924 save_LDFLAGS=$LDFLAGS
8925 echo "_main" > conftest.sym
8926 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8938 if ac_fn_c_try_link "$LINENO"; then :
8939 lt_cv_ld_exported_symbols_list=yes
8941 lt_cv_ld_exported_symbols_list=no
8943 rm -f core conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8945 LDFLAGS="$save_LDFLAGS"
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8949 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8952 $as_echo_n "checking for -force_load linker flag... " >&6; }
8953 if ${lt_cv_ld_force_load+:} false; then :
8954 $as_echo_n "(cached) " >&6
8956 lt_cv_ld_force_load=no
8957 cat > conftest.c << _LT_EOF
8958 int forced_loaded() { return 2;}
8960 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8961 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8962 echo "$AR cru libconftest.a conftest.o" >&5
8963 $AR cru libconftest.a conftest.o 2>&5
8964 echo "$RANLIB libconftest.a" >&5
8965 $RANLIB libconftest.a 2>&5
8966 cat > conftest.c << _LT_EOF
8967 int main() { return 0;}
8969 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8970 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8972 if test -s conftest.err && $GREP force_load conftest.err; then
8973 cat conftest.err >&5
8974 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8975 lt_cv_ld_force_load=yes
8977 cat conftest.err >&5
8979 rm -f conftest.err libconftest.a conftest conftest.c
8980 rm -rf conftest.dSYM
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8984 $as_echo "$lt_cv_ld_force_load" >&6; }
8986 rhapsody* | darwin1.[012])
8987 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8989 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8990 darwin*) # darwin 5.x on
8991 # if running on 10.5 or later, the deployment target defaults
8992 # to the OS version, if on x86, and 10.4, the deployment
8993 # target defaults to 10.4. Don't you love it?
8994 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8995 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8996 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8998 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9000 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9004 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9005 _lt_dar_single_mod='$single_module'
9007 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9008 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9010 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9012 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9013 _lt_dsymutil='~$DSYMUTIL $lib || :'
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9021 $as_echo_n "checking for ANSI C header files... " >&6; }
9022 if ${ac_cv_header_stdc+:} false; then :
9023 $as_echo_n "(cached) " >&6
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9040 if ac_fn_c_try_compile "$LINENO"; then :
9041 ac_cv_header_stdc=yes
9043 ac_cv_header_stdc=no
9045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 if test $ac_cv_header_stdc = yes; then
9048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9055 $EGREP "memchr" >/dev/null 2>&1; then :
9058 ac_cv_header_stdc=no
9064 if test $ac_cv_header_stdc = yes; then
9065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9072 $EGREP "free" >/dev/null 2>&1; then :
9075 ac_cv_header_stdc=no
9081 if test $ac_cv_header_stdc = yes; then
9082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9083 if test "$cross_compiling" = yes; then :
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9090 #if ((' ' & 0x0FF) == 0x020)
9091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9094 # define ISLOWER(c) \
9095 (('a' <= (c) && (c) <= 'i') \
9096 || ('j' <= (c) && (c) <= 'r') \
9097 || ('s' <= (c) && (c) <= 'z'))
9098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9106 for (i = 0; i < 256; i++)
9107 if (XOR (islower (i), ISLOWER (i))
9108 || toupper (i) != TOUPPER (i))
9113 if ac_fn_c_try_run "$LINENO"; then :
9116 ac_cv_header_stdc=no
9118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9119 conftest.$ac_objext conftest.beam conftest.$ac_ext
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9125 $as_echo "$ac_cv_header_stdc" >&6; }
9126 if test $ac_cv_header_stdc = yes; then
9128 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9133 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9134 inttypes.h stdint.h unistd.h
9136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9137 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9140 cat >>confdefs.h <<_ACEOF
9141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9149 for ac_header in dlfcn.h
9151 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9153 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9154 cat >>confdefs.h <<_ACEOF
9155 #define HAVE_DLFCN_H 1
9165 func_stripname_cnf ()
9168 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9169 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9171 } # func_stripname_cnf
9178 # Check whether --enable-shared was given.
9179 if test "${enable_shared+set}" = set; then :
9180 enableval=$enable_shared; p=${PACKAGE-default}
9182 yes) enable_shared=yes ;;
9183 no) enable_shared=no ;;
9186 # Look at the argument we got. We use all the common list separators.
9187 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9188 for pkg in $enableval; do
9190 if test "X$pkg" = "X$p"; then
9207 # Check whether --enable-static was given.
9208 if test "${enable_static+set}" = set; then :
9209 enableval=$enable_static; p=${PACKAGE-default}
9211 yes) enable_static=yes ;;
9212 no) enable_static=no ;;
9215 # Look at the argument we got. We use all the common list separators.
9216 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9217 for pkg in $enableval; do
9219 if test "X$pkg" = "X$p"; then
9248 # Check whether --with-pic was given.
9249 if test "${with_pic+set}" = set; then :
9250 withval=$with_pic; lt_p=${PACKAGE-default}
9252 yes|no) pic_mode=$withval ;;
9255 # Look at the argument we got. We use all the common list separators.
9256 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9257 for lt_pkg in $withval; do
9259 if test "X$lt_pkg" = "X$lt_p"; then
9271 test -z "$pic_mode" && pic_mode=default
9279 # Check whether --enable-fast-install was given.
9280 if test "${enable_fast_install+set}" = set; then :
9281 enableval=$enable_fast_install; p=${PACKAGE-default}
9283 yes) enable_fast_install=yes ;;
9284 no) enable_fast_install=no ;;
9286 enable_fast_install=no
9287 # Look at the argument we got. We use all the common list separators.
9288 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9289 for pkg in $enableval; do
9291 if test "X$pkg" = "X$p"; then
9292 enable_fast_install=yes
9299 enable_fast_install=yes
9312 # This can be used to rebuild libtool when needed
9313 LIBTOOL_DEPS="$ltmain"
9315 # Always use our own libtool.
9316 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9347 test -z "$LN_S" && LN_S="ln -s"
9362 if test -n "${ZSH_VERSION+set}" ; then
9363 setopt NO_GLOB_SUBST
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9367 $as_echo_n "checking for objdir... " >&6; }
9368 if ${lt_cv_objdir+:} false; then :
9369 $as_echo_n "(cached) " >&6
9371 rm -f .libs 2>/dev/null
9372 mkdir .libs 2>/dev/null
9373 if test -d .libs; then
9376 # MS-DOS does not allow filenames that begin with a dot.
9379 rmdir .libs 2>/dev/null
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9382 $as_echo "$lt_cv_objdir" >&6; }
9383 objdir=$lt_cv_objdir
9389 cat >>confdefs.h <<_ACEOF
9390 #define LT_OBJDIR "$lt_cv_objdir/"
9398 # AIX sometimes has problems with the GCC collect2 program. For some
9399 # reason, if we set the COLLECT_NAMES environment variable, the problems
9400 # vanish in a puff of smoke.
9401 if test "X${COLLECT_NAMES+set}" != Xset; then
9403 export COLLECT_NAMES
9410 can_build_shared=yes
9412 # All known linkers require a `.a' archive for static linking (except MSVC,
9413 # which needs '.lib').
9416 with_gnu_ld="$lt_cv_prog_gnu_ld"
9419 old_CFLAGS="$CFLAGS"
9421 # Set sane defaults for various variables
9422 test -z "$CC" && CC=cc
9423 test -z "$LTCC" && LTCC=$CC
9424 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9425 test -z "$LD" && LD=ld
9426 test -z "$ac_objext" && ac_objext=o
9428 for cc_temp in $compiler""; do
9430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9436 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9439 # Only perform the check for file, if the check method requires it
9440 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9441 case $deplibs_check_method in
9443 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9445 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9446 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9447 $as_echo_n "(cached) " >&6
9451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9454 lt_save_MAGIC_CMD="$MAGIC_CMD"
9455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9456 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9457 for ac_dir in $ac_dummy; do
9459 test -z "$ac_dir" && ac_dir=.
9460 if test -f $ac_dir/${ac_tool_prefix}file; then
9461 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9462 if test -n "$file_magic_test_file"; then
9463 case $deplibs_check_method in
9465 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9467 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9468 $EGREP "$file_magic_regex" > /dev/null; then
9473 *** Warning: the command libtool uses to detect shared libraries,
9474 *** $file_magic_cmd, produces output that libtool cannot recognize.
9475 *** The result is that libtool may fail to recognize shared libraries
9476 *** as such. This will affect the creation of libtool libraries that
9477 *** depend on shared libraries, but programs linked with such libtool
9478 *** libraries will work regardless of this problem. Nevertheless, you
9479 *** may want to report the problem to your system manager and/or to
9480 *** bug-libtool@gnu.org
9490 MAGIC_CMD="$lt_save_MAGIC_CMD"
9495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9496 if test -n "$MAGIC_CMD"; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9498 $as_echo "$MAGIC_CMD" >&6; }
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9501 $as_echo "no" >&6; }
9508 if test -z "$lt_cv_path_MAGIC_CMD"; then
9509 if test -n "$ac_tool_prefix"; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9511 $as_echo_n "checking for file... " >&6; }
9512 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9513 $as_echo_n "(cached) " >&6
9517 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9520 lt_save_MAGIC_CMD="$MAGIC_CMD"
9521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9522 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9523 for ac_dir in $ac_dummy; do
9525 test -z "$ac_dir" && ac_dir=.
9526 if test -f $ac_dir/file; then
9527 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9528 if test -n "$file_magic_test_file"; then
9529 case $deplibs_check_method in
9531 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9533 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9534 $EGREP "$file_magic_regex" > /dev/null; then
9539 *** Warning: the command libtool uses to detect shared libraries,
9540 *** $file_magic_cmd, produces output that libtool cannot recognize.
9541 *** The result is that libtool may fail to recognize shared libraries
9542 *** as such. This will affect the creation of libtool libraries that
9543 *** depend on shared libraries, but programs linked with such libtool
9544 *** libraries will work regardless of this problem. Nevertheless, you
9545 *** may want to report the problem to your system manager and/or to
9546 *** bug-libtool@gnu.org
9556 MAGIC_CMD="$lt_save_MAGIC_CMD"
9561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9562 if test -n "$MAGIC_CMD"; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9564 $as_echo "$MAGIC_CMD" >&6; }
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9580 # Use C for the default configuration in the libtool script
9584 ac_cpp='$CPP $CPPFLAGS'
9585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9590 # Source file extension for C test sources.
9593 # Object file extension for compiled C test sources.
9597 # Code to be used in simple compile tests
9598 lt_simple_compile_test_code="int some_variable = 0;"
9600 # Code to be used in simple link tests
9601 lt_simple_link_test_code='int main(){return(0);}'
9609 # If no C compiler was specified, use CC.
9612 # If no C compiler flags were specified, use CFLAGS.
9613 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9615 # Allow CC to be a program name with arguments.
9618 # Save the default compiler, since it gets overwritten when the other
9619 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9620 compiler_DEFAULT=$CC
9622 # save warnings/boilerplate of simple test code
9623 ac_outfile=conftest.$ac_objext
9624 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9625 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9626 _lt_compiler_boilerplate=`cat conftest.err`
9629 ac_outfile=conftest.$ac_objext
9630 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9631 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9632 _lt_linker_boilerplate=`cat conftest.err`
9637 ## There is no encapsulation within the following macros, do not change
9638 ## the running order or otherwise move them around unless you know exactly
9639 ## what you are doing...
9640 if test -n "$compiler"; then
9642 lt_prog_compiler_no_builtin_flag=
9644 if test "$GCC" = yes; then
9645 case $cc_basename in
9647 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9649 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9653 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9654 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9655 $as_echo_n "(cached) " >&6
9657 lt_cv_prog_compiler_rtti_exceptions=no
9658 ac_outfile=conftest.$ac_objext
9659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9660 lt_compiler_flag="-fno-rtti -fno-exceptions"
9661 # Insert the option either (1) after the last *FLAGS variable, or
9662 # (2) before a word containing "conftest.", or (3) at the end.
9663 # Note that $ac_compile itself does not contain backslashes and begins
9664 # with a dollar sign (not a hyphen), so the echo should work correctly.
9665 # The option is referenced via a variable to avoid confusing sed.
9666 lt_compile=`echo "$ac_compile" | $SED \
9667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9669 -e 's:$: $lt_compiler_flag:'`
9670 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9671 (eval "$lt_compile" 2>conftest.err)
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 if (exit $ac_status) && test -s "$ac_outfile"; then
9676 # The compiler can only warn and ignore the option if not recognized
9677 # So say no if there are warnings other than the usual output.
9678 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9680 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9681 lt_cv_prog_compiler_rtti_exceptions=yes
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9688 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9690 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9691 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9703 lt_prog_compiler_wl=
9704 lt_prog_compiler_pic=
9705 lt_prog_compiler_static=
9708 if test "$GCC" = yes; then
9709 lt_prog_compiler_wl='-Wl,'
9710 lt_prog_compiler_static='-static'
9714 # All AIX code is PIC.
9715 if test "$host_cpu" = ia64; then
9716 # AIX 5 now supports IA64 processor
9717 lt_prog_compiler_static='-Bstatic'
9724 # see comment about AmigaOS4 .so support
9725 lt_prog_compiler_pic='-fPIC'
9728 # FIXME: we need at least 68020 code to build shared libraries, but
9729 # adding the `-m68020' flag to GCC prevents building anything better,
9731 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9736 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9737 # PIC is the default for these OSes.
9740 mingw* | cygwin* | pw32* | os2* | cegcc*)
9741 # This hack is so that the source file can tell whether it is being
9742 # built for inclusion in a dll (and should export symbols for example).
9743 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9744 # (--disable-auto-import) libraries
9745 lt_prog_compiler_pic='-DDLL_EXPORT'
9748 darwin* | rhapsody*)
9749 # PIC is the default on this platform
9750 # Common symbols not allowed in MH_DYLIB files
9751 lt_prog_compiler_pic='-fno-common'
9755 # PIC is the default for Haiku.
9756 # The "-static" flag exists, but is broken.
9757 lt_prog_compiler_static=
9761 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9762 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9763 # sets the default TLS model and affects inlining.
9769 lt_prog_compiler_pic='-fPIC'
9775 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9776 # Instead, we relocate shared libraries at runtime.
9780 # Just because we use GCC doesn't mean we suddenly get shared libraries
9781 # on systems that don't support them.
9782 lt_prog_compiler_can_build_shared=no
9787 # QNX uses GNU C++, but need to define -shared option too, otherwise
9789 lt_prog_compiler_pic='-fPIC -shared'
9793 if test -d /usr/nec; then
9794 lt_prog_compiler_pic=-Kconform_pic
9799 lt_prog_compiler_pic='-fPIC'
9803 case $cc_basename in
9804 nvcc*) # Cuda Compiler Driver 2.2
9805 lt_prog_compiler_wl='-Xlinker '
9806 if test -n "$lt_prog_compiler_pic"; then
9807 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9812 # PORTME Check for flag to pass linker flags through the system compiler.
9815 lt_prog_compiler_wl='-Wl,'
9816 if test "$host_cpu" = ia64; then
9817 # AIX 5 now supports IA64 processor
9818 lt_prog_compiler_static='-Bstatic'
9820 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9824 mingw* | cygwin* | pw32* | os2* | cegcc*)
9825 # This hack is so that the source file can tell whether it is being
9826 # built for inclusion in a dll (and should export symbols for example).
9827 lt_prog_compiler_pic='-DDLL_EXPORT'
9830 hpux9* | hpux10* | hpux11*)
9831 lt_prog_compiler_wl='-Wl,'
9832 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9839 lt_prog_compiler_pic='+Z'
9842 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9843 lt_prog_compiler_static='${wl}-a ${wl}archive'
9846 irix5* | irix6* | nonstopux*)
9847 lt_prog_compiler_wl='-Wl,'
9848 # PIC (with -KPIC) is the default.
9849 lt_prog_compiler_static='-non_shared'
9852 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9853 case $cc_basename in
9854 # old Intel for x86_64 which still supported -KPIC.
9856 lt_prog_compiler_wl='-Wl,'
9857 lt_prog_compiler_pic='-KPIC'
9858 lt_prog_compiler_static='-static'
9860 # icc used to be incompatible with GCC.
9861 # ICC 10 doesn't accept -KPIC any more.
9863 lt_prog_compiler_wl='-Wl,'
9864 lt_prog_compiler_pic='-fPIC'
9865 lt_prog_compiler_static='-static'
9867 # Lahey Fortran 8.1.
9869 lt_prog_compiler_wl='-Wl,'
9870 lt_prog_compiler_pic='--shared'
9871 lt_prog_compiler_static='--static'
9874 # NAG Fortran compiler
9875 lt_prog_compiler_wl='-Wl,-Wl,,'
9876 lt_prog_compiler_pic='-PIC'
9877 lt_prog_compiler_static='-Bstatic'
9879 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9880 # Portland Group compilers (*not* the Pentium gcc compiler,
9881 # which looks to be a dead project)
9882 lt_prog_compiler_wl='-Wl,'
9883 lt_prog_compiler_pic='-fpic'
9884 lt_prog_compiler_static='-Bstatic'
9887 lt_prog_compiler_wl='-Wl,'
9888 # All Alpha code is PIC.
9889 lt_prog_compiler_static='-non_shared'
9891 xl* | bgxl* | bgf* | mpixl*)
9892 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9893 lt_prog_compiler_wl='-Wl,'
9894 lt_prog_compiler_pic='-qpic'
9895 lt_prog_compiler_static='-qstaticlink'
9898 case `$CC -V 2>&1 | sed 5q` in
9899 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9900 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9901 lt_prog_compiler_pic='-KPIC'
9902 lt_prog_compiler_static='-Bstatic'
9903 lt_prog_compiler_wl=''
9905 *Sun\ F* | *Sun*Fortran*)
9906 lt_prog_compiler_pic='-KPIC'
9907 lt_prog_compiler_static='-Bstatic'
9908 lt_prog_compiler_wl='-Qoption ld '
9912 lt_prog_compiler_pic='-KPIC'
9913 lt_prog_compiler_static='-Bstatic'
9914 lt_prog_compiler_wl='-Wl,'
9916 *Intel*\ [CF]*Compiler*)
9917 lt_prog_compiler_wl='-Wl,'
9918 lt_prog_compiler_pic='-fPIC'
9919 lt_prog_compiler_static='-static'
9922 lt_prog_compiler_wl='-Wl,'
9923 lt_prog_compiler_pic='-fpic'
9924 lt_prog_compiler_static='-Bstatic'
9932 lt_prog_compiler_pic='-KPIC'
9933 lt_prog_compiler_static='-Bstatic'
9937 # QNX uses GNU C++, but need to define -shared option too, otherwise
9939 lt_prog_compiler_pic='-fPIC -shared'
9942 osf3* | osf4* | osf5*)
9943 lt_prog_compiler_wl='-Wl,'
9944 # All OSF/1 code is PIC.
9945 lt_prog_compiler_static='-non_shared'
9949 lt_prog_compiler_static='-non_shared'
9953 lt_prog_compiler_pic='-KPIC'
9954 lt_prog_compiler_static='-Bstatic'
9955 case $cc_basename in
9956 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9957 lt_prog_compiler_wl='-Qoption ld ';;
9959 lt_prog_compiler_wl='-Wl,';;
9964 lt_prog_compiler_wl='-Qoption ld '
9965 lt_prog_compiler_pic='-PIC'
9966 lt_prog_compiler_static='-Bstatic'
9969 sysv4 | sysv4.2uw2* | sysv4.3*)
9970 lt_prog_compiler_wl='-Wl,'
9971 lt_prog_compiler_pic='-KPIC'
9972 lt_prog_compiler_static='-Bstatic'
9976 if test -d /usr/nec ;then
9977 lt_prog_compiler_pic='-Kconform_pic'
9978 lt_prog_compiler_static='-Bstatic'
9982 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9983 lt_prog_compiler_wl='-Wl,'
9984 lt_prog_compiler_pic='-KPIC'
9985 lt_prog_compiler_static='-Bstatic'
9989 lt_prog_compiler_wl='-Wl,'
9990 lt_prog_compiler_can_build_shared=no
9994 lt_prog_compiler_pic='-pic'
9995 lt_prog_compiler_static='-Bstatic'
9999 lt_prog_compiler_can_build_shared=no
10005 # For platforms which do not support PIC, -DPIC is meaningless:
10007 lt_prog_compiler_pic=
10010 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10015 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10016 if ${lt_cv_prog_compiler_pic+:} false; then :
10017 $as_echo_n "(cached) " >&6
10019 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10022 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10023 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10026 # Check to make sure the PIC flag actually works.
10028 if test -n "$lt_prog_compiler_pic"; then
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10030 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10031 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10032 $as_echo_n "(cached) " >&6
10034 lt_cv_prog_compiler_pic_works=no
10035 ac_outfile=conftest.$ac_objext
10036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10037 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10038 # Insert the option either (1) after the last *FLAGS variable, or
10039 # (2) before a word containing "conftest.", or (3) at the end.
10040 # Note that $ac_compile itself does not contain backslashes and begins
10041 # with a dollar sign (not a hyphen), so the echo should work correctly.
10042 # The option is referenced via a variable to avoid confusing sed.
10043 lt_compile=`echo "$ac_compile" | $SED \
10044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10046 -e 's:$: $lt_compiler_flag:'`
10047 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10048 (eval "$lt_compile" 2>conftest.err)
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 if (exit $ac_status) && test -s "$ac_outfile"; then
10053 # The compiler can only warn and ignore the option if not recognized
10054 # So say no if there are warnings other than the usual output.
10055 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10057 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10058 lt_cv_prog_compiler_pic_works=yes
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10065 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10067 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10068 case $lt_prog_compiler_pic in
10070 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10073 lt_prog_compiler_pic=
10074 lt_prog_compiler_can_build_shared=no
10090 # Check to make sure the static flag actually works.
10092 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10094 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10095 if ${lt_cv_prog_compiler_static_works+:} false; then :
10096 $as_echo_n "(cached) " >&6
10098 lt_cv_prog_compiler_static_works=no
10099 save_LDFLAGS="$LDFLAGS"
10100 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10101 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10102 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10103 # The linker can only warn and ignore the option if not recognized
10104 # So say no if there are warnings
10105 if test -s conftest.err; then
10106 # Append any errors to the config.log.
10107 cat conftest.err 1>&5
10108 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10110 if diff conftest.exp conftest.er2 >/dev/null; then
10111 lt_cv_prog_compiler_static_works=yes
10114 lt_cv_prog_compiler_static_works=yes
10118 LDFLAGS="$save_LDFLAGS"
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10122 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10124 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10127 lt_prog_compiler_static=
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10137 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10138 if ${lt_cv_prog_compiler_c_o+:} false; then :
10139 $as_echo_n "(cached) " >&6
10141 lt_cv_prog_compiler_c_o=no
10142 $RM -r conftest 2>/dev/null
10146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10148 lt_compiler_flag="-o out/conftest2.$ac_objext"
10149 # Insert the option either (1) after the last *FLAGS variable, or
10150 # (2) before a word containing "conftest.", or (3) at the end.
10151 # Note that $ac_compile itself does not contain backslashes and begins
10152 # with a dollar sign (not a hyphen), so the echo should work correctly.
10153 lt_compile=`echo "$ac_compile" | $SED \
10154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10156 -e 's:$: $lt_compiler_flag:'`
10157 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10158 (eval "$lt_compile" 2>out/conftest.err)
10160 cat out/conftest.err >&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10164 # The compiler can only warn and ignore the option if not recognized
10165 # So say no if there are warnings
10166 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10167 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10168 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10169 lt_cv_prog_compiler_c_o=yes
10174 # SGI C++ compiler will create directory out/ii_files/ for
10175 # template instantiation
10176 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10177 $RM out/* && rmdir out
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10184 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10192 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10193 if ${lt_cv_prog_compiler_c_o+:} false; then :
10194 $as_echo_n "(cached) " >&6
10196 lt_cv_prog_compiler_c_o=no
10197 $RM -r conftest 2>/dev/null
10201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10203 lt_compiler_flag="-o out/conftest2.$ac_objext"
10204 # Insert the option either (1) after the last *FLAGS variable, or
10205 # (2) before a word containing "conftest.", or (3) at the end.
10206 # Note that $ac_compile itself does not contain backslashes and begins
10207 # with a dollar sign (not a hyphen), so the echo should work correctly.
10208 lt_compile=`echo "$ac_compile" | $SED \
10209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10211 -e 's:$: $lt_compiler_flag:'`
10212 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10213 (eval "$lt_compile" 2>out/conftest.err)
10215 cat out/conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10219 # The compiler can only warn and ignore the option if not recognized
10220 # So say no if there are warnings
10221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10222 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10223 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10224 lt_cv_prog_compiler_c_o=yes
10229 # SGI C++ compiler will create directory out/ii_files/ for
10230 # template instantiation
10231 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10232 $RM out/* && rmdir out
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10239 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10244 hard_links="nottested"
10245 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10246 # do not overwrite the value of need_locks provided by the user
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10248 $as_echo_n "checking if we can lock with hard links... " >&6; }
10251 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10253 ln conftest.a conftest.b 2>&5 || hard_links=no
10254 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10256 $as_echo "$hard_links" >&6; }
10257 if test "$hard_links" = no; then
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10259 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10272 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10275 allow_undefined_flag=
10276 always_export_symbols=no
10278 archive_expsym_cmds=
10279 compiler_needs_object=no
10280 enable_shared_with_static_runtimes=no
10281 export_dynamic_flag_spec=
10282 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10283 hardcode_automatic=no
10285 hardcode_direct_absolute=no
10286 hardcode_libdir_flag_spec=
10287 hardcode_libdir_separator=
10288 hardcode_minus_L=no
10289 hardcode_shlibpath_var=unsupported
10291 link_all_deplibs=unknown
10293 module_expsym_cmds=
10294 old_archive_from_new_cmds=
10295 old_archive_from_expsyms_cmds=
10296 thread_safe_flag_spec=
10297 whole_archive_flag_spec=
10298 # include_expsyms should be a list of space-separated symbols to be *always*
10299 # included in the symbol list
10301 # exclude_expsyms can be an extended regexp of symbols to exclude
10302 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10303 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10304 # as well as any symbol that contains `d'.
10305 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10306 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10307 # platforms (ab)use it in PIC code, but their linkers get confused if
10308 # the symbol is explicitly referenced. Since portable code cannot
10309 # rely on this symbol name, it's probably fine to never include it in
10310 # preloaded symbol tables.
10311 # Exclude shared library initialization/finalization symbols.
10312 extract_expsyms_cmds=
10315 cygwin* | mingw* | pw32* | cegcc*)
10316 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10317 # When not using gcc, we currently assume that we are using
10318 # Microsoft Visual C++.
10319 if test "$GCC" != yes; then
10324 # we just hope/assume this is gcc and not c89 (= MSVC++)
10330 linux* | k*bsd*-gnu | gnu*)
10331 link_all_deplibs=no
10337 # On some targets, GNU ld is compatible enough with the native linker
10338 # that we're better off using the native interface for both.
10339 lt_use_gnu_ld_interface=no
10340 if test "$with_gnu_ld" = yes; then
10343 # The AIX port of GNU ld has always aspired to compatibility
10344 # with the native linker. However, as the warning in the GNU ld
10345 # block says, versions before 2.19.5* couldn't really create working
10346 # shared libraries, regardless of the interface used.
10347 case `$LD -v 2>&1` in
10348 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10349 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10350 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10352 lt_use_gnu_ld_interface=yes
10357 lt_use_gnu_ld_interface=yes
10362 if test "$lt_use_gnu_ld_interface" = yes; then
10363 # If archive_cmds runs LD, not CC, wlarc should be empty
10366 # Set some defaults for GNU ld with shared library support. These
10367 # are reset later if shared libraries are not supported. Putting them
10368 # here allows them to be overridden if necessary.
10369 runpath_var=LD_RUN_PATH
10370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10371 export_dynamic_flag_spec='${wl}--export-dynamic'
10372 # ancient GNU ld didn't support --whole-archive et. al.
10373 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10374 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10376 whole_archive_flag_spec=
10378 supports_anon_versioning=no
10379 case `$LD -v 2>&1` in
10380 *GNU\ gold*) supports_anon_versioning=yes ;;
10381 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10382 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10383 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10384 *\ 2.11.*) ;; # other 2.11 versions
10385 *) supports_anon_versioning=yes ;;
10388 # See if GNU ld supports shared libraries.
10391 # On AIX/PPC, the GNU linker is very broken
10392 if test "$host_cpu" != ia64; then
10396 *** Warning: the GNU linker, at least up to release 2.19, is reported
10397 *** to be unable to reliably create shared libraries on AIX.
10398 *** Therefore, libtool is disabling shared libraries support. If you
10399 *** really care for shared libraries, you may want to install binutils
10400 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10401 *** You will then need to restart the configuration process.
10410 # see comment about AmigaOS4 .so support
10411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10412 archive_expsym_cmds=''
10415 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)'
10416 hardcode_libdir_flag_spec='-L$libdir'
10417 hardcode_minus_L=yes
10423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10424 allow_undefined_flag=unsupported
10425 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10426 # support --undefined. This deserves some investigation. FIXME
10427 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10433 cygwin* | mingw* | pw32* | cegcc*)
10434 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10435 # as there is no search path for DLLs.
10436 hardcode_libdir_flag_spec='-L$libdir'
10437 export_dynamic_flag_spec='${wl}--export-all-symbols'
10438 allow_undefined_flag=unsupported
10439 always_export_symbols=no
10440 enable_shared_with_static_runtimes=yes
10441 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'
10442 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10444 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10446 # If the export-symbols file already is a .def file (1st line
10447 # is EXPORTS), use it as is; otherwise, prepend...
10448 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10449 cp $export_symbols $output_objdir/$soname.def;
10451 echo EXPORTS > $output_objdir/$soname.def;
10452 cat $export_symbols >> $output_objdir/$soname.def;
10454 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10462 link_all_deplibs=yes
10467 hardcode_shlibpath_var=no
10468 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10469 export_dynamic_flag_spec='${wl}-E'
10470 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10471 # Instead, shared libraries are loaded at an image base (0x10000000 by
10472 # default) and relocated if they conflict, which is a slow very memory
10473 # consuming and fragmenting process. To avoid this, we pick a random,
10474 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10475 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10476 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10477 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'
10480 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10482 if test "$host_os" = linux-dietlibc; then
10483 case $cc_basename in
10484 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10487 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10488 && test "$tmp_diet" = no
10490 tmp_addflag=' $pic_flag'
10491 tmp_sharedflag='-shared'
10492 case $cc_basename,$host_cpu in
10493 pgcc*) # Portland Group C compiler
10494 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'
10495 tmp_addflag=' $pic_flag'
10497 pgf77* | pgf90* | pgf95* | pgfortran*)
10498 # Portland Group f77 and f90 compilers
10499 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'
10500 tmp_addflag=' $pic_flag -Mnomain' ;;
10501 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10502 tmp_addflag=' -i_dynamic' ;;
10503 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10504 tmp_addflag=' -i_dynamic -nofor_main' ;;
10505 ifc* | ifort*) # Intel Fortran compiler
10506 tmp_addflag=' -nofor_main' ;;
10507 lf95*) # Lahey Fortran 8.1
10508 whole_archive_flag_spec=
10509 tmp_sharedflag='--shared' ;;
10510 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10511 tmp_sharedflag='-qmkshrobj'
10513 nvcc*) # Cuda Compiler Driver 2.2
10514 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'
10515 compiler_needs_object=yes
10518 case `$CC -V 2>&1 | sed 5q` in
10519 *Sun\ C*) # Sun C 5.9
10520 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'
10521 compiler_needs_object=yes
10522 tmp_sharedflag='-G' ;;
10523 *Sun\ F*) # Sun Fortran 8.3
10524 tmp_sharedflag='-G' ;;
10526 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10528 if test "x$supports_anon_versioning" = xyes; then
10529 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10530 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10531 echo "local: *; };" >> $output_objdir/$libname.ver~
10532 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10535 case $cc_basename in
10536 xlf* | bgf* | bgxlf* | mpixlf*)
10537 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10538 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10540 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10541 if test "x$supports_anon_versioning" = xyes; then
10542 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10543 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10544 echo "local: *; };" >> $output_objdir/$libname.ver~
10545 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10554 netbsd* | netbsdelf*-gnu)
10555 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10556 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10559 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10560 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10565 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10569 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10570 *** create shared libraries on Solaris systems. Therefore, libtool
10571 *** is disabling shared libraries support. We urge you to upgrade GNU
10572 *** binutils to release 2.9.1 or newer. Another option is to modify
10573 *** your PATH or compiler configuration so that the native linker is
10574 *** used, and then restart.
10577 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10578 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10579 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10586 case `$LD -v 2>&1` in
10587 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10591 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10592 *** reliably create shared libraries on SCO systems. Therefore, libtool
10593 *** is disabling shared libraries support. We urge you to upgrade GNU
10594 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10595 *** your PATH or compiler configuration so that the native linker is
10596 *** used, and then restart.
10601 # For security reasons, it is highly recommended that you always
10602 # use absolute paths for naming shared libraries, and exclude the
10603 # DT_RUNPATH tag from executables and libraries. But doing so
10604 # requires that you compile everything twice, which is a pain.
10605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10608 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10617 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10619 hardcode_direct=yes
10620 hardcode_shlibpath_var=no
10624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10625 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10626 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10633 if test "$ld_shlibs" = no; then
10635 hardcode_libdir_flag_spec=
10636 export_dynamic_flag_spec=
10637 whole_archive_flag_spec=
10640 # PORTME fill in a description of your system's linker (not GNU ld)
10643 allow_undefined_flag=unsupported
10644 always_export_symbols=yes
10645 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'
10646 # Note: this linker hardcodes the directories in LIBPATH if there
10647 # are no directories specified by -L.
10648 hardcode_minus_L=yes
10649 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10650 # Neither direct hardcoding nor static linking is supported with a
10652 hardcode_direct=unsupported
10657 if test "$host_cpu" = ia64; then
10658 # On IA64, the linker does run time linking by default, so we don't
10659 # have to do anything special.
10660 aix_use_runtimelinking=no
10661 exp_sym_flag='-Bexport'
10664 # If we're using GNU nm, then we don't want the "-C" option.
10665 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10666 # Also, AIX nm treats weak defined symbols like other global
10667 # defined symbols, whereas GNU nm marks them as "W".
10668 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10669 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'
10671 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'
10673 aix_use_runtimelinking=no
10675 # Test if we are trying to use run time linking or normal
10676 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10677 # need to do runtime linking.
10678 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10679 for ld_flag in $LDFLAGS; do
10680 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10681 aix_use_runtimelinking=yes
10688 exp_sym_flag='-bexport'
10689 no_entry_flag='-bnoentry'
10692 # When large executables or shared objects are built, AIX ld can
10693 # have problems creating the table of contents. If linking a library
10694 # or program results in "error TOC overflow" add -mminimal-toc to
10695 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10696 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10699 hardcode_direct=yes
10700 hardcode_direct_absolute=yes
10701 hardcode_libdir_separator=':'
10702 link_all_deplibs=yes
10703 file_list_spec='${wl}-f,'
10705 if test "$GCC" = yes; then
10706 case $host_os in aix4.[012]|aix4.[012].*)
10707 # We only want to do this on AIX 4.2 and lower, the check
10708 # below for broken collect2 doesn't work under 4.3+
10709 collect2name=`${CC} -print-prog-name=collect2`
10710 if test -f "$collect2name" &&
10711 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10713 # We have reworked collect2
10716 # We have old collect2
10717 hardcode_direct=unsupported
10718 # It fails to find uninstalled libraries when the uninstalled
10719 # path is not listed in the libpath. Setting hardcode_minus_L
10720 # to unsupported forces relinking
10721 hardcode_minus_L=yes
10722 hardcode_libdir_flag_spec='-L$libdir'
10723 hardcode_libdir_separator=
10727 shared_flag='-shared'
10728 if test "$aix_use_runtimelinking" = yes; then
10729 shared_flag="$shared_flag "'${wl}-G'
10731 link_all_deplibs=no
10734 if test "$host_cpu" = ia64; then
10735 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10736 # chokes on -Wl,-G. The following line is correct:
10739 if test "$aix_use_runtimelinking" = yes; then
10740 shared_flag='${wl}-G'
10742 shared_flag='${wl}-bM:SRE'
10747 export_dynamic_flag_spec='${wl}-bexpall'
10748 # It seems that -bexpall does not export symbols beginning with
10749 # underscore (_), so it is better to generate a list of symbols to export.
10750 always_export_symbols=yes
10751 if test "$aix_use_runtimelinking" = yes; then
10752 # Warning - without using the other runtime loading flags (-brtl),
10753 # -berok will link without error, but may produce a broken library.
10754 allow_undefined_flag='-berok'
10755 # Determine the default libpath from the value encoded in an
10756 # empty executable.
10757 if test "${lt_cv_aix_libpath+set}" = set; then
10758 aix_libpath=$lt_cv_aix_libpath
10760 if ${lt_cv_aix_libpath_+:} false; then :
10761 $as_echo_n "(cached) " >&6
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10774 if ac_fn_c_try_link "$LINENO"; then :
10776 lt_aix_libpath_sed='
10777 /Import File Strings/,/^$/ {
10779 s/^0 *\([^ ]*\) *$/\1/
10783 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10784 # Check for a 64-bit object if we didn't find anything.
10785 if test -z "$lt_cv_aix_libpath_"; then
10786 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10789 rm -f core conftest.err conftest.$ac_objext \
10790 conftest$ac_exeext conftest.$ac_ext
10791 if test -z "$lt_cv_aix_libpath_"; then
10792 lt_cv_aix_libpath_="/usr/lib:/lib"
10797 aix_libpath=$lt_cv_aix_libpath_
10800 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10801 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"
10803 if test "$host_cpu" = ia64; then
10804 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10805 allow_undefined_flag="-z nodefs"
10806 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"
10808 # Determine the default libpath from the value encoded in an
10809 # empty executable.
10810 if test "${lt_cv_aix_libpath+set}" = set; then
10811 aix_libpath=$lt_cv_aix_libpath
10813 if ${lt_cv_aix_libpath_+:} false; then :
10814 $as_echo_n "(cached) " >&6
10816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h. */
10827 if ac_fn_c_try_link "$LINENO"; then :
10829 lt_aix_libpath_sed='
10830 /Import File Strings/,/^$/ {
10832 s/^0 *\([^ ]*\) *$/\1/
10836 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10837 # Check for a 64-bit object if we didn't find anything.
10838 if test -z "$lt_cv_aix_libpath_"; then
10839 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10842 rm -f core conftest.err conftest.$ac_objext \
10843 conftest$ac_exeext conftest.$ac_ext
10844 if test -z "$lt_cv_aix_libpath_"; then
10845 lt_cv_aix_libpath_="/usr/lib:/lib"
10850 aix_libpath=$lt_cv_aix_libpath_
10853 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10854 # Warning - without using the other run time loading flags,
10855 # -berok will link without error, but may produce a broken library.
10856 no_undefined_flag=' ${wl}-bernotok'
10857 allow_undefined_flag=' ${wl}-berok'
10858 if test "$with_gnu_ld" = yes; then
10859 # We only use this code for GNU lds that support --whole-archive.
10860 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10862 # Exported symbols can be pulled into shared objects from archives
10863 whole_archive_flag_spec='$convenience'
10865 archive_cmds_need_lc=yes
10866 # This is similar to how AIX traditionally builds its shared libraries.
10867 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'
10875 # see comment about AmigaOS4 .so support
10876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10877 archive_expsym_cmds=''
10880 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)'
10881 hardcode_libdir_flag_spec='-L$libdir'
10882 hardcode_minus_L=yes
10888 export_dynamic_flag_spec=-rdynamic
10891 cygwin* | mingw* | pw32* | cegcc*)
10892 # When not using gcc, we currently assume that we are using
10893 # Microsoft Visual C++.
10894 # hardcode_libdir_flag_spec is actually meaningless, as there is
10895 # no search path for DLLs.
10896 case $cc_basename in
10899 hardcode_libdir_flag_spec=' '
10900 allow_undefined_flag=unsupported
10901 always_export_symbols=yes
10903 # Tell ltmain to make .lib files, not .a files.
10905 # Tell ltmain to make .dll files, not .so files.
10907 # FIXME: Setting linknames here is a bad hack.
10908 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10909 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10910 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10912 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10914 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10916 # The linker will not automatically build a static lib if we build a DLL.
10917 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10918 enable_shared_with_static_runtimes=yes
10919 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10920 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10922 old_postinstall_cmds='chmod 644 $oldlib'
10923 postlink_cmds='lt_outputfile="@OUTPUT@"~
10924 lt_tool_outputfile="@TOOL_OUTPUT@"~
10925 case $lt_outputfile in
10928 lt_outputfile="$lt_outputfile.exe"
10929 lt_tool_outputfile="$lt_tool_outputfile.exe"
10932 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10933 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10934 $RM "$lt_outputfile.manifest";
10938 # Assume MSVC wrapper
10939 hardcode_libdir_flag_spec=' '
10940 allow_undefined_flag=unsupported
10941 # Tell ltmain to make .lib files, not .a files.
10943 # Tell ltmain to make .dll files, not .so files.
10945 # FIXME: Setting linknames here is a bad hack.
10946 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10947 # The linker will automatically build a .lib file if we build a DLL.
10948 old_archive_from_new_cmds='true'
10949 # FIXME: Should let the user specify the lib program.
10950 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10951 enable_shared_with_static_runtimes=yes
10956 darwin* | rhapsody*)
10959 archive_cmds_need_lc=no
10961 hardcode_automatic=yes
10962 hardcode_shlibpath_var=unsupported
10963 if test "$lt_cv_ld_force_load" = "yes"; then
10964 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\"`'
10967 whole_archive_flag_spec=''
10969 link_all_deplibs=yes
10970 allow_undefined_flag="$_lt_dar_allow_undefined"
10971 case $cc_basename in
10972 ifort*) _lt_dar_can_shared=yes ;;
10973 *) _lt_dar_can_shared=$GCC ;;
10975 if test "$_lt_dar_can_shared" = "yes"; then
10976 output_verbose_link_cmd=func_echo_all
10977 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10978 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10979 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}"
10980 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}"
10989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990 hardcode_libdir_flag_spec='-L$libdir'
10991 hardcode_shlibpath_var=no
10994 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10995 # support. Future versions do this automatically, but an explicit c++rt0.o
10996 # does not break anything, and helps significantly (at the cost of a little
10999 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11000 hardcode_libdir_flag_spec='-R$libdir'
11001 hardcode_direct=yes
11002 hardcode_shlibpath_var=no
11005 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11007 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11008 hardcode_direct=yes
11009 hardcode_minus_L=yes
11010 hardcode_shlibpath_var=no
11013 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11014 freebsd* | dragonfly*)
11015 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11016 hardcode_libdir_flag_spec='-R$libdir'
11017 hardcode_direct=yes
11018 hardcode_shlibpath_var=no
11022 if test "$GCC" = yes; then
11023 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'
11025 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'
11027 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11028 hardcode_libdir_separator=:
11029 hardcode_direct=yes
11031 # hardcode_minus_L: Not really in the search PATH,
11032 # but as the default location of the library.
11033 hardcode_minus_L=yes
11034 export_dynamic_flag_spec='${wl}-E'
11038 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11039 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11041 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11043 if test "$with_gnu_ld" = no; then
11044 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11045 hardcode_libdir_separator=:
11046 hardcode_direct=yes
11047 hardcode_direct_absolute=yes
11048 export_dynamic_flag_spec='${wl}-E'
11049 # hardcode_minus_L: Not really in the search PATH,
11050 # but as the default location of the library.
11051 hardcode_minus_L=yes
11056 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11059 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11062 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11065 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11071 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11074 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11078 # Older versions of the 11.00 compiler do not understand -b yet
11079 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11081 $as_echo_n "checking if $CC understands -b... " >&6; }
11082 if ${lt_cv_prog_compiler__b+:} false; then :
11083 $as_echo_n "(cached) " >&6
11085 lt_cv_prog_compiler__b=no
11086 save_LDFLAGS="$LDFLAGS"
11087 LDFLAGS="$LDFLAGS -b"
11088 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11089 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11090 # The linker can only warn and ignore the option if not recognized
11091 # So say no if there are warnings
11092 if test -s conftest.err; then
11093 # Append any errors to the config.log.
11094 cat conftest.err 1>&5
11095 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11097 if diff conftest.exp conftest.er2 >/dev/null; then
11098 lt_cv_prog_compiler__b=yes
11101 lt_cv_prog_compiler__b=yes
11105 LDFLAGS="$save_LDFLAGS"
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11109 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11111 if test x"$lt_cv_prog_compiler__b" = xyes; then
11112 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11114 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11120 if test "$with_gnu_ld" = no; then
11121 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11122 hardcode_libdir_separator=:
11127 hardcode_shlibpath_var=no
11130 hardcode_direct=yes
11131 hardcode_direct_absolute=yes
11132 export_dynamic_flag_spec='${wl}-E'
11134 # hardcode_minus_L: Not really in the search PATH,
11135 # but as the default location of the library.
11136 hardcode_minus_L=yes
11142 irix5* | irix6* | nonstopux*)
11143 if test "$GCC" = yes; then
11144 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'
11145 # Try to use the -exported_symbol ld option, if it does not
11146 # work, assume that -exports_file does not work either and
11147 # implicitly export all symbols.
11148 # This should be the same for all languages, so no per-tag cache variable.
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11150 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11151 if ${lt_cv_irix_exported_symbol+:} false; then :
11152 $as_echo_n "(cached) " >&6
11154 save_LDFLAGS="$LDFLAGS"
11155 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11158 int foo (void) { return 0; }
11160 if ac_fn_c_try_link "$LINENO"; then :
11161 lt_cv_irix_exported_symbol=yes
11163 lt_cv_irix_exported_symbol=no
11165 rm -f core conftest.err conftest.$ac_objext \
11166 conftest$ac_exeext conftest.$ac_ext
11167 LDFLAGS="$save_LDFLAGS"
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11170 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11171 if test "$lt_cv_irix_exported_symbol" = yes; then
11172 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'
11175 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'
11176 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'
11178 archive_cmds_need_lc='no'
11179 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11180 hardcode_libdir_separator=:
11182 link_all_deplibs=yes
11185 netbsd* | netbsdelf*-gnu)
11186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11189 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11191 hardcode_libdir_flag_spec='-R$libdir'
11192 hardcode_direct=yes
11193 hardcode_shlibpath_var=no
11197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11198 hardcode_direct=yes
11199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11200 hardcode_libdir_separator=:
11201 hardcode_shlibpath_var=no
11208 if test -f /usr/libexec/ld.so; then
11209 hardcode_direct=yes
11210 hardcode_shlibpath_var=no
11211 hardcode_direct_absolute=yes
11212 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11213 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11214 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11215 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11216 export_dynamic_flag_spec='${wl}-E'
11219 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11221 hardcode_libdir_flag_spec='-R$libdir'
11224 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11225 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11235 hardcode_libdir_flag_spec='-L$libdir'
11236 hardcode_minus_L=yes
11237 allow_undefined_flag=unsupported
11238 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'
11239 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11243 if test "$GCC" = yes; then
11244 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11245 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'
11247 allow_undefined_flag=' -expect_unresolved \*'
11248 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'
11250 archive_cmds_need_lc='no'
11251 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11252 hardcode_libdir_separator=:
11255 osf4* | osf5*) # as osf3* with the addition of -msym flag
11256 if test "$GCC" = yes; then
11257 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11258 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'
11259 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11261 allow_undefined_flag=' -expect_unresolved \*'
11262 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'
11263 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~
11264 $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'
11266 # Both c and cxx compiler support -rpath directly
11267 hardcode_libdir_flag_spec='-rpath $libdir'
11269 archive_cmds_need_lc='no'
11270 hardcode_libdir_separator=:
11274 no_undefined_flag=' -z defs'
11275 if test "$GCC" = yes; then
11277 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11278 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11279 $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'
11281 case `$CC -V 2>&1` in
11284 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11285 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11286 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11290 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11291 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11292 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11296 hardcode_libdir_flag_spec='-R$libdir'
11297 hardcode_shlibpath_var=no
11299 solaris2.[0-5] | solaris2.[0-5].*) ;;
11301 # The compiler driver will combine and reorder linker options,
11302 # but understands `-z linker_flag'. GCC discards it without `$wl',
11303 # but is careful enough not to reorder.
11304 # Supported since Solaris 2.6 (maybe 2.5.1?)
11305 if test "$GCC" = yes; then
11306 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11308 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11312 link_all_deplibs=yes
11316 if test "x$host_vendor" = xsequent; then
11317 # Use $CC to link under sequent, because it throws in some extra .o
11318 # files that make .init and .fini sections work.
11319 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11321 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11323 hardcode_libdir_flag_spec='-L$libdir'
11324 hardcode_direct=yes
11325 hardcode_minus_L=yes
11326 hardcode_shlibpath_var=no
11330 case $host_vendor in
11332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11333 hardcode_direct=yes # is this really true???
11336 ## LD is ld it makes a PLAMLIB
11337 ## CC just makes a GrossModule.
11338 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11339 reload_cmds='$CC -r -o $output$reload_objs'
11343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11347 runpath_var='LD_RUN_PATH'
11348 hardcode_shlibpath_var=no
11352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11353 hardcode_shlibpath_var=no
11354 export_dynamic_flag_spec='-Bexport'
11358 if test -d /usr/nec; then
11359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11360 hardcode_shlibpath_var=no
11361 runpath_var=LD_RUN_PATH
11362 hardcode_runpath_var=yes
11367 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11368 no_undefined_flag='${wl}-z,text'
11369 archive_cmds_need_lc=no
11370 hardcode_shlibpath_var=no
11371 runpath_var='LD_RUN_PATH'
11373 if test "$GCC" = yes; then
11374 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11375 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11377 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11378 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11382 sysv5* | sco3.2v5* | sco5v6*)
11383 # Note: We can NOT use -z defs as we might desire, because we do not
11384 # link with -lc, and that would cause any symbols used from libc to
11385 # always be unresolved, which means just about no library would
11386 # ever link correctly. If we're not using GNU ld we use -z text
11387 # though, which does catch some bad symbols but isn't as heavy-handed
11389 no_undefined_flag='${wl}-z,text'
11390 allow_undefined_flag='${wl}-z,nodefs'
11391 archive_cmds_need_lc=no
11392 hardcode_shlibpath_var=no
11393 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11394 hardcode_libdir_separator=':'
11395 link_all_deplibs=yes
11396 export_dynamic_flag_spec='${wl}-Bexport'
11397 runpath_var='LD_RUN_PATH'
11399 if test "$GCC" = yes; then
11400 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11401 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11403 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11404 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11410 hardcode_libdir_flag_spec='-L$libdir'
11411 hardcode_shlibpath_var=no
11419 if test x$host_vendor = xsni; then
11421 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11422 export_dynamic_flag_spec='${wl}-Blargedynsym'
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11429 $as_echo "$ld_shlibs" >&6; }
11430 test "$ld_shlibs" = no && can_build_shared=no
11432 with_gnu_ld=$with_gnu_ld
11449 # Do we need to explicitly link libc?
11451 case "x$archive_cmds_need_lc" in
11453 # Assume -lc should be added
11454 archive_cmds_need_lc=yes
11456 if test "$enable_shared" = yes && test "$GCC" = yes; then
11457 case $archive_cmds in
11459 # FIXME: we may have to deal with multi-command sequences.
11462 # Test whether the compiler implicitly links with -lc since on some
11463 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11464 # to ld, don't add -lc before -lgcc.
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11466 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11467 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11468 $as_echo_n "(cached) " >&6
11471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11474 (eval $ac_compile) 2>&5
11476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11477 test $ac_status = 0; } 2>conftest.err; then
11480 libobjs=conftest.$ac_objext
11482 wl=$lt_prog_compiler_wl
11483 pic_flag=$lt_prog_compiler_pic
11489 lt_save_allow_undefined_flag=$allow_undefined_flag
11490 allow_undefined_flag=
11491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11492 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11495 test $ac_status = 0; }
11497 lt_cv_archive_cmds_need_lc=no
11499 lt_cv_archive_cmds_need_lc=yes
11501 allow_undefined_flag=$lt_save_allow_undefined_flag
11503 cat conftest.err 1>&5
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11509 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11510 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11669 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11671 if test "$GCC" = yes; then
11673 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11674 *) lt_awk_arg="/^libraries:/" ;;
11677 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11678 *) lt_sed_strip_eq="s,=/,/,g" ;;
11680 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11681 case $lt_search_path_spec in
11683 # if the path contains ";" then we assume it to be the separator
11684 # otherwise default to the standard path separator (i.e. ":") - it is
11685 # assumed that no part of a normal pathname contains ";" but that should
11686 # okay in the real world where ";" in dirpaths is itself problematic.
11687 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11690 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11693 # Ok, now we have the path, separated by spaces, we can step through it
11694 # and add multilib dir if necessary.
11695 lt_tmp_lt_search_path_spec=
11696 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11697 for lt_sys_path in $lt_search_path_spec; do
11698 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11699 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11701 test -d "$lt_sys_path" && \
11702 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11705 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11706 BEGIN {RS=" "; FS="/|\n";} {
11709 for (lt_i = NF; lt_i > 0; lt_i--) {
11710 if ($lt_i != "" && $lt_i != ".") {
11711 if ($lt_i == "..") {
11714 if (lt_count == 0) {
11715 lt_foo="/" $lt_i lt_foo;
11722 if (lt_foo != "") { lt_freq[lt_foo]++; }
11723 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11725 # AWK program above erroneously prepends '/' to C:/dos/paths
11728 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11729 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11731 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11735 library_names_spec=
11736 libname_spec='lib$name'
11740 postuninstall_cmds=
11744 shlibpath_overrides_runpath=unknown
11746 dynamic_linker="$host_os ld.so"
11747 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11748 need_lib_prefix=unknown
11749 hardcode_into_libs=no
11751 # when you set need_version to no, make sure it does not cause -set_version
11752 # flags to be left without arguments
11753 need_version=unknown
11757 version_type=linux # correct to gnu/linux during the next big refactor
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11759 shlibpath_var=LIBPATH
11761 # AIX 3 has no versioning support, so we append a major version to the name.
11762 soname_spec='${libname}${release}${shared_ext}$major'
11766 version_type=linux # correct to gnu/linux during the next big refactor
11769 hardcode_into_libs=yes
11770 if test "$host_cpu" = ia64; then
11771 # AIX 5 supports IA64
11772 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11773 shlibpath_var=LD_LIBRARY_PATH
11775 # With GCC up to 2.95.x, collect2 would create an import file
11776 # for dependence libraries. The import file would start with
11777 # the line `#! .'. This would cause the generated library to
11778 # depend on `.', always an invalid library. This was fixed in
11779 # development snapshots of GCC prior to 3.0.
11781 aix4 | aix4.[01] | aix4.[01].*)
11782 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11784 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11787 can_build_shared=no
11791 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11792 # soname into executable. Probably we can add versioning support to
11793 # collect2, so additional links can be useful in future.
11794 if test "$aix_use_runtimelinking" = yes; then
11795 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11796 # instead of lib<name>.a to let people know that these are not
11797 # typical AIX shared libraries.
11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11800 # We preserve .a as extension for shared libraries through AIX4.2
11801 # and later when we are not doing run time linking.
11802 library_names_spec='${libname}${release}.a $libname.a'
11803 soname_spec='${libname}${release}${shared_ext}$major'
11805 shlibpath_var=LIBPATH
11812 # Since July 2007 AmigaOS4 officially supports .so libraries.
11813 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817 library_names_spec='$libname.ixlibrary $libname.a'
11818 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11819 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'
11825 library_names_spec='${libname}${shared_ext}'
11826 dynamic_linker="$host_os ld.so"
11827 shlibpath_var=LIBRARY_PATH
11831 version_type=linux # correct to gnu/linux during the next big refactor
11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11834 soname_spec='${libname}${release}${shared_ext}$major'
11835 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11836 shlibpath_var=LD_LIBRARY_PATH
11837 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11838 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11839 # the default ld.so.conf also contains /usr/contrib/lib and
11840 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11841 # libtool to hard-code these into programs
11844 cygwin* | mingw* | pw32* | cegcc*)
11845 version_type=windows
11850 case $GCC,$cc_basename in
11853 library_names_spec='$libname.dll.a'
11854 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11855 postinstall_cmds='base_file=`basename \${file}`~
11856 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11857 dldir=$destdir/`dirname \$dlpath`~
11858 test -d \$dldir || mkdir -p \$dldir~
11859 $install_prog $dir/$dlname \$dldir/$dlname~
11860 chmod a+x \$dldir/$dlname~
11861 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11862 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11864 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11865 dlpath=$dir/\$dldll~
11867 shlibpath_overrides_runpath=yes
11871 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11872 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11874 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11877 # MinGW DLLs use traditional 'lib' prefix
11878 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11881 # pw32 DLLs use 'pw' prefix rather than 'lib'
11882 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11885 dynamic_linker='Win32 ld.exe'
11890 libname_spec='$name'
11891 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11892 library_names_spec='${libname}.dll.lib'
11896 sys_lib_search_path_spec=
11899 for lt_path in $LIB
11902 # Let DOS variable expansion print the short 8.3 style file name.
11903 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11904 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11907 # Convert to MSYS style.
11908 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11911 # Convert to unix form, then to dos form, then back to unix form
11912 # but this time dos style (no spaces!) so that the unix form looks
11913 # like /cygdrive/c/PROGRA~1:/cygdr...
11914 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11915 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11916 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11919 sys_lib_search_path_spec="$LIB"
11920 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11921 # It is most probably a Windows format PATH.
11922 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11924 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11926 # FIXME: find the short name or the path components, as spaces are
11927 # common. (e.g. "Program Files" -> "PROGRA~1")
11931 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11932 postinstall_cmds='base_file=`basename \${file}`~
11933 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11934 dldir=$destdir/`dirname \$dlpath`~
11935 test -d \$dldir || mkdir -p \$dldir~
11936 $install_prog $dir/$dlname \$dldir/$dlname'
11937 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11938 dlpath=$dir/\$dldll~
11940 shlibpath_overrides_runpath=yes
11941 dynamic_linker='Win32 link.exe'
11945 # Assume MSVC wrapper
11946 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11947 dynamic_linker='Win32 ld.exe'
11950 # FIXME: first we should search . and the directory the executable is in
11954 darwin* | rhapsody*)
11955 dynamic_linker="$host_os dyld"
11956 version_type=darwin
11959 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11960 soname_spec='${libname}${release}${major}$shared_ext'
11961 shlibpath_overrides_runpath=yes
11962 shlibpath_var=DYLD_LIBRARY_PATH
11963 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11965 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11966 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11970 version_type=linux # correct to gnu/linux during the next big refactor
11973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11974 soname_spec='${libname}${release}${shared_ext}$major'
11975 shlibpath_var=LD_LIBRARY_PATH
11978 freebsd* | dragonfly*)
11979 # DragonFly does not have aout. When/if they implement a new
11980 # versioning mechanism, adjust this.
11981 if test -x /usr/bin/objformat; then
11982 objformat=`/usr/bin/objformat`
11985 freebsd[23].*) objformat=aout ;;
11986 *) objformat=elf ;;
11989 version_type=freebsd-$objformat
11990 case $version_type in
11992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11997 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12001 shlibpath_var=LD_LIBRARY_PATH
12004 shlibpath_overrides_runpath=yes
12006 freebsd3.[01]* | freebsdelf3.[01]*)
12007 shlibpath_overrides_runpath=yes
12008 hardcode_into_libs=yes
12010 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12011 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12012 shlibpath_overrides_runpath=no
12013 hardcode_into_libs=yes
12015 *) # from 4.6 on, and DragonFly
12016 shlibpath_overrides_runpath=yes
12017 hardcode_into_libs=yes
12023 version_type=linux # correct to gnu/linux during the next big refactor
12026 dynamic_linker="$host_os runtime_loader"
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12028 soname_spec='${libname}${release}${shared_ext}$major'
12029 shlibpath_var=LIBRARY_PATH
12030 shlibpath_overrides_runpath=yes
12031 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12032 hardcode_into_libs=yes
12035 hpux9* | hpux10* | hpux11*)
12036 # Give a soname corresponding to the major version so that dld.sl refuses to
12037 # link against other versions.
12044 hardcode_into_libs=yes
12045 dynamic_linker="$host_os dld.so"
12046 shlibpath_var=LD_LIBRARY_PATH
12047 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12049 soname_spec='${libname}${release}${shared_ext}$major'
12050 if test "X$HPUX_IA64_MODE" = X32; then
12051 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12053 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12059 hardcode_into_libs=yes
12060 dynamic_linker="$host_os dld.sl"
12061 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12062 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12064 soname_spec='${libname}${release}${shared_ext}$major'
12065 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12066 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12070 dynamic_linker="$host_os dld.sl"
12071 shlibpath_var=SHLIB_PATH
12072 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12074 soname_spec='${libname}${release}${shared_ext}$major'
12077 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12078 postinstall_cmds='chmod 555 $lib'
12079 # or fails outright, so override atomically:
12080 install_override_mode=555
12084 version_type=linux # correct to gnu/linux during the next big refactor
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12090 shlibpath_var=LD_LIBRARY_PATH
12091 shlibpath_overrides_runpath=no
12092 hardcode_into_libs=yes
12095 irix5* | irix6* | nonstopux*)
12097 nonstopux*) version_type=nonstopux ;;
12099 if test "$lt_cv_prog_gnu_ld" = yes; then
12100 version_type=linux # correct to gnu/linux during the next big refactor
12107 soname_spec='${libname}${release}${shared_ext}$major'
12108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12110 irix5* | nonstopux*)
12111 libsuff= shlibsuff=
12114 case $LD in # libtool.m4 will add one of these switches to LD
12115 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12116 libsuff= shlibsuff= libmagic=32-bit;;
12117 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12118 libsuff=32 shlibsuff=N32 libmagic=N32;;
12119 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12120 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12121 *) libsuff= shlibsuff= libmagic=never-match;;
12125 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12126 shlibpath_overrides_runpath=no
12127 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12128 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12129 hardcode_into_libs=yes
12132 # No shared lib support for Linux oldld, aout, or coff.
12133 linux*oldld* | linux*aout* | linux*coff*)
12137 # This must be glibc/ELF.
12138 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12139 version_type=linux # correct to gnu/linux during the next big refactor
12142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12143 soname_spec='${libname}${release}${shared_ext}$major'
12144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12145 shlibpath_var=LD_LIBRARY_PATH
12146 shlibpath_overrides_runpath=no
12148 # Some binutils ld are patched to set DT_RUNPATH
12149 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12150 $as_echo_n "(cached) " >&6
12152 lt_cv_shlibpath_overrides_runpath=no
12153 save_LDFLAGS=$LDFLAGS
12154 save_libdir=$libdir
12155 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12156 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12168 if ac_fn_c_try_link "$LINENO"; then :
12169 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12170 lt_cv_shlibpath_overrides_runpath=yes
12173 rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12175 LDFLAGS=$save_LDFLAGS
12176 libdir=$save_libdir
12180 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12182 # This implies no fast_install, which is unacceptable.
12183 # Some rework will be needed to allow for fast_install
12184 # before this can be enabled.
12185 hardcode_into_libs=yes
12187 # Append ld.so.conf contents to the search path
12188 if test -f /etc/ld.so.conf; then
12189 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' ' '`
12190 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12193 # We used to test for /lib/ld.so.1 and disable shared libraries on
12194 # powerpc, because MkLinux only supported shared libraries with the
12195 # GNU dynamic linker. Since this was broken with cross compilers,
12196 # most powerpc-linux boxes support dynamic linking these days and
12197 # people can always --disable-shared, the test was removed, and we
12198 # assume the GNU/Linux dynamic linker is in use.
12199 dynamic_linker='GNU/Linux ld.so'
12206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12207 soname_spec='${libname}${release}${shared_ext}$major'
12208 shlibpath_var=LD_LIBRARY_PATH
12209 shlibpath_overrides_runpath=no
12210 hardcode_into_libs=yes
12211 dynamic_linker='NetBSD ld.elf_so'
12218 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12221 dynamic_linker='NetBSD (a.out) ld.so'
12223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12224 soname_spec='${libname}${release}${shared_ext}$major'
12225 dynamic_linker='NetBSD ld.elf_so'
12227 shlibpath_var=LD_LIBRARY_PATH
12228 shlibpath_overrides_runpath=yes
12229 hardcode_into_libs=yes
12233 version_type=linux # correct to gnu/linux during the next big refactor
12234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12235 shlibpath_var=LD_LIBRARY_PATH
12236 shlibpath_overrides_runpath=yes
12243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12244 soname_spec='${libname}${release}${shared_ext}$major'
12245 shlibpath_var=LD_LIBRARY_PATH
12246 shlibpath_overrides_runpath=no
12247 hardcode_into_libs=yes
12248 dynamic_linker='ldqnx.so'
12253 sys_lib_dlsearch_path_spec="/usr/lib"
12255 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12257 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12258 *) need_version=no ;;
12260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12262 shlibpath_var=LD_LIBRARY_PATH
12263 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12265 openbsd2.[89] | openbsd2.[89].*)
12266 shlibpath_overrides_runpath=no
12269 shlibpath_overrides_runpath=yes
12273 shlibpath_overrides_runpath=yes
12278 libname_spec='$name'
12281 library_names_spec='$libname${shared_ext} $libname.a'
12282 dynamic_linker='OS/2 ld.exe'
12283 shlibpath_var=LIBPATH
12286 osf3* | osf4* | osf5*)
12290 soname_spec='${libname}${release}${shared_ext}$major'
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12292 shlibpath_var=LD_LIBRARY_PATH
12293 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12294 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12302 version_type=linux # correct to gnu/linux during the next big refactor
12305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12306 soname_spec='${libname}${release}${shared_ext}$major'
12307 shlibpath_var=LD_LIBRARY_PATH
12308 shlibpath_overrides_runpath=yes
12309 hardcode_into_libs=yes
12310 # ldd complains unless libraries are executable
12311 postinstall_cmds='chmod +x $lib'
12316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12317 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12318 shlibpath_var=LD_LIBRARY_PATH
12319 shlibpath_overrides_runpath=yes
12320 if test "$with_gnu_ld" = yes; then
12327 version_type=linux # correct to gnu/linux during the next big refactor
12328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12329 soname_spec='${libname}${release}${shared_ext}$major'
12330 shlibpath_var=LD_LIBRARY_PATH
12331 case $host_vendor in
12333 shlibpath_overrides_runpath=no
12335 runpath_var=LD_RUN_PATH
12343 shlibpath_overrides_runpath=no
12344 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12350 if test -d /usr/nec ;then
12351 version_type=linux # correct to gnu/linux during the next big refactor
12352 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12353 soname_spec='$libname${shared_ext}.$major'
12354 shlibpath_var=LD_LIBRARY_PATH
12358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12359 version_type=freebsd-elf
12362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12363 soname_spec='${libname}${release}${shared_ext}$major'
12364 shlibpath_var=LD_LIBRARY_PATH
12365 shlibpath_overrides_runpath=yes
12366 hardcode_into_libs=yes
12367 if test "$with_gnu_ld" = yes; then
12368 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12370 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12373 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12377 sys_lib_dlsearch_path_spec='/usr/lib'
12381 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12382 version_type=linux # correct to gnu/linux during the next big refactor
12385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12386 shlibpath_var=LD_LIBRARY_PATH
12387 shlibpath_overrides_runpath=no
12388 hardcode_into_libs=yes
12392 version_type=linux # correct to gnu/linux during the next big refactor
12393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394 soname_spec='${libname}${release}${shared_ext}$major'
12395 shlibpath_var=LD_LIBRARY_PATH
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12403 $as_echo "$dynamic_linker" >&6; }
12404 test "$dynamic_linker" = no && can_build_shared=no
12406 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12407 if test "$GCC" = yes; then
12408 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12411 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12412 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12414 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12415 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12510 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12512 if test -n "$hardcode_libdir_flag_spec" ||
12513 test -n "$runpath_var" ||
12514 test "X$hardcode_automatic" = "Xyes" ; then
12516 # We can hardcode non-existent directories.
12517 if test "$hardcode_direct" != no &&
12518 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12519 # have to relink, otherwise we might link with an installed library
12520 # when we should be linking with a yet-to-be-installed one
12521 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12522 test "$hardcode_minus_L" != no; then
12523 # Linking always hardcodes the temporary library directory.
12524 hardcode_action=relink
12526 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12527 hardcode_action=immediate
12530 # We cannot hardcode anything, or else we can only hardcode existing
12532 hardcode_action=unsupported
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12535 $as_echo "$hardcode_action" >&6; }
12537 if test "$hardcode_action" = relink ||
12538 test "$inherit_rpath" = yes; then
12539 # Fast installation is not supported
12540 enable_fast_install=no
12541 elif test "$shlibpath_overrides_runpath" = yes ||
12542 test "$enable_shared" = no; then
12543 # Fast installation is not necessary
12544 enable_fast_install=needless
12552 if test "x$enable_dlopen" != xyes; then
12553 enable_dlopen=unknown
12554 enable_dlopen_self=unknown
12555 enable_dlopen_self_static=unknown
12562 lt_cv_dlopen="load_add_on"
12564 lt_cv_dlopen_self=yes
12567 mingw* | pw32* | cegcc*)
12568 lt_cv_dlopen="LoadLibrary"
12573 lt_cv_dlopen="dlopen"
12578 # if libdl is installed we need to link against it
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12580 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12581 if ${ac_cv_lib_dl_dlopen+:} false; then :
12582 $as_echo_n "(cached) " >&6
12584 ac_check_lib_save_LIBS=$LIBS
12586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h. */
12589 /* Override any GCC internal prototype to avoid an error.
12590 Use char because int might match the return type of a GCC
12591 builtin and then its argument prototype would still apply. */
12604 if ac_fn_c_try_link "$LINENO"; then :
12605 ac_cv_lib_dl_dlopen=yes
12607 ac_cv_lib_dl_dlopen=no
12609 rm -f core conftest.err conftest.$ac_objext \
12610 conftest$ac_exeext conftest.$ac_ext
12611 LIBS=$ac_check_lib_save_LIBS
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12614 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12615 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12619 lt_cv_dlopen="dyld"
12621 lt_cv_dlopen_self=yes
12628 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12629 if test "x$ac_cv_func_shl_load" = xyes; then :
12630 lt_cv_dlopen="shl_load"
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12633 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12634 if ${ac_cv_lib_dld_shl_load+:} false; then :
12635 $as_echo_n "(cached) " >&6
12637 ac_check_lib_save_LIBS=$LIBS
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12642 /* Override any GCC internal prototype to avoid an error.
12643 Use char because int might match the return type of a GCC
12644 builtin and then its argument prototype would still apply. */
12652 return shl_load ();
12657 if ac_fn_c_try_link "$LINENO"; then :
12658 ac_cv_lib_dld_shl_load=yes
12660 ac_cv_lib_dld_shl_load=no
12662 rm -f core conftest.err conftest.$ac_objext \
12663 conftest$ac_exeext conftest.$ac_ext
12664 LIBS=$ac_check_lib_save_LIBS
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12667 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12668 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12669 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12671 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12672 if test "x$ac_cv_func_dlopen" = xyes; then :
12673 lt_cv_dlopen="dlopen"
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12676 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12677 if ${ac_cv_lib_dl_dlopen+:} false; then :
12678 $as_echo_n "(cached) " >&6
12680 ac_check_lib_save_LIBS=$LIBS
12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h. */
12685 /* Override any GCC internal prototype to avoid an error.
12686 Use char because int might match the return type of a GCC
12687 builtin and then its argument prototype would still apply. */
12700 if ac_fn_c_try_link "$LINENO"; then :
12701 ac_cv_lib_dl_dlopen=yes
12703 ac_cv_lib_dl_dlopen=no
12705 rm -f core conftest.err conftest.$ac_objext \
12706 conftest$ac_exeext conftest.$ac_ext
12707 LIBS=$ac_check_lib_save_LIBS
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12710 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12711 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12715 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12716 if ${ac_cv_lib_svld_dlopen+:} false; then :
12717 $as_echo_n "(cached) " >&6
12719 ac_check_lib_save_LIBS=$LIBS
12720 LIBS="-lsvld $LIBS"
12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12724 /* Override any GCC internal prototype to avoid an error.
12725 Use char because int might match the return type of a GCC
12726 builtin and then its argument prototype would still apply. */
12739 if ac_fn_c_try_link "$LINENO"; then :
12740 ac_cv_lib_svld_dlopen=yes
12742 ac_cv_lib_svld_dlopen=no
12744 rm -f core conftest.err conftest.$ac_objext \
12745 conftest$ac_exeext conftest.$ac_ext
12746 LIBS=$ac_check_lib_save_LIBS
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12749 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12750 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12754 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12755 if ${ac_cv_lib_dld_dld_link+:} false; then :
12756 $as_echo_n "(cached) " >&6
12758 ac_check_lib_save_LIBS=$LIBS
12760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12761 /* end confdefs.h. */
12763 /* Override any GCC internal prototype to avoid an error.
12764 Use char because int might match the return type of a GCC
12765 builtin and then its argument prototype would still apply. */
12773 return dld_link ();
12778 if ac_fn_c_try_link "$LINENO"; then :
12779 ac_cv_lib_dld_dld_link=yes
12781 ac_cv_lib_dld_dld_link=no
12783 rm -f core conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12785 LIBS=$ac_check_lib_save_LIBS
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12788 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12789 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12790 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12811 if test "x$lt_cv_dlopen" != xno; then
12817 case $lt_cv_dlopen in
12819 save_CPPFLAGS="$CPPFLAGS"
12820 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12822 save_LDFLAGS="$LDFLAGS"
12823 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12826 LIBS="$lt_cv_dlopen_libs $LIBS"
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12829 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12830 if ${lt_cv_dlopen_self+:} false; then :
12831 $as_echo_n "(cached) " >&6
12833 if test "$cross_compiling" = yes; then :
12834 lt_cv_dlopen_self=cross
12836 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12837 lt_status=$lt_dlunknown
12838 cat > conftest.$ac_ext <<_LT_EOF
12839 #line $LINENO "configure"
12840 #include "confdefs.h"
12849 # define LT_DLGLOBAL RTLD_GLOBAL
12852 # define LT_DLGLOBAL DL_GLOBAL
12854 # define LT_DLGLOBAL 0
12858 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12859 find out it does not work in some platform. */
12860 #ifndef LT_DLLAZY_OR_NOW
12862 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12865 # define LT_DLLAZY_OR_NOW DL_LAZY
12868 # define LT_DLLAZY_OR_NOW RTLD_NOW
12871 # define LT_DLLAZY_OR_NOW DL_NOW
12873 # define LT_DLLAZY_OR_NOW 0
12880 /* When -fvisbility=hidden is used, assume the code has been annotated
12881 correspondingly for the symbols needed. */
12882 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12883 int fnord () __attribute__((visibility("default")));
12886 int fnord () { return 42; }
12889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12890 int status = $lt_dlunknown;
12894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12897 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12898 else puts (dlerror ());
12900 /* dlclose (self); */
12908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12909 (eval $ac_link) 2>&5
12911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12912 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12913 (./conftest; exit; ) >&5 2>/dev/null
12915 case x$lt_status in
12916 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12917 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12918 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12921 # compilation failed
12922 lt_cv_dlopen_self=no
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12930 $as_echo "$lt_cv_dlopen_self" >&6; }
12932 if test "x$lt_cv_dlopen_self" = xyes; then
12933 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12935 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12936 if ${lt_cv_dlopen_self_static+:} false; then :
12937 $as_echo_n "(cached) " >&6
12939 if test "$cross_compiling" = yes; then :
12940 lt_cv_dlopen_self_static=cross
12942 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12943 lt_status=$lt_dlunknown
12944 cat > conftest.$ac_ext <<_LT_EOF
12945 #line $LINENO "configure"
12946 #include "confdefs.h"
12955 # define LT_DLGLOBAL RTLD_GLOBAL
12958 # define LT_DLGLOBAL DL_GLOBAL
12960 # define LT_DLGLOBAL 0
12964 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12965 find out it does not work in some platform. */
12966 #ifndef LT_DLLAZY_OR_NOW
12968 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12971 # define LT_DLLAZY_OR_NOW DL_LAZY
12974 # define LT_DLLAZY_OR_NOW RTLD_NOW
12977 # define LT_DLLAZY_OR_NOW DL_NOW
12979 # define LT_DLLAZY_OR_NOW 0
12986 /* When -fvisbility=hidden is used, assume the code has been annotated
12987 correspondingly for the symbols needed. */
12988 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12989 int fnord () __attribute__((visibility("default")));
12992 int fnord () { return 42; }
12995 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12996 int status = $lt_dlunknown;
13000 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13003 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13004 else puts (dlerror ());
13006 /* dlclose (self); */
13014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13015 (eval $ac_link) 2>&5
13017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13018 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13019 (./conftest; exit; ) >&5 2>/dev/null
13021 case x$lt_status in
13022 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13023 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13024 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13027 # compilation failed
13028 lt_cv_dlopen_self_static=no
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13036 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13039 CPPFLAGS="$save_CPPFLAGS"
13040 LDFLAGS="$save_LDFLAGS"
13045 case $lt_cv_dlopen_self in
13046 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13047 *) enable_dlopen_self=unknown ;;
13050 case $lt_cv_dlopen_self_static in
13051 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13052 *) enable_dlopen_self_static=unknown ;;
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13075 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13076 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13077 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13078 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13080 $as_echo "yes" >&6; }
13082 # FIXME - insert some real tests, host_os isn't really good enough
13085 if test -n "$STRIP" ; then
13086 striplib="$STRIP -x"
13087 old_striplib="$STRIP -S"
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13089 $as_echo "yes" >&6; }
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092 $as_echo "no" >&6; }
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13113 # Report which library types will actually be built
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13115 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13117 $as_echo "$can_build_shared" >&6; }
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13120 $as_echo_n "checking whether to build shared libraries... " >&6; }
13121 test "$can_build_shared" = "no" && enable_shared=no
13123 # On AIX, shared libraries and static libraries use the same namespace, and
13124 # are all built from PIC.
13127 test "$enable_shared" = yes && enable_static=no
13128 if test -n "$RANLIB"; then
13129 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13130 postinstall_cmds='$RANLIB $lib'
13135 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13136 test "$enable_shared" = yes && enable_static=no
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13141 $as_echo "$enable_shared" >&6; }
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13144 $as_echo_n "checking whether to build static libraries... " >&6; }
13145 # Make sure either enable_shared or enable_static is yes.
13146 test "$enable_shared" = yes || enable_static=yes
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13148 $as_echo "$enable_static" >&6; }
13155 ac_cpp='$CPP $CPPFLAGS'
13156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13162 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13163 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13164 (test "X$CXX" != "Xg++"))) ; then
13166 ac_cpp='$CXXCPP $CPPFLAGS'
13167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13171 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13172 if test -z "$CXXCPP"; then
13173 if ${ac_cv_prog_CXXCPP+:} false; then :
13174 $as_echo_n "(cached) " >&6
13176 # Double quotes because CXXCPP needs to be expanded
13177 for CXXCPP in "$CXX -E" "/lib/cpp"
13179 ac_preproc_ok=false
13180 for ac_cxx_preproc_warn_flag in '' yes
13182 # Use a header file that comes with gcc, so configuring glibc
13183 # with a fresh cross-compiler works.
13184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13185 # <limits.h> exists even on freestanding compilers.
13186 # On the NeXT, cc -E runs the code through the compiler's parser,
13187 # not just through cpp. "Syntax error" is here to catch this case.
13188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189 /* end confdefs.h. */
13191 # include <limits.h>
13193 # include <assert.h>
13197 if ac_fn_cxx_try_cpp "$LINENO"; then :
13200 # Broken: fails on valid input.
13203 rm -f conftest.err conftest.i conftest.$ac_ext
13205 # OK, works on sane cases. Now check whether nonexistent headers
13206 # can be detected and how.
13207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h. */
13209 #include <ac_nonexistent.h>
13211 if ac_fn_cxx_try_cpp "$LINENO"; then :
13212 # Broken: success on invalid input.
13215 # Passes both tests.
13219 rm -f conftest.err conftest.i conftest.$ac_ext
13222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13223 rm -f conftest.i conftest.err conftest.$ac_ext
13224 if $ac_preproc_ok; then :
13229 ac_cv_prog_CXXCPP=$CXXCPP
13232 CXXCPP=$ac_cv_prog_CXXCPP
13234 ac_cv_prog_CXXCPP=$CXXCPP
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13237 $as_echo "$CXXCPP" >&6; }
13238 ac_preproc_ok=false
13239 for ac_cxx_preproc_warn_flag in '' yes
13241 # Use a header file that comes with gcc, so configuring glibc
13242 # with a fresh cross-compiler works.
13243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13244 # <limits.h> exists even on freestanding compilers.
13245 # On the NeXT, cc -E runs the code through the compiler's parser,
13246 # not just through cpp. "Syntax error" is here to catch this case.
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13250 # include <limits.h>
13252 # include <assert.h>
13256 if ac_fn_cxx_try_cpp "$LINENO"; then :
13259 # Broken: fails on valid input.
13262 rm -f conftest.err conftest.i conftest.$ac_ext
13264 # OK, works on sane cases. Now check whether nonexistent headers
13265 # can be detected and how.
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13268 #include <ac_nonexistent.h>
13270 if ac_fn_cxx_try_cpp "$LINENO"; then :
13271 # Broken: success on invalid input.
13274 # Passes both tests.
13278 rm -f conftest.err conftest.i conftest.$ac_ext
13281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13282 rm -f conftest.i conftest.err conftest.$ac_ext
13283 if $ac_preproc_ok; then :
13286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13288 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13289 See \`config.log' for more details" "$LINENO" 5; }
13293 ac_cpp='$CPP $CPPFLAGS'
13294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13299 _lt_caught_CXX_error=yes
13303 ac_cpp='$CXXCPP $CPPFLAGS'
13304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13308 archive_cmds_need_lc_CXX=no
13309 allow_undefined_flag_CXX=
13310 always_export_symbols_CXX=no
13311 archive_expsym_cmds_CXX=
13312 compiler_needs_object_CXX=no
13313 export_dynamic_flag_spec_CXX=
13314 hardcode_direct_CXX=no
13315 hardcode_direct_absolute_CXX=no
13316 hardcode_libdir_flag_spec_CXX=
13317 hardcode_libdir_separator_CXX=
13318 hardcode_minus_L_CXX=no
13319 hardcode_shlibpath_var_CXX=unsupported
13320 hardcode_automatic_CXX=no
13321 inherit_rpath_CXX=no
13323 module_expsym_cmds_CXX=
13324 link_all_deplibs_CXX=unknown
13325 old_archive_cmds_CXX=$old_archive_cmds
13326 reload_flag_CXX=$reload_flag
13327 reload_cmds_CXX=$reload_cmds
13328 no_undefined_flag_CXX=
13329 whole_archive_flag_spec_CXX=
13330 enable_shared_with_static_runtimes_CXX=no
13332 # Source file extension for C++ test sources.
13335 # Object file extension for compiled C++ test sources.
13339 # No sense in running all these tests if we already determined that
13340 # the CXX compiler isn't working. Some variables (like enable_shared)
13341 # are currently assumed to apply to all compilers on this platform,
13342 # and will be corrupted by setting them based on a non-working compiler.
13343 if test "$_lt_caught_CXX_error" != yes; then
13344 # Code to be used in simple compile tests
13345 lt_simple_compile_test_code="int some_variable = 0;"
13347 # Code to be used in simple link tests
13348 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13350 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13357 # If no C compiler was specified, use CC.
13360 # If no C compiler flags were specified, use CFLAGS.
13361 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13363 # Allow CC to be a program name with arguments.
13367 # save warnings/boilerplate of simple test code
13368 ac_outfile=conftest.$ac_objext
13369 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13370 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13371 _lt_compiler_boilerplate=`cat conftest.err`
13374 ac_outfile=conftest.$ac_objext
13375 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13376 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13377 _lt_linker_boilerplate=`cat conftest.err`
13381 # Allow CC to be a program name with arguments.
13383 lt_save_CFLAGS=$CFLAGS
13387 lt_save_with_gnu_ld=$with_gnu_ld
13388 lt_save_path_LD=$lt_cv_path_LD
13389 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13390 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13392 $as_unset lt_cv_prog_gnu_ld
13394 if test -n "${lt_cv_path_LDCXX+set}"; then
13395 lt_cv_path_LD=$lt_cv_path_LDCXX
13397 $as_unset lt_cv_path_LD
13399 test -z "${LDCXX+set}" || LD=$LDCXX
13404 for cc_temp in $compiler""; do
13406 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13407 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13412 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13415 if test -n "$compiler"; then
13416 # We don't want -fno-exception when compiling C++ code, so set the
13417 # no_builtin_flag separately
13418 if test "$GXX" = yes; then
13419 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13421 lt_prog_compiler_no_builtin_flag_CXX=
13424 if test "$GXX" = yes; then
13425 # Set up default GNU C++ configuration
13429 # Check whether --with-gnu-ld was given.
13430 if test "${with_gnu_ld+set}" = set; then :
13431 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13437 if test "$GCC" = yes; then
13438 # Check if gcc -print-prog-name=ld gives a path.
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13440 $as_echo_n "checking for ld used by $CC... " >&6; }
13443 # gcc leaves a trailing carriage return which upsets mingw
13444 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13446 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13449 # Accept absolute paths.
13451 re_direlt='/[^/][^/]*/\.\./'
13452 # Canonicalize the pathname of ld
13453 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13454 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13455 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13457 test -z "$LD" && LD="$ac_prog"
13460 # If it fails, then pretend we aren't using GCC.
13464 # If it is relative, then search for the first ld in PATH.
13465 with_gnu_ld=unknown
13468 elif test "$with_gnu_ld" = yes; then
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13470 $as_echo_n "checking for GNU ld... " >&6; }
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13473 $as_echo_n "checking for non-GNU ld... " >&6; }
13475 if ${lt_cv_path_LD+:} false; then :
13476 $as_echo_n "(cached) " >&6
13478 if test -z "$LD"; then
13479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13480 for ac_dir in $PATH; do
13482 test -z "$ac_dir" && ac_dir=.
13483 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13484 lt_cv_path_LD="$ac_dir/$ac_prog"
13485 # Check to see if the program is GNU ld. I'd rather use --version,
13486 # but apparently some variants of GNU ld only accept -v.
13487 # Break only if it was the GNU/non-GNU ld that we prefer.
13488 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13489 *GNU* | *'with BFD'*)
13490 test "$with_gnu_ld" != no && break
13493 test "$with_gnu_ld" != yes && break
13500 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13504 LD="$lt_cv_path_LD"
13505 if test -n "$LD"; then
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13507 $as_echo "$LD" >&6; }
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13510 $as_echo "no" >&6; }
13512 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13514 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13515 if ${lt_cv_prog_gnu_ld+:} false; then :
13516 $as_echo_n "(cached) " >&6
13518 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13519 case `$LD -v 2>&1 </dev/null` in
13520 *GNU* | *'with BFD'*)
13521 lt_cv_prog_gnu_ld=yes
13524 lt_cv_prog_gnu_ld=no
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13529 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13530 with_gnu_ld=$lt_cv_prog_gnu_ld
13538 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13539 # archiving commands below assume that GNU ld is being used.
13540 if test "$with_gnu_ld" = yes; then
13541 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13542 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'
13544 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13545 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13547 # If archive_cmds runs LD, not CC, wlarc should be empty
13548 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13549 # investigate it a little bit more. (MM)
13552 # ancient GNU ld didn't support --whole-archive et. al.
13553 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13554 $GREP 'no-whole-archive' > /dev/null; then
13555 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13557 whole_archive_flag_spec_CXX=
13563 # A generic and very simple default shared library creation
13564 # command for GNU C++ for the case where it uses the native
13565 # linker, instead of GNU ld. If possible, this setting should
13566 # overridden to take advantage of the native linker features on
13567 # the platform it is being used on.
13568 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13571 # Commands to make compiler produce verbose output that lists
13572 # what "hidden" libraries, object files and flags are used when
13573 # linking a shared library.
13574 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13582 # PORTME: fill in a description of your system's C++ link characteristics
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13584 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13588 # FIXME: insert proper C++ library support
13592 if test "$host_cpu" = ia64; then
13593 # On IA64, the linker does run time linking by default, so we don't
13594 # have to do anything special.
13595 aix_use_runtimelinking=no
13596 exp_sym_flag='-Bexport'
13599 aix_use_runtimelinking=no
13601 # Test if we are trying to use run time linking or normal
13602 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13603 # need to do runtime linking.
13604 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13605 for ld_flag in $LDFLAGS; do
13608 aix_use_runtimelinking=yes
13616 exp_sym_flag='-bexport'
13617 no_entry_flag='-bnoentry'
13620 # When large executables or shared objects are built, AIX ld can
13621 # have problems creating the table of contents. If linking a library
13622 # or program results in "error TOC overflow" add -mminimal-toc to
13623 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13624 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13626 archive_cmds_CXX=''
13627 hardcode_direct_CXX=yes
13628 hardcode_direct_absolute_CXX=yes
13629 hardcode_libdir_separator_CXX=':'
13630 link_all_deplibs_CXX=yes
13631 file_list_spec_CXX='${wl}-f,'
13633 if test "$GXX" = yes; then
13634 case $host_os in aix4.[012]|aix4.[012].*)
13635 # We only want to do this on AIX 4.2 and lower, the check
13636 # below for broken collect2 doesn't work under 4.3+
13637 collect2name=`${CC} -print-prog-name=collect2`
13638 if test -f "$collect2name" &&
13639 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13641 # We have reworked collect2
13644 # We have old collect2
13645 hardcode_direct_CXX=unsupported
13646 # It fails to find uninstalled libraries when the uninstalled
13647 # path is not listed in the libpath. Setting hardcode_minus_L
13648 # to unsupported forces relinking
13649 hardcode_minus_L_CXX=yes
13650 hardcode_libdir_flag_spec_CXX='-L$libdir'
13651 hardcode_libdir_separator_CXX=
13654 shared_flag='-shared'
13655 if test "$aix_use_runtimelinking" = yes; then
13656 shared_flag="$shared_flag "'${wl}-G'
13660 if test "$host_cpu" = ia64; then
13661 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13662 # chokes on -Wl,-G. The following line is correct:
13665 if test "$aix_use_runtimelinking" = yes; then
13666 shared_flag='${wl}-G'
13668 shared_flag='${wl}-bM:SRE'
13673 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13674 # It seems that -bexpall does not export symbols beginning with
13675 # underscore (_), so it is better to generate a list of symbols to
13677 always_export_symbols_CXX=yes
13678 if test "$aix_use_runtimelinking" = yes; then
13679 # Warning - without using the other runtime loading flags (-brtl),
13680 # -berok will link without error, but may produce a broken library.
13681 allow_undefined_flag_CXX='-berok'
13682 # Determine the default libpath from the value encoded in an empty
13684 if test "${lt_cv_aix_libpath+set}" = set; then
13685 aix_libpath=$lt_cv_aix_libpath
13687 if ${lt_cv_aix_libpath__CXX+:} false; then :
13688 $as_echo_n "(cached) " >&6
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13701 if ac_fn_cxx_try_link "$LINENO"; then :
13703 lt_aix_libpath_sed='
13704 /Import File Strings/,/^$/ {
13706 s/^0 *\([^ ]*\) *$/\1/
13710 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13711 # Check for a 64-bit object if we didn't find anything.
13712 if test -z "$lt_cv_aix_libpath__CXX"; then
13713 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13716 rm -f core conftest.err conftest.$ac_objext \
13717 conftest$ac_exeext conftest.$ac_ext
13718 if test -z "$lt_cv_aix_libpath__CXX"; then
13719 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13724 aix_libpath=$lt_cv_aix_libpath__CXX
13727 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13729 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"
13731 if test "$host_cpu" = ia64; then
13732 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13733 allow_undefined_flag_CXX="-z nodefs"
13734 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"
13736 # Determine the default libpath from the value encoded in an
13737 # empty executable.
13738 if test "${lt_cv_aix_libpath+set}" = set; then
13739 aix_libpath=$lt_cv_aix_libpath
13741 if ${lt_cv_aix_libpath__CXX+:} false; then :
13742 $as_echo_n "(cached) " >&6
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13755 if ac_fn_cxx_try_link "$LINENO"; then :
13757 lt_aix_libpath_sed='
13758 /Import File Strings/,/^$/ {
13760 s/^0 *\([^ ]*\) *$/\1/
13764 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13765 # Check for a 64-bit object if we didn't find anything.
13766 if test -z "$lt_cv_aix_libpath__CXX"; then
13767 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13770 rm -f core conftest.err conftest.$ac_objext \
13771 conftest$ac_exeext conftest.$ac_ext
13772 if test -z "$lt_cv_aix_libpath__CXX"; then
13773 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13778 aix_libpath=$lt_cv_aix_libpath__CXX
13781 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13782 # Warning - without using the other run time loading flags,
13783 # -berok will link without error, but may produce a broken library.
13784 no_undefined_flag_CXX=' ${wl}-bernotok'
13785 allow_undefined_flag_CXX=' ${wl}-berok'
13786 if test "$with_gnu_ld" = yes; then
13787 # We only use this code for GNU lds that support --whole-archive.
13788 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13790 # Exported symbols can be pulled into shared objects from archives
13791 whole_archive_flag_spec_CXX='$convenience'
13793 archive_cmds_need_lc_CXX=yes
13794 # This is similar to how AIX traditionally builds its shared
13796 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'
13802 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13803 allow_undefined_flag_CXX=unsupported
13804 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13805 # support --undefined. This deserves some investigation. FIXME
13806 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13813 case $cc_basename in
13815 # FIXME: insert proper C++ library support
13821 cygwin* | mingw* | pw32* | cegcc*)
13822 case $GXX,$cc_basename in
13825 # hardcode_libdir_flag_spec is actually meaningless, as there is
13826 # no search path for DLLs.
13827 hardcode_libdir_flag_spec_CXX=' '
13828 allow_undefined_flag_CXX=unsupported
13829 always_export_symbols_CXX=yes
13830 file_list_spec_CXX='@'
13831 # Tell ltmain to make .lib files, not .a files.
13833 # Tell ltmain to make .dll files, not .so files.
13835 # FIXME: Setting linknames here is a bad hack.
13836 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13837 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13838 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13840 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13842 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13844 # The linker will not automatically build a static lib if we build a DLL.
13845 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13846 enable_shared_with_static_runtimes_CXX=yes
13848 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13849 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13850 lt_tool_outputfile="@TOOL_OUTPUT@"~
13851 case $lt_outputfile in
13854 lt_outputfile="$lt_outputfile.exe"
13855 lt_tool_outputfile="$lt_tool_outputfile.exe"
13858 func_to_tool_file "$lt_outputfile"~
13859 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13860 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13861 $RM "$lt_outputfile.manifest";
13866 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13867 # as there is no search path for DLLs.
13868 hardcode_libdir_flag_spec_CXX='-L$libdir'
13869 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13870 allow_undefined_flag_CXX=unsupported
13871 always_export_symbols_CXX=no
13872 enable_shared_with_static_runtimes_CXX=yes
13874 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13875 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'
13876 # If the export-symbols file already is a .def file (1st line
13877 # is EXPORTS), use it as is; otherwise, prepend...
13878 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13879 cp $export_symbols $output_objdir/$soname.def;
13881 echo EXPORTS > $output_objdir/$soname.def;
13882 cat $export_symbols >> $output_objdir/$soname.def;
13884 $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'
13891 darwin* | rhapsody*)
13894 archive_cmds_need_lc_CXX=no
13895 hardcode_direct_CXX=no
13896 hardcode_automatic_CXX=yes
13897 hardcode_shlibpath_var_CXX=unsupported
13898 if test "$lt_cv_ld_force_load" = "yes"; then
13899 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\"`'
13902 whole_archive_flag_spec_CXX=''
13904 link_all_deplibs_CXX=yes
13905 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13906 case $cc_basename in
13907 ifort*) _lt_dar_can_shared=yes ;;
13908 *) _lt_dar_can_shared=$GCC ;;
13910 if test "$_lt_dar_can_shared" = "yes"; then
13911 output_verbose_link_cmd=func_echo_all
13912 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}"
13913 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13914 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}"
13915 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}"
13916 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13917 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}"
13918 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}"
13928 case $cc_basename in
13930 # FIXME: insert proper C++ library support
13934 # Green Hills C++ Compiler
13935 # FIXME: insert proper C++ library support
13939 # FIXME: insert proper C++ library support
13946 # C++ shared libraries reported to be fairly broken before
13952 archive_cmds_need_lc_CXX=no
13955 freebsd* | dragonfly*)
13956 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13962 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13963 link_all_deplibs_CXX=yes
13967 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13968 hardcode_libdir_separator_CXX=:
13969 export_dynamic_flag_spec_CXX='${wl}-E'
13970 hardcode_direct_CXX=yes
13971 hardcode_minus_L_CXX=yes # Not in the search PATH,
13972 # but as the default
13973 # location of the library.
13975 case $cc_basename in
13977 # FIXME: insert proper C++ library support
13981 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'
13982 # Commands to make compiler produce verbose output that lists
13983 # what "hidden" libraries, object files and flags are used when
13984 # linking a shared library.
13986 # There doesn't appear to be a way to prevent this compiler from
13987 # explicitly linking system object files so we need to strip them
13988 # from the output so that they don't get included in the library
13990 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"'
13993 if test "$GXX" = yes; then
13994 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'
13996 # FIXME: insert proper C++ library support
14004 if test $with_gnu_ld = no; then
14005 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14006 hardcode_libdir_separator_CXX=:
14012 export_dynamic_flag_spec_CXX='${wl}-E'
14018 hardcode_direct_CXX=no
14019 hardcode_shlibpath_var_CXX=no
14022 hardcode_direct_CXX=yes
14023 hardcode_direct_absolute_CXX=yes
14024 hardcode_minus_L_CXX=yes # Not in the search PATH,
14025 # but as the default
14026 # location of the library.
14030 case $cc_basename in
14032 # FIXME: insert proper C++ library support
14038 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14041 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14044 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14047 # Commands to make compiler produce verbose output that lists
14048 # what "hidden" libraries, object files and flags are used when
14049 # linking a shared library.
14051 # There doesn't appear to be a way to prevent this compiler from
14052 # explicitly linking system object files so we need to strip them
14053 # from the output so that they don't get included in the library
14055 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"'
14058 if test "$GXX" = yes; then
14059 if test $with_gnu_ld = no; then
14062 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14065 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14068 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'
14073 # FIXME: insert proper C++ library support
14081 hardcode_direct_CXX=no
14082 hardcode_shlibpath_var_CXX=no
14083 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14084 export_dynamic_flag_spec_CXX='${wl}-E'
14085 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14086 # Instead, shared libraries are loaded at an image base (0x10000000 by
14087 # default) and relocated if they conflict, which is a slow very memory
14088 # consuming and fragmenting process. To avoid this, we pick a random,
14089 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14090 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14091 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'
14092 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'
14095 case $cc_basename in
14098 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'
14100 # Archives containing C++ object files must be created using
14101 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14102 # necessary to make sure instantiated templates are included
14104 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14107 if test "$GXX" = yes; then
14108 if test "$with_gnu_ld" = no; then
14109 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'
14111 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'
14114 link_all_deplibs_CXX=yes
14117 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14118 hardcode_libdir_separator_CXX=:
14119 inherit_rpath_CXX=yes
14122 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14123 case $cc_basename in
14125 # Kuck and Associates, Inc. (KAI) C++ Compiler
14127 # KCC will only create a shared library if the output file
14128 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14129 # to its proper name (with version) after linking.
14130 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'
14131 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'
14132 # Commands to make compiler produce verbose output that lists
14133 # what "hidden" libraries, object files and flags are used when
14134 # linking a shared library.
14136 # There doesn't appear to be a way to prevent this compiler from
14137 # explicitly linking system object files so we need to strip them
14138 # from the output so that they don't get included in the library
14140 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"'
14142 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14143 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14145 # Archives containing C++ object files must be created using
14146 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14147 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14152 # version 8.0 and above of icpc choke on multiply defined symbols
14153 # if we add $predep_objects and $postdep_objects, however 7.1 and
14154 # earlier do not add the objects themselves.
14155 case `$CC -V 2>&1` in
14157 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14158 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'
14160 *) # Version 8.0 or newer
14163 ia64*) tmp_idyn=' -i_dynamic';;
14165 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14166 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'
14169 archive_cmds_need_lc_CXX=no
14170 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14171 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14172 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14175 # Portland Group C++ compiler
14177 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14178 prelink_cmds_CXX='tpldir=Template.dir~
14180 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14181 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14182 old_archive_cmds_CXX='tpldir=Template.dir~
14184 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14185 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14187 archive_cmds_CXX='tpldir=Template.dir~
14189 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14190 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14191 archive_expsym_cmds_CXX='tpldir=Template.dir~
14193 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14194 $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'
14196 *) # Version 6 and above use weak symbols
14197 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14198 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'
14202 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14203 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14204 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'
14208 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14209 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'
14211 runpath_var=LD_RUN_PATH
14212 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14213 hardcode_libdir_separator_CXX=:
14215 # Commands to make compiler produce verbose output that lists
14216 # what "hidden" libraries, object files and flags are used when
14217 # linking a shared library.
14219 # There doesn't appear to be a way to prevent this compiler from
14220 # explicitly linking system object files so we need to strip them
14221 # from the output so that they don't get included in the library
14223 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'
14225 xl* | mpixl* | bgxl*)
14226 # IBM XL 8.0 on PPC, with GNU ld
14227 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14228 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14229 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14230 if test "x$supports_anon_versioning" = xyes; then
14231 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14233 echo "local: *; };" >> $output_objdir/$libname.ver~
14234 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14238 case `$CC -V 2>&1 | sed 5q` in
14241 no_undefined_flag_CXX=' -zdefs'
14242 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14243 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'
14244 hardcode_libdir_flag_spec_CXX='-R$libdir'
14245 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'
14246 compiler_needs_object_CXX=yes
14248 # Not sure whether something based on
14249 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14251 output_verbose_link_cmd='func_echo_all'
14253 # Archives containing C++ object files must be created using
14254 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14255 # necessary to make sure instantiated templates are included
14257 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14265 # FIXME: insert proper C++ library support
14270 # FIXME: insert proper C++ library support
14275 case $cc_basename in
14277 # FIXME: insert proper C++ library support
14281 # FIXME: insert proper C++ library support
14288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14289 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14291 hardcode_libdir_flag_spec_CXX='-R$libdir'
14292 hardcode_direct_CXX=yes
14293 hardcode_shlibpath_var_CXX=no
14295 # Workaround some broken pre-1.5 toolchains
14296 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14304 # C++ shared libraries are fairly broken
14309 if test -f /usr/libexec/ld.so; then
14310 hardcode_direct_CXX=yes
14311 hardcode_shlibpath_var_CXX=no
14312 hardcode_direct_absolute_CXX=yes
14313 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14314 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14315 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14316 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14317 export_dynamic_flag_spec_CXX='${wl}-E'
14318 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14320 output_verbose_link_cmd=func_echo_all
14326 osf3* | osf4* | osf5*)
14327 case $cc_basename in
14329 # Kuck and Associates, Inc. (KAI) C++ Compiler
14331 # KCC will only create a shared library if the output file
14332 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14333 # to its proper name (with version) after linking.
14334 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'
14336 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14337 hardcode_libdir_separator_CXX=:
14339 # Archives containing C++ object files must be created using
14340 # the KAI C++ compiler.
14342 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14343 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14347 # Rational C++ 2.4.1
14348 # FIXME: insert proper C++ library support
14354 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14355 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'
14356 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14359 allow_undefined_flag_CXX=' -expect_unresolved \*'
14360 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'
14361 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14362 echo "-hidden">> $lib.exp~
14363 $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~
14365 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14369 hardcode_libdir_separator_CXX=:
14371 # Commands to make compiler produce verbose output that lists
14372 # what "hidden" libraries, object files and flags are used when
14373 # linking a shared library.
14375 # There doesn't appear to be a way to prevent this compiler from
14376 # explicitly linking system object files so we need to strip them
14377 # from the output so that they don't get included in the library
14379 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"'
14382 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14383 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14386 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'
14389 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'
14393 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14394 hardcode_libdir_separator_CXX=:
14396 # Commands to make compiler produce verbose output that lists
14397 # what "hidden" libraries, object files and flags are used when
14398 # linking a shared library.
14399 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14402 # FIXME: insert proper C++ library support
14410 # FIXME: insert proper C++ library support
14415 case $cc_basename in
14418 # FIXME: insert proper C++ library support
14423 # FIXME: insert proper C++ library support
14427 # FIXME: insert proper C++ library support
14434 case $cc_basename in
14436 # Sun C++ 4.2, 5.x and Centerline C++
14437 archive_cmds_need_lc_CXX=yes
14438 no_undefined_flag_CXX=' -zdefs'
14439 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14440 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14441 $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'
14443 hardcode_libdir_flag_spec_CXX='-R$libdir'
14444 hardcode_shlibpath_var_CXX=no
14446 solaris2.[0-5] | solaris2.[0-5].*) ;;
14448 # The compiler driver will combine and reorder linker options,
14449 # but understands `-z linker_flag'.
14450 # Supported since Solaris 2.6 (maybe 2.5.1?)
14451 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14454 link_all_deplibs_CXX=yes
14456 output_verbose_link_cmd='func_echo_all'
14458 # Archives containing C++ object files must be created using
14459 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14460 # necessary to make sure instantiated templates are included
14462 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14465 # Green Hills C++ Compiler
14466 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14468 # The C++ compiler must be used to create the archive.
14469 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14472 # GNU C++ compiler with Solaris linker
14473 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14474 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14475 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14476 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14477 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14478 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14480 # Commands to make compiler produce verbose output that lists
14481 # what "hidden" libraries, object files and flags are used when
14482 # linking a shared library.
14483 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14485 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14487 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14488 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14489 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14491 # Commands to make compiler produce verbose output that lists
14492 # what "hidden" libraries, object files and flags are used when
14493 # linking a shared library.
14494 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14497 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14499 solaris2.[0-5] | solaris2.[0-5].*) ;;
14501 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14509 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14510 no_undefined_flag_CXX='${wl}-z,text'
14511 archive_cmds_need_lc_CXX=no
14512 hardcode_shlibpath_var_CXX=no
14513 runpath_var='LD_RUN_PATH'
14515 case $cc_basename in
14517 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14518 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14521 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14522 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14527 sysv5* | sco3.2v5* | sco5v6*)
14528 # Note: We can NOT use -z defs as we might desire, because we do not
14529 # link with -lc, and that would cause any symbols used from libc to
14530 # always be unresolved, which means just about no library would
14531 # ever link correctly. If we're not using GNU ld we use -z text
14532 # though, which does catch some bad symbols but isn't as heavy-handed
14534 no_undefined_flag_CXX='${wl}-z,text'
14535 allow_undefined_flag_CXX='${wl}-z,nodefs'
14536 archive_cmds_need_lc_CXX=no
14537 hardcode_shlibpath_var_CXX=no
14538 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14539 hardcode_libdir_separator_CXX=':'
14540 link_all_deplibs_CXX=yes
14541 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14542 runpath_var='LD_RUN_PATH'
14544 case $cc_basename in
14546 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14547 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14548 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14549 '"$old_archive_cmds_CXX"
14550 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14551 '"$reload_cmds_CXX"
14554 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14555 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14561 case $cc_basename in
14563 # NonStop-UX NCC 3.20
14564 # FIXME: insert proper C++ library support
14568 # FIXME: insert proper C++ library support
14575 # FIXME: insert proper C++ library support
14580 # FIXME: insert proper C++ library support
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14586 $as_echo "$ld_shlibs_CXX" >&6; }
14587 test "$ld_shlibs_CXX" = no && can_build_shared=no
14593 ## There is no encapsulation within the following macros, do not change
14594 ## the running order or otherwise move them around unless you know exactly
14595 ## what you are doing...
14596 # Dependencies to place before and after the object being linked:
14597 predep_objects_CXX=
14598 postdep_objects_CXX=
14601 compiler_lib_search_path_CXX=
14603 cat > conftest.$ac_ext <<_LT_EOF
14607 Foo (void) { a = 0; }
14614 _lt_libdeps_save_CFLAGS=$CFLAGS
14615 case "$CC $CFLAGS " in #(
14616 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14617 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14618 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14622 (eval $ac_compile) 2>&5
14624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14625 test $ac_status = 0; }; then
14626 # Parse the compiler output and extract the necessary
14627 # objects, libraries and library flags.
14629 # Sentinel used to keep track of whether or not we are before
14630 # the conftest object file.
14631 pre_test_object_deps_done=no
14633 for p in `eval "$output_verbose_link_cmd"`; do
14634 case ${prev}${p} in
14637 # Some compilers place space between "-{L,R}" and the path.
14638 # Remove the space.
14639 if test $p = "-L" ||
14640 test $p = "-R"; then
14645 # Expand the sysroot to ease extracting the directories later.
14646 if test -z "$prev"; then
14648 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14649 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14650 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14654 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14656 if test "$pre_test_object_deps_done" = no; then
14659 # Internal compiler library paths should come after those
14660 # provided the user. The postdeps already come after the
14661 # user supplied libs so there is no need to process them.
14662 if test -z "$compiler_lib_search_path_CXX"; then
14663 compiler_lib_search_path_CXX="${prev}${p}"
14665 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14668 # The "-l" case would never come before the object being
14669 # linked, so don't bother handling this case.
14672 if test -z "$postdeps_CXX"; then
14673 postdeps_CXX="${prev}${p}"
14675 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14681 *.lto.$objext) ;; # Ignore GCC LTO objects
14683 # This assumes that the test object file only shows up
14684 # once in the compiler output.
14685 if test "$p" = "conftest.$objext"; then
14686 pre_test_object_deps_done=yes
14690 if test "$pre_test_object_deps_done" = no; then
14691 if test -z "$predep_objects_CXX"; then
14692 predep_objects_CXX="$p"
14694 predep_objects_CXX="$predep_objects_CXX $p"
14697 if test -z "$postdep_objects_CXX"; then
14698 postdep_objects_CXX="$p"
14700 postdep_objects_CXX="$postdep_objects_CXX $p"
14705 *) ;; # Ignore the rest.
14713 echo "libtool.m4: error: problem compiling CXX test program"
14716 $RM -f confest.$objext
14717 CFLAGS=$_lt_libdeps_save_CFLAGS
14719 # PORTME: override above test on systems where it is broken
14722 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14723 # hack all around it, let's just trust "g++" to DTRT.
14724 predep_objects_CXX=
14725 postdep_objects_CXX=
14730 case `$CC -V 2>&1 | sed 5q` in
14734 # The more standards-conforming stlport4 library is
14735 # incompatible with the Cstd library. Avoid specifying
14736 # it if it's in CXXFLAGS. Ignore libCrun as
14737 # -library=stlport4 depends on it.
14738 case " $CXX $CXXFLAGS " in
14739 *" -library=stlport4 "*)
14740 solaris_use_stlport4=yes
14744 if test "$solaris_use_stlport4" != yes; then
14745 postdeps_CXX='-library=Cstd -library=Crun'
14752 case $cc_basename in
14754 # The more standards-conforming stlport4 library is
14755 # incompatible with the Cstd library. Avoid specifying
14756 # it if it's in CXXFLAGS. Ignore libCrun as
14757 # -library=stlport4 depends on it.
14758 case " $CXX $CXXFLAGS " in
14759 *" -library=stlport4 "*)
14760 solaris_use_stlport4=yes
14764 # Adding this requires a known-good setup of shared libraries for
14765 # Sun compiler versions before 5.6, else PIC objects from an old
14766 # archive will be linked into the output, leading to subtle bugs.
14767 if test "$solaris_use_stlport4" != yes; then
14768 postdeps_CXX='-library=Cstd -library=Crun'
14776 case " $postdeps_CXX " in
14777 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14779 compiler_lib_search_dirs_CXX=
14780 if test -n "${compiler_lib_search_path_CXX}"; then
14781 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14814 lt_prog_compiler_wl_CXX=
14815 lt_prog_compiler_pic_CXX=
14816 lt_prog_compiler_static_CXX=
14819 # C++ specific cases for pic, static, wl, etc.
14820 if test "$GXX" = yes; then
14821 lt_prog_compiler_wl_CXX='-Wl,'
14822 lt_prog_compiler_static_CXX='-static'
14826 # All AIX code is PIC.
14827 if test "$host_cpu" = ia64; then
14828 # AIX 5 now supports IA64 processor
14829 lt_prog_compiler_static_CXX='-Bstatic'
14836 # see comment about AmigaOS4 .so support
14837 lt_prog_compiler_pic_CXX='-fPIC'
14840 # FIXME: we need at least 68020 code to build shared libraries, but
14841 # adding the `-m68020' flag to GCC prevents building anything better,
14843 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14848 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14849 # PIC is the default for these OSes.
14851 mingw* | cygwin* | os2* | pw32* | cegcc*)
14852 # This hack is so that the source file can tell whether it is being
14853 # built for inclusion in a dll (and should export symbols for example).
14854 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14855 # (--disable-auto-import) libraries
14856 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14858 darwin* | rhapsody*)
14859 # PIC is the default on this platform
14860 # Common symbols not allowed in MH_DYLIB files
14861 lt_prog_compiler_pic_CXX='-fno-common'
14864 # DJGPP does not support shared libraries at all
14865 lt_prog_compiler_pic_CXX=
14868 # PIC is the default for Haiku.
14869 # The "-static" flag exists, but is broken.
14870 lt_prog_compiler_static_CXX=
14873 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14874 # Instead, we relocate shared libraries at runtime.
14877 if test -d /usr/nec; then
14878 lt_prog_compiler_pic_CXX=-Kconform_pic
14882 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14883 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14884 # sets the default TLS model and affects inlining.
14889 lt_prog_compiler_pic_CXX='-fPIC'
14894 # QNX uses GNU C++, but need to define -shared option too, otherwise
14895 # it will coredump.
14896 lt_prog_compiler_pic_CXX='-fPIC -shared'
14899 lt_prog_compiler_pic_CXX='-fPIC'
14905 # All AIX code is PIC.
14906 if test "$host_cpu" = ia64; then
14907 # AIX 5 now supports IA64 processor
14908 lt_prog_compiler_static_CXX='-Bstatic'
14910 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14914 case $cc_basename in
14916 # Green Hills C++ Compiler
14917 # _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"
14921 mingw* | cygwin* | os2* | pw32* | cegcc*)
14922 # This hack is so that the source file can tell whether it is being
14923 # built for inclusion in a dll (and should export symbols for example).
14924 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14927 case $cc_basename in
14929 lt_prog_compiler_pic_CXX='-KPIC'
14932 # Green Hills C++ Compiler
14933 lt_prog_compiler_pic_CXX='-pic'
14939 freebsd* | dragonfly*)
14940 # FreeBSD uses GNU C++
14942 hpux9* | hpux10* | hpux11*)
14943 case $cc_basename in
14945 lt_prog_compiler_wl_CXX='-Wl,'
14946 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14947 if test "$host_cpu" != ia64; then
14948 lt_prog_compiler_pic_CXX='+Z'
14952 lt_prog_compiler_wl_CXX='-Wl,'
14953 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14959 lt_prog_compiler_pic_CXX='+Z'
14968 # This is c89, which is MS Visual C++ (no shared libs)
14969 # Anyone wants to do a port?
14971 irix5* | irix6* | nonstopux*)
14972 case $cc_basename in
14974 lt_prog_compiler_wl_CXX='-Wl,'
14975 lt_prog_compiler_static_CXX='-non_shared'
14976 # CC pic flag -KPIC is the default.
14982 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14983 case $cc_basename in
14986 lt_prog_compiler_wl_CXX='--backend -Wl,'
14987 lt_prog_compiler_pic_CXX='-fPIC'
14990 # old Intel C++ for x86_64 which still supported -KPIC.
14991 lt_prog_compiler_wl_CXX='-Wl,'
14992 lt_prog_compiler_pic_CXX='-KPIC'
14993 lt_prog_compiler_static_CXX='-static'
14996 # Intel C++, used to be incompatible with GCC.
14997 # ICC 10 doesn't accept -KPIC any more.
14998 lt_prog_compiler_wl_CXX='-Wl,'
14999 lt_prog_compiler_pic_CXX='-fPIC'
15000 lt_prog_compiler_static_CXX='-static'
15003 # Portland Group C++ compiler
15004 lt_prog_compiler_wl_CXX='-Wl,'
15005 lt_prog_compiler_pic_CXX='-fpic'
15006 lt_prog_compiler_static_CXX='-Bstatic'
15010 # Make sure the PIC flag is empty. It appears that all Alpha
15011 # Linux and Compaq Tru64 Unix objects are PIC.
15012 lt_prog_compiler_pic_CXX=
15013 lt_prog_compiler_static_CXX='-non_shared'
15015 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15016 # IBM XL 8.0, 9.0 on PPC and BlueGene
15017 lt_prog_compiler_wl_CXX='-Wl,'
15018 lt_prog_compiler_pic_CXX='-qpic'
15019 lt_prog_compiler_static_CXX='-qstaticlink'
15022 case `$CC -V 2>&1 | sed 5q` in
15025 lt_prog_compiler_pic_CXX='-KPIC'
15026 lt_prog_compiler_static_CXX='-Bstatic'
15027 lt_prog_compiler_wl_CXX='-Qoption ld '
15038 case $cc_basename in
15040 lt_prog_compiler_pic_CXX='-W c,exportall'
15046 netbsd* | netbsdelf*-gnu)
15049 # QNX uses GNU C++, but need to define -shared option too, otherwise
15050 # it will coredump.
15051 lt_prog_compiler_pic_CXX='-fPIC -shared'
15053 osf3* | osf4* | osf5*)
15054 case $cc_basename in
15056 lt_prog_compiler_wl_CXX='--backend -Wl,'
15059 # Rational C++ 2.4.1
15060 lt_prog_compiler_pic_CXX='-pic'
15063 # Digital/Compaq C++
15064 lt_prog_compiler_wl_CXX='-Wl,'
15065 # Make sure the PIC flag is empty. It appears that all Alpha
15066 # Linux and Compaq Tru64 Unix objects are PIC.
15067 lt_prog_compiler_pic_CXX=
15068 lt_prog_compiler_static_CXX='-non_shared'
15077 case $cc_basename in
15079 # Sun C++ 4.2, 5.x and Centerline C++
15080 lt_prog_compiler_pic_CXX='-KPIC'
15081 lt_prog_compiler_static_CXX='-Bstatic'
15082 lt_prog_compiler_wl_CXX='-Qoption ld '
15085 # Green Hills C++ Compiler
15086 lt_prog_compiler_pic_CXX='-PIC'
15093 case $cc_basename in
15096 lt_prog_compiler_pic_CXX='-pic'
15097 lt_prog_compiler_static_CXX='-Bstatic'
15101 lt_prog_compiler_pic_CXX='-pic'
15107 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15108 case $cc_basename in
15110 lt_prog_compiler_wl_CXX='-Wl,'
15111 lt_prog_compiler_pic_CXX='-KPIC'
15112 lt_prog_compiler_static_CXX='-Bstatic'
15117 case $cc_basename in
15119 # NonStop-UX NCC 3.20
15120 lt_prog_compiler_pic_CXX='-KPIC'
15129 lt_prog_compiler_can_build_shared_CXX=no
15135 # For platforms which do not support PIC, -DPIC is meaningless:
15137 lt_prog_compiler_pic_CXX=
15140 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15145 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15146 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15147 $as_echo_n "(cached) " >&6
15149 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15152 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15153 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15156 # Check to make sure the PIC flag actually works.
15158 if test -n "$lt_prog_compiler_pic_CXX"; then
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15160 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15161 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15162 $as_echo_n "(cached) " >&6
15164 lt_cv_prog_compiler_pic_works_CXX=no
15165 ac_outfile=conftest.$ac_objext
15166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15167 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15168 # Insert the option either (1) after the last *FLAGS variable, or
15169 # (2) before a word containing "conftest.", or (3) at the end.
15170 # Note that $ac_compile itself does not contain backslashes and begins
15171 # with a dollar sign (not a hyphen), so the echo should work correctly.
15172 # The option is referenced via a variable to avoid confusing sed.
15173 lt_compile=`echo "$ac_compile" | $SED \
15174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15176 -e 's:$: $lt_compiler_flag:'`
15177 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15178 (eval "$lt_compile" 2>conftest.err)
15180 cat conftest.err >&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 if (exit $ac_status) && test -s "$ac_outfile"; then
15183 # The compiler can only warn and ignore the option if not recognized
15184 # So say no if there are warnings other than the usual output.
15185 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15187 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15188 lt_cv_prog_compiler_pic_works_CXX=yes
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15195 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15197 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15198 case $lt_prog_compiler_pic_CXX in
15200 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15203 lt_prog_compiler_pic_CXX=
15204 lt_prog_compiler_can_build_shared_CXX=no
15214 # Check to make sure the static flag actually works.
15216 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15218 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15219 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15220 $as_echo_n "(cached) " >&6
15222 lt_cv_prog_compiler_static_works_CXX=no
15223 save_LDFLAGS="$LDFLAGS"
15224 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15225 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15226 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15227 # The linker can only warn and ignore the option if not recognized
15228 # So say no if there are warnings
15229 if test -s conftest.err; then
15230 # Append any errors to the config.log.
15231 cat conftest.err 1>&5
15232 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15234 if diff conftest.exp conftest.er2 >/dev/null; then
15235 lt_cv_prog_compiler_static_works_CXX=yes
15238 lt_cv_prog_compiler_static_works_CXX=yes
15242 LDFLAGS="$save_LDFLAGS"
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15246 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15248 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15251 lt_prog_compiler_static_CXX=
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15258 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15259 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15260 $as_echo_n "(cached) " >&6
15262 lt_cv_prog_compiler_c_o_CXX=no
15263 $RM -r conftest 2>/dev/null
15267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15269 lt_compiler_flag="-o out/conftest2.$ac_objext"
15270 # Insert the option either (1) after the last *FLAGS variable, or
15271 # (2) before a word containing "conftest.", or (3) at the end.
15272 # Note that $ac_compile itself does not contain backslashes and begins
15273 # with a dollar sign (not a hyphen), so the echo should work correctly.
15274 lt_compile=`echo "$ac_compile" | $SED \
15275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15277 -e 's:$: $lt_compiler_flag:'`
15278 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15279 (eval "$lt_compile" 2>out/conftest.err)
15281 cat out/conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15285 # The compiler can only warn and ignore the option if not recognized
15286 # So say no if there are warnings
15287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15290 lt_cv_prog_compiler_c_o_CXX=yes
15295 # SGI C++ compiler will create directory out/ii_files/ for
15296 # template instantiation
15297 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15298 $RM out/* && rmdir out
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15305 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15310 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15311 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15312 $as_echo_n "(cached) " >&6
15314 lt_cv_prog_compiler_c_o_CXX=no
15315 $RM -r conftest 2>/dev/null
15319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15321 lt_compiler_flag="-o out/conftest2.$ac_objext"
15322 # Insert the option either (1) after the last *FLAGS variable, or
15323 # (2) before a word containing "conftest.", or (3) at the end.
15324 # Note that $ac_compile itself does not contain backslashes and begins
15325 # with a dollar sign (not a hyphen), so the echo should work correctly.
15326 lt_compile=`echo "$ac_compile" | $SED \
15327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15329 -e 's:$: $lt_compiler_flag:'`
15330 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15331 (eval "$lt_compile" 2>out/conftest.err)
15333 cat out/conftest.err >&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15337 # The compiler can only warn and ignore the option if not recognized
15338 # So say no if there are warnings
15339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15340 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15341 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15342 lt_cv_prog_compiler_c_o_CXX=yes
15347 # SGI C++ compiler will create directory out/ii_files/ for
15348 # template instantiation
15349 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15350 $RM out/* && rmdir out
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15357 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15362 hard_links="nottested"
15363 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15364 # do not overwrite the value of need_locks provided by the user
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15366 $as_echo_n "checking if we can lock with hard links... " >&6; }
15369 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15371 ln conftest.a conftest.b 2>&5 || hard_links=no
15372 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15374 $as_echo "$hard_links" >&6; }
15375 if test "$hard_links" = no; then
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15377 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15387 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15389 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15390 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15393 # If we're using GNU nm, then we don't want the "-C" option.
15394 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15395 # Also, AIX nm treats weak defined symbols like other global defined
15396 # symbols, whereas GNU nm marks them as "W".
15397 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15398 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'
15400 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'
15404 export_symbols_cmds_CXX="$ltdll_cmds"
15406 cygwin* | mingw* | cegcc*)
15407 case $cc_basename in
15409 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15412 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'
15413 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15417 linux* | k*bsd*-gnu | gnu*)
15418 link_all_deplibs_CXX=no
15421 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15426 $as_echo "$ld_shlibs_CXX" >&6; }
15427 test "$ld_shlibs_CXX" = no && can_build_shared=no
15429 with_gnu_ld_CXX=$with_gnu_ld
15437 # Do we need to explicitly link libc?
15439 case "x$archive_cmds_need_lc_CXX" in
15441 # Assume -lc should be added
15442 archive_cmds_need_lc_CXX=yes
15444 if test "$enable_shared" = yes && test "$GCC" = yes; then
15445 case $archive_cmds_CXX in
15447 # FIXME: we may have to deal with multi-command sequences.
15450 # Test whether the compiler implicitly links with -lc since on some
15451 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15452 # to ld, don't add -lc before -lgcc.
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15454 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15455 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15456 $as_echo_n "(cached) " >&6
15459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15462 (eval $ac_compile) 2>&5
15464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15465 test $ac_status = 0; } 2>conftest.err; then
15468 libobjs=conftest.$ac_objext
15470 wl=$lt_prog_compiler_wl_CXX
15471 pic_flag=$lt_prog_compiler_pic_CXX
15477 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15478 allow_undefined_flag_CXX=
15479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15480 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15483 test $ac_status = 0; }
15485 lt_cv_archive_cmds_need_lc_CXX=no
15487 lt_cv_archive_cmds_need_lc_CXX=yes
15489 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15491 cat conftest.err 1>&5
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15497 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15498 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15567 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15569 library_names_spec=
15570 libname_spec='lib$name'
15574 postuninstall_cmds=
15578 shlibpath_overrides_runpath=unknown
15580 dynamic_linker="$host_os ld.so"
15581 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15582 need_lib_prefix=unknown
15583 hardcode_into_libs=no
15585 # when you set need_version to no, make sure it does not cause -set_version
15586 # flags to be left without arguments
15587 need_version=unknown
15591 version_type=linux # correct to gnu/linux during the next big refactor
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15593 shlibpath_var=LIBPATH
15595 # AIX 3 has no versioning support, so we append a major version to the name.
15596 soname_spec='${libname}${release}${shared_ext}$major'
15600 version_type=linux # correct to gnu/linux during the next big refactor
15603 hardcode_into_libs=yes
15604 if test "$host_cpu" = ia64; then
15605 # AIX 5 supports IA64
15606 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15607 shlibpath_var=LD_LIBRARY_PATH
15609 # With GCC up to 2.95.x, collect2 would create an import file
15610 # for dependence libraries. The import file would start with
15611 # the line `#! .'. This would cause the generated library to
15612 # depend on `.', always an invalid library. This was fixed in
15613 # development snapshots of GCC prior to 3.0.
15615 aix4 | aix4.[01] | aix4.[01].*)
15616 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15618 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15621 can_build_shared=no
15625 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15626 # soname into executable. Probably we can add versioning support to
15627 # collect2, so additional links can be useful in future.
15628 if test "$aix_use_runtimelinking" = yes; then
15629 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15630 # instead of lib<name>.a to let people know that these are not
15631 # typical AIX shared libraries.
15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634 # We preserve .a as extension for shared libraries through AIX4.2
15635 # and later when we are not doing run time linking.
15636 library_names_spec='${libname}${release}.a $libname.a'
15637 soname_spec='${libname}${release}${shared_ext}$major'
15639 shlibpath_var=LIBPATH
15646 # Since July 2007 AmigaOS4 officially supports .so libraries.
15647 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15651 library_names_spec='$libname.ixlibrary $libname.a'
15652 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15653 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'
15659 library_names_spec='${libname}${shared_ext}'
15660 dynamic_linker="$host_os ld.so"
15661 shlibpath_var=LIBRARY_PATH
15665 version_type=linux # correct to gnu/linux during the next big refactor
15667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668 soname_spec='${libname}${release}${shared_ext}$major'
15669 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15670 shlibpath_var=LD_LIBRARY_PATH
15671 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15672 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15673 # the default ld.so.conf also contains /usr/contrib/lib and
15674 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15675 # libtool to hard-code these into programs
15678 cygwin* | mingw* | pw32* | cegcc*)
15679 version_type=windows
15684 case $GCC,$cc_basename in
15687 library_names_spec='$libname.dll.a'
15688 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15689 postinstall_cmds='base_file=`basename \${file}`~
15690 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15691 dldir=$destdir/`dirname \$dlpath`~
15692 test -d \$dldir || mkdir -p \$dldir~
15693 $install_prog $dir/$dlname \$dldir/$dlname~
15694 chmod a+x \$dldir/$dlname~
15695 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15696 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15698 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15699 dlpath=$dir/\$dldll~
15701 shlibpath_overrides_runpath=yes
15705 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15706 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15710 # MinGW DLLs use traditional 'lib' prefix
15711 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15714 # pw32 DLLs use 'pw' prefix rather than 'lib'
15715 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15718 dynamic_linker='Win32 ld.exe'
15723 libname_spec='$name'
15724 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15725 library_names_spec='${libname}.dll.lib'
15729 sys_lib_search_path_spec=
15732 for lt_path in $LIB
15735 # Let DOS variable expansion print the short 8.3 style file name.
15736 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15737 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15740 # Convert to MSYS style.
15741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15744 # Convert to unix form, then to dos form, then back to unix form
15745 # but this time dos style (no spaces!) so that the unix form looks
15746 # like /cygdrive/c/PROGRA~1:/cygdr...
15747 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15748 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15749 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15752 sys_lib_search_path_spec="$LIB"
15753 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15754 # It is most probably a Windows format PATH.
15755 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15757 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15759 # FIXME: find the short name or the path components, as spaces are
15760 # common. (e.g. "Program Files" -> "PROGRA~1")
15764 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15765 postinstall_cmds='base_file=`basename \${file}`~
15766 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15767 dldir=$destdir/`dirname \$dlpath`~
15768 test -d \$dldir || mkdir -p \$dldir~
15769 $install_prog $dir/$dlname \$dldir/$dlname'
15770 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15771 dlpath=$dir/\$dldll~
15773 shlibpath_overrides_runpath=yes
15774 dynamic_linker='Win32 link.exe'
15778 # Assume MSVC wrapper
15779 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15780 dynamic_linker='Win32 ld.exe'
15783 # FIXME: first we should search . and the directory the executable is in
15787 darwin* | rhapsody*)
15788 dynamic_linker="$host_os dyld"
15789 version_type=darwin
15792 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15793 soname_spec='${libname}${release}${major}$shared_ext'
15794 shlibpath_overrides_runpath=yes
15795 shlibpath_var=DYLD_LIBRARY_PATH
15796 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15798 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15802 version_type=linux # correct to gnu/linux during the next big refactor
15805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15806 soname_spec='${libname}${release}${shared_ext}$major'
15807 shlibpath_var=LD_LIBRARY_PATH
15810 freebsd* | dragonfly*)
15811 # DragonFly does not have aout. When/if they implement a new
15812 # versioning mechanism, adjust this.
15813 if test -x /usr/bin/objformat; then
15814 objformat=`/usr/bin/objformat`
15817 freebsd[23].*) objformat=aout ;;
15818 *) objformat=elf ;;
15821 version_type=freebsd-$objformat
15822 case $version_type in
15824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15833 shlibpath_var=LD_LIBRARY_PATH
15836 shlibpath_overrides_runpath=yes
15838 freebsd3.[01]* | freebsdelf3.[01]*)
15839 shlibpath_overrides_runpath=yes
15840 hardcode_into_libs=yes
15842 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15843 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15844 shlibpath_overrides_runpath=no
15845 hardcode_into_libs=yes
15847 *) # from 4.6 on, and DragonFly
15848 shlibpath_overrides_runpath=yes
15849 hardcode_into_libs=yes
15855 version_type=linux # correct to gnu/linux during the next big refactor
15858 dynamic_linker="$host_os runtime_loader"
15859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15860 soname_spec='${libname}${release}${shared_ext}$major'
15861 shlibpath_var=LIBRARY_PATH
15862 shlibpath_overrides_runpath=yes
15863 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15864 hardcode_into_libs=yes
15867 hpux9* | hpux10* | hpux11*)
15868 # Give a soname corresponding to the major version so that dld.sl refuses to
15869 # link against other versions.
15876 hardcode_into_libs=yes
15877 dynamic_linker="$host_os dld.so"
15878 shlibpath_var=LD_LIBRARY_PATH
15879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15881 soname_spec='${libname}${release}${shared_ext}$major'
15882 if test "X$HPUX_IA64_MODE" = X32; then
15883 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15885 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15891 hardcode_into_libs=yes
15892 dynamic_linker="$host_os dld.sl"
15893 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15896 soname_spec='${libname}${release}${shared_ext}$major'
15897 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15902 dynamic_linker="$host_os dld.sl"
15903 shlibpath_var=SHLIB_PATH
15904 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906 soname_spec='${libname}${release}${shared_ext}$major'
15909 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15910 postinstall_cmds='chmod 555 $lib'
15911 # or fails outright, so override atomically:
15912 install_override_mode=555
15916 version_type=linux # correct to gnu/linux during the next big refactor
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15922 shlibpath_var=LD_LIBRARY_PATH
15923 shlibpath_overrides_runpath=no
15924 hardcode_into_libs=yes
15927 irix5* | irix6* | nonstopux*)
15929 nonstopux*) version_type=nonstopux ;;
15931 if test "$lt_cv_prog_gnu_ld" = yes; then
15932 version_type=linux # correct to gnu/linux during the next big refactor
15939 soname_spec='${libname}${release}${shared_ext}$major'
15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15942 irix5* | nonstopux*)
15943 libsuff= shlibsuff=
15946 case $LD in # libtool.m4 will add one of these switches to LD
15947 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15948 libsuff= shlibsuff= libmagic=32-bit;;
15949 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15950 libsuff=32 shlibsuff=N32 libmagic=N32;;
15951 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15952 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15953 *) libsuff= shlibsuff= libmagic=never-match;;
15957 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15958 shlibpath_overrides_runpath=no
15959 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15960 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15961 hardcode_into_libs=yes
15964 # No shared lib support for Linux oldld, aout, or coff.
15965 linux*oldld* | linux*aout* | linux*coff*)
15969 # This must be glibc/ELF.
15970 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15971 version_type=linux # correct to gnu/linux during the next big refactor
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15975 soname_spec='${libname}${release}${shared_ext}$major'
15976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15977 shlibpath_var=LD_LIBRARY_PATH
15978 shlibpath_overrides_runpath=no
15980 # Some binutils ld are patched to set DT_RUNPATH
15981 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15982 $as_echo_n "(cached) " >&6
15984 lt_cv_shlibpath_overrides_runpath=no
15985 save_LDFLAGS=$LDFLAGS
15986 save_libdir=$libdir
15987 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15988 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h. */
16000 if ac_fn_cxx_try_link "$LINENO"; then :
16001 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16002 lt_cv_shlibpath_overrides_runpath=yes
16005 rm -f core conftest.err conftest.$ac_objext \
16006 conftest$ac_exeext conftest.$ac_ext
16007 LDFLAGS=$save_LDFLAGS
16008 libdir=$save_libdir
16012 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16014 # This implies no fast_install, which is unacceptable.
16015 # Some rework will be needed to allow for fast_install
16016 # before this can be enabled.
16017 hardcode_into_libs=yes
16019 # Append ld.so.conf contents to the search path
16020 if test -f /etc/ld.so.conf; then
16021 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' ' '`
16022 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16025 # We used to test for /lib/ld.so.1 and disable shared libraries on
16026 # powerpc, because MkLinux only supported shared libraries with the
16027 # GNU dynamic linker. Since this was broken with cross compilers,
16028 # most powerpc-linux boxes support dynamic linking these days and
16029 # people can always --disable-shared, the test was removed, and we
16030 # assume the GNU/Linux dynamic linker is in use.
16031 dynamic_linker='GNU/Linux ld.so'
16038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16039 soname_spec='${libname}${release}${shared_ext}$major'
16040 shlibpath_var=LD_LIBRARY_PATH
16041 shlibpath_overrides_runpath=no
16042 hardcode_into_libs=yes
16043 dynamic_linker='NetBSD ld.elf_so'
16050 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16053 dynamic_linker='NetBSD (a.out) ld.so'
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16056 soname_spec='${libname}${release}${shared_ext}$major'
16057 dynamic_linker='NetBSD ld.elf_so'
16059 shlibpath_var=LD_LIBRARY_PATH
16060 shlibpath_overrides_runpath=yes
16061 hardcode_into_libs=yes
16065 version_type=linux # correct to gnu/linux during the next big refactor
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16067 shlibpath_var=LD_LIBRARY_PATH
16068 shlibpath_overrides_runpath=yes
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076 soname_spec='${libname}${release}${shared_ext}$major'
16077 shlibpath_var=LD_LIBRARY_PATH
16078 shlibpath_overrides_runpath=no
16079 hardcode_into_libs=yes
16080 dynamic_linker='ldqnx.so'
16085 sys_lib_dlsearch_path_spec="/usr/lib"
16087 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16089 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16090 *) need_version=no ;;
16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16094 shlibpath_var=LD_LIBRARY_PATH
16095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16097 openbsd2.[89] | openbsd2.[89].*)
16098 shlibpath_overrides_runpath=no
16101 shlibpath_overrides_runpath=yes
16105 shlibpath_overrides_runpath=yes
16110 libname_spec='$name'
16113 library_names_spec='$libname${shared_ext} $libname.a'
16114 dynamic_linker='OS/2 ld.exe'
16115 shlibpath_var=LIBPATH
16118 osf3* | osf4* | osf5*)
16122 soname_spec='${libname}${release}${shared_ext}$major'
16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16124 shlibpath_var=LD_LIBRARY_PATH
16125 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16126 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16134 version_type=linux # correct to gnu/linux during the next big refactor
16137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16138 soname_spec='${libname}${release}${shared_ext}$major'
16139 shlibpath_var=LD_LIBRARY_PATH
16140 shlibpath_overrides_runpath=yes
16141 hardcode_into_libs=yes
16142 # ldd complains unless libraries are executable
16143 postinstall_cmds='chmod +x $lib'
16148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16149 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16150 shlibpath_var=LD_LIBRARY_PATH
16151 shlibpath_overrides_runpath=yes
16152 if test "$with_gnu_ld" = yes; then
16159 version_type=linux # correct to gnu/linux during the next big refactor
16160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161 soname_spec='${libname}${release}${shared_ext}$major'
16162 shlibpath_var=LD_LIBRARY_PATH
16163 case $host_vendor in
16165 shlibpath_overrides_runpath=no
16167 runpath_var=LD_RUN_PATH
16175 shlibpath_overrides_runpath=no
16176 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16182 if test -d /usr/nec ;then
16183 version_type=linux # correct to gnu/linux during the next big refactor
16184 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16185 soname_spec='$libname${shared_ext}.$major'
16186 shlibpath_var=LD_LIBRARY_PATH
16190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16191 version_type=freebsd-elf
16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16195 soname_spec='${libname}${release}${shared_ext}$major'
16196 shlibpath_var=LD_LIBRARY_PATH
16197 shlibpath_overrides_runpath=yes
16198 hardcode_into_libs=yes
16199 if test "$with_gnu_ld" = yes; then
16200 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16202 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16205 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16209 sys_lib_dlsearch_path_spec='/usr/lib'
16213 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16214 version_type=linux # correct to gnu/linux during the next big refactor
16217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16218 shlibpath_var=LD_LIBRARY_PATH
16219 shlibpath_overrides_runpath=no
16220 hardcode_into_libs=yes
16224 version_type=linux # correct to gnu/linux during the next big refactor
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16226 soname_spec='${libname}${release}${shared_ext}$major'
16227 shlibpath_var=LD_LIBRARY_PATH
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16235 $as_echo "$dynamic_linker" >&6; }
16236 test "$dynamic_linker" = no && can_build_shared=no
16238 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16239 if test "$GCC" = yes; then
16240 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16243 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16244 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16246 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16247 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16288 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16289 hardcode_action_CXX=
16290 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16291 test -n "$runpath_var_CXX" ||
16292 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16294 # We can hardcode non-existent directories.
16295 if test "$hardcode_direct_CXX" != no &&
16296 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16297 # have to relink, otherwise we might link with an installed library
16298 # when we should be linking with a yet-to-be-installed one
16299 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16300 test "$hardcode_minus_L_CXX" != no; then
16301 # Linking always hardcodes the temporary library directory.
16302 hardcode_action_CXX=relink
16304 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16305 hardcode_action_CXX=immediate
16308 # We cannot hardcode anything, or else we can only hardcode existing
16310 hardcode_action_CXX=unsupported
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16313 $as_echo "$hardcode_action_CXX" >&6; }
16315 if test "$hardcode_action_CXX" = relink ||
16316 test "$inherit_rpath_CXX" = yes; then
16317 # Fast installation is not supported
16318 enable_fast_install=no
16319 elif test "$shlibpath_overrides_runpath" = yes ||
16320 test "$enable_shared" = no; then
16321 # Fast installation is not necessary
16322 enable_fast_install=needless
16331 fi # test -n "$compiler"
16334 CFLAGS=$lt_save_CFLAGS
16338 with_gnu_ld=$lt_save_with_gnu_ld
16339 lt_cv_path_LDCXX=$lt_cv_path_LD
16340 lt_cv_path_LD=$lt_save_path_LD
16341 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16342 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16343 fi # test "$_lt_caught_CXX_error" != yes
16346 ac_cpp='$CPP $CPPFLAGS'
16347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16365 ac_config_commands="$ac_config_commands libtool"
16370 # Only expand once:
16378 ac_cpp='$CPP $CPPFLAGS'
16379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16386 $as_echo_n "checking for library containing dlopen... " >&6; }
16387 if ${ac_cv_search_dlopen+:} false; then :
16388 $as_echo_n "(cached) " >&6
16390 ac_func_search_save_LIBS=$LIBS
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16394 /* Override any GCC internal prototype to avoid an error.
16395 Use char because int might match the return type of a GCC
16396 builtin and then its argument prototype would still apply. */
16409 for ac_lib in '' dl; do
16410 if test -z "$ac_lib"; then
16411 ac_res="none required"
16414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16416 if ac_fn_c_try_link "$LINENO"; then :
16417 ac_cv_search_dlopen=$ac_res
16419 rm -f core conftest.err conftest.$ac_objext \
16421 if ${ac_cv_search_dlopen+:} false; then :
16425 if ${ac_cv_search_dlopen+:} false; then :
16428 ac_cv_search_dlopen=no
16430 rm conftest.$ac_ext
16431 LIBS=$ac_func_search_save_LIBS
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16434 $as_echo "$ac_cv_search_dlopen" >&6; }
16435 ac_res=$ac_cv_search_dlopen
16436 if test "$ac_res" != no; then :
16437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16439 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16441 if test "$ac_cv_search_dlopen" != "none required" ; then
16442 LIBADD_DLOPEN="-ldl"
16444 libltdl_cv_lib_dl_dlopen="yes"
16445 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448 /* end confdefs.h. */
16450 # include <dlfcn.h>
16461 if ac_fn_c_try_link "$LINENO"; then :
16463 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16465 libltdl_cv_func_dlopen="yes"
16466 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16469 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16470 if ${ac_cv_lib_svld_dlopen+:} false; then :
16471 $as_echo_n "(cached) " >&6
16473 ac_check_lib_save_LIBS=$LIBS
16474 LIBS="-lsvld $LIBS"
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16478 /* Override any GCC internal prototype to avoid an error.
16479 Use char because int might match the return type of a GCC
16480 builtin and then its argument prototype would still apply. */
16493 if ac_fn_c_try_link "$LINENO"; then :
16494 ac_cv_lib_svld_dlopen=yes
16496 ac_cv_lib_svld_dlopen=no
16498 rm -f core conftest.err conftest.$ac_objext \
16499 conftest$ac_exeext conftest.$ac_ext
16500 LIBS=$ac_check_lib_save_LIBS
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16503 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16504 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16506 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16508 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16509 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16513 rm -f core conftest.err conftest.$ac_objext \
16514 conftest$ac_exeext conftest.$ac_ext
16517 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16519 lt_save_LIBS="$LIBS"
16520 LIBS="$LIBS $LIBADD_DLOPEN"
16521 for ac_func in dlerror
16523 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16524 if test "x$ac_cv_func_dlerror" = xyes; then :
16525 cat >>confdefs.h <<_ACEOF
16526 #define HAVE_DLERROR 1
16532 LIBS="$lt_save_LIBS"
16537 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16538 if test "x$ac_cv_func_shl_load" = xyes; then :
16540 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16542 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16545 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16546 if ${ac_cv_lib_dld_shl_load+:} false; then :
16547 $as_echo_n "(cached) " >&6
16549 ac_check_lib_save_LIBS=$LIBS
16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552 /* end confdefs.h. */
16554 /* Override any GCC internal prototype to avoid an error.
16555 Use char because int might match the return type of a GCC
16556 builtin and then its argument prototype would still apply. */
16564 return shl_load ();
16569 if ac_fn_c_try_link "$LINENO"; then :
16570 ac_cv_lib_dld_shl_load=yes
16572 ac_cv_lib_dld_shl_load=no
16574 rm -f core conftest.err conftest.$ac_objext \
16575 conftest$ac_exeext conftest.$ac_ext
16576 LIBS=$ac_check_lib_save_LIBS
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16579 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16580 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16582 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16584 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16585 LIBADD_SHL_LOAD="-ldld"
16594 # We only want this for pre-Mac OS X 10.4.
16595 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16596 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16598 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16600 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16605 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16607 cygwin* | mingw* | os2* | pw32*)
16608 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16610 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16616 cat >>confdefs.h <<_ACEOF
16617 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16620 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16625 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16626 if ${ac_cv_lib_dld_dld_link+:} false; then :
16627 $as_echo_n "(cached) " >&6
16629 ac_check_lib_save_LIBS=$LIBS
16631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h. */
16634 /* Override any GCC internal prototype to avoid an error.
16635 Use char because int might match the return type of a GCC
16636 builtin and then its argument prototype would still apply. */
16644 return dld_link ();
16649 if ac_fn_c_try_link "$LINENO"; then :
16650 ac_cv_lib_dld_dld_link=yes
16652 ac_cv_lib_dld_dld_link=no
16654 rm -f core conftest.err conftest.$ac_objext \
16655 conftest$ac_exeext conftest.$ac_ext
16656 LIBS=$ac_check_lib_save_LIBS
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16659 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16660 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16662 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16664 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16671 if test -n "$LT_DLLOADERS"
16673 for lt_loader in $LT_DLLOADERS; do
16674 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16677 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16682 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16686 ac_cpp='$CPP $CPPFLAGS'
16687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16694 if test x$use_libtool != xno; then
16695 DEFAULT_OBJECT_TYPE=".lo"
16696 DEFAULT_ARCHIVE_TYPE=".la"
16697 DEFAULT_SHARED_OBJECT_TYPE=".la"
16698 LIBTOOL="\$(LIBTOOL)"
16699 LIBTOOL_INSTALL_TARGET="libtool-install"
16700 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16701 LIBTOOL_CLEAN_TARGET="libtool-clean"
16702 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16703 FD_PLUGIN_DIR="src/plugins/fd"
16706 DEFAULT_OBJECT_TYPE=".o"
16707 DEFAULT_ARCHIVE_TYPE=".a"
16708 DEFAULT_SHARED_OBJECT_TYPE=".so"
16709 LIBTOOL="# \$(LIBTOOL)"
16710 LIBTOOL_INSTALL_TARGET=""
16711 LIBTOOL_UNINSTALL_TARGET=""
16712 LIBTOOL_CLEAN_TARGET=""
16713 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16728 # Check whether --enable-includes was given.
16729 if test "${enable_includes+set}" = set; then :
16730 enableval=$enable_includes;
16731 if test x$enableval = xyes; then
16732 install_includes=yes
16740 if test x$use_libtool != xno -a x$install_includes = xyes; then
16741 INCLUDE_INSTALL_TARGET="install-includes"
16742 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16744 INCLUDE_INSTALL_TARGET=""
16745 INCLUDE_UNINSTALL_TARGET=""
16753 *cygwin* ) CYGWIN=yes;;
16757 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16763 HAVE_SUN_OS_FALSE='#'
16765 HAVE_SUN_OS_TRUE='#'
16768 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16775 HAVE_SUN_OS_FALSE='#'
16777 HAVE_SUN_OS_TRUE='#'
16782 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16788 HAVE_HURD_OS_FALSE='#'
16790 HAVE_HURD_OS_TRUE='#'
16791 HAVE_HURD_OS_FALSE=
16793 $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16800 HAVE_HURD_OS_FALSE='#'
16802 HAVE_HURD_OS_TRUE='#'
16803 HAVE_HURD_OS_FALSE=
16807 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16813 HAVE_OSF1_OS_FALSE='#'
16815 HAVE_OSF1_OS_TRUE='#'
16816 HAVE_OSF1_OS_FALSE=
16818 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16825 HAVE_OSF1_OS_FALSE='#'
16827 HAVE_OSF1_OS_TRUE='#'
16828 HAVE_OSF1_OS_FALSE=
16832 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16838 HAVE_AIX_OS_FALSE='#'
16840 HAVE_AIX_OS_TRUE='#'
16843 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16850 HAVE_AIX_OS_FALSE='#'
16852 HAVE_AIX_OS_TRUE='#'
16857 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16863 HAVE_HPUX_OS_FALSE='#'
16865 HAVE_HPUX_OS_TRUE='#'
16866 HAVE_HPUX_OS_FALSE=
16868 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16875 HAVE_HPUX_OS_FALSE='#'
16877 HAVE_HPUX_OS_TRUE='#'
16878 HAVE_HPUX_OS_FALSE=
16882 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16887 HAVE_LINUX_OS_TRUE=
16888 HAVE_LINUX_OS_FALSE='#'
16890 HAVE_LINUX_OS_TRUE='#'
16891 HAVE_LINUX_OS_FALSE=
16893 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16899 HAVE_LINUX_OS_TRUE=
16900 HAVE_LINUX_OS_FALSE='#'
16902 HAVE_LINUX_OS_TRUE='#'
16903 HAVE_LINUX_OS_FALSE=
16907 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16912 HAVE_FREEBSD_OS_TRUE=
16913 HAVE_FREEBSD_OS_FALSE='#'
16915 HAVE_FREEBSD_OS_TRUE='#'
16916 HAVE_FREEBSD_OS_FALSE=
16918 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16924 HAVE_FREEBSD_OS_TRUE=
16925 HAVE_FREEBSD_OS_FALSE='#'
16927 HAVE_FREEBSD_OS_TRUE='#'
16928 HAVE_FREEBSD_OS_FALSE=
16932 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16937 HAVE_NETBSD_OS_TRUE=
16938 HAVE_NETBSD_OS_FALSE='#'
16940 HAVE_NETBSD_OS_TRUE='#'
16941 HAVE_NETBSD_OS_FALSE=
16943 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16949 HAVE_NETBSD_OS_TRUE=
16950 HAVE_NETBSD_OS_FALSE='#'
16952 HAVE_NETBSD_OS_TRUE='#'
16953 HAVE_NETBSD_OS_FALSE=
16957 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16962 HAVE_OPENBSD_OS_TRUE=
16963 HAVE_OPENBSD_OS_FALSE='#'
16965 HAVE_OPENBSD_OS_TRUE='#'
16966 HAVE_OPENBSD_OS_FALSE=
16968 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16974 HAVE_OPENBSD_OS_TRUE=
16975 HAVE_OPENBSD_OS_FALSE='#'
16977 HAVE_OPENBSD_OS_TRUE='#'
16978 HAVE_OPENBSD_OS_FALSE=
16982 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16988 HAVE_BSDI_OS_FALSE='#'
16990 HAVE_BSDI_OS_TRUE='#'
16991 HAVE_BSDI_OS_FALSE=
16993 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
17000 HAVE_BSDI_OS_FALSE='#'
17002 HAVE_BSDI_OS_TRUE='#'
17003 HAVE_BSDI_OS_FALSE=
17007 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17013 HAVE_SGI_OS_FALSE='#'
17015 HAVE_SGI_OS_TRUE='#'
17018 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17025 HAVE_SGI_OS_FALSE='#'
17027 HAVE_SGI_OS_TRUE='#'
17032 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17038 HAVE_IRIX_OS_FALSE='#'
17040 HAVE_IRIX_OS_TRUE='#'
17041 HAVE_IRIX_OS_FALSE=
17043 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17050 HAVE_IRIX_OS_FALSE='#'
17052 HAVE_IRIX_OS_TRUE='#'
17053 HAVE_IRIX_OS_FALSE=
17057 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17062 HAVE_DARWIN_OS_TRUE=
17063 HAVE_DARWIN_OS_FALSE='#'
17065 HAVE_DARWIN_OS_TRUE='#'
17066 HAVE_DARWIN_OS_FALSE=
17068 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17074 HAVE_DARWIN_OS_TRUE=
17075 HAVE_DARWIN_OS_FALSE='#'
17077 HAVE_DARWIN_OS_TRUE='#'
17078 HAVE_DARWIN_OS_FALSE=
17082 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU/kFreeBSD
17087 HAVE_KFREEBSD_OS_TRUE=
17088 HAVE_KFREEBSD_OS_FALSE='#'
17090 HAVE_KFREEBSD_OS_TRUE='#'
17091 HAVE_KFREEBSD_OS_FALSE=
17093 $as_echo "#define HAVE_KFREEBSD_OS 1" >>confdefs.h
17099 HAVE_KFREEBSD_OS_TRUE=
17100 HAVE_KFREEBSD_OS_FALSE='#'
17102 HAVE_KFREEBSD_OS_TRUE='#'
17103 HAVE_KFREEBSD_OS_FALSE=
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17109 $as_echo_n "checking for Operating System Distribution... " >&6; }
17110 if test "x$DISTNAME" != "x"
17112 echo "distname set to $DISTNAME"
17113 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17116 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17119 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17122 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17125 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17128 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17131 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17134 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17137 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17140 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17143 elif test -f /etc/SuSE-release
17146 elif test -d /etc/SuSEconfig
17149 elif test -f /etc/mandrake-release
17152 elif test -f /etc/whitebox-release
17155 elif test -f /etc/redhat-release
17158 elif test -f /etc/gentoo-release
17161 elif test -f /etc/debian_version
17164 elif test -f /etc/slackware-version
17167 elif test x$host_vendor = xapple
17170 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17173 elif test -f /etc/engarde-version
17176 elif test -f /etc/arch-release
17179 elif test "$CYGWIN" = yes
17182 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17188 $as_echo "done" >&6; }
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17192 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17194 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17195 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17196 $as_echo_n "(cached) " >&6
17198 cat >conftest.make <<\_ACEOF
17201 @echo '@@@%%%=$(MAKE)=@@@%%%'
17203 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17204 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17205 *@@@%%%=?*=@@@%%%*)
17206 eval ac_cv_prog_make_${ac_make}_set=yes;;
17208 eval ac_cv_prog_make_${ac_make}_set=no;;
17210 rm -f conftest.make
17212 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17214 $as_echo "yes" >&6; }
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17218 $as_echo "no" >&6; }
17219 SET_MAKE="MAKE=${MAKE-make}"
17225 if test -n "$ac_aux_dir"; then
17226 case "$ac_aux_dir" in
17227 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17228 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17231 if test -z "$MKINSTALLDIRS"; then
17232 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17238 $as_echo_n "checking whether NLS is requested... " >&6; }
17239 # Check whether --enable-nls was given.
17240 if test "${enable_nls+set}" = set; then :
17241 enableval=$enable_nls; USE_NLS=$enableval
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17247 $as_echo "$USE_NLS" >&6; }
17254 # Prepare PATH_SEPARATOR.
17255 # The user is always right.
17256 if test "${PATH_SEPARATOR+set}" != set; then
17257 echo "#! /bin/sh" >conf$$.sh
17258 echo "exit 0" >>conf$$.sh
17260 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17268 # Find out how to test for executable files. Don't use a zero-byte file,
17269 # as systems may use methods other than mode bits to determine executability.
17270 cat >conf$$.file <<_ASEOF
17274 chmod +x conf$$.file
17275 if test -x conf$$.file >/dev/null 2>&1; then
17276 ac_executable_p="test -x"
17278 ac_executable_p="test -f"
17282 # Extract the first word of "msgfmt", so it can be a program name with args.
17283 set dummy msgfmt; ac_word=$2
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17285 $as_echo_n "checking for $ac_word... " >&6; }
17286 if ${ac_cv_path_MSGFMT+:} false; then :
17287 $as_echo_n "(cached) " >&6
17291 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17294 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17295 for ac_dir in $PATH; do
17297 test -z "$ac_dir" && ac_dir=.
17298 for ac_exec_ext in '' $ac_executable_extensions; do
17299 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17300 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17301 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17302 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17303 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17310 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17314 MSGFMT="$ac_cv_path_MSGFMT"
17315 if test "$MSGFMT" != ":"; then
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17317 $as_echo "$MSGFMT" >&6; }
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17320 $as_echo "no" >&6; }
17323 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17324 set dummy gmsgfmt; ac_word=$2
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17326 $as_echo_n "checking for $ac_word... " >&6; }
17327 if ${ac_cv_path_GMSGFMT+:} false; then :
17328 $as_echo_n "(cached) " >&6
17332 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17336 for as_dir in $PATH
17339 test -z "$as_dir" && as_dir=.
17340 for ac_exec_ext in '' $ac_executable_extensions; do
17341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17342 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17350 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17354 GMSGFMT=$ac_cv_path_GMSGFMT
17355 if test -n "$GMSGFMT"; then
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17357 $as_echo "$GMSGFMT" >&6; }
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17360 $as_echo "no" >&6; }
17366 # Prepare PATH_SEPARATOR.
17367 # The user is always right.
17368 if test "${PATH_SEPARATOR+set}" != set; then
17369 echo "#! /bin/sh" >conf$$.sh
17370 echo "exit 0" >>conf$$.sh
17372 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17380 # Find out how to test for executable files. Don't use a zero-byte file,
17381 # as systems may use methods other than mode bits to determine executability.
17382 cat >conf$$.file <<_ASEOF
17386 chmod +x conf$$.file
17387 if test -x conf$$.file >/dev/null 2>&1; then
17388 ac_executable_p="test -x"
17390 ac_executable_p="test -f"
17394 # Extract the first word of "xgettext", so it can be a program name with args.
17395 set dummy xgettext; ac_word=$2
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17397 $as_echo_n "checking for $ac_word... " >&6; }
17398 if ${ac_cv_path_XGETTEXT+:} false; then :
17399 $as_echo_n "(cached) " >&6
17401 case "$XGETTEXT" in
17403 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17406 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17407 for ac_dir in $PATH; do
17409 test -z "$ac_dir" && ac_dir=.
17410 for ac_exec_ext in '' $ac_executable_extensions; do
17411 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17412 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17413 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17414 (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
17415 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17422 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17426 XGETTEXT="$ac_cv_path_XGETTEXT"
17427 if test "$XGETTEXT" != ":"; then
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17429 $as_echo "$XGETTEXT" >&6; }
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17432 $as_echo "no" >&6; }
17438 # Prepare PATH_SEPARATOR.
17439 # The user is always right.
17440 if test "${PATH_SEPARATOR+set}" != set; then
17441 echo "#! /bin/sh" >conf$$.sh
17442 echo "exit 0" >>conf$$.sh
17444 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17452 # Find out how to test for executable files. Don't use a zero-byte file,
17453 # as systems may use methods other than mode bits to determine executability.
17454 cat >conf$$.file <<_ASEOF
17458 chmod +x conf$$.file
17459 if test -x conf$$.file >/dev/null 2>&1; then
17460 ac_executable_p="test -x"
17462 ac_executable_p="test -f"
17466 # Extract the first word of "msgmerge", so it can be a program name with args.
17467 set dummy msgmerge; ac_word=$2
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17469 $as_echo_n "checking for $ac_word... " >&6; }
17470 if ${ac_cv_path_MSGMERGE+:} false; then :
17471 $as_echo_n "(cached) " >&6
17473 case "$MSGMERGE" in
17475 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17478 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17479 for ac_dir in $PATH; do
17481 test -z "$ac_dir" && ac_dir=.
17482 for ac_exec_ext in '' $ac_executable_extensions; do
17483 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17484 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17485 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17486 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17493 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17497 MSGMERGE="$ac_cv_path_MSGMERGE"
17498 if test "$MSGMERGE" != ":"; then
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17500 $as_echo "$MSGMERGE" >&6; }
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17503 $as_echo "no" >&6; }
17507 if test "$GMSGFMT" != ":"; then
17508 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17509 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17512 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17514 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17519 if test "$XGETTEXT" != ":"; then
17520 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17521 (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
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17525 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17531 ac_config_commands="$ac_config_commands default-1"
17535 if test "X$prefix" = "XNONE"; then
17536 acl_final_prefix="$ac_default_prefix"
17538 acl_final_prefix="$prefix"
17540 if test "X$exec_prefix" = "XNONE"; then
17541 acl_final_exec_prefix='${prefix}'
17543 acl_final_exec_prefix="$exec_prefix"
17545 acl_save_prefix="$prefix"
17546 prefix="$acl_final_prefix"
17547 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17548 prefix="$acl_save_prefix"
17551 # Check whether --with-gnu-ld was given.
17552 if test "${with_gnu_ld+set}" = set; then :
17553 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17558 # Prepare PATH_SEPARATOR.
17559 # The user is always right.
17560 if test "${PATH_SEPARATOR+set}" != set; then
17561 echo "#! /bin/sh" >conf$$.sh
17562 echo "exit 0" >>conf$$.sh
17564 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17572 if test "$GCC" = yes; then
17573 # Check if gcc -print-prog-name=ld gives a path.
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17575 $as_echo_n "checking for ld used by GCC... " >&6; }
17578 # gcc leaves a trailing carriage return which upsets mingw
17579 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17581 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17584 # Accept absolute paths.
17585 [\\/]* | [A-Za-z]:[\\/]*)
17586 re_direlt='/[^/][^/]*/\.\./'
17587 # Canonicalize the path of ld
17588 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17589 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17590 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17592 test -z "$LD" && LD="$ac_prog"
17595 # If it fails, then pretend we aren't using GCC.
17599 # If it is relative, then search for the first ld in PATH.
17600 with_gnu_ld=unknown
17603 elif test "$with_gnu_ld" = yes; then
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17605 $as_echo_n "checking for GNU ld... " >&6; }
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17608 $as_echo_n "checking for non-GNU ld... " >&6; }
17610 if ${acl_cv_path_LD+:} false; then :
17611 $as_echo_n "(cached) " >&6
17613 if test -z "$LD"; then
17614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17615 for ac_dir in $PATH; do
17616 test -z "$ac_dir" && ac_dir=.
17617 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17618 acl_cv_path_LD="$ac_dir/$ac_prog"
17619 # Check to see if the program is GNU ld. I'd rather use --version,
17620 # but apparently some GNU ld's only accept -v.
17621 # Break only if it was the GNU/non-GNU ld that we prefer.
17622 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17623 *GNU* | *'with BFD'*)
17624 test "$with_gnu_ld" != no && break ;;
17626 test "$with_gnu_ld" != yes && break ;;
17632 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17636 LD="$acl_cv_path_LD"
17637 if test -n "$LD"; then
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17639 $as_echo "$LD" >&6; }
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17642 $as_echo "no" >&6; }
17644 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17646 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17647 if ${acl_cv_prog_gnu_ld+:} false; then :
17648 $as_echo_n "(cached) " >&6
17650 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17651 case `$LD -v 2>&1 </dev/null` in
17652 *GNU* | *'with BFD'*)
17653 acl_cv_prog_gnu_ld=yes ;;
17655 acl_cv_prog_gnu_ld=no ;;
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17659 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17660 with_gnu_ld=$acl_cv_prog_gnu_ld
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17666 $as_echo_n "checking for shared library run path origin... " >&6; }
17667 if ${acl_cv_rpath+:} false; then :
17668 $as_echo_n "(cached) " >&6
17671 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17672 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17674 rm -f ./conftest.sh
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17679 $as_echo "$acl_cv_rpath" >&6; }
17681 libext="$acl_cv_libext"
17682 shlibext="$acl_cv_shlibext"
17683 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17684 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17685 hardcode_direct="$acl_cv_hardcode_direct"
17686 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17687 # Check whether --enable-rpath was given.
17688 if test "${enable_rpath+set}" = set; then :
17689 enableval=$enable_rpath; :
17703 acl_save_prefix="$prefix"
17704 prefix="$acl_final_prefix"
17705 acl_save_exec_prefix="$exec_prefix"
17706 exec_prefix="$acl_final_exec_prefix"
17708 eval additional_includedir=\"$includedir\"
17709 eval additional_libdir=\"$libdir\"
17711 exec_prefix="$acl_save_exec_prefix"
17712 prefix="$acl_save_prefix"
17715 # Check whether --with-libiconv-prefix was given.
17716 if test "${with_libiconv_prefix+set}" = set; then :
17717 withval=$with_libiconv_prefix;
17718 if test "X$withval" = "Xno"; then
17721 if test "X$withval" = "X"; then
17723 acl_save_prefix="$prefix"
17724 prefix="$acl_final_prefix"
17725 acl_save_exec_prefix="$exec_prefix"
17726 exec_prefix="$acl_final_exec_prefix"
17728 eval additional_includedir=\"$includedir\"
17729 eval additional_libdir=\"$libdir\"
17731 exec_prefix="$acl_save_exec_prefix"
17732 prefix="$acl_save_prefix"
17735 additional_includedir="$withval/include"
17736 additional_libdir="$withval/lib"
17747 names_already_handled=
17748 names_next_round='iconv '
17749 while test -n "$names_next_round"; do
17750 names_this_round="$names_next_round"
17752 for name in $names_this_round; do
17754 for n in $names_already_handled; do
17755 if test "$n" = "$name"; then
17756 already_handled=yes
17760 if test -z "$already_handled"; then
17761 names_already_handled="$names_already_handled $name"
17762 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17763 eval value=\"\$HAVE_LIB$uppername\"
17764 if test -n "$value"; then
17765 if test "$value" = yes; then
17766 eval value=\"\$LIB$uppername\"
17767 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17768 eval value=\"\$LTLIB$uppername\"
17769 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17778 if test $use_additional = yes; then
17779 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17780 found_dir="$additional_libdir"
17781 found_so="$additional_libdir/lib$name.$shlibext"
17782 if test -f "$additional_libdir/lib$name.la"; then
17783 found_la="$additional_libdir/lib$name.la"
17786 if test -f "$additional_libdir/lib$name.$libext"; then
17787 found_dir="$additional_libdir"
17788 found_a="$additional_libdir/lib$name.$libext"
17789 if test -f "$additional_libdir/lib$name.la"; then
17790 found_la="$additional_libdir/lib$name.la"
17795 if test "X$found_dir" = "X"; then
17796 for x in $LDFLAGS $LTLIBICONV; do
17798 acl_save_prefix="$prefix"
17799 prefix="$acl_final_prefix"
17800 acl_save_exec_prefix="$exec_prefix"
17801 exec_prefix="$acl_final_exec_prefix"
17803 exec_prefix="$acl_save_exec_prefix"
17804 prefix="$acl_save_prefix"
17808 dir=`echo "X$x" | sed -e 's/^X-L//'`
17809 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17811 found_so="$dir/lib$name.$shlibext"
17812 if test -f "$dir/lib$name.la"; then
17813 found_la="$dir/lib$name.la"
17816 if test -f "$dir/lib$name.$libext"; then
17818 found_a="$dir/lib$name.$libext"
17819 if test -f "$dir/lib$name.la"; then
17820 found_la="$dir/lib$name.la"
17826 if test "X$found_dir" != "X"; then
17831 if test "X$found_dir" != "X"; then
17832 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17833 if test "X$found_so" != "X"; then
17834 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17835 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17838 for x in $ltrpathdirs; do
17839 if test "X$x" = "X$found_dir"; then
17844 if test -z "$haveit"; then
17845 ltrpathdirs="$ltrpathdirs $found_dir"
17847 if test "$hardcode_direct" = yes; then
17848 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17850 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17851 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17853 for x in $rpathdirs; do
17854 if test "X$x" = "X$found_dir"; then
17859 if test -z "$haveit"; then
17860 rpathdirs="$rpathdirs $found_dir"
17864 for x in $LDFLAGS $LIBICONV; do
17866 acl_save_prefix="$prefix"
17867 prefix="$acl_final_prefix"
17868 acl_save_exec_prefix="$exec_prefix"
17869 exec_prefix="$acl_final_exec_prefix"
17871 exec_prefix="$acl_save_exec_prefix"
17872 prefix="$acl_save_prefix"
17874 if test "X$x" = "X-L$found_dir"; then
17879 if test -z "$haveit"; then
17880 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17882 if test "$hardcode_minus_L" != no; then
17883 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17885 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17891 if test "X$found_a" != "X"; then
17892 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17894 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17897 additional_includedir=
17898 case "$found_dir" in
17900 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17901 additional_includedir="$basedir/include"
17904 if test "X$additional_includedir" != "X"; then
17905 if test "X$additional_includedir" != "X/usr/include"; then
17907 if test "X$additional_includedir" = "X/usr/local/include"; then
17908 if test -n "$GCC"; then
17910 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17914 if test -z "$haveit"; then
17915 for x in $CPPFLAGS $INCICONV; do
17917 acl_save_prefix="$prefix"
17918 prefix="$acl_final_prefix"
17919 acl_save_exec_prefix="$exec_prefix"
17920 exec_prefix="$acl_final_exec_prefix"
17922 exec_prefix="$acl_save_exec_prefix"
17923 prefix="$acl_save_prefix"
17925 if test "X$x" = "X-I$additional_includedir"; then
17930 if test -z "$haveit"; then
17931 if test -d "$additional_includedir"; then
17932 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17938 if test -n "$found_la"; then
17939 save_libdir="$libdir"
17940 case "$found_la" in
17941 */* | *\\*) . "$found_la" ;;
17942 *) . "./$found_la" ;;
17944 libdir="$save_libdir"
17945 for dep in $dependency_libs; do
17948 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17949 if test "X$additional_libdir" != "X/usr/lib"; then
17951 if test "X$additional_libdir" = "X/usr/local/lib"; then
17952 if test -n "$GCC"; then
17954 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17958 if test -z "$haveit"; then
17960 for x in $LDFLAGS $LIBICONV; do
17962 acl_save_prefix="$prefix"
17963 prefix="$acl_final_prefix"
17964 acl_save_exec_prefix="$exec_prefix"
17965 exec_prefix="$acl_final_exec_prefix"
17967 exec_prefix="$acl_save_exec_prefix"
17968 prefix="$acl_save_prefix"
17970 if test "X$x" = "X-L$additional_libdir"; then
17975 if test -z "$haveit"; then
17976 if test -d "$additional_libdir"; then
17977 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17981 for x in $LDFLAGS $LTLIBICONV; do
17983 acl_save_prefix="$prefix"
17984 prefix="$acl_final_prefix"
17985 acl_save_exec_prefix="$exec_prefix"
17986 exec_prefix="$acl_final_exec_prefix"
17988 exec_prefix="$acl_save_exec_prefix"
17989 prefix="$acl_save_prefix"
17991 if test "X$x" = "X-L$additional_libdir"; then
17996 if test -z "$haveit"; then
17997 if test -d "$additional_libdir"; then
17998 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18005 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18006 if test "$enable_rpath" != no; then
18008 for x in $rpathdirs; do
18009 if test "X$x" = "X$dir"; then
18014 if test -z "$haveit"; then
18015 rpathdirs="$rpathdirs $dir"
18018 for x in $ltrpathdirs; do
18019 if test "X$x" = "X$dir"; then
18024 if test -z "$haveit"; then
18025 ltrpathdirs="$ltrpathdirs $dir"
18030 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18033 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18036 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18037 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18043 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18044 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18050 if test "X$rpathdirs" != "X"; then
18051 if test -n "$hardcode_libdir_separator"; then
18053 for found_dir in $rpathdirs; do
18054 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18056 acl_save_libdir="$libdir"
18058 eval flag=\"$hardcode_libdir_flag_spec\"
18059 libdir="$acl_save_libdir"
18060 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18062 for found_dir in $rpathdirs; do
18063 acl_save_libdir="$libdir"
18064 libdir="$found_dir"
18065 eval flag=\"$hardcode_libdir_flag_spec\"
18066 libdir="$acl_save_libdir"
18067 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18071 if test "X$ltrpathdirs" != "X"; then
18072 for found_dir in $ltrpathdirs; do
18073 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18095 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18096 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18097 $as_echo_n "(cached) " >&6
18099 gt_save_CPPFLAGS="$CPPFLAGS"
18100 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18101 gt_save_LIBS="$LIBS"
18102 LIBS="$LIBS -framework CoreFoundation"
18103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18104 /* end confdefs.h. */
18105 #include <CFPreferences.h>
18109 CFPreferencesCopyAppValue(NULL, NULL)
18114 if ac_fn_c_try_link "$LINENO"; then :
18115 gt_cv_func_CFPreferencesCopyAppValue=yes
18117 gt_cv_func_CFPreferencesCopyAppValue=no
18119 rm -f core conftest.err conftest.$ac_objext \
18120 conftest$ac_exeext conftest.$ac_ext
18121 CPPFLAGS="$gt_save_CPPFLAGS"
18122 LIBS="$gt_save_LIBS"
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18125 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18126 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18128 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18132 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18133 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18134 $as_echo_n "(cached) " >&6
18136 gt_save_CPPFLAGS="$CPPFLAGS"
18137 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18138 gt_save_LIBS="$LIBS"
18139 LIBS="$LIBS -framework CoreFoundation"
18140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141 /* end confdefs.h. */
18142 #include <CFLocale.h>
18146 CFLocaleCopyCurrent();
18151 if ac_fn_c_try_link "$LINENO"; then :
18152 gt_cv_func_CFLocaleCopyCurrent=yes
18154 gt_cv_func_CFLocaleCopyCurrent=no
18156 rm -f core conftest.err conftest.$ac_objext \
18157 conftest$ac_exeext conftest.$ac_ext
18158 CPPFLAGS="$gt_save_CPPFLAGS"
18159 LIBS="$gt_save_LIBS"
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18162 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18163 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18165 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18169 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18170 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18177 $as_echo_n "checking whether NLS is requested... " >&6; }
18178 # Check whether --enable-nls was given.
18179 if test "${enable_nls+set}" = set; then :
18180 enableval=$enable_nls; USE_NLS=$enableval
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18186 $as_echo "$USE_NLS" >&6; }
18195 if test "$USE_NLS" = "yes"; then
18196 gt_use_preinstalled_gnugettext=no
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18204 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18205 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18206 $as_echo_n "(cached) " >&6
18208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18209 /* end confdefs.h. */
18210 #include <libintl.h>
18211 extern int _nl_msg_cat_cntr;
18212 extern int *_nl_domain_bindings;
18216 bindtextdomain ("", "");
18217 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18222 if ac_fn_c_try_link "$LINENO"; then :
18223 gt_cv_func_gnugettext1_libc=yes
18225 gt_cv_func_gnugettext1_libc=no
18227 rm -f core conftest.err conftest.$ac_objext \
18228 conftest$ac_exeext conftest.$ac_ext
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18231 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18233 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18239 am_save_CPPFLAGS="$CPPFLAGS"
18241 for element in $INCICONV; do
18243 for x in $CPPFLAGS; do
18245 acl_save_prefix="$prefix"
18246 prefix="$acl_final_prefix"
18247 acl_save_exec_prefix="$exec_prefix"
18248 exec_prefix="$acl_final_exec_prefix"
18250 exec_prefix="$acl_save_exec_prefix"
18251 prefix="$acl_save_prefix"
18253 if test "X$x" = "X$element"; then
18258 if test -z "$haveit"; then
18259 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18265 $as_echo_n "checking for iconv... " >&6; }
18266 if ${am_cv_func_iconv+:} false; then :
18267 $as_echo_n "(cached) " >&6
18270 am_cv_func_iconv="no, consider installing GNU libiconv"
18272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18273 /* end confdefs.h. */
18274 #include <stdlib.h>
18279 iconv_t cd = iconv_open("","");
18280 iconv(cd,NULL,NULL,NULL,NULL);
18286 if ac_fn_c_try_link "$LINENO"; then :
18287 am_cv_func_iconv=yes
18289 rm -f core conftest.err conftest.$ac_objext \
18290 conftest$ac_exeext conftest.$ac_ext
18291 if test "$am_cv_func_iconv" != yes; then
18292 am_save_LIBS="$LIBS"
18293 LIBS="$LIBS $LIBICONV"
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18296 #include <stdlib.h>
18301 iconv_t cd = iconv_open("","");
18302 iconv(cd,NULL,NULL,NULL,NULL);
18308 if ac_fn_c_try_link "$LINENO"; then :
18309 am_cv_lib_iconv=yes
18310 am_cv_func_iconv=yes
18312 rm -f core conftest.err conftest.$ac_objext \
18313 conftest$ac_exeext conftest.$ac_ext
18314 LIBS="$am_save_LIBS"
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18319 $as_echo "$am_cv_func_iconv" >&6; }
18320 if test "$am_cv_func_iconv" = yes; then
18322 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18325 if test "$am_cv_lib_iconv" = yes; then
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18327 $as_echo_n "checking how to link with libiconv... " >&6; }
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18329 $as_echo "$LIBICONV" >&6; }
18331 CPPFLAGS="$am_save_CPPFLAGS"
18343 acl_save_prefix="$prefix"
18344 prefix="$acl_final_prefix"
18345 acl_save_exec_prefix="$exec_prefix"
18346 exec_prefix="$acl_final_exec_prefix"
18348 eval additional_includedir=\"$includedir\"
18349 eval additional_libdir=\"$libdir\"
18351 exec_prefix="$acl_save_exec_prefix"
18352 prefix="$acl_save_prefix"
18355 # Check whether --with-libintl-prefix was given.
18356 if test "${with_libintl_prefix+set}" = set; then :
18357 withval=$with_libintl_prefix;
18358 if test "X$withval" = "Xno"; then
18361 if test "X$withval" = "X"; then
18363 acl_save_prefix="$prefix"
18364 prefix="$acl_final_prefix"
18365 acl_save_exec_prefix="$exec_prefix"
18366 exec_prefix="$acl_final_exec_prefix"
18368 eval additional_includedir=\"$includedir\"
18369 eval additional_libdir=\"$libdir\"
18371 exec_prefix="$acl_save_exec_prefix"
18372 prefix="$acl_save_prefix"
18375 additional_includedir="$withval/include"
18376 additional_libdir="$withval/lib"
18387 names_already_handled=
18388 names_next_round='intl '
18389 while test -n "$names_next_round"; do
18390 names_this_round="$names_next_round"
18392 for name in $names_this_round; do
18394 for n in $names_already_handled; do
18395 if test "$n" = "$name"; then
18396 already_handled=yes
18400 if test -z "$already_handled"; then
18401 names_already_handled="$names_already_handled $name"
18402 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18403 eval value=\"\$HAVE_LIB$uppername\"
18404 if test -n "$value"; then
18405 if test "$value" = yes; then
18406 eval value=\"\$LIB$uppername\"
18407 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18408 eval value=\"\$LTLIB$uppername\"
18409 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18418 if test $use_additional = yes; then
18419 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18420 found_dir="$additional_libdir"
18421 found_so="$additional_libdir/lib$name.$shlibext"
18422 if test -f "$additional_libdir/lib$name.la"; then
18423 found_la="$additional_libdir/lib$name.la"
18426 if test -f "$additional_libdir/lib$name.$libext"; then
18427 found_dir="$additional_libdir"
18428 found_a="$additional_libdir/lib$name.$libext"
18429 if test -f "$additional_libdir/lib$name.la"; then
18430 found_la="$additional_libdir/lib$name.la"
18435 if test "X$found_dir" = "X"; then
18436 for x in $LDFLAGS $LTLIBINTL; do
18438 acl_save_prefix="$prefix"
18439 prefix="$acl_final_prefix"
18440 acl_save_exec_prefix="$exec_prefix"
18441 exec_prefix="$acl_final_exec_prefix"
18443 exec_prefix="$acl_save_exec_prefix"
18444 prefix="$acl_save_prefix"
18448 dir=`echo "X$x" | sed -e 's/^X-L//'`
18449 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18451 found_so="$dir/lib$name.$shlibext"
18452 if test -f "$dir/lib$name.la"; then
18453 found_la="$dir/lib$name.la"
18456 if test -f "$dir/lib$name.$libext"; then
18458 found_a="$dir/lib$name.$libext"
18459 if test -f "$dir/lib$name.la"; then
18460 found_la="$dir/lib$name.la"
18466 if test "X$found_dir" != "X"; then
18471 if test "X$found_dir" != "X"; then
18472 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18473 if test "X$found_so" != "X"; then
18474 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18475 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18478 for x in $ltrpathdirs; do
18479 if test "X$x" = "X$found_dir"; then
18484 if test -z "$haveit"; then
18485 ltrpathdirs="$ltrpathdirs $found_dir"
18487 if test "$hardcode_direct" = yes; then
18488 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18490 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18491 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18493 for x in $rpathdirs; do
18494 if test "X$x" = "X$found_dir"; then
18499 if test -z "$haveit"; then
18500 rpathdirs="$rpathdirs $found_dir"
18504 for x in $LDFLAGS $LIBINTL; do
18506 acl_save_prefix="$prefix"
18507 prefix="$acl_final_prefix"
18508 acl_save_exec_prefix="$exec_prefix"
18509 exec_prefix="$acl_final_exec_prefix"
18511 exec_prefix="$acl_save_exec_prefix"
18512 prefix="$acl_save_prefix"
18514 if test "X$x" = "X-L$found_dir"; then
18519 if test -z "$haveit"; then
18520 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18522 if test "$hardcode_minus_L" != no; then
18523 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18525 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18531 if test "X$found_a" != "X"; then
18532 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18534 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18537 additional_includedir=
18538 case "$found_dir" in
18540 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18541 additional_includedir="$basedir/include"
18544 if test "X$additional_includedir" != "X"; then
18545 if test "X$additional_includedir" != "X/usr/include"; then
18547 if test "X$additional_includedir" = "X/usr/local/include"; then
18548 if test -n "$GCC"; then
18550 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18554 if test -z "$haveit"; then
18555 for x in $CPPFLAGS $INCINTL; do
18557 acl_save_prefix="$prefix"
18558 prefix="$acl_final_prefix"
18559 acl_save_exec_prefix="$exec_prefix"
18560 exec_prefix="$acl_final_exec_prefix"
18562 exec_prefix="$acl_save_exec_prefix"
18563 prefix="$acl_save_prefix"
18565 if test "X$x" = "X-I$additional_includedir"; then
18570 if test -z "$haveit"; then
18571 if test -d "$additional_includedir"; then
18572 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18578 if test -n "$found_la"; then
18579 save_libdir="$libdir"
18580 case "$found_la" in
18581 */* | *\\*) . "$found_la" ;;
18582 *) . "./$found_la" ;;
18584 libdir="$save_libdir"
18585 for dep in $dependency_libs; do
18588 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18589 if test "X$additional_libdir" != "X/usr/lib"; then
18591 if test "X$additional_libdir" = "X/usr/local/lib"; then
18592 if test -n "$GCC"; then
18594 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18598 if test -z "$haveit"; then
18600 for x in $LDFLAGS $LIBINTL; do
18602 acl_save_prefix="$prefix"
18603 prefix="$acl_final_prefix"
18604 acl_save_exec_prefix="$exec_prefix"
18605 exec_prefix="$acl_final_exec_prefix"
18607 exec_prefix="$acl_save_exec_prefix"
18608 prefix="$acl_save_prefix"
18610 if test "X$x" = "X-L$additional_libdir"; then
18615 if test -z "$haveit"; then
18616 if test -d "$additional_libdir"; then
18617 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18621 for x in $LDFLAGS $LTLIBINTL; do
18623 acl_save_prefix="$prefix"
18624 prefix="$acl_final_prefix"
18625 acl_save_exec_prefix="$exec_prefix"
18626 exec_prefix="$acl_final_exec_prefix"
18628 exec_prefix="$acl_save_exec_prefix"
18629 prefix="$acl_save_prefix"
18631 if test "X$x" = "X-L$additional_libdir"; then
18636 if test -z "$haveit"; then
18637 if test -d "$additional_libdir"; then
18638 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18645 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18646 if test "$enable_rpath" != no; then
18648 for x in $rpathdirs; do
18649 if test "X$x" = "X$dir"; then
18654 if test -z "$haveit"; then
18655 rpathdirs="$rpathdirs $dir"
18658 for x in $ltrpathdirs; do
18659 if test "X$x" = "X$dir"; then
18664 if test -z "$haveit"; then
18665 ltrpathdirs="$ltrpathdirs $dir"
18670 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18673 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18676 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18677 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18683 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18684 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18690 if test "X$rpathdirs" != "X"; then
18691 if test -n "$hardcode_libdir_separator"; then
18693 for found_dir in $rpathdirs; do
18694 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18696 acl_save_libdir="$libdir"
18698 eval flag=\"$hardcode_libdir_flag_spec\"
18699 libdir="$acl_save_libdir"
18700 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18702 for found_dir in $rpathdirs; do
18703 acl_save_libdir="$libdir"
18704 libdir="$found_dir"
18705 eval flag=\"$hardcode_libdir_flag_spec\"
18706 libdir="$acl_save_libdir"
18707 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18711 if test "X$ltrpathdirs" != "X"; then
18712 for found_dir in $ltrpathdirs; do
18713 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18718 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18719 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18720 $as_echo_n "(cached) " >&6
18722 gt_save_CPPFLAGS="$CPPFLAGS"
18723 CPPFLAGS="$CPPFLAGS $INCINTL"
18724 gt_save_LIBS="$LIBS"
18725 LIBS="$LIBS $LIBINTL"
18726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18727 /* end confdefs.h. */
18728 #include <libintl.h>
18729 extern int _nl_msg_cat_cntr;
18734 const char *_nl_expand_alias (const char *);
18738 bindtextdomain ("", "");
18739 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18744 if ac_fn_c_try_link "$LINENO"; then :
18745 gt_cv_func_gnugettext1_libintl=yes
18747 gt_cv_func_gnugettext1_libintl=no
18749 rm -f core conftest.err conftest.$ac_objext \
18750 conftest$ac_exeext conftest.$ac_ext
18751 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18752 LIBS="$LIBS $LIBICONV"
18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18754 /* end confdefs.h. */
18755 #include <libintl.h>
18756 extern int _nl_msg_cat_cntr;
18761 const char *_nl_expand_alias (const char *);
18765 bindtextdomain ("", "");
18766 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18771 if ac_fn_c_try_link "$LINENO"; then :
18772 LIBINTL="$LIBINTL $LIBICONV"
18773 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18774 gt_cv_func_gnugettext1_libintl=yes
18777 rm -f core conftest.err conftest.$ac_objext \
18778 conftest$ac_exeext conftest.$ac_ext
18780 CPPFLAGS="$gt_save_CPPFLAGS"
18781 LIBS="$gt_save_LIBS"
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18784 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18787 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18788 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18789 && test "$PACKAGE" != gettext-runtime \
18790 && test "$PACKAGE" != gettext-tools; }; then
18791 gt_use_preinstalled_gnugettext=yes
18800 if test -n "$INTL_MACOSX_LIBS"; then
18801 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18802 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18803 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18804 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18808 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18809 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18811 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18819 $as_echo_n "checking whether to use NLS... " >&6; }
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18821 $as_echo "$USE_NLS" >&6; }
18822 if test "$USE_NLS" = "yes"; then
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18824 $as_echo_n "checking where the gettext function comes from... " >&6; }
18825 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18826 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18827 gt_source="external libintl"
18832 gt_source="included intl directory"
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18835 $as_echo "$gt_source" >&6; }
18838 if test "$USE_NLS" = "yes"; then
18840 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18841 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18843 $as_echo_n "checking how to link with libintl... " >&6; }
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18845 $as_echo "$LIBINTL" >&6; }
18847 for element in $INCINTL; do
18849 for x in $CPPFLAGS; do
18851 acl_save_prefix="$prefix"
18852 prefix="$acl_final_prefix"
18853 acl_save_exec_prefix="$exec_prefix"
18854 exec_prefix="$acl_final_exec_prefix"
18856 exec_prefix="$acl_save_exec_prefix"
18857 prefix="$acl_save_prefix"
18859 if test "X$x" = "X$element"; then
18864 if test -z "$haveit"; then
18865 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18872 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18875 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18884 INTLLIBS="$LIBINTL"
18892 os_name=`uname -s 2>/dev/null`
18893 if test x${prefix} = xNONE ; then
18894 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18895 sysconfdir=/etc/bacula
18898 if test `eval echo ${libdir}` = NONE/lib ; then
18901 os_processor=`uname -p 2>/dev/null`
18902 case ${os_processor} in
18917 if test `eval echo ${includedir}` = NONE/include ; then
18918 includedir=/usr/include
18921 if test `eval echo ${datarootdir}` = NONE/share ; then
18922 datarootdir=/usr/share
18927 if test x${exec_prefix} = xNONE ; then
18928 exec_prefix=${prefix}
18931 sysconfdir=`eval echo ${sysconfdir}`
18932 datarootdir=`eval echo ${datarootdir}`
18933 docdir=`eval echo ${docdir}`
18934 htmldir=`eval echo ${htmldir}`
18935 libdir=`eval echo ${libdir}`
18936 includedir=`eval echo ${includedir}`
18937 localedir=`eval echo ${datarootdir}/locale`
18938 cat >>confdefs.h <<_ACEOF
18939 #define SYSCONFDIR "$sysconfdir"
18942 cat >>confdefs.h <<_ACEOF
18943 #define LOCALEDIR "$localedir"
18947 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18948 sbindir=${exec_prefix}/sbin
18950 sbindir=`eval echo ${sbindir}`
18952 if test x$mandir = x'${prefix}/man' ; then
18953 mandir=/usr/share/man
18956 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18957 htmldir=`eval echo ${docdir}html`
18960 if test x$docdir = x'/usr/share/doc/' ; then
18961 docdir=`eval echo ${docdir}bacula`
18965 for ac_prog in msgfmt
18967 # Extract the first word of "$ac_prog", so it can be a program name with args.
18968 set dummy $ac_prog; ac_word=$2
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18970 $as_echo_n "checking for $ac_word... " >&6; }
18971 if ${ac_cv_path_MSGFMT+:} false; then :
18972 $as_echo_n "(cached) " >&6
18976 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18980 for as_dir in $PATH
18983 test -z "$as_dir" && as_dir=.
18984 for ac_exec_ext in '' $ac_executable_extensions; do
18985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18986 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18997 MSGFMT=$ac_cv_path_MSGFMT
18998 if test -n "$MSGFMT"; then
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19000 $as_echo "$MSGFMT" >&6; }
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19003 $as_echo "no" >&6; }
19007 test -n "$MSGFMT" && break
19009 test -n "$MSGFMT" || MSGFMT="no"
19011 if test "$MSGFMT" = "no"
19013 echo 'msgfmt program not found, disabling NLS !'
19015 USE_INCLUDED_LIBINTL=no
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19019 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19020 if ${ac_cv_gnu_library_2+:} false; then :
19021 $as_echo_n "(cached) " >&6
19023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024 /* end confdefs.h. */
19026 #include <features.h>
19027 #ifdef __GNU_LIBRARY__
19028 #if (__GLIBC__ >= 2)
19034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19035 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19036 ac_cv_gnu_library_2=yes
19038 ac_cv_gnu_library_2=no
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19046 $as_echo "$ac_cv_gnu_library_2" >&6; }
19048 GLIBC2="$ac_cv_gnu_library_2"
19051 if test -n "$ac_tool_prefix"; then
19052 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19053 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19055 $as_echo_n "checking for $ac_word... " >&6; }
19056 if ${ac_cv_prog_RANLIB+:} false; then :
19057 $as_echo_n "(cached) " >&6
19059 if test -n "$RANLIB"; then
19060 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19063 for as_dir in $PATH
19066 test -z "$as_dir" && as_dir=.
19067 for ac_exec_ext in '' $ac_executable_extensions; do
19068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19069 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19079 RANLIB=$ac_cv_prog_RANLIB
19080 if test -n "$RANLIB"; then
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19082 $as_echo "$RANLIB" >&6; }
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19085 $as_echo "no" >&6; }
19090 if test -z "$ac_cv_prog_RANLIB"; then
19091 ac_ct_RANLIB=$RANLIB
19092 # Extract the first word of "ranlib", so it can be a program name with args.
19093 set dummy ranlib; ac_word=$2
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19095 $as_echo_n "checking for $ac_word... " >&6; }
19096 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19097 $as_echo_n "(cached) " >&6
19099 if test -n "$ac_ct_RANLIB"; then
19100 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19103 for as_dir in $PATH
19106 test -z "$as_dir" && as_dir=.
19107 for ac_exec_ext in '' $ac_executable_extensions; do
19108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19109 ac_cv_prog_ac_ct_RANLIB="ranlib"
19110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19119 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19120 if test -n "$ac_ct_RANLIB"; then
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19122 $as_echo "$ac_ct_RANLIB" >&6; }
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19125 $as_echo "no" >&6; }
19128 if test "x$ac_ct_RANLIB" = x; then
19131 case $cross_compiling:$ac_tool_warned in
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19135 ac_tool_warned=yes ;;
19137 RANLIB=$ac_ct_RANLIB
19140 RANLIB="$ac_cv_prog_RANLIB"
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19145 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19146 if ${ac_cv_lib_cposix_strerror+:} false; then :
19147 $as_echo_n "(cached) " >&6
19149 ac_check_lib_save_LIBS=$LIBS
19150 LIBS="-lcposix $LIBS"
19151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19152 /* end confdefs.h. */
19154 /* Override any GCC internal prototype to avoid an error.
19155 Use char because int might match the return type of a GCC
19156 builtin and then its argument prototype would still apply. */
19164 return strerror ();
19169 if ac_fn_c_try_link "$LINENO"; then :
19170 ac_cv_lib_cposix_strerror=yes
19172 ac_cv_lib_cposix_strerror=no
19174 rm -f core conftest.err conftest.$ac_objext \
19175 conftest$ac_exeext conftest.$ac_ext
19176 LIBS=$ac_check_lib_save_LIBS
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19179 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19180 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19181 LIBS="$LIBS -lcposix"
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19187 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19188 if ${ac_cv_c_const+:} false; then :
19189 $as_echo_n "(cached) " >&6
19191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19192 /* end confdefs.h. */
19198 #ifndef __cplusplus
19199 /* Ultrix mips cc rejects this sort of thing. */
19200 typedef int charset[2];
19201 const charset cs = { 0, 0 };
19202 /* SunOS 4.1.1 cc rejects this. */
19203 char const *const *pcpcc;
19205 /* NEC SVR4.0.2 mips cc rejects this. */
19206 struct point {int x, y;};
19207 static struct point const zero = {0,0};
19208 /* AIX XL C 1.02.0.0 rejects this.
19209 It does not let you subtract one const X* pointer from another in
19210 an arm of an if-expression whose if-part is not a constant
19212 const char *g = "string";
19213 pcpcc = &g + (g ? g-g : 0);
19214 /* HPUX 7.0 cc rejects these. */
19216 ppc = (char**) pcpcc;
19217 pcpcc = (char const *const *) ppc;
19218 { /* SCO 3.2v4 cc rejects this sort of thing. */
19221 char const *s = 0 ? (char *) 0 : (char const *) 0;
19226 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19227 int x[] = {25, 17};
19228 const int *foo = &x[0];
19231 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19232 typedef const int *iptr;
19236 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19237 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19238 struct s { int j; const int *ap[3]; } bx;
19239 struct s *b = &bx; b->j = 5;
19241 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19242 const int foo = 10;
19243 if (!foo) return 0;
19245 return !cs[0] && !zero.x;
19252 if ac_fn_c_try_compile "$LINENO"; then :
19257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19260 $as_echo "$ac_cv_c_const" >&6; }
19261 if test $ac_cv_c_const = no; then
19263 $as_echo "#define const /**/" >>confdefs.h
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19269 $as_echo_n "checking for signed... " >&6; }
19270 if ${bh_cv_c_signed+:} false; then :
19271 $as_echo_n "(cached) " >&6
19273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19274 /* end confdefs.h. */
19284 if ac_fn_c_try_compile "$LINENO"; then :
19289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19292 $as_echo "$bh_cv_c_signed" >&6; }
19293 if test $bh_cv_c_signed = no; then
19295 $as_echo "#define signed /**/" >>confdefs.h
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19300 $as_echo_n "checking for inline... " >&6; }
19301 if ${ac_cv_c_inline+:} false; then :
19302 $as_echo_n "(cached) " >&6
19305 for ac_kw in inline __inline__ __inline; do
19306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19307 /* end confdefs.h. */
19308 #ifndef __cplusplus
19310 static $ac_kw foo_t static_foo () {return 0; }
19311 $ac_kw foo_t foo () {return 0; }
19315 if ac_fn_c_try_compile "$LINENO"; then :
19316 ac_cv_c_inline=$ac_kw
19318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19319 test "$ac_cv_c_inline" != no && break
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19324 $as_echo "$ac_cv_c_inline" >&6; }
19326 case $ac_cv_c_inline in
19329 case $ac_cv_c_inline in
19331 *) ac_val=$ac_cv_c_inline;;
19333 cat >>confdefs.h <<_ACEOF
19334 #ifndef __cplusplus
19335 #define inline $ac_val
19341 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19342 if test "x$ac_cv_type_off_t" = xyes; then :
19346 cat >>confdefs.h <<_ACEOF
19347 #define off_t long int
19352 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19353 if test "x$ac_cv_type_size_t" = xyes; then :
19357 cat >>confdefs.h <<_ACEOF
19358 #define size_t unsigned int
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19365 $as_echo_n "checking for long long... " >&6; }
19366 if ${ac_cv_type_long_long+:} false; then :
19367 $as_echo_n "(cached) " >&6
19369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19370 /* end confdefs.h. */
19371 long long ll = 1LL; int i = 63;
19375 long long llmax = (long long) -1;
19376 return ll << i | ll >> i | llmax / ll | llmax % ll;
19381 if ac_fn_c_try_link "$LINENO"; then :
19382 ac_cv_type_long_long=yes
19384 ac_cv_type_long_long=no
19386 rm -f core conftest.err conftest.$ac_objext \
19387 conftest$ac_exeext conftest.$ac_ext
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19390 $as_echo "$ac_cv_type_long_long" >&6; }
19391 if test $ac_cv_type_long_long = yes; then
19393 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19399 $as_echo_n "checking for long double... " >&6; }
19400 if ${gt_cv_c_long_double+:} false; then :
19401 $as_echo_n "(cached) " >&6
19403 if test "$GCC" = yes; then
19404 gt_cv_c_long_double=yes
19406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19407 /* end confdefs.h. */
19409 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19410 long double foo = 0.0;
19411 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19412 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19422 if ac_fn_c_try_compile "$LINENO"; then :
19423 gt_cv_c_long_double=yes
19425 gt_cv_c_long_double=no
19427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19431 $as_echo "$gt_cv_c_long_double" >&6; }
19432 if test $gt_cv_c_long_double = yes; then
19434 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19440 $as_echo_n "checking for wchar_t... " >&6; }
19441 if ${gt_cv_c_wchar_t+:} false; then :
19442 $as_echo_n "(cached) " >&6
19444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19445 /* end confdefs.h. */
19446 #include <stddef.h>
19447 wchar_t foo = (wchar_t)'\0';
19456 if ac_fn_c_try_compile "$LINENO"; then :
19457 gt_cv_c_wchar_t=yes
19461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19464 $as_echo "$gt_cv_c_wchar_t" >&6; }
19465 if test $gt_cv_c_wchar_t = yes; then
19467 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19473 $as_echo_n "checking for wint_t... " >&6; }
19474 if ${gt_cv_c_wint_t+:} false; then :
19475 $as_echo_n "(cached) " >&6
19477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19478 /* end confdefs.h. */
19480 wint_t foo = (wchar_t)'\0';
19489 if ac_fn_c_try_compile "$LINENO"; then :
19494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19497 $as_echo "$gt_cv_c_wint_t" >&6; }
19498 if test $gt_cv_c_wint_t = yes; then
19500 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19506 $as_echo_n "checking for inttypes.h... " >&6; }
19507 if ${gl_cv_header_inttypes_h+:} false; then :
19508 $as_echo_n "(cached) " >&6
19510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19511 /* end confdefs.h. */
19512 #include <sys/types.h>
19513 #include <inttypes.h>
19517 uintmax_t i = (uintmax_t) -1;
19522 if ac_fn_c_try_compile "$LINENO"; then :
19523 gl_cv_header_inttypes_h=yes
19525 gl_cv_header_inttypes_h=no
19527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19530 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19531 if test $gl_cv_header_inttypes_h = yes; then
19533 cat >>confdefs.h <<_ACEOF
19534 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19541 $as_echo_n "checking for stdint.h... " >&6; }
19542 if ${gl_cv_header_stdint_h+:} false; then :
19543 $as_echo_n "(cached) " >&6
19545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19546 /* end confdefs.h. */
19547 #include <sys/types.h>
19548 #include <stdint.h>
19552 uintmax_t i = (uintmax_t) -1;
19557 if ac_fn_c_try_compile "$LINENO"; then :
19558 gl_cv_header_stdint_h=yes
19560 gl_cv_header_stdint_h=no
19562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19565 $as_echo "$gl_cv_header_stdint_h" >&6; }
19566 if test $gl_cv_header_stdint_h = yes; then
19568 cat >>confdefs.h <<_ACEOF
19569 #define HAVE_STDINT_H_WITH_UINTMAX 1
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19578 $as_echo_n "checking for intmax_t... " >&6; }
19579 if ${gt_cv_c_intmax_t+:} false; then :
19580 $as_echo_n "(cached) " >&6
19582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19583 /* end confdefs.h. */
19585 #include <stddef.h>
19586 #include <stdlib.h>
19587 #if HAVE_STDINT_H_WITH_UINTMAX
19588 #include <stdint.h>
19590 #if HAVE_INTTYPES_H_WITH_UINTMAX
19591 #include <inttypes.h>
19602 if ac_fn_c_try_compile "$LINENO"; then :
19603 gt_cv_c_intmax_t=yes
19605 gt_cv_c_intmax_t=no
19607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19610 $as_echo "$gt_cv_c_intmax_t" >&6; }
19611 if test $gt_cv_c_intmax_t = yes; then
19613 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19620 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19621 if ${gt_cv_func_printf_posix+:} false; then :
19622 $as_echo_n "(cached) " >&6
19625 if test "$cross_compiling" = yes; then :
19627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19628 /* end confdefs.h. */
19630 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19636 $EGREP "notposix" >/dev/null 2>&1; then :
19637 gt_cv_func_printf_posix="guessing no"
19639 gt_cv_func_printf_posix="guessing yes"
19645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19646 /* end confdefs.h. */
19649 #include <string.h>
19650 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19651 dollar expansion (possibly an autoconf bug). */
19652 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19653 static char buf[100];
19656 sprintf (buf, format, 33, 55);
19657 return (strcmp (buf, "55 33") != 0);
19660 if ac_fn_c_try_run "$LINENO"; then :
19661 gt_cv_func_printf_posix=yes
19663 gt_cv_func_printf_posix=no
19665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19666 conftest.$ac_objext conftest.beam conftest.$ac_ext
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19672 $as_echo "$gt_cv_func_printf_posix" >&6; }
19673 case $gt_cv_func_printf_posix in
19676 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19681 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19682 # for constant arguments. Useless!
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19684 $as_echo_n "checking for working alloca.h... " >&6; }
19685 if ${ac_cv_working_alloca_h+:} false; then :
19686 $as_echo_n "(cached) " >&6
19688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h. */
19690 #include <alloca.h>
19694 char *p = (char *) alloca (2 * sizeof (int));
19700 if ac_fn_c_try_link "$LINENO"; then :
19701 ac_cv_working_alloca_h=yes
19703 ac_cv_working_alloca_h=no
19705 rm -f core conftest.err conftest.$ac_objext \
19706 conftest$ac_exeext conftest.$ac_ext
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19709 $as_echo "$ac_cv_working_alloca_h" >&6; }
19710 if test $ac_cv_working_alloca_h = yes; then
19712 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19717 $as_echo_n "checking for alloca... " >&6; }
19718 if ${ac_cv_func_alloca_works+:} false; then :
19719 $as_echo_n "(cached) " >&6
19721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h. */
19724 # define alloca __builtin_alloca
19727 # include <malloc.h>
19728 # define alloca _alloca
19730 # ifdef HAVE_ALLOCA_H
19731 # include <alloca.h>
19736 # ifndef alloca /* predefined by HP cc +Olibcalls */
19737 void *alloca (size_t);
19747 char *p = (char *) alloca (1);
19753 if ac_fn_c_try_link "$LINENO"; then :
19754 ac_cv_func_alloca_works=yes
19756 ac_cv_func_alloca_works=no
19758 rm -f core conftest.err conftest.$ac_objext \
19759 conftest$ac_exeext conftest.$ac_ext
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19762 $as_echo "$ac_cv_func_alloca_works" >&6; }
19764 if test $ac_cv_func_alloca_works = yes; then
19766 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19769 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19770 # that cause trouble. Some versions do not even contain alloca or
19771 # contain a buggy version. If you still want to use their alloca,
19772 # use ar to extract alloca.o from them instead of compiling alloca.c.
19774 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19776 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19780 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19781 if ${ac_cv_os_cray+:} false; then :
19782 $as_echo_n "(cached) " >&6
19784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19785 /* end confdefs.h. */
19786 #if defined CRAY && ! defined CRAY2
19793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19794 $EGREP "webecray" >/dev/null 2>&1; then :
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19803 $as_echo "$ac_cv_os_cray" >&6; }
19804 if test $ac_cv_os_cray = yes; then
19805 for ac_func in _getb67 GETB67 getb67; do
19806 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19807 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19808 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19810 cat >>confdefs.h <<_ACEOF
19811 #define CRAY_STACKSEG_END $ac_func
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19821 $as_echo_n "checking stack direction for C alloca... " >&6; }
19822 if ${ac_cv_c_stack_direction+:} false; then :
19823 $as_echo_n "(cached) " >&6
19825 if test "$cross_compiling" = yes; then :
19826 ac_cv_c_stack_direction=0
19828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h. */
19830 $ac_includes_default
19832 find_stack_direction (int *addr, int depth)
19834 int dir, dummy = 0;
19837 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19838 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19839 return dir + dummy;
19843 main (int argc, char **argv)
19845 return find_stack_direction (0, argc + !argv + 20) < 0;
19848 if ac_fn_c_try_run "$LINENO"; then :
19849 ac_cv_c_stack_direction=1
19851 ac_cv_c_stack_direction=-1
19853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19854 conftest.$ac_objext conftest.beam conftest.$ac_ext
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19859 $as_echo "$ac_cv_c_stack_direction" >&6; }
19860 cat >>confdefs.h <<_ACEOF
19861 #define STACK_DIRECTION $ac_cv_c_stack_direction
19870 for ac_header in $ac_header_list
19872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19873 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19875 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19876 cat >>confdefs.h <<_ACEOF
19877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19891 for ac_func in getpagesize
19893 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19894 if test "x$ac_cv_func_getpagesize" = xyes; then :
19895 cat >>confdefs.h <<_ACEOF
19896 #define HAVE_GETPAGESIZE 1
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19903 $as_echo_n "checking for working mmap... " >&6; }
19904 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19905 $as_echo_n "(cached) " >&6
19907 if test "$cross_compiling" = yes; then :
19908 ac_cv_func_mmap_fixed_mapped=no
19910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19911 /* end confdefs.h. */
19912 $ac_includes_default
19913 /* malloc might have been renamed as rpl_malloc. */
19916 /* Thanks to Mike Haertel and Jim Avera for this test.
19917 Here is a matrix of mmap possibilities:
19918 mmap private not fixed
19919 mmap private fixed at somewhere currently unmapped
19920 mmap private fixed at somewhere already mapped
19921 mmap shared not fixed
19922 mmap shared fixed at somewhere currently unmapped
19923 mmap shared fixed at somewhere already mapped
19924 For private mappings, we should verify that changes cannot be read()
19925 back from the file, nor mmap's back from the file at a different
19926 address. (There have been systems where private was not correctly
19927 implemented like the infamous i386 svr4.0, and systems where the
19928 VM page cache was not coherent with the file system buffer cache
19929 like early versions of FreeBSD and possibly contemporary NetBSD.)
19930 For shared mappings, we should conversely verify that changes get
19931 propagated back to all the places they're supposed to be.
19933 Grep wants private fixed already mapped.
19934 The main things grep needs to know about mmap are:
19935 * does it exist and is it safe to write into the mmap'd area
19936 * how to use it (BSD variants) */
19939 #include <sys/mman.h>
19941 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19945 /* This mess was copied from the GNU getpagesize.h. */
19946 #ifndef HAVE_GETPAGESIZE
19947 # ifdef _SC_PAGESIZE
19948 # define getpagesize() sysconf(_SC_PAGESIZE)
19949 # else /* no _SC_PAGESIZE */
19950 # ifdef HAVE_SYS_PARAM_H
19951 # include <sys/param.h>
19952 # ifdef EXEC_PAGESIZE
19953 # define getpagesize() EXEC_PAGESIZE
19954 # else /* no EXEC_PAGESIZE */
19956 # define getpagesize() NBPG * CLSIZE
19959 # endif /* no CLSIZE */
19960 # else /* no NBPG */
19962 # define getpagesize() NBPC
19963 # else /* no NBPC */
19965 # define getpagesize() PAGESIZE
19966 # endif /* PAGESIZE */
19967 # endif /* no NBPC */
19968 # endif /* no NBPG */
19969 # endif /* no EXEC_PAGESIZE */
19970 # else /* no HAVE_SYS_PARAM_H */
19971 # define getpagesize() 8192 /* punt totally */
19972 # endif /* no HAVE_SYS_PARAM_H */
19973 # endif /* no _SC_PAGESIZE */
19975 #endif /* no HAVE_GETPAGESIZE */
19980 char *data, *data2, *data3;
19981 const char *cdata2;
19985 pagesize = getpagesize ();
19987 /* First, make a file with some known garbage in it. */
19988 data = (char *) malloc (pagesize);
19991 for (i = 0; i < pagesize; ++i)
19992 *(data + i) = rand ();
19994 fd = creat ("conftest.mmap", 0600);
19997 if (write (fd, data, pagesize) != pagesize)
20001 /* Next, check that the tail of a page is zero-filled. File must have
20002 non-zero length, otherwise we risk SIGBUS for entire page. */
20003 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20007 if (write (fd2, cdata2, 1) != 1)
20009 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20010 if (data2 == MAP_FAILED)
20012 for (i = 0; i < pagesize; ++i)
20016 if (munmap (data2, pagesize))
20019 /* Next, try to mmap the file at a fixed address which already has
20020 something else allocated at it. If we can, also make sure that
20021 we see the same garbage. */
20022 fd = open ("conftest.mmap", O_RDWR);
20025 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20026 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20028 for (i = 0; i < pagesize; ++i)
20029 if (*(data + i) != *(data2 + i))
20032 /* Finally, make sure that changes to the mapped area do not
20033 percolate back to the file as seen by read(). (This is a bug on
20034 some variants of i386 svr4.0.) */
20035 for (i = 0; i < pagesize; ++i)
20036 *(data2 + i) = *(data2 + i) + 1;
20037 data3 = (char *) malloc (pagesize);
20040 if (read (fd, data3, pagesize) != pagesize)
20042 for (i = 0; i < pagesize; ++i)
20043 if (*(data + i) != *(data3 + i))
20049 if ac_fn_c_try_run "$LINENO"; then :
20050 ac_cv_func_mmap_fixed_mapped=yes
20052 ac_cv_func_mmap_fixed_mapped=no
20054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20055 conftest.$ac_objext conftest.beam conftest.$ac_ext
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20060 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20061 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20063 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20066 rm -f conftest.mmap conftest.txt
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20070 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20071 if ${ac_cv_gnu_library_2_1+:} false; then :
20072 $as_echo_n "(cached) " >&6
20074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20075 /* end confdefs.h. */
20077 #include <features.h>
20078 #ifdef __GNU_LIBRARY__
20079 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20086 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20087 ac_cv_gnu_library_2_1=yes
20089 ac_cv_gnu_library_2_1=no
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20097 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20099 GLIBC21="$ac_cv_gnu_library_2_1"
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20105 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20106 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20107 $as_echo_n "(cached) " >&6
20110 if test "$cross_compiling" = yes; then :
20112 # Guess based on the CPU.
20113 case "$host_cpu" in
20114 alpha* | i3456786 | m68k | s390*)
20115 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20117 gt_cv_int_divbyzero_sigfpe="guessing no";;
20121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20122 /* end confdefs.h. */
20124 #include <stdlib.h>
20125 #include <signal.h>
20129 sigfpe_handler (int sig)
20131 sigfpe_handler (sig) int sig;
20134 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20135 exit (sig != SIGFPE);
20145 signal (SIGFPE, sigfpe_handler);
20146 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20147 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20148 signal (SIGTRAP, sigfpe_handler);
20150 /* Linux/SPARC yields signal SIGILL. */
20151 #if defined (__sparc__) && defined (__linux__)
20152 signal (SIGILL, sigfpe_handler);
20161 if ac_fn_c_try_run "$LINENO"; then :
20162 gt_cv_int_divbyzero_sigfpe=yes
20164 gt_cv_int_divbyzero_sigfpe=no
20166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20167 conftest.$ac_objext conftest.beam conftest.$ac_ext
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20173 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20174 case "$gt_cv_int_divbyzero_sigfpe" in
20179 cat >>confdefs.h <<_ACEOF
20180 #define INTDIV0_RAISES_SIGFPE $value
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20186 $as_echo_n "checking for unsigned long long... " >&6; }
20187 if ${ac_cv_type_unsigned_long_long+:} false; then :
20188 $as_echo_n "(cached) " >&6
20190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191 /* end confdefs.h. */
20192 unsigned long long ull = 1ULL; int i = 63;
20196 unsigned long long ullmax = (unsigned long long) -1;
20197 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20202 if ac_fn_c_try_link "$LINENO"; then :
20203 ac_cv_type_unsigned_long_long=yes
20205 ac_cv_type_unsigned_long_long=no
20207 rm -f core conftest.err conftest.$ac_objext \
20208 conftest$ac_exeext conftest.$ac_ext
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20211 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20212 if test $ac_cv_type_unsigned_long_long = yes; then
20214 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20221 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20223 test $ac_cv_type_unsigned_long_long = yes \
20224 && ac_type='unsigned long long' \
20225 || ac_type='unsigned long'
20227 cat >>confdefs.h <<_ACEOF
20228 #define uintmax_t $ac_type
20233 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20239 $as_echo_n "checking for inttypes.h... " >&6; }
20240 if ${gt_cv_header_inttypes_h+:} false; then :
20241 $as_echo_n "(cached) " >&6
20244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20245 /* end confdefs.h. */
20246 #include <sys/types.h>
20247 #include <inttypes.h>
20256 if ac_fn_c_try_compile "$LINENO"; then :
20257 gt_cv_header_inttypes_h=yes
20259 gt_cv_header_inttypes_h=no
20261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20265 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20266 if test $gt_cv_header_inttypes_h = yes; then
20268 cat >>confdefs.h <<_ACEOF
20269 #define HAVE_INTTYPES_H 1
20276 if test $gt_cv_header_inttypes_h = yes; then
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20278 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20279 if ${gt_cv_inttypes_pri_broken+:} false; then :
20280 $as_echo_n "(cached) " >&6
20283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20284 /* end confdefs.h. */
20285 #include <inttypes.h>
20298 if ac_fn_c_try_compile "$LINENO"; then :
20299 gt_cv_inttypes_pri_broken=no
20301 gt_cv_inttypes_pri_broken=yes
20303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20307 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20309 if test "$gt_cv_inttypes_pri_broken" = yes; then
20311 cat >>confdefs.h <<_ACEOF
20312 #define PRI_MACROS_BROKEN 1
20318 for ac_header in stdint.h
20320 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20321 if test "x$ac_cv_header_stdint_h" = xyes; then :
20322 cat >>confdefs.h <<_ACEOF
20323 #define HAVE_STDINT_H 1
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20331 $as_echo_n "checking for SIZE_MAX... " >&6; }
20333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20334 /* end confdefs.h. */
20336 #include <limits.h>
20338 #include <stdint.h>
20345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20346 $EGREP "Found it" >/dev/null 2>&1; then :
20351 if test -z "$result"; then
20352 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20359 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20366 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20373 if test "$fits_in_uint" = 1; then
20374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20375 /* end confdefs.h. */
20376 #include <stddef.h>
20378 extern unsigned long foo;
20388 if ac_fn_c_try_compile "$LINENO"; then :
20391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20393 if test -z "$result"; then
20394 if test "$fits_in_uint" = 1; then
20395 result="$res_hi$res_lo"U
20397 result="$res_hi$res_lo"UL
20400 result='~(size_t)0'
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20404 $as_echo "$result" >&6; }
20405 if test "$result" != yes; then
20407 cat >>confdefs.h <<_ACEOF
20408 #define SIZE_MAX $result
20416 for ac_header in stdint.h
20418 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20419 if test "x$ac_cv_header_stdint_h" = xyes; then :
20420 cat >>confdefs.h <<_ACEOF
20421 #define HAVE_STDINT_H 1
20435 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20436 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20440 $as_echo "#define ptrdiff_t long" >>confdefs.h
20445 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20446 stdlib.h string.h unistd.h sys/param.h
20448 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20449 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20451 cat >>confdefs.h <<_ACEOF
20452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20459 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20460 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20461 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20464 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20465 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20466 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20467 cat >>confdefs.h <<_ACEOF
20468 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20477 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20478 if ${ac_cv_have_decl__snprintf+:} false; then :
20479 $as_echo_n "(cached) " >&6
20481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20482 /* end confdefs.h. */
20489 char *p = (char *) _snprintf;
20496 if ac_fn_c_try_compile "$LINENO"; then :
20497 ac_cv_have_decl__snprintf=yes
20499 ac_cv_have_decl__snprintf=no
20501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20504 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20505 if test $ac_cv_have_decl__snprintf = yes; then
20511 cat >>confdefs.h <<_ACEOF
20512 #define HAVE_DECL__SNPRINTF $gt_value
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20518 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20519 if ${ac_cv_have_decl__snwprintf+:} false; then :
20520 $as_echo_n "(cached) " >&6
20522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20523 /* end confdefs.h. */
20530 char *p = (char *) _snwprintf;
20537 if ac_fn_c_try_compile "$LINENO"; then :
20538 ac_cv_have_decl__snwprintf=yes
20540 ac_cv_have_decl__snwprintf=no
20542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20545 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20546 if test $ac_cv_have_decl__snwprintf = yes; then
20552 cat >>confdefs.h <<_ACEOF
20553 #define HAVE_DECL__SNWPRINTF $gt_value
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20560 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20561 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20562 $as_echo_n "(cached) " >&6
20564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20565 /* end confdefs.h. */
20571 #ifndef feof_unlocked
20572 char *p = (char *) feof_unlocked;
20579 if ac_fn_c_try_compile "$LINENO"; then :
20580 ac_cv_have_decl_feof_unlocked=yes
20582 ac_cv_have_decl_feof_unlocked=no
20584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20587 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20588 if test $ac_cv_have_decl_feof_unlocked = yes; then
20594 cat >>confdefs.h <<_ACEOF
20595 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20601 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20602 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20603 $as_echo_n "(cached) " >&6
20605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h. */
20612 #ifndef fgets_unlocked
20613 char *p = (char *) fgets_unlocked;
20620 if ac_fn_c_try_compile "$LINENO"; then :
20621 ac_cv_have_decl_fgets_unlocked=yes
20623 ac_cv_have_decl_fgets_unlocked=no
20625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20628 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20629 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20635 cat >>confdefs.h <<_ACEOF
20636 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20642 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20643 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20644 $as_echo_n "(cached) " >&6
20646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20647 /* end confdefs.h. */
20653 #ifndef getc_unlocked
20654 char *p = (char *) getc_unlocked;
20661 if ac_fn_c_try_compile "$LINENO"; then :
20662 ac_cv_have_decl_getc_unlocked=yes
20664 ac_cv_have_decl_getc_unlocked=no
20666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20669 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20670 if test $ac_cv_have_decl_getc_unlocked = yes; then
20676 cat >>confdefs.h <<_ACEOF
20677 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20682 case $gt_cv_func_printf_posix in
20683 *yes) HAVE_POSIX_PRINTF=1 ;;
20684 *) HAVE_POSIX_PRINTF=0 ;;
20687 if test "$ac_cv_func_asprintf" = yes; then
20693 if test "$ac_cv_func_snprintf" = yes; then
20699 if test "$ac_cv_func_wprintf" = yes; then
20711 am_save_CPPFLAGS="$CPPFLAGS"
20713 for element in $INCICONV; do
20715 for x in $CPPFLAGS; do
20717 acl_save_prefix="$prefix"
20718 prefix="$acl_final_prefix"
20719 acl_save_exec_prefix="$exec_prefix"
20720 exec_prefix="$acl_final_exec_prefix"
20722 exec_prefix="$acl_save_exec_prefix"
20723 prefix="$acl_save_prefix"
20725 if test "X$x" = "X$element"; then
20730 if test -z "$haveit"; then
20731 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20737 $as_echo_n "checking for iconv... " >&6; }
20738 if ${am_cv_func_iconv+:} false; then :
20739 $as_echo_n "(cached) " >&6
20742 am_cv_func_iconv="no, consider installing GNU libiconv"
20744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20745 /* end confdefs.h. */
20746 #include <stdlib.h>
20751 iconv_t cd = iconv_open("","");
20752 iconv(cd,NULL,NULL,NULL,NULL);
20758 if ac_fn_c_try_link "$LINENO"; then :
20759 am_cv_func_iconv=yes
20761 rm -f core conftest.err conftest.$ac_objext \
20762 conftest$ac_exeext conftest.$ac_ext
20763 if test "$am_cv_func_iconv" != yes; then
20764 am_save_LIBS="$LIBS"
20765 LIBS="$LIBS $LIBICONV"
20766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h. */
20768 #include <stdlib.h>
20773 iconv_t cd = iconv_open("","");
20774 iconv(cd,NULL,NULL,NULL,NULL);
20780 if ac_fn_c_try_link "$LINENO"; then :
20781 am_cv_lib_iconv=yes
20782 am_cv_func_iconv=yes
20784 rm -f core conftest.err conftest.$ac_objext \
20785 conftest$ac_exeext conftest.$ac_ext
20786 LIBS="$am_save_LIBS"
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20791 $as_echo "$am_cv_func_iconv" >&6; }
20792 if test "$am_cv_func_iconv" = yes; then
20794 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20797 if test "$am_cv_lib_iconv" = yes; then
20798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20799 $as_echo_n "checking how to link with libiconv... " >&6; }
20800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20801 $as_echo "$LIBICONV" >&6; }
20803 CPPFLAGS="$am_save_CPPFLAGS"
20810 if test "$am_cv_func_iconv" = yes; then
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20812 $as_echo_n "checking for iconv declaration... " >&6; }
20813 if ${am_cv_proto_iconv+:} false; then :
20814 $as_echo_n "(cached) " >&6
20817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20818 /* end confdefs.h. */
20820 #include <stdlib.h>
20826 #if defined(__STDC__) || defined(__cplusplus)
20827 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20840 if ac_fn_c_try_compile "$LINENO"; then :
20841 am_cv_proto_iconv_arg1=""
20843 am_cv_proto_iconv_arg1="const"
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846 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);"
20849 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20851 }$am_cv_proto_iconv" >&5
20853 }$am_cv_proto_iconv" >&6; }
20855 cat >>confdefs.h <<_ACEOF
20856 #define ICONV_CONST $am_cv_proto_iconv_arg1
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20863 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20864 if ${am_cv_langinfo_codeset+:} false; then :
20865 $as_echo_n "(cached) " >&6
20867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20868 /* end confdefs.h. */
20869 #include <langinfo.h>
20873 char* cs = nl_langinfo(CODESET);
20878 if ac_fn_c_try_link "$LINENO"; then :
20879 am_cv_langinfo_codeset=yes
20881 am_cv_langinfo_codeset=no
20883 rm -f core conftest.err conftest.$ac_objext \
20884 conftest$ac_exeext conftest.$ac_ext
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20888 $as_echo "$am_cv_langinfo_codeset" >&6; }
20889 if test $am_cv_langinfo_codeset = yes; then
20891 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20895 if test $ac_cv_header_locale_h = yes; then
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20898 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20899 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20900 $as_echo_n "(cached) " >&6
20902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20903 /* end confdefs.h. */
20904 #include <locale.h>
20913 if ac_fn_c_try_link "$LINENO"; then :
20914 gt_cv_val_LC_MESSAGES=yes
20916 gt_cv_val_LC_MESSAGES=no
20918 rm -f core conftest.err conftest.$ac_objext \
20919 conftest$ac_exeext conftest.$ac_ext
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20922 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20923 if test $gt_cv_val_LC_MESSAGES = yes; then
20925 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20931 if test -n "$INTL_MACOSX_LIBS"; then
20932 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20935 for ac_prog in bison
20937 # Extract the first word of "$ac_prog", so it can be a program name with args.
20938 set dummy $ac_prog; ac_word=$2
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20940 $as_echo_n "checking for $ac_word... " >&6; }
20941 if ${ac_cv_prog_INTLBISON+:} false; then :
20942 $as_echo_n "(cached) " >&6
20944 if test -n "$INTLBISON"; then
20945 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20948 for as_dir in $PATH
20951 test -z "$as_dir" && as_dir=.
20952 for ac_exec_ext in '' $ac_executable_extensions; do
20953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20954 ac_cv_prog_INTLBISON="$ac_prog"
20955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20964 INTLBISON=$ac_cv_prog_INTLBISON
20965 if test -n "$INTLBISON"; then
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20967 $as_echo "$INTLBISON" >&6; }
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20970 $as_echo "no" >&6; }
20974 test -n "$INTLBISON" && break
20977 if test -z "$INTLBISON"; then
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20981 $as_echo_n "checking version of bison... " >&6; }
20982 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20983 case $ac_prog_version in
20984 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20985 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20986 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20987 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20990 $as_echo "$ac_prog_version" >&6; }
20992 if test $ac_verc_fail = yes; then
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21012 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21013 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21014 $as_echo_n "(cached) " >&6
21016 gt_save_CPPFLAGS="$CPPFLAGS"
21017 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21018 gt_save_LIBS="$LIBS"
21019 LIBS="$LIBS -framework CoreFoundation"
21020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21021 /* end confdefs.h. */
21022 #include <CFPreferences.h>
21026 CFPreferencesCopyAppValue(NULL, NULL)
21031 if ac_fn_c_try_link "$LINENO"; then :
21032 gt_cv_func_CFPreferencesCopyAppValue=yes
21034 gt_cv_func_CFPreferencesCopyAppValue=no
21036 rm -f core conftest.err conftest.$ac_objext \
21037 conftest$ac_exeext conftest.$ac_ext
21038 CPPFLAGS="$gt_save_CPPFLAGS"
21039 LIBS="$gt_save_LIBS"
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21042 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21043 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21045 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21049 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21050 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21051 $as_echo_n "(cached) " >&6
21053 gt_save_CPPFLAGS="$CPPFLAGS"
21054 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21055 gt_save_LIBS="$LIBS"
21056 LIBS="$LIBS -framework CoreFoundation"
21057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21058 /* end confdefs.h. */
21059 #include <CFLocale.h>
21063 CFLocaleCopyCurrent();
21068 if ac_fn_c_try_link "$LINENO"; then :
21069 gt_cv_func_CFLocaleCopyCurrent=yes
21071 gt_cv_func_CFLocaleCopyCurrent=no
21073 rm -f core conftest.err conftest.$ac_objext \
21074 conftest$ac_exeext conftest.$ac_ext
21075 CPPFLAGS="$gt_save_CPPFLAGS"
21076 LIBS="$gt_save_LIBS"
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21079 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21080 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21082 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21086 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21087 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21094 $as_echo_n "checking whether NLS is requested... " >&6; }
21095 # Check whether --enable-nls was given.
21096 if test "${enable_nls+set}" = set; then :
21097 enableval=$enable_nls; USE_NLS=$enableval
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21103 $as_echo "$USE_NLS" >&6; }
21108 BUILD_INCLUDED_LIBINTL=no
21109 USE_INCLUDED_LIBINTL=no
21115 if test "$USE_NLS" = "yes"; then
21116 gt_use_preinstalled_gnugettext=no
21118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21119 $as_echo_n "checking whether included gettext is requested... " >&6; }
21121 # Check whether --with-included-gettext was given.
21122 if test "${with_included_gettext+set}" = set; then :
21123 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21125 nls_cv_force_use_gnu_gettext=no
21128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21129 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21131 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21132 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21140 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21141 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21142 $as_echo_n "(cached) " >&6
21144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21145 /* end confdefs.h. */
21146 #include <libintl.h>
21147 extern int _nl_msg_cat_cntr;
21148 extern int *_nl_domain_bindings;
21152 bindtextdomain ("", "");
21153 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21158 if ac_fn_c_try_link "$LINENO"; then :
21159 gt_cv_func_gnugettext1_libc=yes
21161 gt_cv_func_gnugettext1_libc=no
21163 rm -f core conftest.err conftest.$ac_objext \
21164 conftest$ac_exeext conftest.$ac_ext
21166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21167 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21169 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21175 acl_save_prefix="$prefix"
21176 prefix="$acl_final_prefix"
21177 acl_save_exec_prefix="$exec_prefix"
21178 exec_prefix="$acl_final_exec_prefix"
21180 eval additional_includedir=\"$includedir\"
21181 eval additional_libdir=\"$libdir\"
21183 exec_prefix="$acl_save_exec_prefix"
21184 prefix="$acl_save_prefix"
21187 # Check whether --with-libintl-prefix was given.
21188 if test "${with_libintl_prefix+set}" = set; then :
21189 withval=$with_libintl_prefix;
21190 if test "X$withval" = "Xno"; then
21193 if test "X$withval" = "X"; then
21195 acl_save_prefix="$prefix"
21196 prefix="$acl_final_prefix"
21197 acl_save_exec_prefix="$exec_prefix"
21198 exec_prefix="$acl_final_exec_prefix"
21200 eval additional_includedir=\"$includedir\"
21201 eval additional_libdir=\"$libdir\"
21203 exec_prefix="$acl_save_exec_prefix"
21204 prefix="$acl_save_prefix"
21207 additional_includedir="$withval/include"
21208 additional_libdir="$withval/lib"
21219 names_already_handled=
21220 names_next_round='intl '
21221 while test -n "$names_next_round"; do
21222 names_this_round="$names_next_round"
21224 for name in $names_this_round; do
21226 for n in $names_already_handled; do
21227 if test "$n" = "$name"; then
21228 already_handled=yes
21232 if test -z "$already_handled"; then
21233 names_already_handled="$names_already_handled $name"
21234 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21235 eval value=\"\$HAVE_LIB$uppername\"
21236 if test -n "$value"; then
21237 if test "$value" = yes; then
21238 eval value=\"\$LIB$uppername\"
21239 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21240 eval value=\"\$LTLIB$uppername\"
21241 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21250 if test $use_additional = yes; then
21251 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21252 found_dir="$additional_libdir"
21253 found_so="$additional_libdir/lib$name.$shlibext"
21254 if test -f "$additional_libdir/lib$name.la"; then
21255 found_la="$additional_libdir/lib$name.la"
21258 if test -f "$additional_libdir/lib$name.$libext"; then
21259 found_dir="$additional_libdir"
21260 found_a="$additional_libdir/lib$name.$libext"
21261 if test -f "$additional_libdir/lib$name.la"; then
21262 found_la="$additional_libdir/lib$name.la"
21267 if test "X$found_dir" = "X"; then
21268 for x in $LDFLAGS $LTLIBINTL; do
21270 acl_save_prefix="$prefix"
21271 prefix="$acl_final_prefix"
21272 acl_save_exec_prefix="$exec_prefix"
21273 exec_prefix="$acl_final_exec_prefix"
21275 exec_prefix="$acl_save_exec_prefix"
21276 prefix="$acl_save_prefix"
21280 dir=`echo "X$x" | sed -e 's/^X-L//'`
21281 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21283 found_so="$dir/lib$name.$shlibext"
21284 if test -f "$dir/lib$name.la"; then
21285 found_la="$dir/lib$name.la"
21288 if test -f "$dir/lib$name.$libext"; then
21290 found_a="$dir/lib$name.$libext"
21291 if test -f "$dir/lib$name.la"; then
21292 found_la="$dir/lib$name.la"
21298 if test "X$found_dir" != "X"; then
21303 if test "X$found_dir" != "X"; then
21304 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21305 if test "X$found_so" != "X"; then
21306 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21307 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21310 for x in $ltrpathdirs; do
21311 if test "X$x" = "X$found_dir"; then
21316 if test -z "$haveit"; then
21317 ltrpathdirs="$ltrpathdirs $found_dir"
21319 if test "$hardcode_direct" = yes; then
21320 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21322 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21323 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21325 for x in $rpathdirs; do
21326 if test "X$x" = "X$found_dir"; then
21331 if test -z "$haveit"; then
21332 rpathdirs="$rpathdirs $found_dir"
21336 for x in $LDFLAGS $LIBINTL; do
21338 acl_save_prefix="$prefix"
21339 prefix="$acl_final_prefix"
21340 acl_save_exec_prefix="$exec_prefix"
21341 exec_prefix="$acl_final_exec_prefix"
21343 exec_prefix="$acl_save_exec_prefix"
21344 prefix="$acl_save_prefix"
21346 if test "X$x" = "X-L$found_dir"; then
21351 if test -z "$haveit"; then
21352 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21354 if test "$hardcode_minus_L" != no; then
21355 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21357 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21363 if test "X$found_a" != "X"; then
21364 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21366 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21369 additional_includedir=
21370 case "$found_dir" in
21372 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21373 additional_includedir="$basedir/include"
21376 if test "X$additional_includedir" != "X"; then
21377 if test "X$additional_includedir" != "X/usr/include"; then
21379 if test "X$additional_includedir" = "X/usr/local/include"; then
21380 if test -n "$GCC"; then
21382 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21386 if test -z "$haveit"; then
21387 for x in $CPPFLAGS $INCINTL; do
21389 acl_save_prefix="$prefix"
21390 prefix="$acl_final_prefix"
21391 acl_save_exec_prefix="$exec_prefix"
21392 exec_prefix="$acl_final_exec_prefix"
21394 exec_prefix="$acl_save_exec_prefix"
21395 prefix="$acl_save_prefix"
21397 if test "X$x" = "X-I$additional_includedir"; then
21402 if test -z "$haveit"; then
21403 if test -d "$additional_includedir"; then
21404 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21410 if test -n "$found_la"; then
21411 save_libdir="$libdir"
21412 case "$found_la" in
21413 */* | *\\*) . "$found_la" ;;
21414 *) . "./$found_la" ;;
21416 libdir="$save_libdir"
21417 for dep in $dependency_libs; do
21420 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21421 if test "X$additional_libdir" != "X/usr/lib"; then
21423 if test "X$additional_libdir" = "X/usr/local/lib"; then
21424 if test -n "$GCC"; then
21426 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21430 if test -z "$haveit"; then
21432 for x in $LDFLAGS $LIBINTL; do
21434 acl_save_prefix="$prefix"
21435 prefix="$acl_final_prefix"
21436 acl_save_exec_prefix="$exec_prefix"
21437 exec_prefix="$acl_final_exec_prefix"
21439 exec_prefix="$acl_save_exec_prefix"
21440 prefix="$acl_save_prefix"
21442 if test "X$x" = "X-L$additional_libdir"; then
21447 if test -z "$haveit"; then
21448 if test -d "$additional_libdir"; then
21449 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21453 for x in $LDFLAGS $LTLIBINTL; do
21455 acl_save_prefix="$prefix"
21456 prefix="$acl_final_prefix"
21457 acl_save_exec_prefix="$exec_prefix"
21458 exec_prefix="$acl_final_exec_prefix"
21460 exec_prefix="$acl_save_exec_prefix"
21461 prefix="$acl_save_prefix"
21463 if test "X$x" = "X-L$additional_libdir"; then
21468 if test -z "$haveit"; then
21469 if test -d "$additional_libdir"; then
21470 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21477 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21478 if test "$enable_rpath" != no; then
21480 for x in $rpathdirs; do
21481 if test "X$x" = "X$dir"; then
21486 if test -z "$haveit"; then
21487 rpathdirs="$rpathdirs $dir"
21490 for x in $ltrpathdirs; do
21491 if test "X$x" = "X$dir"; then
21496 if test -z "$haveit"; then
21497 ltrpathdirs="$ltrpathdirs $dir"
21502 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21505 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21508 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21509 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21515 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21516 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21522 if test "X$rpathdirs" != "X"; then
21523 if test -n "$hardcode_libdir_separator"; then
21525 for found_dir in $rpathdirs; do
21526 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21528 acl_save_libdir="$libdir"
21530 eval flag=\"$hardcode_libdir_flag_spec\"
21531 libdir="$acl_save_libdir"
21532 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21534 for found_dir in $rpathdirs; do
21535 acl_save_libdir="$libdir"
21536 libdir="$found_dir"
21537 eval flag=\"$hardcode_libdir_flag_spec\"
21538 libdir="$acl_save_libdir"
21539 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21543 if test "X$ltrpathdirs" != "X"; then
21544 for found_dir in $ltrpathdirs; do
21545 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21550 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21551 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21552 $as_echo_n "(cached) " >&6
21554 gt_save_CPPFLAGS="$CPPFLAGS"
21555 CPPFLAGS="$CPPFLAGS $INCINTL"
21556 gt_save_LIBS="$LIBS"
21557 LIBS="$LIBS $LIBINTL"
21558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21559 /* end confdefs.h. */
21560 #include <libintl.h>
21561 extern int _nl_msg_cat_cntr;
21566 const char *_nl_expand_alias (const char *);
21570 bindtextdomain ("", "");
21571 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21576 if ac_fn_c_try_link "$LINENO"; then :
21577 gt_cv_func_gnugettext1_libintl=yes
21579 gt_cv_func_gnugettext1_libintl=no
21581 rm -f core conftest.err conftest.$ac_objext \
21582 conftest$ac_exeext conftest.$ac_ext
21583 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21584 LIBS="$LIBS $LIBICONV"
21585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21586 /* end confdefs.h. */
21587 #include <libintl.h>
21588 extern int _nl_msg_cat_cntr;
21593 const char *_nl_expand_alias (const char *);
21597 bindtextdomain ("", "");
21598 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21603 if ac_fn_c_try_link "$LINENO"; then :
21604 LIBINTL="$LIBINTL $LIBICONV"
21605 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21606 gt_cv_func_gnugettext1_libintl=yes
21609 rm -f core conftest.err conftest.$ac_objext \
21610 conftest$ac_exeext conftest.$ac_ext
21612 CPPFLAGS="$gt_save_CPPFLAGS"
21613 LIBS="$gt_save_LIBS"
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21616 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21619 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21620 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21621 && test "$PACKAGE" != gettext-runtime \
21622 && test "$PACKAGE" != gettext-tools; }; then
21623 gt_use_preinstalled_gnugettext=yes
21631 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21632 nls_cv_use_gnu_gettext=yes
21636 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21637 BUILD_INCLUDED_LIBINTL=yes
21638 USE_INCLUDED_LIBINTL=yes
21639 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21640 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21641 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21645 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21646 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21651 if test -n "$INTL_MACOSX_LIBS"; then
21652 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21653 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21654 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21655 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21659 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21660 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21662 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21670 $as_echo_n "checking whether to use NLS... " >&6; }
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21672 $as_echo "$USE_NLS" >&6; }
21673 if test "$USE_NLS" = "yes"; then
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21675 $as_echo_n "checking where the gettext function comes from... " >&6; }
21676 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21677 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21678 gt_source="external libintl"
21683 gt_source="included intl directory"
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21686 $as_echo "$gt_source" >&6; }
21689 if test "$USE_NLS" = "yes"; then
21691 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21692 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21694 $as_echo_n "checking how to link with libintl... " >&6; }
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21696 $as_echo "$LIBINTL" >&6; }
21698 for element in $INCINTL; do
21700 for x in $CPPFLAGS; do
21702 acl_save_prefix="$prefix"
21703 prefix="$acl_final_prefix"
21704 acl_save_exec_prefix="$exec_prefix"
21705 exec_prefix="$acl_final_exec_prefix"
21707 exec_prefix="$acl_save_exec_prefix"
21708 prefix="$acl_save_prefix"
21710 if test "X$x" = "X$element"; then
21715 if test -z "$haveit"; then
21716 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21723 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21726 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21734 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21735 BUILD_INCLUDED_LIBINTL=yes
21742 nls_cv_header_intl=
21743 nls_cv_header_libgt=
21755 if test "$USE_INCLUDED_LIBINTL" = yes; then
21756 INTLOBJS="\$(GETTOBJS)"
21760 INTL_LIBTOOL_SUFFIX_PREFIX=
21764 INTLLIBS="$LIBINTL"
21773 support_smartalloc=yes
21774 support_readline=yes
21780 support_static_tools=no
21781 support_static_fd=no
21782 support_static_sd=no
21783 support_static_dir=no
21784 support_static_cons=no
21785 build_client_only=no
21789 batch_insert_db_backends=""
21793 # Check whether --enable-bat was given.
21794 if test "${enable_bat+set}" = set; then :
21795 enableval=$enable_bat;
21796 if test x$enableval = xyes; then
21798 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21808 if test x$support_bat = xyes; then
21809 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21811 if test $pkg = 0; then
21812 BAT_DIR=src/qt-console
21814 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21832 # Check whether --enable-smartalloc was given.
21833 if test "${enable_smartalloc+set}" = set; then :
21834 enableval=$enable_smartalloc;
21835 if test x$enableval = xno; then
21836 support_smartalloc=no
21843 if test x$support_smartalloc = xyes; then
21845 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21849 # Check whether --enable-lockmgr was given.
21850 if test "${enable_lockmgr+set}" = set; then :
21851 enableval=$enable_lockmgr;
21852 if test x$enableval = xyes; then
21853 support_lockmgr=yes
21860 if test x$support_lockmgr = xyes; then
21862 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21867 # Check whether --enable-static-tools was given.
21868 if test "${enable_static_tools+set}" = set; then :
21869 enableval=$enable_static_tools;
21870 if test x$enableval = xyes; then
21871 if test x$use_libtool = xyes; then
21872 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21873 please rerun configure with --disable-libtool" "$LINENO" 5
21875 support_static_tools=yes
21883 if test x$support_static_tools = xyes; then
21884 TTOOL_LDFLAGS="-static"
21888 # Check whether --enable-static-fd was given.
21889 if test "${enable_static_fd+set}" = set; then :
21890 enableval=$enable_static_fd;
21891 if test x$enableval = xyes; then
21892 if test x$use_libtool = xyes; then
21893 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21894 please rerun configure with --disable-libtool" "$LINENO" 5
21896 support_static_fd=yes
21904 if test x$support_static_fd = xyes; then
21905 STATIC_FD="static-bacula-fd"
21909 # Check whether --enable-static-sd was given.
21910 if test "${enable_static_sd+set}" = set; then :
21911 enableval=$enable_static_sd;
21912 if test x$enableval = xyes; then
21913 if test x$use_libtool = xyes; then
21914 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21915 please rerun configure with --disable-libtool" "$LINENO" 5
21917 support_static_sd=yes
21925 if test x$support_static_sd = xyes; then
21926 STATIC_SD="static-bacula-sd"
21930 # Check whether --enable-static-dir was given.
21931 if test "${enable_static_dir+set}" = set; then :
21932 enableval=$enable_static_dir;
21933 if test x$enableval = xyes; then
21934 if test x$use_libtool = xyes; then
21935 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21936 please rerun configure with --disable-libtool" "$LINENO" 5
21938 support_static_dir=yes
21946 if test x$support_static_dir = xyes; then
21947 STATIC_DIR="static-bacula-dir"
21951 # Check whether --enable-static-cons was given.
21952 if test "${enable_static_cons+set}" = set; then :
21953 enableval=$enable_static_cons;
21954 if test x$enableval = xyes; then
21955 if test x$use_libtool = xyes; then
21956 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21957 please rerun configure with --disable-libtool" "$LINENO" 5
21959 support_static_cons=yes
21967 if test x$support_static_cons = xyes; then
21968 STATIC_CONS="static-bconsole"
21972 # Check whether --enable-client-only was given.
21973 if test "${enable_client_only+set}" = set; then :
21974 enableval=$enable_client_only;
21975 if test x$enableval = xyes; then
21976 build_client_only=yes
21984 if test x$build_client_only = xno; then
21991 # Check whether --enable-build-dird was given.
21992 if test "${enable_build_dird+set}" = set; then :
21993 enableval=$enable_build_dird;
21994 if test x$enableval = xno; then
22002 DIRD_DIR="src/dird"
22003 DIR_TOOLS="DIRTOOLS"
22008 # Check whether --enable-build-stored was given.
22009 if test "${enable_build_stored+set}" = set; then :
22010 enableval=$enable_build_stored;
22011 if test x$enableval = xno; then
22018 if test x$build_stored = xyes; then
22019 STORED_DIR="src/stored"
22025 # Check whether --enable-conio was given.
22026 if test "${enable_conio+set}" = set; then :
22027 enableval=$enable_conio;
22028 if test x$enableval = xno; then
22038 # Check whether --enable-ipv6 was given.
22039 if test "${enable_ipv6+set}" = set; then :
22040 enableval=$enable_ipv6;
22041 if test x$enableval = xno; then
22049 if test x$support_ipv6 = xyes; then
22050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22051 /* end confdefs.h. */
22052 #include <sys/types.h>
22053 #include <sys/socket.h>
22054 #include <netinet/in.h>
22058 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22063 if ac_fn_c_try_link "$LINENO"; then :
22064 support_in6addr_any=yes
22066 support_in6addr_any=no
22068 rm -f core conftest.err conftest.$ac_objext \
22069 conftest$ac_exeext conftest.$ac_ext
22071 if test x$support_in6addr_any = xno ; then
22072 in6addr_any="const struct in6_addr in6addr_any"
22077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h. */
22079 #include <sys/types.h>
22080 #include <sys/socket.h>
22081 #include <netinet/in.h>
22085 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22090 if ac_fn_c_try_link "$LINENO"; then :
22095 rm -f core conftest.err conftest.$ac_objext \
22096 conftest$ac_exeext conftest.$ac_ext
22099 if test x$support_ipv6 = xyes; then
22101 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22104 if test x$support_in6addr_any = xno ; then
22106 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22112 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22113 if test "x$ac_cv_header_curses_h" = xyes; then :
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22116 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22117 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22118 $as_echo_n "(cached) " >&6
22120 ac_check_lib_save_LIBS=$LIBS
22121 LIBS="-ltinfo $LIBS"
22122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22123 /* end confdefs.h. */
22125 /* Override any GCC internal prototype to avoid an error.
22126 Use char because int might match the return type of a GCC
22127 builtin and then its argument prototype would still apply. */
22140 if ac_fn_c_try_link "$LINENO"; then :
22141 ac_cv_lib_tinfo_tgetent=yes
22143 ac_cv_lib_tinfo_tgetent=no
22145 rm -f core conftest.err conftest.$ac_objext \
22146 conftest$ac_exeext conftest.$ac_ext
22147 LIBS=$ac_check_lib_save_LIBS
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22150 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22151 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22156 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22157 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22158 $as_echo_n "(cached) " >&6
22160 ac_check_lib_save_LIBS=$LIBS
22161 LIBS="-lncurses $LIBS"
22162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22163 /* end confdefs.h. */
22165 /* Override any GCC internal prototype to avoid an error.
22166 Use char because int might match the return type of a GCC
22167 builtin and then its argument prototype would still apply. */
22180 if ac_fn_c_try_link "$LINENO"; then :
22181 ac_cv_lib_ncurses_tgetent=yes
22183 ac_cv_lib_ncurses_tgetent=no
22185 rm -f core conftest.err conftest.$ac_objext \
22186 conftest$ac_exeext conftest.$ac_ext
22187 LIBS=$ac_check_lib_save_LIBS
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22190 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22191 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22192 TERM_LIB="-lncurses"
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22196 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22197 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22198 $as_echo_n "(cached) " >&6
22200 ac_check_lib_save_LIBS=$LIBS
22201 LIBS="-ltermcap $LIBS"
22202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22203 /* end confdefs.h. */
22205 /* Override any GCC internal prototype to avoid an error.
22206 Use char because int might match the return type of a GCC
22207 builtin and then its argument prototype would still apply. */
22220 if ac_fn_c_try_link "$LINENO"; then :
22221 ac_cv_lib_termcap_tgetent=yes
22223 ac_cv_lib_termcap_tgetent=no
22225 rm -f core conftest.err conftest.$ac_objext \
22226 conftest$ac_exeext conftest.$ac_ext
22227 LIBS=$ac_check_lib_save_LIBS
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22230 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22231 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22232 TERM_LIB="-ltermcap"
22243 for ac_header in curses.h
22245 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22246 if test "x$ac_cv_header_curses_h" = xyes; then :
22247 cat >>confdefs.h <<_ACEOF
22248 #define HAVE_CURSES_H 1
22255 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22256 if test "x$ac_cv_header_term_h" = xyes; then :
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22258 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22259 if ${ac_cv_lib_curses_tgetent+:} false; then :
22260 $as_echo_n "(cached) " >&6
22262 ac_check_lib_save_LIBS=$LIBS
22263 LIBS="-lcurses $LIBS"
22264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22265 /* end confdefs.h. */
22267 /* Override any GCC internal prototype to avoid an error.
22268 Use char because int might match the return type of a GCC
22269 builtin and then its argument prototype would still apply. */
22282 if ac_fn_c_try_link "$LINENO"; then :
22283 ac_cv_lib_curses_tgetent=yes
22285 ac_cv_lib_curses_tgetent=no
22287 rm -f core conftest.err conftest.$ac_objext \
22288 conftest$ac_exeext conftest.$ac_ext
22289 LIBS=$ac_check_lib_save_LIBS
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22292 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22293 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22294 TERM_LIB="-lcurses"
22308 if test x$support_conio = xyes; then
22309 if test x$TERM_LIB != x; then
22310 CONS_LIBS=$TERM_LIB
22314 support_readline=no
22316 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22319 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22324 # Check whether --enable-readline was given.
22325 if test "${enable_readline+set}" = set; then :
22326 enableval=$enable_readline;
22327 if test x$enableval = xno; then
22328 support_readline=no
22337 if test x$support_readline = xyes; then
22339 # Check whether --with-readline was given.
22340 if test "${with_readline+set}" = set; then :
22341 withval=$with_readline;
22342 case "$with_readline" in
22347 if test -f ${with_readline}/readline.h; then
22348 CONS_INC="-I${with_readline}"
22349 CONS_LDFLAGS="-L$with_readline"
22350 elif test -f ${with_readline}/include/readline/readline.h; then
22351 CONS_INC="-I${with_readline}/include/readline"
22352 CONS_LDFLAGS="-L${with_readline}/lib"
22353 with_readline="${with_readline}/include/readline"
22355 with_readline="/usr/include/readline"
22358 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22359 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22360 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22363 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22365 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22371 echo "readline.h not found. readline turned off ..."
22383 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22384 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22387 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22390 CONS_INC="-I/usr/include/readline"
22391 CONS_LIBS="-lreadline ${TERM_LIB}"
22395 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22396 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22397 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22400 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22403 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22404 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22405 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22406 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22411 echo "readline.h not found. readline turned off ..."
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22439 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22440 if ${ac_cv_header_stat_broken+:} false; then :
22441 $as_echo_n "(cached) " >&6
22443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22444 /* end confdefs.h. */
22445 #include <sys/types.h>
22446 #include <sys/stat.h>
22448 #if defined S_ISBLK && defined S_IFDIR
22449 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22452 #if defined S_ISBLK && defined S_IFCHR
22453 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22456 #if defined S_ISLNK && defined S_IFREG
22457 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22460 #if defined S_ISSOCK && defined S_IFREG
22461 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22465 if ac_fn_c_try_compile "$LINENO"; then :
22466 ac_cv_header_stat_broken=no
22468 ac_cv_header_stat_broken=yes
22470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22473 $as_echo "$ac_cv_header_stat_broken" >&6; }
22474 if test $ac_cv_header_stat_broken = yes; then
22476 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22480 ac_header_dirent=no
22481 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22482 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22484 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22485 if eval \${$as_ac_Header+:} false; then :
22486 $as_echo_n "(cached) " >&6
22488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489 /* end confdefs.h. */
22490 #include <sys/types.h>
22502 if ac_fn_c_try_compile "$LINENO"; then :
22503 eval "$as_ac_Header=yes"
22505 eval "$as_ac_Header=no"
22507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22509 eval ac_res=\$$as_ac_Header
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22511 $as_echo "$ac_res" >&6; }
22512 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22513 cat >>confdefs.h <<_ACEOF
22514 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22517 ac_header_dirent=$ac_hdr; break
22521 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22522 if test $ac_header_dirent = dirent.h; then
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22524 $as_echo_n "checking for library containing opendir... " >&6; }
22525 if ${ac_cv_search_opendir+:} false; then :
22526 $as_echo_n "(cached) " >&6
22528 ac_func_search_save_LIBS=$LIBS
22529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22530 /* end confdefs.h. */
22532 /* Override any GCC internal prototype to avoid an error.
22533 Use char because int might match the return type of a GCC
22534 builtin and then its argument prototype would still apply. */
22547 for ac_lib in '' dir; do
22548 if test -z "$ac_lib"; then
22549 ac_res="none required"
22552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22554 if ac_fn_c_try_link "$LINENO"; then :
22555 ac_cv_search_opendir=$ac_res
22557 rm -f core conftest.err conftest.$ac_objext \
22559 if ${ac_cv_search_opendir+:} false; then :
22563 if ${ac_cv_search_opendir+:} false; then :
22566 ac_cv_search_opendir=no
22568 rm conftest.$ac_ext
22569 LIBS=$ac_func_search_save_LIBS
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22572 $as_echo "$ac_cv_search_opendir" >&6; }
22573 ac_res=$ac_cv_search_opendir
22574 if test "$ac_res" != no; then :
22575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22581 $as_echo_n "checking for library containing opendir... " >&6; }
22582 if ${ac_cv_search_opendir+:} false; then :
22583 $as_echo_n "(cached) " >&6
22585 ac_func_search_save_LIBS=$LIBS
22586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22587 /* end confdefs.h. */
22589 /* Override any GCC internal prototype to avoid an error.
22590 Use char because int might match the return type of a GCC
22591 builtin and then its argument prototype would still apply. */
22604 for ac_lib in '' x; do
22605 if test -z "$ac_lib"; then
22606 ac_res="none required"
22609 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22611 if ac_fn_c_try_link "$LINENO"; then :
22612 ac_cv_search_opendir=$ac_res
22614 rm -f core conftest.err conftest.$ac_objext \
22616 if ${ac_cv_search_opendir+:} false; then :
22620 if ${ac_cv_search_opendir+:} false; then :
22623 ac_cv_search_opendir=no
22625 rm conftest.$ac_ext
22626 LIBS=$ac_func_search_save_LIBS
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22629 $as_echo "$ac_cv_search_opendir" >&6; }
22630 ac_res=$ac_cv_search_opendir
22631 if test "$ac_res" != no; then :
22632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22638 for ac_func in strcasecmp select setenv putenv tcgetattr
22640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22642 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22643 cat >>confdefs.h <<_ACEOF
22644 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22650 for ac_func in lstat lchown lchmod futimes fchmod fchown
22652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22653 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22654 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22655 cat >>confdefs.h <<_ACEOF
22656 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22662 for ac_func in nanosleep nl_langinfo
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 be64toh htobe64
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_header in varargs.h
22688 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22689 if test "x$ac_cv_header_varargs_h" = xyes; then :
22690 cat >>confdefs.h <<_ACEOF
22691 #define HAVE_VARARGS_H 1
22700 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22701 if test "x$ac_cv_func_socket" = xyes; then :
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22703 $as_echo "using libc's socket" >&6; }
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22706 $as_echo_n "checking for socket in -lxnet... " >&6; }
22707 if ${ac_cv_lib_xnet_socket+:} false; then :
22708 $as_echo_n "(cached) " >&6
22710 ac_check_lib_save_LIBS=$LIBS
22711 LIBS="-lxnet $LIBS"
22712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713 /* end confdefs.h. */
22715 /* Override any GCC internal prototype to avoid an error.
22716 Use char because int might match the return type of a GCC
22717 builtin and then its argument prototype would still apply. */
22730 if ac_fn_c_try_link "$LINENO"; then :
22731 ac_cv_lib_xnet_socket=yes
22733 ac_cv_lib_xnet_socket=no
22735 rm -f core conftest.err conftest.$ac_objext \
22736 conftest$ac_exeext conftest.$ac_ext
22737 LIBS=$ac_check_lib_save_LIBS
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22740 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22741 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22742 cat >>confdefs.h <<_ACEOF
22743 #define HAVE_LIBXNET 1
22746 LIBS="-lxnet $LIBS"
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22751 $as_echo_n "checking for socket in -lsocket... " >&6; }
22752 if ${ac_cv_lib_socket_socket+:} false; then :
22753 $as_echo_n "(cached) " >&6
22755 ac_check_lib_save_LIBS=$LIBS
22756 LIBS="-lsocket $LIBS"
22757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22758 /* end confdefs.h. */
22760 /* Override any GCC internal prototype to avoid an error.
22761 Use char because int might match the return type of a GCC
22762 builtin and then its argument prototype would still apply. */
22775 if ac_fn_c_try_link "$LINENO"; then :
22776 ac_cv_lib_socket_socket=yes
22778 ac_cv_lib_socket_socket=no
22780 rm -f core conftest.err conftest.$ac_objext \
22781 conftest$ac_exeext conftest.$ac_ext
22782 LIBS=$ac_check_lib_save_LIBS
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22785 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22786 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22787 cat >>confdefs.h <<_ACEOF
22788 #define HAVE_LIBSOCKET 1
22791 LIBS="-lsocket $LIBS"
22795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22796 $as_echo_n "checking for socket in -linet... " >&6; }
22797 if ${ac_cv_lib_inet_socket+:} false; then :
22798 $as_echo_n "(cached) " >&6
22800 ac_check_lib_save_LIBS=$LIBS
22801 LIBS="-linet $LIBS"
22802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22803 /* end confdefs.h. */
22805 /* Override any GCC internal prototype to avoid an error.
22806 Use char because int might match the return type of a GCC
22807 builtin and then its argument prototype would still apply. */
22820 if ac_fn_c_try_link "$LINENO"; then :
22821 ac_cv_lib_inet_socket=yes
22823 ac_cv_lib_inet_socket=no
22825 rm -f core conftest.err conftest.$ac_objext \
22826 conftest$ac_exeext conftest.$ac_ext
22827 LIBS=$ac_check_lib_save_LIBS
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22830 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22831 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22832 cat >>confdefs.h <<_ACEOF
22833 #define HAVE_LIBINET 1
22836 LIBS="-linet $LIBS"
22846 # Check whether --with-tcp-wrappers was given.
22847 if test "${with_tcp_wrappers+set}" = set; then :
22848 withval=$with_tcp_wrappers;
22849 if test "x$withval" != "xno" ; then
22851 LIBS="$saved_LIBS -lwrap"
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22853 $as_echo_n "checking for library containing nanosleep... " >&6; }
22854 if ${ac_cv_search_nanosleep+:} false; then :
22855 $as_echo_n "(cached) " >&6
22857 ac_func_search_save_LIBS=$LIBS
22858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22859 /* end confdefs.h. */
22861 /* Override any GCC internal prototype to avoid an error.
22862 Use char because int might match the return type of a GCC
22863 builtin and then its argument prototype would still apply. */
22871 return nanosleep ();
22876 for ac_lib in '' rt; do
22877 if test -z "$ac_lib"; then
22878 ac_res="none required"
22881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22883 if ac_fn_c_try_link "$LINENO"; then :
22884 ac_cv_search_nanosleep=$ac_res
22886 rm -f core conftest.err conftest.$ac_objext \
22888 if ${ac_cv_search_nanosleep+:} false; then :
22892 if ${ac_cv_search_nanosleep+:} false; then :
22895 ac_cv_search_nanosleep=no
22897 rm conftest.$ac_ext
22898 LIBS=$ac_func_search_save_LIBS
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22901 $as_echo "$ac_cv_search_nanosleep" >&6; }
22902 ac_res=$ac_cv_search_nanosleep
22903 if test "$ac_res" != no; then :
22904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22909 $as_echo_n "checking for libwrap... " >&6; }
22910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22911 /* end confdefs.h. */
22913 #include <sys/types.h>
22915 int deny_severity = 0;
22916 int allow_severity = 0;
22917 struct request_info *req;
22929 if ac_fn_c_try_link "$LINENO"; then :
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22932 $as_echo "yes" >&6; }
22934 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22942 LIBS="$saved_LIBS -lwrap -lnsl"
22943 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22945 /* end confdefs.h. */
22947 #include <sys/types.h>
22949 int deny_severity = 0;
22950 int allow_severity = 0;
22951 struct request_info *req;
22963 if ac_fn_c_try_link "$LINENO"; then :
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22966 $as_echo "yes" >&6; }
22968 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22976 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22980 rm -f core conftest.err conftest.$ac_objext \
22981 conftest$ac_exeext conftest.$ac_ext
22985 rm -f core conftest.err conftest.$ac_objext \
22986 conftest$ac_exeext conftest.$ac_ext
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22994 $as_echo_n "checking for OpenSSL... " >&6; }
22996 # Check whether --with-openssl was given.
22997 if test "${with_openssl+set}" = set; then :
22998 withval=$with_openssl;
22999 with_openssl_directory=${withval}
23005 if test "x$with_openssl_directory" != "xno"; then
23006 OPENSSL_LIBS="-lssl -lcrypto"
23009 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23011 # Make sure the $with_openssl_directory also makes sense
23013 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23014 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23015 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23019 saved_LIBS="${LIBS}"
23020 saved_CFLAGS="${CFLAGS}"
23021 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23022 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23025 /* end confdefs.h. */
23027 #include <openssl/ssl.h>
23033 CRYPTO_set_id_callback(NULL);
23039 if ac_fn_c_try_link "$LINENO"; then :
23042 support_crypto="yes"
23047 support_crypto="no"
23051 rm -f core conftest.err conftest.$ac_objext \
23052 conftest$ac_exeext conftest.$ac_ext
23054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23055 /* end confdefs.h. */
23057 #include <openssl/evp.h>
23069 if ac_fn_c_try_link "$LINENO"; then :
23071 ac_cv_openssl_sha2="yes"
23075 ac_cv_openssl_sha2="no"
23079 rm -f core conftest.err conftest.$ac_objext \
23080 conftest$ac_exeext conftest.$ac_ext
23082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083 /* end confdefs.h. */
23085 #include <openssl/evp.h>
23097 if ac_fn_c_try_link "$LINENO"; then :
23099 ac_cv_openssl_export="no"
23103 ac_cv_openssl_export="yes"
23107 rm -f core conftest.err conftest.$ac_objext \
23108 conftest$ac_exeext conftest.$ac_ext
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23111 $as_echo "$support_tls" >&6; }
23112 if test "$support_tls" = "yes"; then
23114 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23117 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23120 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23124 if test "$ac_cv_openssl_sha2" = "yes"; then
23126 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23130 if test "$ac_cv_openssl_export" = "yes"; then
23132 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23136 if test "$support_crypto" = "yes"; then
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23138 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23139 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23140 $as_echo_n "(cached) " >&6
23142 ac_check_lib_save_LIBS=$LIBS
23143 LIBS="-lcrypto $LIBS"
23144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23145 /* end confdefs.h. */
23147 /* Override any GCC internal prototype to avoid an error.
23148 Use char because int might match the return type of a GCC
23149 builtin and then its argument prototype would still apply. */
23153 char EVP_PKEY_encrypt_old ();
23157 return EVP_PKEY_encrypt_old ();
23162 if ac_fn_c_try_link "$LINENO"; then :
23163 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23165 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23167 rm -f core conftest.err conftest.$ac_objext \
23168 conftest$ac_exeext conftest.$ac_ext
23169 LIBS=$ac_check_lib_save_LIBS
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23172 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23173 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23175 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23181 LIBS="${saved_LIBS}"
23182 CFLAGS="${saved_CFLAGS}"
23185 support_crypto="no"
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23187 $as_echo "$support_tls" >&6; }
23190 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23199 $as_echo_n "checking for library containing dlopen... " >&6; }
23200 if ${ac_cv_search_dlopen+:} false; then :
23201 $as_echo_n "(cached) " >&6
23203 ac_func_search_save_LIBS=$LIBS
23204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23205 /* end confdefs.h. */
23207 /* Override any GCC internal prototype to avoid an error.
23208 Use char because int might match the return type of a GCC
23209 builtin and then its argument prototype would still apply. */
23222 for ac_lib in '' dl; do
23223 if test -z "$ac_lib"; then
23224 ac_res="none required"
23227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23229 if ac_fn_c_try_link "$LINENO"; then :
23230 ac_cv_search_dlopen=$ac_res
23232 rm -f core conftest.err conftest.$ac_objext \
23234 if ${ac_cv_search_dlopen+:} false; then :
23238 if ${ac_cv_search_dlopen+:} false; then :
23241 ac_cv_search_dlopen=no
23243 rm conftest.$ac_ext
23244 LIBS=$ac_func_search_save_LIBS
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23247 $as_echo "$ac_cv_search_dlopen" >&6; }
23248 ac_res=$ac_cv_search_dlopen
23249 if test "$ac_res" != no; then :
23250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23255 working_dir=`eval echo /opt/bacula/working`
23257 # Check whether --with-working-dir was given.
23258 if test "${with_working_dir+set}" = set; then :
23259 withval=$with_working_dir;
23260 if test "x$withval" != "xno" ; then
23261 working_dir=$withval
23272 # Check whether --with-archivedir was given.
23273 if test "${with_archivedir+set}" = set; then :
23274 withval=$with_archivedir;
23275 if test "x$withval" != "xno" ; then
23276 archivedir=$withval
23285 basename=`hostname`
23287 # Check whether --with-basename was given.
23288 if test "${with_basename+set}" = set; then :
23289 withval=$with_basename;
23290 if test "x$withval" != "xno" ; then
23300 hostname=`uname -n | cut -d '.' -f 1`
23301 if test x${hostname} = x ; then
23302 hostname="localhost"
23304 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23305 if test ! $? = 0; then
23306 hostname="localhost"
23309 # Check whether --with-hostname was given.
23310 if test "${with_hostname+set}" = set; then :
23311 withval=$with_hostname;
23312 if test "x$withval" != "xno" ; then
23323 scriptdir=`eval echo ${sysconfdir}`
23325 # Check whether --with-scriptdir was given.
23326 if test "${with_scriptdir+set}" = set; then :
23327 withval=$with_scriptdir;
23328 if test "x$withval" != "xno" ; then
23339 bsrdir=`eval echo /opt/bacula/bsr`
23341 # Check whether --with-bsrdir was given.
23342 if test "${with_bsrdir+set}" = set; then :
23343 withval=$with_bsrdir;
23344 if test "x$withval" != "xno" ; then
23354 logdir=`eval echo /opt/bacula/log`
23356 # Check whether --with-logdir was given.
23357 if test "${with_logdir+set}" = set; then :
23358 withval=$with_logdir;
23359 if test "x$withval" != "xno" ; then
23370 # ------------------------------------------
23371 # Where to place plugindir (plugin files)
23372 # ------------------------------------------
23373 plugindir=`eval echo ${libdir}`
23375 # Check whether --with-plugindir was given.
23376 if test "${with_plugindir+set}" = set; then :
23377 withval=$with_plugindir;
23378 if test "x$withval" != "xno" ; then
23389 dump_email=root@localhost
23391 # Check whether --with-dump-email was given.
23392 if test "${with_dump_email+set}" = set; then :
23393 withval=$with_dump_email;
23394 if test "x$withval" != "xno" ; then
23395 dump_email=$withval
23404 job_email=root@localhost
23406 # Check whether --with-job-email was given.
23407 if test "${with_job_email+set}" = set; then :
23408 withval=$with_job_email;
23409 if test "x$withval" != "xno" ; then
23419 smtp_host=localhost
23421 # Check whether --with-smtp_host was given.
23422 if test "${with_smtp_host+set}" = set; then :
23423 withval=$with_smtp_host;
23424 if test "x$withval" != "xno" ; then
23436 # Check whether --with-pid-dir was given.
23437 if test "${with_pid_dir+set}" = set; then :
23438 withval=$with_pid_dir;
23439 if test "x$withval" != "xno" ; then
23447 cat >>confdefs.h <<_ACEOF
23448 #define _PATH_BACULA_PIDDIR "$piddir"
23453 subsysdir=/var/run/subsys
23454 if test -d /var/run/subsys; then
23455 subsysdir=/var/run/subsys
23456 elif test -d /var/lock/subsys; then
23457 subsysdir=/var/lock/subsys
23459 subsysdir=/var/run/subsys
23462 # Check whether --with-subsys-dir was given.
23463 if test "${with_subsys_dir+set}" = set; then :
23464 withval=$with_subsys_dir;
23465 if test "x$withval" != "xno" ; then
23477 # Check whether --with-baseport was given.
23478 if test "${with_baseport+set}" = set; then :
23479 withval=$with_baseport;
23480 if test "x$withval" != "xno" ; then
23489 dir_port=`expr $baseport`
23490 fd_port=`expr $baseport + 1`
23491 sd_port=`expr $fd_port + 1`
23499 # Check whether --with-dir-password was given.
23500 if test "${with_dir_password+set}" = set; then :
23501 withval=$with_dir_password;
23502 if test "x$withval" != "xno" ; then
23503 dir_password=$withval
23510 if test "x$dir_password" = "x" ; then
23511 if test "x$OPENSSL" = "xnone" ; then
23512 key=`autoconf/randpass 33`
23514 key=`openssl rand -base64 33`
23521 # Check whether --with-fd-password was given.
23522 if test "${with_fd_password+set}" = set; then :
23523 withval=$with_fd_password;
23524 if test "x$withval" != "xno" ; then
23525 fd_password=$withval
23532 if test "x$fd_password" = "x" ; then
23533 if test "x$OPENSSL" = "xnone" ; then
23534 key=`autoconf/randpass 37`
23536 key=`openssl rand -base64 33`
23543 # Check whether --with-sd-password was given.
23544 if test "${with_sd_password+set}" = set; then :
23545 withval=$with_sd_password;
23546 if test "x$withval" != "xno" ; then
23547 sd_password=$withval
23554 if test "x$sd_password" = "x" ; then
23555 if test "x$OPENSSL" = "xnone" ; then
23556 key=`autoconf/randpass 41`
23558 key=`openssl rand -base64 33`
23565 # Check whether --with-mon-dir-password was given.
23566 if test "${with_mon_dir_password+set}" = set; then :
23567 withval=$with_mon_dir_password;
23568 if test "x$withval" != "xno" ; then
23569 mon_dir_password=$withval
23576 if test "x$mon_dir_password" = "x" ; then
23577 if test "x$OPENSSL" = "xnone" ; then
23578 key=`autoconf/randpass 33`
23580 key=`openssl rand -base64 33`
23582 mon_dir_password=$key
23587 # Check whether --with-mon-fd-password was given.
23588 if test "${with_mon_fd_password+set}" = set; then :
23589 withval=$with_mon_fd_password;
23590 if test "x$withval" != "xno" ; then
23591 mon_fd_password=$withval
23598 if test "x$mon_fd_password" = "x" ; then
23599 if test "x$OPENSSL" = "xnone" ; then
23600 key=`autoconf/randpass 37`
23602 key=`openssl rand -base64 33`
23604 mon_fd_password=$key
23609 # Check whether --with-mon-sd-password was given.
23610 if test "${with_mon_sd_password+set}" = set; then :
23611 withval=$with_mon_sd_password;
23612 if test "x$withval" != "xno" ; then
23613 mon_sd_password=$withval
23620 if test "x$mon_sd_password" = "x" ; then
23621 if test "x$OPENSSL" = "xnone" ; then
23622 key=`autoconf/randpass 41`
23624 key=`openssl rand -base64 33`
23626 mon_sd_password=$key
23638 # Check whether --with-db_name was given.
23639 if test "${with_db_name+set}" = set; then :
23640 withval=$with_db_name;
23641 if test "x$withval" != "x" ; then
23652 # Check whether --with-db_user was given.
23653 if test "${with_db_user+set}" = set; then :
23654 withval=$with_db_user;
23655 if test "x$withval" != "x" ; then
23666 # Check whether --with-db_password was given.
23667 if test "${with_db_password+set}" = set; then :
23668 withval=$with_db_password;
23669 if test "x$withval" != "x" ; then
23670 db_password=$withval
23680 # Check whether --with-db_port was given.
23681 if test "${with_db_port+set}" = set; then :
23682 withval=$with_db_port;
23683 if test "x$withval" != "x" ; then
23694 # Check whether --with-db_ssl_options was given.
23695 if test "${with_db_ssl_options+set}" = set; then :
23696 withval=$with_db_ssl_options;
23697 if test "x$withval" != "x" ; then
23698 db_ssl_options=$withval
23707 # Handle users and groups for each daemon
23711 # Check whether --with-dir_user was given.
23712 if test "${with_dir_user+set}" = set; then :
23713 withval=$with_dir_user;
23714 if test "x$withval" != "x" ; then
23724 # Check whether --with-dir_group was given.
23725 if test "${with_dir_group+set}" = set; then :
23726 withval=$with_dir_group;
23727 if test "x$withval" != "x" ; then
23737 # Check whether --with-sd_user was given.
23738 if test "${with_sd_user+set}" = set; then :
23739 withval=$with_sd_user;
23740 if test "x$withval" != "x" ; then
23750 # Check whether --with-sd_group was given.
23751 if test "${with_sd_group+set}" = set; then :
23752 withval=$with_sd_group;
23753 if test "x$withval" != "x" ; then
23763 # Check whether --with-fd_user was given.
23764 if test "${with_fd_user+set}" = set; then :
23765 withval=$with_fd_user;
23766 if test "x$withval" != "x" ; then
23776 # Check whether --with-fd_group was given.
23777 if test "${with_fd_group+set}" = set; then :
23778 withval=$with_fd_group;
23779 if test "x$withval" != "x" ; then
23796 # Check whether --with-sbin-perm was given.
23797 if test "${with_sbin_perm+set}" = set; then :
23798 withval=$with_sbin_perm;
23799 if test "x$withval" != "x" ; then
23809 support_batch_insert=yes
23810 # Check whether --enable-batch-insert was given.
23811 if test "${enable_batch_insert+set}" = set; then :
23812 enableval=$enable_batch_insert;
23813 if test x$enableval = xno; then
23814 support_batch_insert=no
23821 if test x$support_batch_insert = xyes; then
23823 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23832 $as_echo_n "checking for PostgreSQL support... " >&6; }
23834 # Check whether --with-postgresql was given.
23835 if test "${with_postgresql+set}" = set; then :
23836 withval=$with_postgresql;
23837 if test "$withval" != "no"; then
23838 if test "$withval" = "yes"; then
23839 PG_CONFIG=`which pg_config 2>/dev/null`
23840 if test -n "$PG_CONFIG"; then
23841 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23842 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23843 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23844 elif test -f /usr/local/include/libpq-fe.h; then
23845 POSTGRESQL_INCDIR=/usr/local/include
23846 if test -d /usr/local/lib64; then
23847 POSTGRESQL_LIBDIR=/usr/local/lib64
23849 POSTGRESQL_LIBDIR=/usr/local/lib
23851 POSTGRESQL_BINDIR=/usr/local/bin
23852 elif test -f /usr/include/libpq-fe.h; then
23853 POSTGRESQL_INCDIR=/usr/include
23854 if test -d /usr/lib64; then
23855 POSTGRESQL_LIBDIR=/usr/lib64
23857 POSTGRESQL_LIBDIR=/usr/lib
23859 POSTGRESQL_BINDIR=/usr/bin
23860 elif test -f /usr/include/pgsql/libpq-fe.h; then
23861 POSTGRESQL_INCDIR=/usr/include/pgsql
23862 if test -d /usr/lib64/pgsql; then
23863 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23865 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23867 POSTGRESQL_BINDIR=/usr/bin
23868 elif test -f /usr/include/postgresql/libpq-fe.h; then
23869 POSTGRESQL_INCDIR=/usr/include/postgresql
23870 if test -d /usr/lib64/postgresql; then
23871 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23873 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23875 POSTGRESQL_BINDIR=/usr/bin
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23878 $as_echo "no" >&6; }
23879 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23881 elif test -f $withval/include/libpq-fe.h; then
23882 POSTGRESQL_INCDIR=$withval/include
23883 POSTGRESQL_LIBDIR=$withval/lib
23884 POSTGRESQL_BINDIR=$withval/bin
23885 elif test -f $withval/include/postgresql/libpq-fe.h; then
23886 POSTGRESQL_INCDIR=$withval/include/postgresql
23887 if test -d $withval/lib64; then
23888 POSTGRESQL_LIBDIR=$withval/lib64
23890 POSTGRESQL_LIBDIR=$withval/lib
23892 POSTGRESQL_BINDIR=$withval/bin
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23895 $as_echo "no" >&6; }
23896 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23899 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23902 $as_echo "yes" >&6; }
23904 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23905 if test x$use_libtool != xno; then
23906 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23908 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23910 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23911 if test "x$ac_cv_func_crypt" = xyes; then :
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23915 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23916 if ${ac_cv_lib_crypt_crypt+:} false; then :
23917 $as_echo_n "(cached) " >&6
23919 ac_check_lib_save_LIBS=$LIBS
23920 LIBS="-lcrypt $LIBS"
23921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23922 /* end confdefs.h. */
23924 /* Override any GCC internal prototype to avoid an error.
23925 Use char because int might match the return type of a GCC
23926 builtin and then its argument prototype would still apply. */
23939 if ac_fn_c_try_link "$LINENO"; then :
23940 ac_cv_lib_crypt_crypt=yes
23942 ac_cv_lib_crypt_crypt=no
23944 rm -f core conftest.err conftest.$ac_objext \
23945 conftest$ac_exeext conftest.$ac_ext
23946 LIBS=$ac_check_lib_save_LIBS
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23949 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23950 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23951 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23956 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23957 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23959 if test -z "${db_backends}"; then
23960 db_backends="PostgreSQL"
23962 db_backends="${db_backends} PostgreSQL"
23964 if test -z "${DB_BACKENDS}"; then
23965 DB_BACKENDS="postgresql"
23967 DB_BACKENDS="${DB_BACKENDS} postgresql"
23970 if test "x$support_batch_insert" = "xyes"; then
23971 saved_LDFLAGS="${LDFLAGS}"
23972 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23973 saved_LIBS="${LIBS}"
23974 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23975 LIBS="${saved_LIBS} -lcrypt"
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23979 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23980 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23981 $as_echo_n "(cached) " >&6
23983 ac_check_lib_save_LIBS=$LIBS
23985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23986 /* end confdefs.h. */
23988 /* Override any GCC internal prototype to avoid an error.
23989 Use char because int might match the return type of a GCC
23990 builtin and then its argument prototype would still apply. */
23994 char PQisthreadsafe ();
23998 return PQisthreadsafe ();
24003 if ac_fn_c_try_link "$LINENO"; then :
24004 ac_cv_lib_pq_PQisthreadsafe=yes
24006 ac_cv_lib_pq_PQisthreadsafe=no
24008 rm -f core conftest.err conftest.$ac_objext \
24009 conftest$ac_exeext conftest.$ac_ext
24010 LIBS=$ac_check_lib_save_LIBS
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24013 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24014 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24016 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24021 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24022 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24023 $as_echo_n "(cached) " >&6
24025 ac_check_lib_save_LIBS=$LIBS
24027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24028 /* end confdefs.h. */
24030 /* Override any GCC internal prototype to avoid an error.
24031 Use char because int might match the return type of a GCC
24032 builtin and then its argument prototype would still apply. */
24036 char PQputCopyData ();
24040 return PQputCopyData ();
24045 if ac_fn_c_try_link "$LINENO"; then :
24046 ac_cv_lib_pq_PQputCopyData=yes
24048 ac_cv_lib_pq_PQputCopyData=no
24050 rm -f core conftest.err conftest.$ac_objext \
24051 conftest$ac_exeext conftest.$ac_ext
24052 LIBS=$ac_check_lib_save_LIBS
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24055 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24056 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24058 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24062 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24063 if test $support_batch_insert = yes ; then
24065 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24067 if test -z "${batch_insert_db_backends}"; then
24068 batch_insert_db_backends="PostgreSQL"
24070 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24075 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24077 echo "WARNING: Your PostgreSQL client library is too old to detect "
24078 echo "if it was compiled with --enable-thread-safety, consider to "
24079 echo "upgrade it in order to avoid problems with Batch insert mode"
24082 LDFLAGS="${saved_LDFLAGS}"
24083 LIBS="${saved_LIBS}"
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24087 $as_echo "no" >&6; }
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24093 $as_echo "no" >&6; }
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24105 $as_echo_n "checking for MySQL support... " >&6; }
24107 # Check whether --with-mysql was given.
24108 if test "${with_mysql+set}" = set; then :
24109 withval=$with_mysql;
24110 if test "$withval" != "no"; then
24111 if test "$withval" = "yes"; then
24113 # This code is very broken on older systems
24115 # MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24116 # if test "x${MYSQL_CONFIG}" != x; then
24117 # MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24118 # ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24119 # if test $? = 0 ; then
24120 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24121 # MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24123 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r | sed -e 's/.*-L//' -e 's/ .*//'`
24124 # MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24127 # if [ "x${MYSQL_LIB}" = x -o "x${MYSQL_INCDIR}" = x ]; then
24128 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24129 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24130 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24131 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24132 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24134 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24136 MYSQL_BINDIR=/usr/local/mysql/bin
24137 elif test -f /usr/include/mysql/mysql.h; then
24138 MYSQL_INCDIR=/usr/include/mysql
24139 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24140 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24141 MYSQL_LIBDIR=/usr/lib64/mysql
24142 elif test -f /usr/lib64/libmysqlclient_r.a \
24143 -o -f /usr/lib64/libmysqlclient_r.so; then
24144 MYSQL_LIBDIR=/usr/lib64
24145 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24146 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24147 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24148 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24149 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24150 MYSQL_LIBDIR=/usr/lib/mysql
24152 MYSQL_LIBDIR=/usr/lib
24154 MYSQL_BINDIR=/usr/bin
24155 elif test -f /usr/include/mysql.h; then
24156 MYSQL_INCDIR=/usr/include
24157 if test -f /usr/lib64/libmysqlclient_r.a \
24158 -o -f /usr/lib64/libmysqlclient_r.so; then
24159 MYSQL_LIBDIR=/usr/lib64
24161 MYSQL_LIBDIR=/usr/lib
24163 MYSQL_BINDIR=/usr/bin
24164 elif test -f /usr/local/include/mysql/mysql.h; then
24165 MYSQL_INCDIR=/usr/local/include/mysql
24166 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24167 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24168 MYSQL_LIBDIR=/usr/local/lib64/mysql
24170 MYSQL_LIBDIR=/usr/local/lib/mysql
24172 MYSQL_BINDIR=/usr/local/bin
24173 elif test -f /usr/local/include/mysql.h; then
24174 MYSQL_INCDIR=/usr/local/include
24175 if test -f /usr/local/lib64/libmysqlclient_r.a \
24176 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24177 MYSQL_LIBDIR=/usr/local/lib64
24179 MYSQL_LIBDIR=/usr/local/lib
24181 MYSQL_BINDIR=/usr/local/bin
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24184 $as_echo "no" >&6; }
24185 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24188 if test -f $withval/include/mysql/mysql.h; then
24189 MYSQL_INCDIR=$withval/include/mysql
24190 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24191 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24192 MYSQL_LIBDIR=$withval/lib64/mysql
24193 elif test -f $withval/lib64/libmysqlclient_r.a \
24194 -o -f $withval/lib64/libmysqlclient_r.so; then
24195 MYSQL_LIBDIR=$withval/lib64
24196 elif test -f $withval/lib/libmysqlclient_r.a \
24197 -o -f $withval/lib/libmysqlclient_r.so; then
24198 MYSQL_LIBDIR=$withval/lib
24200 MYSQL_LIBDIR=$withval/lib/mysql
24202 MYSQL_BINDIR=$withval/bin
24203 elif test -f $withval/include/mysql.h; then
24204 MYSQL_INCDIR=$withval/include
24205 if test -f $withval/lib64/libmysqlclient_r.a \
24206 -o -f $withval/lib64/libmysqlclient_r.so; then
24207 MYSQL_LIBDIR=$withval/lib64
24209 MYSQL_LIBDIR=$withval/lib
24211 MYSQL_BINDIR=$withval/bin
24212 elif test -f $withval/mysql.h; then
24213 MYSQL_INCDIR=$withval
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24215 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24216 case $MYSQL_INCDIR in
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24219 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24220 if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24221 -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24223 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24224 MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24226 MYSQL_BINDIR=$prefix/lib/mysql55/bin
24229 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24230 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24231 if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24232 -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24234 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24235 MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24237 MYSQL_BINDIR=$prefix/lib/mysql51/bin
24240 if test -z "${MYSQL_LIBDIR}" ; then
24241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24242 $as_echo "no" >&6; }
24243 as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24247 $as_echo "no" >&6; }
24248 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24251 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24252 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24253 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24254 if test x$use_libtool != xno; then
24255 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24257 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24259 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24261 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24264 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24267 $as_echo "yes" >&6; }
24269 if test -z "${db_backends}" ; then
24270 db_backends="MySQL"
24272 db_backends="${db_backends} MySQL"
24274 if test -z "${DB_BACKENDS}" ; then
24275 DB_BACKENDS="mysql"
24277 DB_BACKENDS="${DB_BACKENDS} mysql"
24280 if test "x$support_batch_insert" = "xyes"; then
24281 saved_LDFLAGS="${LDFLAGS}"
24282 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24283 saved_LIBS="${LIBS}"
24284 LIBS="${saved_LIBS} -lz"
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24287 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24288 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24289 $as_echo_n "(cached) " >&6
24291 ac_check_lib_save_LIBS=$LIBS
24292 LIBS="-lmysqlclient_r $LIBS"
24293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24294 /* end confdefs.h. */
24296 /* Override any GCC internal prototype to avoid an error.
24297 Use char because int might match the return type of a GCC
24298 builtin and then its argument prototype would still apply. */
24302 char mysql_thread_safe ();
24306 return mysql_thread_safe ();
24311 if ac_fn_c_try_link "$LINENO"; then :
24312 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24314 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24316 rm -f core conftest.err conftest.$ac_objext \
24317 conftest$ac_exeext conftest.$ac_ext
24318 LIBS=$ac_check_lib_save_LIBS
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24321 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24322 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24324 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24328 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24329 if test -z "${batch_insert_db_backends}"; then
24330 batch_insert_db_backends="MySQL"
24332 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24336 LDFLAGS="${saved_LDFLAGS}"
24337 LIBS="${saved_LIBS}"
24340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24341 $as_echo "no" >&6; }
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24347 $as_echo "no" >&6; }
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24353 $as_echo_n "checking for MySQL embedded support... " >&6; }
24355 # Check whether --with-embedded-mysql was given.
24356 if test "${with_embedded_mysql+set}" = set; then :
24357 withval=$with_embedded_mysql;
24358 if test "$withval" != "no"; then
24359 if test "$withval" = "yes"; then
24360 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24361 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24362 if test -d /usr/local/mysql/lib64/mysql; then
24363 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24365 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24367 MYSQL_BINDIR=/usr/local/mysql/bin
24368 elif test -f /usr/include/mysql/mysql.h; then
24369 MYSQL_INCDIR=/usr/include/mysql
24370 if test -d /usr/lib64/mysql; then
24371 MYSQL_LIBDIR=/usr/lib64/mysql
24373 MYSQL_LIBDIR=/usr/lib/mysql
24375 MYSQL_BINDIR=/usr/bin
24376 elif test -f /usr/include/mysql.h; then
24377 MYSQL_INCDIR=/usr/include
24378 if test -d /usr/lib64; then
24379 MYSQL_LIBDIR=/usr/lib64
24381 MYSQL_LIBDIR=/usr/lib
24383 MYSQL_BINDIR=/usr/bin
24384 elif test -f /usr/local/include/mysql/mysql.h; then
24385 MYSQL_INCDIR=/usr/local/include/mysql
24386 if test -d /usr/local/lib64/mysql; then
24387 MYSQL_LIBDIR=/usr/local/lib64/mysql
24389 MYSQL_LIBDIR=/usr/local/lib/mysql
24391 MYSQL_BINDIR=/usr/local/bin
24392 elif test -f /usr/local/include/mysql.h; then
24393 MYSQL_INCDIR=/usr/local/include
24394 if test -d /usr/local/lib64; then
24395 MYSQL_LIBDIR=/usr/local/lib64
24397 MYSQL_LIBDIR=/usr/local/lib
24399 MYSQL_BINDIR=/usr/local/bin
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24402 $as_echo "no" >&6; }
24403 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24406 if test -f $withval/include/mysql/mysql.h; then
24407 MYSQL_INCDIR=$withval/include/mysql
24408 if test -d $withval/lib64/mysql; then
24409 MYSQL_LIBDIR=$withval/lib64/mysql
24411 MYSQL_LIBDIR=$withval/lib/mysql
24413 MYSQL_BINDIR=$withval/bin
24414 elif test -f $withval/include/mysql.h; then
24415 MYSQL_INCDIR=$withval/include
24416 if test -d $withval/lib64; then
24417 MYSQL_LIBDIR=$withval/lib64
24419 MYSQL_LIBDIR=$withval/lib
24421 MYSQL_BINDIR=$withval/bin
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24424 $as_echo "no" >&6; }
24425 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24428 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24429 if test x$use_libtool != xno; then
24430 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24432 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24434 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24435 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24438 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24441 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24444 $as_echo "yes" >&6; }
24446 if test -z "${db_backends}"; then
24447 db_backends="MySQL"
24449 db_backends="${db_backends} MySQL"
24451 if test -z "${DB_BACKENDS}"; then
24452 DB_BACKENDS="mysql"
24454 DB_BACKENDS="${DB_BACKENDS} mysql"
24457 if test "x$support_batch_insert" = "xyes"; then
24458 saved_LDFLAGS="${LDFLAGS}"
24459 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24460 saved_LIBS="${LIBS}"
24461 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24464 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24465 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24466 $as_echo_n "(cached) " >&6
24468 ac_check_lib_save_LIBS=$LIBS
24469 LIBS="-lmysqlclient_r $LIBS"
24470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24471 /* end confdefs.h. */
24473 /* Override any GCC internal prototype to avoid an error.
24474 Use char because int might match the return type of a GCC
24475 builtin and then its argument prototype would still apply. */
24479 char mysql_thread_safe ();
24483 return mysql_thread_safe ();
24488 if ac_fn_c_try_link "$LINENO"; then :
24489 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24491 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24493 rm -f core conftest.err conftest.$ac_objext \
24494 conftest$ac_exeext conftest.$ac_ext
24495 LIBS=$ac_check_lib_save_LIBS
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24498 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24499 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24501 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24505 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24506 if test -z "${batch_insert_db_backends}"; then
24507 batch_insert_db_backends="MySQL"
24509 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24513 LDFLAGS="${saved_LDFLAGS}"
24514 LIBS="${saved_LIBS}"
24517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24518 $as_echo "no" >&6; }
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24524 $as_echo "no" >&6; }
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24537 $as_echo_n "checking for SQLite3 support... " >&6; }
24539 # Check whether --with-sqlite3 was given.
24540 if test "${with_sqlite3+set}" = set; then :
24541 withval=$with_sqlite3;
24542 if test "$withval" != "no"; then
24543 if test "$withval" = "yes"; then
24544 if test -f /usr/local/include/sqlite3.h; then
24545 SQLITE_INCDIR=/usr/local/include
24546 if test -d /usr/local/lib64; then
24547 SQLITE_LIBDIR=/usr/local/lib64
24549 SQLITE_LIBDIR=/usr/local/lib
24551 SQLITE_BINDIR=/usr/local/bin
24552 elif test -f /usr/include/sqlite3.h; then
24553 SQLITE_INCDIR=/usr/include
24554 if test -d /usr/lib64; then
24555 SQLITE_LIBDIR=/usr/lib64
24557 SQLITE_LIBDIR=/usr/lib
24559 SQLITE_BINDIR=/usr/bin
24560 elif test -f $prefix/include/sqlite3.h; then
24561 SQLITE_INCDIR=$prefix/include
24562 if test -d $prefix/lib64; then
24563 SQLITE_LIBDIR=$prefix/lib64
24565 SQLITE_LIBDIR=$prefix/lib
24567 SQLITE_BINDIR=$prefix/bin
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24570 $as_echo "no" >&6; }
24571 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24574 if test -f $withval/sqlite3.h; then
24575 SQLITE_INCDIR=$withval
24576 SQLITE_LIBDIR=$withval
24577 SQLITE_BINDIR=$withval
24578 elif test -f $withval/include/sqlite3.h; then
24579 SQLITE_INCDIR=$withval/include
24580 if test -d $withval/lib64; then
24581 SQLITE_LIBDIR=$withval/lib64
24583 SQLITE_LIBDIR=$withval/lib
24585 SQLITE_BINDIR=$withval/bin
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24588 $as_echo "no" >&6; }
24589 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24592 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24593 if test x$use_libtool != xno; then
24594 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24596 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24598 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24599 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24602 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24605 $as_echo "yes" >&6; }
24607 if test -z "${db_backends}"; then
24608 db_backends="SQLite3"
24610 db_backends="${db_backends} SQLite3"
24612 if test -z "${DB_BACKENDS}"; then
24613 DB_BACKENDS="sqlite3"
24615 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24618 if test "x$support_batch_insert" = "xyes"; then
24619 saved_LDFLAGS="${LDFLAGS}"
24620 LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24623 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24624 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24625 $as_echo_n "(cached) " >&6
24627 ac_check_lib_save_LIBS=$LIBS
24628 LIBS="-lsqlite3 $LIBS"
24629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24630 /* end confdefs.h. */
24632 /* Override any GCC internal prototype to avoid an error.
24633 Use char because int might match the return type of a GCC
24634 builtin and then its argument prototype would still apply. */
24638 char sqlite3_threadsafe ();
24642 return sqlite3_threadsafe ();
24647 if ac_fn_c_try_link "$LINENO"; then :
24648 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24650 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24652 rm -f core conftest.err conftest.$ac_objext \
24653 conftest$ac_exeext conftest.$ac_ext
24654 LIBS=$ac_check_lib_save_LIBS
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24657 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24658 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24660 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24664 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24665 if test -z "${batch_insert_db_backends}"; then
24666 batch_insert_db_backends="SQLite3"
24668 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24672 LDFLAGS="${saved_LDFLAGS}"
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24676 $as_echo "no" >&6; }
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24682 $as_echo "no" >&6; }
24692 if test -z "${batch_insert_db_backends}"; then
24693 batch_insert_db_backends="None"
24696 if test "x${db_backends}" = "x" ; then
24699 echo "You have not specified either --enable-client-only or one of the"
24700 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24701 echo "This is not permitted. Please reconfigure."
24703 echo "Aborting the configuration ..."
24709 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24711 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24712 if test x$use_libtool = xno; then
24713 SHARED_CATALOG_TARGETS=""
24715 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24719 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24721 if test x$use_libtool = xno; then
24724 echo "You have specified two or more of the"
24725 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24726 echo "This is not permitted when not using libtool Please reconfigure."
24728 echo "Aborting the configuration ..."
24734 SHARED_CATALOG_TARGETS=""
24735 for db_type in ${DB_BACKENDS}
24737 if test -z "${SHARED_CATALOG_TARGETS}"; then
24738 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24740 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24746 if test x$use_libtool = xyes; then
24756 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24759 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24760 if test -z "$CCOPTS"; then
24761 CCOPTS='-g -O2 -Wall'
24768 largefile_support="no"
24770 # Check whether --enable-largefile was given.
24771 if test "${enable_largefile+set}" = set; then :
24772 enableval=$enable_largefile;
24775 if test "$enable_largefile" != no; then
24776 if test -n "$ac_tool_prefix"; then
24777 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24778 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24780 $as_echo_n "checking for $ac_word... " >&6; }
24781 if ${ac_cv_prog_GETCONF+:} false; then :
24782 $as_echo_n "(cached) " >&6
24784 if test -n "$GETCONF"; then
24785 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24788 for as_dir in $PATH
24791 test -z "$as_dir" && as_dir=.
24792 for ac_exec_ext in '' $ac_executable_extensions; do
24793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24794 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24804 GETCONF=$ac_cv_prog_GETCONF
24805 if test -n "$GETCONF"; then
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24807 $as_echo "$GETCONF" >&6; }
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24810 $as_echo "no" >&6; }
24815 if test -z "$ac_cv_prog_GETCONF"; then
24816 ac_ct_GETCONF=$GETCONF
24817 # Extract the first word of "getconf", so it can be a program name with args.
24818 set dummy getconf; ac_word=$2
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24820 $as_echo_n "checking for $ac_word... " >&6; }
24821 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24822 $as_echo_n "(cached) " >&6
24824 if test -n "$ac_ct_GETCONF"; then
24825 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24828 for as_dir in $PATH
24831 test -z "$as_dir" && as_dir=.
24832 for ac_exec_ext in '' $ac_executable_extensions; do
24833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24834 ac_cv_prog_ac_ct_GETCONF="getconf"
24835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24844 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24845 if test -n "$ac_ct_GETCONF"; then
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24847 $as_echo "$ac_ct_GETCONF" >&6; }
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24850 $as_echo "no" >&6; }
24853 if test "x$ac_ct_GETCONF" = x; then
24856 case $cross_compiling:$ac_tool_warned in
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24860 ac_tool_warned=yes ;;
24862 GETCONF=$ac_ct_GETCONF
24865 GETCONF="$ac_cv_prog_GETCONF"
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24869 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24870 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24871 $as_echo_n "(cached) " >&6
24873 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24874 ac_cv_sys_largefile_CFLAGS=no
24876 # IRIX 6.2 and later require cc -n32.
24877 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24878 if test "$GCC" != yes; then
24879 ac_cv_sys_largefile_CFLAGS=-n32
24882 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24884 /* end confdefs.h. */
24894 if ac_fn_c_try_link "$LINENO"; then :
24897 ac_cv_sys_largefile_CFLAGS=no
24899 rm -f core conftest.err conftest.$ac_objext \
24900 conftest$ac_exeext conftest.$ac_ext
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24906 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24908 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24909 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24910 $as_echo_n "(cached) " >&6
24912 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24913 ac_cv_sys_largefile_LDFLAGS=no
24917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24918 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24920 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24921 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24922 $as_echo_n "(cached) " >&6
24924 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24925 ac_cv_sys_largefile_LIBS=no
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24930 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24932 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24935 -D_FILE_OFFSET_BITS=*) ;;
24936 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24937 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24942 case "$CPPFLAGS" in
24943 '') CPPFLAGS="$ac_flag" ;;
24944 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24952 '') CFLAGS="$ac_flag" ;;
24953 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24958 case "$ac_cv_sys_largefile_LDFLAGS" in
24962 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24963 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24966 case "$ac_cv_sys_largefile_LIBS" in
24970 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24971 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24975 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24976 if ${ac_cv_sys_file_offset_bits+:} false; then :
24977 $as_echo_n "(cached) " >&6
24979 ac_cv_sys_file_offset_bits=no
24980 ac_cv_sys_file_offset_bits=64
24981 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24983 -D_FILE_OFFSET_BITS)
24984 ac_cv_sys_file_offset_bits=1 ;;
24985 -D_FILE_OFFSET_BITS=*)
24986 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24992 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24993 if test "$ac_cv_sys_file_offset_bits" != no; then
24995 cat >>confdefs.h <<_ACEOF
24996 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25001 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25002 if ${ac_cv_sys_largefile_source+:} false; then :
25003 $as_echo_n "(cached) " >&6
25005 ac_cv_sys_largefile_source=no
25006 ac_cv_sys_largefile_source=1
25007 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25009 -D_LARGEFILE_SOURCE)
25010 ac_cv_sys_largefile_source=1 ;;
25011 -D_LARGEFILE_SOURCE=*)
25012 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25018 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25019 if test "$ac_cv_sys_largefile_source" != no; then
25021 cat >>confdefs.h <<_ACEOF
25022 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25027 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25028 if ${ac_cv_sys_large_files+:} false; then :
25029 $as_echo_n "(cached) " >&6
25031 ac_cv_sys_large_files=no
25032 ac_cv_sys_large_files=1
25033 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25036 ac_cv_sys_large_files=1 ;;
25038 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25044 $as_echo "$ac_cv_sys_large_files" >&6; }
25045 if test "$ac_cv_sys_large_files" != no; then
25047 cat >>confdefs.h <<_ACEOF
25048 #define _LARGE_FILES $ac_cv_sys_large_files
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25056 $as_echo_n "checking for X... " >&6; }
25059 # Check whether --with-x was given.
25060 if test "${with_x+set}" = set; then :
25064 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25065 if test "x$with_x" = xno; then
25066 # The user explicitly disabled X.
25069 case $x_includes,$x_libraries in #(
25070 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25071 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25072 $as_echo_n "(cached) " >&6
25074 # One or both of the vars are not set, and there is no cached value.
25075 ac_x_includes=no ac_x_libraries=no
25076 rm -f -r conftest.dir
25077 if mkdir conftest.dir; then
25079 cat >Imakefile <<'_ACEOF'
25081 @echo incroot='${INCROOT}'
25083 @echo usrlibdir='${USRLIBDIR}'
25085 @echo libdir='${LIBDIR}'
25087 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25088 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25089 for ac_var in incroot usrlibdir libdir; do
25090 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25092 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25093 for ac_extension in a so sl dylib la dll; do
25094 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25095 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25096 ac_im_usrlibdir=$ac_im_libdir; break
25099 # Screen out bogus values from the imake configuration. They are
25100 # bogus both because they are the default anyway, and because
25101 # using them would break gcc on systems where it needs fixed includes.
25102 case $ac_im_incroot in
25103 /usr/include) ac_x_includes= ;;
25104 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25106 case $ac_im_usrlibdir in
25107 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25108 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25112 rm -f -r conftest.dir
25115 # Standard set of common directories for X headers.
25116 # Check X11 before X11Rn because it is often a symlink to the current release.
25130 /usr/local/X11/include
25131 /usr/local/X11R7/include
25132 /usr/local/X11R6/include
25133 /usr/local/X11R5/include
25134 /usr/local/X11R4/include
25136 /usr/local/include/X11
25137 /usr/local/include/X11R7
25138 /usr/local/include/X11R6
25139 /usr/local/include/X11R5
25140 /usr/local/include/X11R4
25144 /usr/XFree86/include/X11
25148 /usr/unsupported/include
25149 /usr/athena/include
25150 /usr/local/x11r5/include
25151 /usr/lpp/Xamples/include
25153 /usr/openwin/include
25154 /usr/openwin/share/include'
25156 if test "$ac_x_includes" = no; then
25157 # Guess where to find include files, by looking for Xlib.h.
25158 # First, try using that file with no special directory specified.
25159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25160 /* end confdefs.h. */
25161 #include <X11/Xlib.h>
25163 if ac_fn_c_try_cpp "$LINENO"; then :
25164 # We can compile using X headers with no special include directory.
25167 for ac_dir in $ac_x_header_dirs; do
25168 if test -r "$ac_dir/X11/Xlib.h"; then
25169 ac_x_includes=$ac_dir
25174 rm -f conftest.err conftest.i conftest.$ac_ext
25175 fi # $ac_x_includes = no
25177 if test "$ac_x_libraries" = no; then
25178 # Check for the libraries.
25179 # See if we find them without any special options.
25180 # Don't add to $LIBS permanently.
25183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25184 /* end confdefs.h. */
25185 #include <X11/Xlib.h>
25194 if ac_fn_c_try_link "$LINENO"; then :
25196 # We can link X programs with no special library path.
25200 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25202 # Don't even attempt the hair of trying to link an X program!
25203 for ac_extension in a so sl dylib la dll; do
25204 if test -r "$ac_dir/libX11.$ac_extension"; then
25205 ac_x_libraries=$ac_dir
25211 rm -f core conftest.err conftest.$ac_objext \
25212 conftest$ac_exeext conftest.$ac_ext
25213 fi # $ac_x_libraries = no
25215 case $ac_x_includes,$ac_x_libraries in #(
25216 no,* | *,no | *\'*)
25217 # Didn't find X, or a directory has "'" in its name.
25218 ac_cv_have_x="have_x=no";; #(
25220 # Record where we found X for the cache.
25221 ac_cv_have_x="have_x=yes\
25222 ac_x_includes='$ac_x_includes'\
25223 ac_x_libraries='$ac_x_libraries'"
25229 eval "$ac_cv_have_x"
25232 if test "$have_x" != yes; then
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25234 $as_echo "$have_x" >&6; }
25237 # If each of the values was on the command line, it overrides each guess.
25238 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25239 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25240 # Update the cache value to reflect the command line values.
25241 ac_cv_have_x="have_x=yes\
25242 ac_x_includes='$x_includes'\
25243 ac_x_libraries='$x_libraries'"
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25245 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25248 if test "$no_x" = yes; then
25249 # Not all programs may use this symbol, but it does not hurt to define it.
25251 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25253 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25255 if test -n "$x_includes"; then
25256 X_CFLAGS="$X_CFLAGS -I$x_includes"
25259 # It would also be nice to do this for all -L options, not just this one.
25260 if test -n "$x_libraries"; then
25261 X_LIBS="$X_LIBS -L$x_libraries"
25262 # For Solaris; some versions of Sun CC require a space after -R and
25263 # others require no space. Words are not sufficient . . . .
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25265 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25266 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25267 ac_xsave_c_werror_flag=$ac_c_werror_flag
25268 ac_c_werror_flag=yes
25269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25270 /* end confdefs.h. */
25280 if ac_fn_c_try_link "$LINENO"; then :
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25282 $as_echo "no" >&6; }
25283 X_LIBS="$X_LIBS -R$x_libraries"
25285 LIBS="$ac_xsave_LIBS -R $x_libraries"
25286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25287 /* end confdefs.h. */
25297 if ac_fn_c_try_link "$LINENO"; then :
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25299 $as_echo "yes" >&6; }
25300 X_LIBS="$X_LIBS -R $x_libraries"
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25303 $as_echo "neither works" >&6; }
25305 rm -f core conftest.err conftest.$ac_objext \
25306 conftest$ac_exeext conftest.$ac_ext
25308 rm -f core conftest.err conftest.$ac_objext \
25309 conftest$ac_exeext conftest.$ac_ext
25310 ac_c_werror_flag=$ac_xsave_c_werror_flag
25311 LIBS=$ac_xsave_LIBS
25314 # Check for system-dependent libraries X programs must link with.
25315 # Do this before checking for the system-independent R6 libraries
25316 # (-lICE), since we may need -lsocket or whatever for X linking.
25318 if test "$ISC" = yes; then
25319 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25321 # Martyn Johnson says this is needed for Ultrix, if the X
25322 # libraries were built with DECnet support. And Karl Berry says
25323 # the Alpha needs dnet_stub (dnet does not exist).
25324 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25326 /* end confdefs.h. */
25328 /* Override any GCC internal prototype to avoid an error.
25329 Use char because int might match the return type of a GCC
25330 builtin and then its argument prototype would still apply. */
25334 char XOpenDisplay ();
25338 return XOpenDisplay ();
25343 if ac_fn_c_try_link "$LINENO"; then :
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25347 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25348 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25349 $as_echo_n "(cached) " >&6
25351 ac_check_lib_save_LIBS=$LIBS
25352 LIBS="-ldnet $LIBS"
25353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25354 /* end confdefs.h. */
25356 /* Override any GCC internal prototype to avoid an error.
25357 Use char because int might match the return type of a GCC
25358 builtin and then its argument prototype would still apply. */
25366 return dnet_ntoa ();
25371 if ac_fn_c_try_link "$LINENO"; then :
25372 ac_cv_lib_dnet_dnet_ntoa=yes
25374 ac_cv_lib_dnet_dnet_ntoa=no
25376 rm -f core conftest.err conftest.$ac_objext \
25377 conftest$ac_exeext conftest.$ac_ext
25378 LIBS=$ac_check_lib_save_LIBS
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25381 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25382 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25383 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25386 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25388 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25389 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25390 $as_echo_n "(cached) " >&6
25392 ac_check_lib_save_LIBS=$LIBS
25393 LIBS="-ldnet_stub $LIBS"
25394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25395 /* end confdefs.h. */
25397 /* Override any GCC internal prototype to avoid an error.
25398 Use char because int might match the return type of a GCC
25399 builtin and then its argument prototype would still apply. */
25407 return dnet_ntoa ();
25412 if ac_fn_c_try_link "$LINENO"; then :
25413 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25415 ac_cv_lib_dnet_stub_dnet_ntoa=no
25417 rm -f core conftest.err conftest.$ac_objext \
25418 conftest$ac_exeext conftest.$ac_ext
25419 LIBS=$ac_check_lib_save_LIBS
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25422 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25423 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25424 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25429 rm -f core conftest.err conftest.$ac_objext \
25430 conftest$ac_exeext conftest.$ac_ext
25431 LIBS="$ac_xsave_LIBS"
25433 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25434 # to get the SysV transport functions.
25435 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25437 # The nsl library prevents programs from opening the X display
25438 # on Irix 5.2, according to T.E. Dickey.
25439 # The functions gethostbyname, getservbyname, and inet_addr are
25440 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25441 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25442 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25446 if test $ac_cv_func_gethostbyname = no; then
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25448 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25449 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25450 $as_echo_n "(cached) " >&6
25452 ac_check_lib_save_LIBS=$LIBS
25454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25455 /* end confdefs.h. */
25457 /* Override any GCC internal prototype to avoid an error.
25458 Use char because int might match the return type of a GCC
25459 builtin and then its argument prototype would still apply. */
25463 char gethostbyname ();
25467 return gethostbyname ();
25472 if ac_fn_c_try_link "$LINENO"; then :
25473 ac_cv_lib_nsl_gethostbyname=yes
25475 ac_cv_lib_nsl_gethostbyname=no
25477 rm -f core conftest.err conftest.$ac_objext \
25478 conftest$ac_exeext conftest.$ac_ext
25479 LIBS=$ac_check_lib_save_LIBS
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25482 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25483 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25484 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25487 if test $ac_cv_lib_nsl_gethostbyname = no; then
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25489 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25490 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25491 $as_echo_n "(cached) " >&6
25493 ac_check_lib_save_LIBS=$LIBS
25495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25496 /* end confdefs.h. */
25498 /* Override any GCC internal prototype to avoid an error.
25499 Use char because int might match the return type of a GCC
25500 builtin and then its argument prototype would still apply. */
25504 char gethostbyname ();
25508 return gethostbyname ();
25513 if ac_fn_c_try_link "$LINENO"; then :
25514 ac_cv_lib_bsd_gethostbyname=yes
25516 ac_cv_lib_bsd_gethostbyname=no
25518 rm -f core conftest.err conftest.$ac_objext \
25519 conftest$ac_exeext conftest.$ac_ext
25520 LIBS=$ac_check_lib_save_LIBS
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25523 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25524 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25525 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25531 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25532 # socket/setsockopt and other routines are undefined under SCO ODT
25533 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25534 # on later versions), says Simon Leinen: it contains gethostby*
25535 # variants that don't use the name server (or something). -lsocket
25536 # must be given before -lnsl if both are needed. We assume that
25537 # if connect needs -lnsl, so does gethostbyname.
25538 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25539 if test "x$ac_cv_func_connect" = xyes; then :
25543 if test $ac_cv_func_connect = no; then
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25545 $as_echo_n "checking for connect in -lsocket... " >&6; }
25546 if ${ac_cv_lib_socket_connect+:} false; then :
25547 $as_echo_n "(cached) " >&6
25549 ac_check_lib_save_LIBS=$LIBS
25550 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25552 /* end confdefs.h. */
25554 /* Override any GCC internal prototype to avoid an error.
25555 Use char because int might match the return type of a GCC
25556 builtin and then its argument prototype would still apply. */
25569 if ac_fn_c_try_link "$LINENO"; then :
25570 ac_cv_lib_socket_connect=yes
25572 ac_cv_lib_socket_connect=no
25574 rm -f core conftest.err conftest.$ac_objext \
25575 conftest$ac_exeext conftest.$ac_ext
25576 LIBS=$ac_check_lib_save_LIBS
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25579 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25580 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25581 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25586 # Guillermo Gomez says -lposix is necessary on A/UX.
25587 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25588 if test "x$ac_cv_func_remove" = xyes; then :
25592 if test $ac_cv_func_remove = no; then
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25594 $as_echo_n "checking for remove in -lposix... " >&6; }
25595 if ${ac_cv_lib_posix_remove+:} false; then :
25596 $as_echo_n "(cached) " >&6
25598 ac_check_lib_save_LIBS=$LIBS
25599 LIBS="-lposix $LIBS"
25600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25601 /* end confdefs.h. */
25603 /* Override any GCC internal prototype to avoid an error.
25604 Use char because int might match the return type of a GCC
25605 builtin and then its argument prototype would still apply. */
25618 if ac_fn_c_try_link "$LINENO"; then :
25619 ac_cv_lib_posix_remove=yes
25621 ac_cv_lib_posix_remove=no
25623 rm -f core conftest.err conftest.$ac_objext \
25624 conftest$ac_exeext conftest.$ac_ext
25625 LIBS=$ac_check_lib_save_LIBS
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25628 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25629 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25630 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25635 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25636 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25637 if test "x$ac_cv_func_shmat" = xyes; then :
25641 if test $ac_cv_func_shmat = no; then
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25643 $as_echo_n "checking for shmat in -lipc... " >&6; }
25644 if ${ac_cv_lib_ipc_shmat+:} false; then :
25645 $as_echo_n "(cached) " >&6
25647 ac_check_lib_save_LIBS=$LIBS
25649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25650 /* end confdefs.h. */
25652 /* Override any GCC internal prototype to avoid an error.
25653 Use char because int might match the return type of a GCC
25654 builtin and then its argument prototype would still apply. */
25667 if ac_fn_c_try_link "$LINENO"; then :
25668 ac_cv_lib_ipc_shmat=yes
25670 ac_cv_lib_ipc_shmat=no
25672 rm -f core conftest.err conftest.$ac_objext \
25673 conftest$ac_exeext conftest.$ac_ext
25674 LIBS=$ac_check_lib_save_LIBS
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25677 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25678 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25679 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25685 # Check for libraries that X11R6 Xt/Xaw programs need.
25686 ac_save_LDFLAGS=$LDFLAGS
25687 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25688 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25689 # check for ICE first), but we must link in the order -lSM -lICE or
25690 # we get undefined symbols. So assume we have SM if we have ICE.
25691 # These have to be linked with before -lX11, unlike the other
25692 # libraries we check for below, so use a different variable.
25693 # John Interrante, Karl Berry
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25695 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25696 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25697 $as_echo_n "(cached) " >&6
25699 ac_check_lib_save_LIBS=$LIBS
25700 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25702 /* end confdefs.h. */
25704 /* Override any GCC internal prototype to avoid an error.
25705 Use char because int might match the return type of a GCC
25706 builtin and then its argument prototype would still apply. */
25710 char IceConnectionNumber ();
25714 return IceConnectionNumber ();
25719 if ac_fn_c_try_link "$LINENO"; then :
25720 ac_cv_lib_ICE_IceConnectionNumber=yes
25722 ac_cv_lib_ICE_IceConnectionNumber=no
25724 rm -f core conftest.err conftest.$ac_objext \
25725 conftest$ac_exeext conftest.$ac_ext
25726 LIBS=$ac_check_lib_save_LIBS
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25729 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25730 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25731 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25734 LDFLAGS=$ac_save_LDFLAGS
25772 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25773 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25774 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25775 cat >>confdefs.h <<_ACEOF
25776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25784 $as_echo_n "checking for ANSI C header files... " >&6; }
25785 if ${ac_cv_header_stdc+:} false; then :
25786 $as_echo_n "(cached) " >&6
25788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25789 /* end confdefs.h. */
25790 #include <stdlib.h>
25791 #include <stdarg.h>
25792 #include <string.h>
25803 if ac_fn_c_try_compile "$LINENO"; then :
25804 ac_cv_header_stdc=yes
25806 ac_cv_header_stdc=no
25808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25810 if test $ac_cv_header_stdc = yes; then
25811 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25813 /* end confdefs.h. */
25814 #include <string.h>
25817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25818 $EGREP "memchr" >/dev/null 2>&1; then :
25821 ac_cv_header_stdc=no
25827 if test $ac_cv_header_stdc = yes; then
25828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25830 /* end confdefs.h. */
25831 #include <stdlib.h>
25834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25835 $EGREP "free" >/dev/null 2>&1; then :
25838 ac_cv_header_stdc=no
25844 if test $ac_cv_header_stdc = yes; then
25845 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25846 if test "$cross_compiling" = yes; then :
25849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25850 /* end confdefs.h. */
25852 #include <stdlib.h>
25853 #if ((' ' & 0x0FF) == 0x020)
25854 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25855 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25857 # define ISLOWER(c) \
25858 (('a' <= (c) && (c) <= 'i') \
25859 || ('j' <= (c) && (c) <= 'r') \
25860 || ('s' <= (c) && (c) <= 'z'))
25861 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25864 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25869 for (i = 0; i < 256; i++)
25870 if (XOR (islower (i), ISLOWER (i))
25871 || toupper (i) != TOUPPER (i))
25876 if ac_fn_c_try_run "$LINENO"; then :
25879 ac_cv_header_stdc=no
25881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25882 conftest.$ac_objext conftest.beam conftest.$ac_ext
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25888 $as_echo "$ac_cv_header_stdc" >&6; }
25889 if test $ac_cv_header_stdc = yes; then
25891 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25896 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25897 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25898 $as_echo_n "(cached) " >&6
25900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25901 /* end confdefs.h. */
25902 #include <sys/types.h>
25906 return makedev(0, 0);
25911 if ac_fn_c_try_link "$LINENO"; then :
25912 ac_cv_header_sys_types_h_makedev=yes
25914 ac_cv_header_sys_types_h_makedev=no
25916 rm -f core conftest.err conftest.$ac_objext \
25917 conftest$ac_exeext conftest.$ac_ext
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25921 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25923 if test $ac_cv_header_sys_types_h_makedev = no; then
25924 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25925 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25927 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25933 if test $ac_cv_header_sys_mkdev_h = no; then
25934 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25935 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25937 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25945 ac_header_dirent=no
25946 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25947 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25949 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25950 if eval \${$as_ac_Header+:} false; then :
25951 $as_echo_n "(cached) " >&6
25953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25954 /* end confdefs.h. */
25955 #include <sys/types.h>
25967 if ac_fn_c_try_compile "$LINENO"; then :
25968 eval "$as_ac_Header=yes"
25970 eval "$as_ac_Header=no"
25972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25974 eval ac_res=\$$as_ac_Header
25975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25976 $as_echo "$ac_res" >&6; }
25977 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25978 cat >>confdefs.h <<_ACEOF
25979 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25982 ac_header_dirent=$ac_hdr; break
25986 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25987 if test $ac_header_dirent = dirent.h; then
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25989 $as_echo_n "checking for library containing opendir... " >&6; }
25990 if ${ac_cv_search_opendir+:} false; then :
25991 $as_echo_n "(cached) " >&6
25993 ac_func_search_save_LIBS=$LIBS
25994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25995 /* end confdefs.h. */
25997 /* Override any GCC internal prototype to avoid an error.
25998 Use char because int might match the return type of a GCC
25999 builtin and then its argument prototype would still apply. */
26012 for ac_lib in '' dir; do
26013 if test -z "$ac_lib"; then
26014 ac_res="none required"
26017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26019 if ac_fn_c_try_link "$LINENO"; then :
26020 ac_cv_search_opendir=$ac_res
26022 rm -f core conftest.err conftest.$ac_objext \
26024 if ${ac_cv_search_opendir+:} false; then :
26028 if ${ac_cv_search_opendir+:} false; then :
26031 ac_cv_search_opendir=no
26033 rm conftest.$ac_ext
26034 LIBS=$ac_func_search_save_LIBS
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26037 $as_echo "$ac_cv_search_opendir" >&6; }
26038 ac_res=$ac_cv_search_opendir
26039 if test "$ac_res" != no; then :
26040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26046 $as_echo_n "checking for library containing opendir... " >&6; }
26047 if ${ac_cv_search_opendir+:} false; then :
26048 $as_echo_n "(cached) " >&6
26050 ac_func_search_save_LIBS=$LIBS
26051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26052 /* end confdefs.h. */
26054 /* Override any GCC internal prototype to avoid an error.
26055 Use char because int might match the return type of a GCC
26056 builtin and then its argument prototype would still apply. */
26069 for ac_lib in '' x; do
26070 if test -z "$ac_lib"; then
26071 ac_res="none required"
26074 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26076 if ac_fn_c_try_link "$LINENO"; then :
26077 ac_cv_search_opendir=$ac_res
26079 rm -f core conftest.err conftest.$ac_objext \
26081 if ${ac_cv_search_opendir+:} false; then :
26085 if ${ac_cv_search_opendir+:} false; then :
26088 ac_cv_search_opendir=no
26090 rm conftest.$ac_ext
26091 LIBS=$ac_func_search_save_LIBS
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26094 $as_echo "$ac_cv_search_opendir" >&6; }
26095 ac_res=$ac_cv_search_opendir
26096 if test "$ac_res" != no; then :
26097 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26104 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26105 if ${ac_cv_header_stat_broken+:} false; then :
26106 $as_echo_n "(cached) " >&6
26108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26109 /* end confdefs.h. */
26110 #include <sys/types.h>
26111 #include <sys/stat.h>
26113 #if defined S_ISBLK && defined S_IFDIR
26114 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26117 #if defined S_ISBLK && defined S_IFCHR
26118 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26121 #if defined S_ISLNK && defined S_IFREG
26122 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26125 #if defined S_ISSOCK && defined S_IFREG
26126 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26130 if ac_fn_c_try_compile "$LINENO"; then :
26131 ac_cv_header_stat_broken=no
26133 ac_cv_header_stat_broken=yes
26135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26138 $as_echo "$ac_cv_header_stat_broken" >&6; }
26139 if test $ac_cv_header_stat_broken = yes; then
26141 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26146 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26147 if ${ac_cv_header_sys_wait_h+:} false; then :
26148 $as_echo_n "(cached) " >&6
26150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26151 /* end confdefs.h. */
26152 #include <sys/types.h>
26153 #include <sys/wait.h>
26154 #ifndef WEXITSTATUS
26155 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26158 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26166 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26171 if ac_fn_c_try_compile "$LINENO"; then :
26172 ac_cv_header_sys_wait_h=yes
26174 ac_cv_header_sys_wait_h=no
26176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26179 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26180 if test $ac_cv_header_sys_wait_h = yes; then
26182 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26187 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26188 if ${ac_cv_header_time+:} false; then :
26189 $as_echo_n "(cached) " >&6
26191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26192 /* end confdefs.h. */
26193 #include <sys/types.h>
26194 #include <sys/time.h>
26200 if ((struct tm *) 0)
26206 if ac_fn_c_try_compile "$LINENO"; then :
26207 ac_cv_header_time=yes
26209 ac_cv_header_time=no
26211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26214 $as_echo "$ac_cv_header_time" >&6; }
26215 if test $ac_cv_header_time = yes; then
26217 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26221 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26222 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26224 cat >>confdefs.h <<_ACEOF
26225 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26229 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26234 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26235 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26237 cat >>confdefs.h <<_ACEOF
26238 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26242 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26245 case " $LIBOBJS " in
26246 *" fileblocks.$ac_objext "* ) ;;
26247 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26255 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26256 if ${ac_cv_struct_tm+:} false; then :
26257 $as_echo_n "(cached) " >&6
26259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26260 /* end confdefs.h. */
26261 #include <sys/types.h>
26268 int *p = &tm.tm_sec;
26274 if ac_fn_c_try_compile "$LINENO"; then :
26275 ac_cv_struct_tm=time.h
26277 ac_cv_struct_tm=sys/time.h
26279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26282 $as_echo "$ac_cv_struct_tm" >&6; }
26283 if test $ac_cv_struct_tm = sys/time.h; then
26285 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26289 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26290 #include <$ac_cv_struct_tm>
26293 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26295 cat >>confdefs.h <<_ACEOF
26296 #define HAVE_STRUCT_TM_TM_ZONE 1
26302 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26304 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26307 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26309 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26315 cat >>confdefs.h <<_ACEOF
26316 #define HAVE_DECL_TZNAME $ac_have_decl
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26320 $as_echo_n "checking for tzname... " >&6; }
26321 if ${ac_cv_var_tzname+:} false; then :
26322 $as_echo_n "(cached) " >&6
26324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26325 /* end confdefs.h. */
26327 #if !HAVE_DECL_TZNAME
26328 extern char *tzname[];
26334 return tzname[0][0];
26339 if ac_fn_c_try_link "$LINENO"; then :
26340 ac_cv_var_tzname=yes
26342 ac_cv_var_tzname=no
26344 rm -f core conftest.err conftest.$ac_objext \
26345 conftest$ac_exeext conftest.$ac_ext
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26348 $as_echo "$ac_cv_var_tzname" >&6; }
26349 if test $ac_cv_var_tzname = yes; then
26351 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26358 $as_echo_n "checking for utime.h... " >&6; }
26359 if ${ba_cv_header_utime_h+:} false; then :
26360 $as_echo_n "(cached) " >&6
26363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26364 /* end confdefs.h. */
26366 #include <sys/types.h>
26379 if ac_fn_c_try_compile "$LINENO"; then :
26381 ba_cv_header_utime_h=yes
26385 ba_cv_header_utime_h=no
26389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26394 $as_echo "$ba_cv_header_utime_h" >&6; }
26395 test $ba_cv_header_utime_h = yes &&
26396 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26400 $as_echo_n "checking for socklen_t... " >&6; }
26401 if ${ba_cv_header_socklen_t+:} false; then :
26402 $as_echo_n "(cached) " >&6
26405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26406 /* end confdefs.h. */
26408 #include <sys/types.h>
26409 #include <sys/socket.h>
26421 if ac_fn_c_try_compile "$LINENO"; then :
26423 ba_cv_header_socklen_t=yes
26427 ba_cv_header_socklen_t=no
26431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26436 $as_echo "$ba_cv_header_socklen_t" >&6; }
26437 test $ba_cv_header_socklen_t = yes &&
26438 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26442 ac_cpp='$CXXCPP $CPPFLAGS'
26443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26448 $as_echo_n "checking for ioctl_req_t... " >&6; }
26449 if ${ba_cv_header_ioctl_req_t+:} false; then :
26450 $as_echo_n "(cached) " >&6
26453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26454 /* end confdefs.h. */
26456 #include <unistd.h>
26457 #include <sys/types.h>
26458 #include <sys/ioctl.h>
26464 int (*d_ioctl)(int fd, unsigned long int request, ...);
26471 if ac_fn_cxx_try_compile "$LINENO"; then :
26473 ba_cv_header_ioctl_req_t=yes
26477 ba_cv_header_ioctl_req_t=no
26481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26486 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26487 test $ba_cv_header_ioctl_req_t = yes &&
26488 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26492 ac_cpp='$CPP $CPPFLAGS'
26493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26499 ac_cpp='$CXXCPP $CPPFLAGS'
26500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26505 $as_echo_n "checking for typeof... " >&6; }
26506 if ${ba_cv_have_typeof+:} false; then :
26507 $as_echo_n "(cached) " >&6
26510 if test "$cross_compiling" = yes; then :
26512 ba_cv_have_typeof=no
26516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26517 /* end confdefs.h. */
26519 main(){char *a = 0; a = (typeof a)a;}
26522 if ac_fn_cxx_try_run "$LINENO"; then :
26524 ba_cv_have_typeof=yes
26528 ba_cv_have_typeof=no
26531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26532 conftest.$ac_objext conftest.beam conftest.$ac_ext
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26539 $as_echo "$ba_cv_have_typeof" >&6; }
26540 test $ba_cv_have_typeof = yes &&
26541 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26544 ac_cpp='$CPP $CPPFLAGS'
26545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26551 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26552 if ${ac_cv_c_const+:} false; then :
26553 $as_echo_n "(cached) " >&6
26555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26556 /* end confdefs.h. */
26562 #ifndef __cplusplus
26563 /* Ultrix mips cc rejects this sort of thing. */
26564 typedef int charset[2];
26565 const charset cs = { 0, 0 };
26566 /* SunOS 4.1.1 cc rejects this. */
26567 char const *const *pcpcc;
26569 /* NEC SVR4.0.2 mips cc rejects this. */
26570 struct point {int x, y;};
26571 static struct point const zero = {0,0};
26572 /* AIX XL C 1.02.0.0 rejects this.
26573 It does not let you subtract one const X* pointer from another in
26574 an arm of an if-expression whose if-part is not a constant
26576 const char *g = "string";
26577 pcpcc = &g + (g ? g-g : 0);
26578 /* HPUX 7.0 cc rejects these. */
26580 ppc = (char**) pcpcc;
26581 pcpcc = (char const *const *) ppc;
26582 { /* SCO 3.2v4 cc rejects this sort of thing. */
26585 char const *s = 0 ? (char *) 0 : (char const *) 0;
26590 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26591 int x[] = {25, 17};
26592 const int *foo = &x[0];
26595 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26596 typedef const int *iptr;
26600 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26601 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26602 struct s { int j; const int *ap[3]; } bx;
26603 struct s *b = &bx; b->j = 5;
26605 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26606 const int foo = 10;
26607 if (!foo) return 0;
26609 return !cs[0] && !zero.x;
26616 if ac_fn_c_try_compile "$LINENO"; then :
26621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26624 $as_echo "$ac_cv_c_const" >&6; }
26625 if test $ac_cv_c_const = no; then
26627 $as_echo "#define const /**/" >>confdefs.h
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26633 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26634 if ${ac_cv_c_bigendian+:} false; then :
26635 $as_echo_n "(cached) " >&6
26637 ac_cv_c_bigendian=unknown
26638 # See if we're dealing with a universal compiler.
26639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26640 /* end confdefs.h. */
26641 #ifndef __APPLE_CC__
26642 not a universal capable compiler
26647 if ac_fn_c_try_compile "$LINENO"; then :
26649 # Check for potential -arch flags. It is not universal unless
26650 # there are at least two -arch flags with different values.
26653 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26654 if test -n "$ac_prev"; then
26656 i?86 | x86_64 | ppc | ppc64)
26657 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26660 ac_cv_c_bigendian=universal
26666 elif test "x$ac_word" = "x-arch"; then
26671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26672 if test $ac_cv_c_bigendian = unknown; then
26673 # See if sys/param.h defines the BYTE_ORDER macro.
26674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26675 /* end confdefs.h. */
26676 #include <sys/types.h>
26677 #include <sys/param.h>
26682 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26683 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26685 bogus endian macros
26692 if ac_fn_c_try_compile "$LINENO"; then :
26693 # It does; now see whether it defined to BIG_ENDIAN or not.
26694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26695 /* end confdefs.h. */
26696 #include <sys/types.h>
26697 #include <sys/param.h>
26702 #if BYTE_ORDER != BIG_ENDIAN
26710 if ac_fn_c_try_compile "$LINENO"; then :
26711 ac_cv_c_bigendian=yes
26713 ac_cv_c_bigendian=no
26715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26719 if test $ac_cv_c_bigendian = unknown; then
26720 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26722 /* end confdefs.h. */
26723 #include <limits.h>
26728 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26729 bogus endian macros
26736 if ac_fn_c_try_compile "$LINENO"; then :
26737 # It does; now see whether it defined to _BIG_ENDIAN or not.
26738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26739 /* end confdefs.h. */
26740 #include <limits.h>
26745 #ifndef _BIG_ENDIAN
26753 if ac_fn_c_try_compile "$LINENO"; then :
26754 ac_cv_c_bigendian=yes
26756 ac_cv_c_bigendian=no
26758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26762 if test $ac_cv_c_bigendian = unknown; then
26763 # Compile a test program.
26764 if test "$cross_compiling" = yes; then :
26765 # Try to guess by grepping values from an object file.
26766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26767 /* end confdefs.h. */
26768 short int ascii_mm[] =
26769 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26770 short int ascii_ii[] =
26771 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26772 int use_ascii (int i) {
26773 return ascii_mm[i] + ascii_ii[i];
26775 short int ebcdic_ii[] =
26776 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26777 short int ebcdic_mm[] =
26778 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26779 int use_ebcdic (int i) {
26780 return ebcdic_mm[i] + ebcdic_ii[i];
26787 return use_ascii (foo) == use_ebcdic (foo);
26792 if ac_fn_c_try_compile "$LINENO"; then :
26793 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26794 ac_cv_c_bigendian=yes
26796 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26797 if test "$ac_cv_c_bigendian" = unknown; then
26798 ac_cv_c_bigendian=no
26800 # finding both strings is unlikely to happen, but who knows?
26801 ac_cv_c_bigendian=unknown
26805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26808 /* end confdefs.h. */
26809 $ac_includes_default
26814 /* Are we little or big endian? From Harbison&Steele. */
26818 char c[sizeof (long int)];
26821 return u.c[sizeof (long int) - 1] == 1;
26827 if ac_fn_c_try_run "$LINENO"; then :
26828 ac_cv_c_bigendian=no
26830 ac_cv_c_bigendian=yes
26832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26833 conftest.$ac_objext conftest.beam conftest.$ac_ext
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26839 $as_echo "$ac_cv_c_bigendian" >&6; }
26840 case $ac_cv_c_bigendian in #(
26843 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26847 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26851 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26855 as_fn_error $? "unknown endianness
26856 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26861 $as_echo_n "checking how to get filesystem type... " >&6; }
26863 # The order of these tests is important.
26864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26865 /* end confdefs.h. */
26867 #include <sys/statvfs.h>
26868 #include <sys/fstyp.h>
26871 if ac_fn_c_try_cpp "$LINENO"; then :
26872 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26876 rm -f conftest.err conftest.i conftest.$ac_ext
26877 if test $fstype = no; then
26878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26879 /* end confdefs.h. */
26881 #include <sys/statfs.h>
26882 #include <sys/fstyp.h>
26885 if ac_fn_c_try_cpp "$LINENO"; then :
26886 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26890 rm -f conftest.err conftest.i conftest.$ac_ext
26892 if test $fstype = no; then
26893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26894 /* end confdefs.h. */
26896 #include <sys/statfs.h>
26897 #include <sys/vmount.h>
26900 if ac_fn_c_try_cpp "$LINENO"; then :
26901 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26905 rm -f conftest.err conftest.i conftest.$ac_ext
26907 if test $fstype = no; then
26908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26909 /* end confdefs.h. */
26911 #include <mntent.h>
26914 if ac_fn_c_try_cpp "$LINENO"; then :
26915 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26919 rm -f conftest.err conftest.i conftest.$ac_ext
26921 if test $fstype = no; then
26922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26923 /* end confdefs.h. */
26924 #include <sys/mount.h>
26927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26928 $EGREP "f_type;" >/dev/null 2>&1; then :
26929 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26935 if test $fstype = no; then
26936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26937 /* end confdefs.h. */
26939 #include <sys/mount.h>
26940 #include <sys/fs_types.h>
26943 if ac_fn_c_try_cpp "$LINENO"; then :
26944 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26948 rm -f conftest.err conftest.i conftest.$ac_ext
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26951 $as_echo "$fstype" >&6; }
26953 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26954 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26956 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26963 ac_cpp='$CXXCPP $CPPFLAGS'
26964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26968 for ac_func in backtrace
26970 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26971 if test "x$ac_cv_func_backtrace" = xyes; then :
26972 cat >>confdefs.h <<_ACEOF
26973 #define HAVE_BACKTRACE 1
26980 ac_cpp='$CPP $CPPFLAGS'
26981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26987 $as_echo_n "checking return type of signal handlers... " >&6; }
26988 if ${ac_cv_type_signal+:} false; then :
26989 $as_echo_n "(cached) " >&6
26991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26992 /* end confdefs.h. */
26993 #include <sys/types.h>
26994 #include <signal.h>
26999 return *(signal (0, 0)) (0) == 1;
27004 if ac_fn_c_try_compile "$LINENO"; then :
27005 ac_cv_type_signal=int
27007 ac_cv_type_signal=void
27009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27012 $as_echo "$ac_cv_type_signal" >&6; }
27014 cat >>confdefs.h <<_ACEOF
27015 #define RETSIGTYPE $ac_cv_type_signal
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27021 $as_echo_n "checking for type of signal functions... " >&6; }
27022 if ${bash_cv_signal_vintage+:} false; then :
27023 $as_echo_n "(cached) " >&6
27026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27027 /* end confdefs.h. */
27028 #include <signal.h>
27034 struct sigaction sa;
27035 sigemptyset(&ss); sigsuspend(&ss);
27036 sigaction(SIGINT, &sa, (struct sigaction *) 0);
27037 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27043 if ac_fn_c_try_link "$LINENO"; then :
27044 bash_cv_signal_vintage="posix"
27047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27048 /* end confdefs.h. */
27049 #include <signal.h>
27054 int mask = sigmask(SIGINT);
27055 sigsetmask(mask); sigblock(mask); sigpause(mask);
27061 if ac_fn_c_try_link "$LINENO"; then :
27062 bash_cv_signal_vintage="4.2bsd"
27065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27066 /* end confdefs.h. */
27068 #include <signal.h>
27069 RETSIGTYPE foo() { }
27074 int mask = sigmask(SIGINT);
27075 sigset(SIGINT, foo); sigrelse(SIGINT);
27076 sighold(SIGINT); sigpause(SIGINT);
27082 if ac_fn_c_try_link "$LINENO"; then :
27083 bash_cv_signal_vintage="svr3"
27085 bash_cv_signal_vintage="v7"
27088 rm -f core conftest.err conftest.$ac_objext \
27089 conftest$ac_exeext conftest.$ac_ext
27092 rm -f core conftest.err conftest.$ac_objext \
27093 conftest$ac_exeext conftest.$ac_ext
27096 rm -f core conftest.err conftest.$ac_objext \
27097 conftest$ac_exeext conftest.$ac_ext
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27102 $as_echo "$bash_cv_signal_vintage" >&6; }
27103 if test "$bash_cv_signal_vintage" = "posix"; then
27104 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27106 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27107 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27109 elif test "$bash_cv_signal_vintage" = "svr3"; then
27110 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27114 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27115 if test "x$ac_cv_type_mode_t" = xyes; then :
27119 cat >>confdefs.h <<_ACEOF
27125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27126 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27127 if ${ac_cv_type_uid_t+:} false; then :
27128 $as_echo_n "(cached) " >&6
27130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27131 /* end confdefs.h. */
27132 #include <sys/types.h>
27135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27136 $EGREP "uid_t" >/dev/null 2>&1; then :
27137 ac_cv_type_uid_t=yes
27139 ac_cv_type_uid_t=no
27144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27145 $as_echo "$ac_cv_type_uid_t" >&6; }
27146 if test $ac_cv_type_uid_t = no; then
27148 $as_echo "#define uid_t int" >>confdefs.h
27151 $as_echo "#define gid_t int" >>confdefs.h
27155 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27156 if test "x$ac_cv_type_size_t" = xyes; then :
27160 cat >>confdefs.h <<_ACEOF
27161 #define size_t unsigned int
27166 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27167 if test "x$ac_cv_type_pid_t" = xyes; then :
27171 cat >>confdefs.h <<_ACEOF
27177 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27178 if test "x$ac_cv_type_off_t" = xyes; then :
27182 cat >>confdefs.h <<_ACEOF
27183 #define off_t long int
27189 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27190 if test "x$ac_cv_type_intptr_t" = xyes; then :
27192 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27195 for ac_type in 'int' 'long int' 'long long int'; do
27196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27197 /* end confdefs.h. */
27198 $ac_includes_default
27202 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27203 test_array [0] = 0;
27204 return test_array [0];
27210 if ac_fn_c_try_compile "$LINENO"; then :
27212 cat >>confdefs.h <<_ACEOF
27213 #define intptr_t $ac_type
27218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27219 test -z "$ac_type" && break
27225 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27226 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27228 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27231 for ac_type in 'unsigned int' 'unsigned long int' \
27232 'unsigned long long int'; do
27233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27234 /* end confdefs.h. */
27235 $ac_includes_default
27239 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27240 test_array [0] = 0;
27241 return test_array [0];
27247 if ac_fn_c_try_compile "$LINENO"; then :
27249 cat >>confdefs.h <<_ACEOF
27250 #define uintptr_t $ac_type
27255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27256 test -z "$ac_type" && break
27261 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27262 if test "x$ac_cv_type_ino_t" = xyes; then :
27266 cat >>confdefs.h <<_ACEOF
27267 #define ino_t unsigned long
27272 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27273 if test "x$ac_cv_type_dev_t" = xyes; then :
27277 cat >>confdefs.h <<_ACEOF
27278 #define dev_t unsigned long
27283 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27284 if test "x$ac_cv_type_daddr_t" = xyes; then :
27288 cat >>confdefs.h <<_ACEOF
27289 #define daddr_t long
27294 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27295 if test "x$ac_cv_type_major_t" = xyes; then :
27299 cat >>confdefs.h <<_ACEOF
27300 #define major_t int
27305 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27306 if test "x$ac_cv_type_minor_t" = xyes; then :
27310 cat >>confdefs.h <<_ACEOF
27311 #define minor_t int
27316 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27317 if test "x$ac_cv_type_ssize_t" = xyes; then :
27321 cat >>confdefs.h <<_ACEOF
27322 #define ssize_t int
27327 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27328 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27330 cat >>confdefs.h <<_ACEOF
27331 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27335 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27338 case " $LIBOBJS " in
27339 *" fileblocks.$ac_objext "* ) ;;
27340 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27347 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27348 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27350 cat >>confdefs.h <<_ACEOF
27351 #define HAVE_STRUCT_STAT_ST_RDEV 1
27355 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27361 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27362 if ${ac_cv_struct_tm+:} false; then :
27363 $as_echo_n "(cached) " >&6
27365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27366 /* end confdefs.h. */
27367 #include <sys/types.h>
27374 int *p = &tm.tm_sec;
27380 if ac_fn_c_try_compile "$LINENO"; then :
27381 ac_cv_struct_tm=time.h
27383 ac_cv_struct_tm=sys/time.h
27385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27388 $as_echo "$ac_cv_struct_tm" >&6; }
27389 if test $ac_cv_struct_tm = sys/time.h; then
27391 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27396 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27397 if ${ac_cv_c_const+:} false; then :
27398 $as_echo_n "(cached) " >&6
27400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27401 /* end confdefs.h. */
27407 #ifndef __cplusplus
27408 /* Ultrix mips cc rejects this sort of thing. */
27409 typedef int charset[2];
27410 const charset cs = { 0, 0 };
27411 /* SunOS 4.1.1 cc rejects this. */
27412 char const *const *pcpcc;
27414 /* NEC SVR4.0.2 mips cc rejects this. */
27415 struct point {int x, y;};
27416 static struct point const zero = {0,0};
27417 /* AIX XL C 1.02.0.0 rejects this.
27418 It does not let you subtract one const X* pointer from another in
27419 an arm of an if-expression whose if-part is not a constant
27421 const char *g = "string";
27422 pcpcc = &g + (g ? g-g : 0);
27423 /* HPUX 7.0 cc rejects these. */
27425 ppc = (char**) pcpcc;
27426 pcpcc = (char const *const *) ppc;
27427 { /* SCO 3.2v4 cc rejects this sort of thing. */
27430 char const *s = 0 ? (char *) 0 : (char const *) 0;
27435 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27436 int x[] = {25, 17};
27437 const int *foo = &x[0];
27440 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27441 typedef const int *iptr;
27445 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27446 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27447 struct s { int j; const int *ap[3]; } bx;
27448 struct s *b = &bx; b->j = 5;
27450 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27451 const int foo = 10;
27452 if (!foo) return 0;
27454 return !cs[0] && !zero.x;
27461 if ac_fn_c_try_compile "$LINENO"; then :
27466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27469 $as_echo "$ac_cv_c_const" >&6; }
27470 if test $ac_cv_c_const = no; then
27472 $as_echo "#define const /**/" >>confdefs.h
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27477 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27478 if ${ac_cv_c_restrict+:} false; then :
27479 $as_echo_n "(cached) " >&6
27481 ac_cv_c_restrict=no
27482 # The order here caters to the fact that C++ does not require restrict.
27483 for ac_kw in __restrict __restrict__ _Restrict restrict; do
27484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27485 /* end confdefs.h. */
27486 typedef int * int_ptr;
27487 int foo (int_ptr $ac_kw ip) {
27494 int * $ac_kw t = s;
27501 if ac_fn_c_try_compile "$LINENO"; then :
27502 ac_cv_c_restrict=$ac_kw
27504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27505 test "$ac_cv_c_restrict" != no && break
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27510 $as_echo "$ac_cv_c_restrict" >&6; }
27512 case $ac_cv_c_restrict in
27514 no) $as_echo "#define restrict /**/" >>confdefs.h
27516 *) cat >>confdefs.h <<_ACEOF
27517 #define restrict $ac_cv_c_restrict
27523 # The cast to long int works around a bug in the HP C Compiler
27524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27526 # This bug is HP SR number 8606223364.
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27528 $as_echo_n "checking size of char... " >&6; }
27529 if ${ac_cv_sizeof_char+:} false; then :
27530 $as_echo_n "(cached) " >&6
27532 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27535 if test "$ac_cv_type_char" = yes; then
27536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27538 as_fn_error 77 "cannot compute sizeof (char)
27539 See \`config.log' for more details" "$LINENO" 5; }
27541 ac_cv_sizeof_char=0
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27547 $as_echo "$ac_cv_sizeof_char" >&6; }
27551 cat >>confdefs.h <<_ACEOF
27552 #define SIZEOF_CHAR $ac_cv_sizeof_char
27556 # The cast to long int works around a bug in the HP C Compiler
27557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27559 # This bug is HP SR number 8606223364.
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27561 $as_echo_n "checking size of short int... " >&6; }
27562 if ${ac_cv_sizeof_short_int+:} false; then :
27563 $as_echo_n "(cached) " >&6
27565 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27568 if test "$ac_cv_type_short_int" = yes; then
27569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27571 as_fn_error 77 "cannot compute sizeof (short int)
27572 See \`config.log' for more details" "$LINENO" 5; }
27574 ac_cv_sizeof_short_int=0
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27580 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27584 cat >>confdefs.h <<_ACEOF
27585 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27589 # The cast to long int works around a bug in the HP C Compiler
27590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27592 # This bug is HP SR number 8606223364.
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27594 $as_echo_n "checking size of int... " >&6; }
27595 if ${ac_cv_sizeof_int+:} false; then :
27596 $as_echo_n "(cached) " >&6
27598 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27601 if test "$ac_cv_type_int" = yes; then
27602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27604 as_fn_error 77 "cannot compute sizeof (int)
27605 See \`config.log' for more details" "$LINENO" 5; }
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27613 $as_echo "$ac_cv_sizeof_int" >&6; }
27617 cat >>confdefs.h <<_ACEOF
27618 #define SIZEOF_INT $ac_cv_sizeof_int
27622 # The cast to long int works around a bug in the HP C Compiler
27623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27625 # This bug is HP SR number 8606223364.
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27627 $as_echo_n "checking size of long int... " >&6; }
27628 if ${ac_cv_sizeof_long_int+:} false; then :
27629 $as_echo_n "(cached) " >&6
27631 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27634 if test "$ac_cv_type_long_int" = yes; then
27635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27637 as_fn_error 77 "cannot compute sizeof (long int)
27638 See \`config.log' for more details" "$LINENO" 5; }
27640 ac_cv_sizeof_long_int=0
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27646 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27650 cat >>confdefs.h <<_ACEOF
27651 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27655 # The cast to long int works around a bug in the HP C Compiler
27656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27658 # This bug is HP SR number 8606223364.
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27660 $as_echo_n "checking size of long long int... " >&6; }
27661 if ${ac_cv_sizeof_long_long_int+:} false; then :
27662 $as_echo_n "(cached) " >&6
27664 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27667 if test "$ac_cv_type_long_long_int" = yes; then
27668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27670 as_fn_error 77 "cannot compute sizeof (long long int)
27671 See \`config.log' for more details" "$LINENO" 5; }
27673 ac_cv_sizeof_long_long_int=0
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27679 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27683 cat >>confdefs.h <<_ACEOF
27684 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27688 # The cast to long int works around a bug in the HP C Compiler
27689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27691 # This bug is HP SR number 8606223364.
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27693 $as_echo_n "checking size of int *... " >&6; }
27694 if ${ac_cv_sizeof_int_p+:} false; then :
27695 $as_echo_n "(cached) " >&6
27697 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27700 if test "$ac_cv_type_int_p" = yes; then
27701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27703 as_fn_error 77 "cannot compute sizeof (int *)
27704 See \`config.log' for more details" "$LINENO" 5; }
27706 ac_cv_sizeof_int_p=0
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27712 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27716 cat >>confdefs.h <<_ACEOF
27717 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27723 $as_echo_n "checking for u_int type... " >&6; }
27724 if ${ac_cv_have_u_int+:} false; then :
27725 $as_echo_n "(cached) " >&6
27728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27729 /* end confdefs.h. */
27731 #include <sys/types.h>
27743 if ac_fn_c_try_compile "$LINENO"; then :
27745 ac_cv_have_u_int="yes"
27749 ac_cv_have_u_int="no"
27753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27758 $as_echo "$ac_cv_have_u_int" >&6; }
27759 if test "x$ac_cv_have_u_int" = "xyes" ; then
27760 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27766 $as_echo_n "checking for intmax_t type... " >&6; }
27767 if ${ac_cv_have_intmax_t+:} false; then :
27768 $as_echo_n "(cached) " >&6
27771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27772 /* end confdefs.h. */
27774 #include <sys/types.h>
27786 if ac_fn_c_try_compile "$LINENO"; then :
27788 ac_cv_have_intmax_t="yes"
27792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27793 /* end confdefs.h. */
27795 #include <stdint.h>
27807 if ac_fn_c_try_compile "$LINENO"; then :
27809 ac_cv_have_intmax_t="yes"
27813 ac_cv_have_intmax_t="no"
27817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27826 $as_echo "$ac_cv_have_intmax_t" >&6; }
27827 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27828 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27834 $as_echo_n "checking for u_intmax_t type... " >&6; }
27835 if ${ac_cv_have_u_intmax_t+:} false; then :
27836 $as_echo_n "(cached) " >&6
27839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27840 /* end confdefs.h. */
27842 #include <sys/types.h>
27848 u_intmax_t a; a = 1;
27854 if ac_fn_c_try_compile "$LINENO"; then :
27856 ac_cv_have_u_intmax_t="yes"
27860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27861 /* end confdefs.h. */
27863 #include <stdint.h>
27869 u_intmax_t a; a = 1;
27875 if ac_fn_c_try_compile "$LINENO"; then :
27877 ac_cv_have_u_intmax_t="yes"
27881 ac_cv_have_u_intmax_t="no"
27885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27894 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27895 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27896 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27902 $as_echo_n "checking for intXX_t types... " >&6; }
27903 if ${ac_cv_have_intxx_t+:} false; then :
27904 $as_echo_n "(cached) " >&6
27907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27908 /* end confdefs.h. */
27910 #include <sys/types.h>
27916 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27922 if ac_fn_c_try_compile "$LINENO"; then :
27924 ac_cv_have_intxx_t="yes"
27928 ac_cv_have_intxx_t="no"
27932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27937 $as_echo "$ac_cv_have_intxx_t" >&6; }
27938 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27939 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27945 $as_echo_n "checking for int64_t type... " >&6; }
27946 if ${ac_cv_have_int64_t+:} false; then :
27947 $as_echo_n "(cached) " >&6
27950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27951 /* end confdefs.h. */
27953 #include <sys/types.h>
27965 if ac_fn_c_try_compile "$LINENO"; then :
27967 ac_cv_have_int64_t="yes"
27971 ac_cv_have_int64_t="no"
27975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27980 $as_echo "$ac_cv_have_int64_t" >&6; }
27981 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27982 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27988 $as_echo_n "checking for u_intXX_t types... " >&6; }
27989 if ${ac_cv_have_u_intxx_t+:} false; then :
27990 $as_echo_n "(cached) " >&6
27993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27994 /* end confdefs.h. */
27996 #include <sys/types.h>
28002 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28008 if ac_fn_c_try_compile "$LINENO"; then :
28010 ac_cv_have_u_intxx_t="yes"
28014 ac_cv_have_u_intxx_t="no"
28018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28023 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28024 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28025 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28031 $as_echo_n "checking for u_int64_t types... " >&6; }
28032 if ${ac_cv_have_u_int64_t+:} false; then :
28033 $as_echo_n "(cached) " >&6
28036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28037 /* end confdefs.h. */
28039 #include <sys/types.h>
28045 u_int64_t a; a = 1;
28051 if ac_fn_c_try_compile "$LINENO"; then :
28053 ac_cv_have_u_int64_t="yes"
28057 ac_cv_have_u_int64_t="no"
28061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28066 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28067 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28068 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28073 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28074 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28077 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28079 /* end confdefs.h. */
28081 #include <sys/bitypes.h>
28087 int8_t a; int16_t b; int32_t c;
28088 u_int8_t e; u_int16_t f; u_int32_t g;
28089 a = b = c = e = f = g = 1;
28095 if ac_fn_c_try_compile "$LINENO"; then :
28097 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28099 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28101 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28104 $as_echo "yes" >&6; }
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28109 $as_echo "no" >&6; }
28113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28116 if test -z "$have_u_intxx_t" ; then
28117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28118 $as_echo_n "checking for uintXX_t types... " >&6; }
28119 if ${ac_cv_have_uintxx_t+:} false; then :
28120 $as_echo_n "(cached) " >&6
28123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28124 /* end confdefs.h. */
28126 #include <sys/types.h>
28132 uint8_t a; uint16_t b;
28133 uint32_t c; a = b = c = 1;
28139 if ac_fn_c_try_compile "$LINENO"; then :
28141 ac_cv_have_uintxx_t="yes"
28145 ac_cv_have_uintxx_t="no"
28149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28154 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28155 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28156 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28161 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28162 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28165 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28167 /* end confdefs.h. */
28169 #include <sys/bitypes.h>
28175 int64_t a; u_int64_t b;
28182 if ac_fn_c_try_compile "$LINENO"; then :
28184 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28186 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28189 $as_echo "yes" >&6; }
28193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28194 $as_echo "no" >&6; }
28198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28201 if (test -z "$have_uintxx_t" && \
28202 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28205 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28207 /* end confdefs.h. */
28209 #include <sys/bitypes.h>
28215 uint8_t a; uint16_t b;
28216 uint32_t c; a = b = c = 1;
28222 if ac_fn_c_try_compile "$LINENO"; then :
28224 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28227 $as_echo "yes" >&6; }
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28232 $as_echo "no" >&6; }
28236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28255 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28256 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28257 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28258 cat >>confdefs.h <<_ACEOF
28259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28263 echo 'configure: cannot find needed function.'; exit 1
28269 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28272 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28274 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28279 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28282 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28284 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28289 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28290 if test "x$ac_cv_func_closefrom" = xyes; then :
28292 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28296 for ac_func in getpagesize
28298 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28299 if test "x$ac_cv_func_getpagesize" = xyes; then :
28300 cat >>confdefs.h <<_ACEOF
28301 #define HAVE_GETPAGESIZE 1
28304 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28309 for ac_func in malloc_trim
28311 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28312 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28313 cat >>confdefs.h <<_ACEOF
28314 #define HAVE_MALLOC_TRIM 1
28317 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28323 for ac_func in fchdir
28325 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28326 if test "x$ac_cv_func_fchdir" = xyes; then :
28327 cat >>confdefs.h <<_ACEOF
28328 #define HAVE_FCHDIR 1
28330 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28335 for ac_func in strtoll
28337 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28338 if test "x$ac_cv_func_strtoll" = xyes; then :
28339 cat >>confdefs.h <<_ACEOF
28340 #define HAVE_STRTOLL 1
28342 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28347 for ac_func in posix_fadvise
28349 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28350 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28351 cat >>confdefs.h <<_ACEOF
28352 #define HAVE_POSIX_FADVISE 1
28358 for ac_func in posix_fallocate
28360 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28361 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28362 cat >>confdefs.h <<_ACEOF
28363 #define HAVE_POSIX_FALLOCATE 1
28369 for ac_func in fdatasync
28371 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28372 if test "x$ac_cv_func_fdatasync" = xyes; then :
28373 cat >>confdefs.h <<_ACEOF
28374 #define HAVE_FDATASYNC 1
28381 for ac_func in chflags
28383 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28384 if test "x$ac_cv_func_chflags" = xyes; then :
28385 cat >>confdefs.h <<_ACEOF
28386 #define HAVE_CHFLAGS 1
28393 for ac_func in snprintf vsnprintf gethostid fseeko
28395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28396 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28397 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28398 cat >>confdefs.h <<_ACEOF
28399 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28407 $as_echo_n "checking for va_copy... " >&6; }
28408 if ${ba_cv_va_copy+:} false; then :
28409 $as_echo_n "(cached) " >&6
28412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28413 /* end confdefs.h. */
28415 #include <stdarg.h>
28416 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28417 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28423 call_use_va_copy(1,2,3)
28429 if ac_fn_c_try_link "$LINENO"; then :
28439 rm -f core conftest.err conftest.$ac_objext \
28440 conftest$ac_exeext conftest.$ac_ext
28444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28445 $as_echo "$ba_cv_va_copy" >&6; }
28446 test $ba_cv_va_copy = yes &&
28447 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28450 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28452 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28453 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28454 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28455 cat >>confdefs.h <<_ACEOF
28456 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28463 # If resolver functions are not in libc check for -lnsl or -lresolv.
28464 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28465 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28467 $as_echo "using libc's resolver" >&6; }
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28470 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28471 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28472 $as_echo_n "(cached) " >&6
28474 ac_check_lib_save_LIBS=$LIBS
28476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28477 /* end confdefs.h. */
28479 /* Override any GCC internal prototype to avoid an error.
28480 Use char because int might match the return type of a GCC
28481 builtin and then its argument prototype would still apply. */
28485 char gethostbyname_r ();
28489 return gethostbyname_r ();
28494 if ac_fn_c_try_link "$LINENO"; then :
28495 ac_cv_lib_nsl_gethostbyname_r=yes
28497 ac_cv_lib_nsl_gethostbyname_r=no
28499 rm -f core conftest.err conftest.$ac_objext \
28500 conftest$ac_exeext conftest.$ac_ext
28501 LIBS=$ac_check_lib_save_LIBS
28503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28504 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28505 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28506 cat >>confdefs.h <<_ACEOF
28507 #define HAVE_LIBNSL 1
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28515 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28516 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28517 $as_echo_n "(cached) " >&6
28519 ac_check_lib_save_LIBS=$LIBS
28520 LIBS="-lresolv $LIBS"
28521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28522 /* end confdefs.h. */
28524 /* Override any GCC internal prototype to avoid an error.
28525 Use char because int might match the return type of a GCC
28526 builtin and then its argument prototype would still apply. */
28530 char gethostbyname_r ();
28534 return gethostbyname_r ();
28539 if ac_fn_c_try_link "$LINENO"; then :
28540 ac_cv_lib_resolv_gethostbyname_r=yes
28542 ac_cv_lib_resolv_gethostbyname_r=no
28544 rm -f core conftest.err conftest.$ac_objext \
28545 conftest$ac_exeext conftest.$ac_ext
28546 LIBS=$ac_check_lib_save_LIBS
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28549 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28550 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28551 cat >>confdefs.h <<_ACEOF
28552 #define HAVE_LIBRESOLV 1
28555 LIBS="-lresolv $LIBS"
28562 for ac_func in inet_pton
28564 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28565 if test "x$ac_cv_func_inet_pton" = xyes; then :
28566 cat >>confdefs.h <<_ACEOF
28567 #define HAVE_INET_PTON 1
28569 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28574 for ac_func in inet_ntop
28576 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28577 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28578 cat >>confdefs.h <<_ACEOF
28579 #define HAVE_INET_NTOP 1
28581 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28586 for ac_func in gethostbyname2
28588 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28589 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28590 cat >>confdefs.h <<_ACEOF
28591 #define HAVE_GETHOSTBYNAME2 1
28593 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28598 for ac_func in getnameinfo
28600 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28601 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28602 cat >>confdefs.h <<_ACEOF
28603 #define HAVE_GETNAMEINFO 1
28605 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28613 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28614 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28615 $as_echo_n "(cached) " >&6
28618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28619 /* end confdefs.h. */
28621 #include <sys/socket.h>
28627 struct sockaddr s; s.sa_len;
28633 if ac_fn_c_try_compile "$LINENO"; then :
28635 ac_cv_struct_sockaddr_sa_len=yes
28638 ac_cv_struct_sockaddr_sa_len=no
28642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28647 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28649 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28651 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28656 $as_echo_n "checking for working getaddrinfo... " >&6; }
28657 if ${ac_cv_working_getaddrinfo+:} false; then :
28658 $as_echo_n "(cached) " >&6
28661 if test "$cross_compiling" = yes; then :
28663 ac_cv_working_getaddrinfo="yes"
28667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28668 /* end confdefs.h. */
28671 #include <string.h>
28672 #include <sys/types.h>
28673 #include <sys/socket.h>
28676 struct addrinfo hints, *ai;
28679 memset(&hints, 0, sizeof(hints));
28680 hints.ai_family = AF_UNSPEC;
28681 hints.ai_socktype = SOCK_STREAM;
28682 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28686 if (ai->ai_addr->sa_family != AF_INET) {
28693 if ac_fn_c_try_run "$LINENO"; then :
28695 ac_cv_working_getaddrinfo="yes"
28699 ac_cv_working_getaddrinfo="no"
28702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28703 conftest.$ac_objext conftest.beam conftest.$ac_ext
28709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28710 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28711 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28712 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28714 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28719 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28720 if test "$ac_cv_func_gai_strerror" != "yes"; then
28721 ac_cv_working_getaddrinfo="no"
28724 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28729 for ac_func in strftime
28731 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28732 if test "x$ac_cv_func_strftime" = xyes; then :
28733 cat >>confdefs.h <<_ACEOF
28734 #define HAVE_STRFTIME 1
28738 # strftime is in -lintl on SCO UNIX.
28739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28740 $as_echo_n "checking for strftime in -lintl... " >&6; }
28741 if ${ac_cv_lib_intl_strftime+:} false; then :
28742 $as_echo_n "(cached) " >&6
28744 ac_check_lib_save_LIBS=$LIBS
28745 LIBS="-lintl $LIBS"
28746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28747 /* end confdefs.h. */
28749 /* Override any GCC internal prototype to avoid an error.
28750 Use char because int might match the return type of a GCC
28751 builtin and then its argument prototype would still apply. */
28759 return strftime ();
28764 if ac_fn_c_try_link "$LINENO"; then :
28765 ac_cv_lib_intl_strftime=yes
28767 ac_cv_lib_intl_strftime=no
28769 rm -f core conftest.err conftest.$ac_objext \
28770 conftest$ac_exeext conftest.$ac_ext
28771 LIBS=$ac_check_lib_save_LIBS
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28774 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28775 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28776 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28778 LIBS="-lintl $LIBS"
28784 for ac_func in vprintf
28786 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28787 if test "x$ac_cv_func_vprintf" = xyes; then :
28788 cat >>confdefs.h <<_ACEOF
28789 #define HAVE_VPRINTF 1
28792 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28793 if test "x$ac_cv_func__doprnt" = xyes; then :
28795 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28803 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28804 # for constant arguments. Useless!
28805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28806 $as_echo_n "checking for working alloca.h... " >&6; }
28807 if ${ac_cv_working_alloca_h+:} false; then :
28808 $as_echo_n "(cached) " >&6
28810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28811 /* end confdefs.h. */
28812 #include <alloca.h>
28816 char *p = (char *) alloca (2 * sizeof (int));
28822 if ac_fn_c_try_link "$LINENO"; then :
28823 ac_cv_working_alloca_h=yes
28825 ac_cv_working_alloca_h=no
28827 rm -f core conftest.err conftest.$ac_objext \
28828 conftest$ac_exeext conftest.$ac_ext
28830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28831 $as_echo "$ac_cv_working_alloca_h" >&6; }
28832 if test $ac_cv_working_alloca_h = yes; then
28834 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28839 $as_echo_n "checking for alloca... " >&6; }
28840 if ${ac_cv_func_alloca_works+:} false; then :
28841 $as_echo_n "(cached) " >&6
28843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28844 /* end confdefs.h. */
28846 # define alloca __builtin_alloca
28849 # include <malloc.h>
28850 # define alloca _alloca
28852 # ifdef HAVE_ALLOCA_H
28853 # include <alloca.h>
28858 # ifndef alloca /* predefined by HP cc +Olibcalls */
28859 void *alloca (size_t);
28869 char *p = (char *) alloca (1);
28875 if ac_fn_c_try_link "$LINENO"; then :
28876 ac_cv_func_alloca_works=yes
28878 ac_cv_func_alloca_works=no
28880 rm -f core conftest.err conftest.$ac_objext \
28881 conftest$ac_exeext conftest.$ac_ext
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28884 $as_echo "$ac_cv_func_alloca_works" >&6; }
28886 if test $ac_cv_func_alloca_works = yes; then
28888 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28891 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28892 # that cause trouble. Some versions do not even contain alloca or
28893 # contain a buggy version. If you still want to use their alloca,
28894 # use ar to extract alloca.o from them instead of compiling alloca.c.
28896 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28898 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28902 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28903 if ${ac_cv_os_cray+:} false; then :
28904 $as_echo_n "(cached) " >&6
28906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28907 /* end confdefs.h. */
28908 #if defined CRAY && ! defined CRAY2
28915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28916 $EGREP "webecray" >/dev/null 2>&1; then :
28924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28925 $as_echo "$ac_cv_os_cray" >&6; }
28926 if test $ac_cv_os_cray = yes; then
28927 for ac_func in _getb67 GETB67 getb67; do
28928 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28929 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28930 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28932 cat >>confdefs.h <<_ACEOF
28933 #define CRAY_STACKSEG_END $ac_func
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28943 $as_echo_n "checking stack direction for C alloca... " >&6; }
28944 if ${ac_cv_c_stack_direction+:} false; then :
28945 $as_echo_n "(cached) " >&6
28947 if test "$cross_compiling" = yes; then :
28948 ac_cv_c_stack_direction=0
28950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28951 /* end confdefs.h. */
28952 $ac_includes_default
28954 find_stack_direction (int *addr, int depth)
28956 int dir, dummy = 0;
28959 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
28960 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
28961 return dir + dummy;
28965 main (int argc, char **argv)
28967 return find_stack_direction (0, argc + !argv + 20) < 0;
28970 if ac_fn_c_try_run "$LINENO"; then :
28971 ac_cv_c_stack_direction=1
28973 ac_cv_c_stack_direction=-1
28975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28976 conftest.$ac_objext conftest.beam conftest.$ac_ext
28980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28981 $as_echo "$ac_cv_c_stack_direction" >&6; }
28982 cat >>confdefs.h <<_ACEOF
28983 #define STACK_DIRECTION $ac_cv_c_stack_direction
28989 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28990 # -lseq on Dynix/PTX, -lgen on Unixware.
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28992 $as_echo_n "checking for library containing getmntent... " >&6; }
28993 if ${ac_cv_search_getmntent+:} false; then :
28994 $as_echo_n "(cached) " >&6
28996 ac_func_search_save_LIBS=$LIBS
28997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28998 /* end confdefs.h. */
29000 /* Override any GCC internal prototype to avoid an error.
29001 Use char because int might match the return type of a GCC
29002 builtin and then its argument prototype would still apply. */
29010 return getmntent ();
29015 for ac_lib in '' sun seq gen; do
29016 if test -z "$ac_lib"; then
29017 ac_res="none required"
29020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29022 if ac_fn_c_try_link "$LINENO"; then :
29023 ac_cv_search_getmntent=$ac_res
29025 rm -f core conftest.err conftest.$ac_objext \
29027 if ${ac_cv_search_getmntent+:} false; then :
29031 if ${ac_cv_search_getmntent+:} false; then :
29034 ac_cv_search_getmntent=no
29036 rm conftest.$ac_ext
29037 LIBS=$ac_func_search_save_LIBS
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29040 $as_echo "$ac_cv_search_getmntent" >&6; }
29041 ac_res=$ac_cv_search_getmntent
29042 if test "$ac_res" != no; then :
29043 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29044 ac_cv_func_getmntent=yes
29046 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29049 ac_cv_func_getmntent=no
29053 for ac_func in getmntinfo
29055 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29056 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29057 cat >>confdefs.h <<_ACEOF
29058 #define HAVE_GETMNTINFO 1
29060 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29066 $as_echo_n "checking whether closedir returns void... " >&6; }
29067 if ${ac_cv_func_closedir_void+:} false; then :
29068 $as_echo_n "(cached) " >&6
29070 if test "$cross_compiling" = yes; then :
29071 ac_cv_func_closedir_void=yes
29073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29074 /* end confdefs.h. */
29075 $ac_includes_default
29076 #include <$ac_header_dirent>
29077 #ifndef __cplusplus
29084 return closedir (opendir (".")) != 0;
29089 if ac_fn_c_try_run "$LINENO"; then :
29090 ac_cv_func_closedir_void=no
29092 ac_cv_func_closedir_void=yes
29094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29095 conftest.$ac_objext conftest.beam conftest.$ac_ext
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29100 $as_echo "$ac_cv_func_closedir_void" >&6; }
29101 if test $ac_cv_func_closedir_void = yes; then
29103 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29108 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29109 if ${ac_cv_func_setpgrp_void+:} false; then :
29110 $as_echo_n "(cached) " >&6
29112 if test "$cross_compiling" = yes; then :
29113 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29116 /* end confdefs.h. */
29117 $ac_includes_default
29121 /* If this system has a BSD-style setpgrp which takes arguments,
29122 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29123 exit successfully. */
29124 return setpgrp (1,1) != -1;
29129 if ac_fn_c_try_run "$LINENO"; then :
29130 ac_cv_func_setpgrp_void=no
29132 ac_cv_func_setpgrp_void=yes
29134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29135 conftest.$ac_objext conftest.beam conftest.$ac_ext
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29140 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29141 if test $ac_cv_func_setpgrp_void = yes; then
29143 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29146 # AC_FUNC_FNMATCH dnl use local version
29148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29149 $as_echo_n "checking for gettext in -lintl... " >&6; }
29150 if ${ac_cv_lib_intl_gettext+:} false; then :
29151 $as_echo_n "(cached) " >&6
29153 ac_check_lib_save_LIBS=$LIBS
29154 LIBS="-lintl $LIBS"
29155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29156 /* end confdefs.h. */
29158 /* Override any GCC internal prototype to avoid an error.
29159 Use char because int might match the return type of a GCC
29160 builtin and then its argument prototype would still apply. */
29173 if ac_fn_c_try_link "$LINENO"; then :
29174 ac_cv_lib_intl_gettext=yes
29176 ac_cv_lib_intl_gettext=no
29178 rm -f core conftest.err conftest.$ac_objext \
29179 conftest$ac_exeext conftest.$ac_ext
29180 LIBS=$ac_check_lib_save_LIBS
29182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29183 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29184 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29185 LIBS="$LIBS -lintl"
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29190 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29191 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29192 $as_echo_n "(cached) " >&6
29194 ac_check_lib_save_LIBS=$LIBS
29196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29197 /* end confdefs.h. */
29199 /* Override any GCC internal prototype to avoid an error.
29200 Use char because int might match the return type of a GCC
29201 builtin and then its argument prototype would still apply. */
29209 return getpwnam ();
29214 if ac_fn_c_try_link "$LINENO"; then :
29215 ac_cv_lib_sun_getpwnam=yes
29217 ac_cv_lib_sun_getpwnam=no
29219 rm -f core conftest.err conftest.$ac_objext \
29220 conftest$ac_exeext conftest.$ac_ext
29221 LIBS=$ac_check_lib_save_LIBS
29223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29224 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29225 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29226 cat >>confdefs.h <<_ACEOF
29227 #define HAVE_LIBSUN 1
29235 for ac_header in zlib.h
29237 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29238 if test "x$ac_cv_header_zlib_h" = xyes; then :
29239 cat >>confdefs.h <<_ACEOF
29240 #define HAVE_ZLIB_H 1
29247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29248 $as_echo_n "checking for deflate in -lz... " >&6; }
29249 if ${ac_cv_lib_z_deflate+:} false; then :
29250 $as_echo_n "(cached) " >&6
29252 ac_check_lib_save_LIBS=$LIBS
29254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29255 /* end confdefs.h. */
29257 /* Override any GCC internal prototype to avoid an error.
29258 Use char because int might match the return type of a GCC
29259 builtin and then its argument prototype would still apply. */
29272 if ac_fn_c_try_link "$LINENO"; then :
29273 ac_cv_lib_z_deflate=yes
29275 ac_cv_lib_z_deflate=no
29277 rm -f core conftest.err conftest.$ac_objext \
29278 conftest$ac_exeext conftest.$ac_ext
29279 LIBS=$ac_check_lib_save_LIBS
29281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29282 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29283 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29288 if test x$ZLIBS = x-lz; then
29289 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29298 # Check whether --enable-afs was given.
29299 if test "${enable_afs+set}" = set; then :
29300 enableval=$enable_afs;
29301 if test x$enableval = xyes; then
29303 elif test x$enableval = xno; then
29312 if test x$support_afs = xyes -o x$support_afs = xauto; then
29314 # Check whether --with-afsdir was given.
29315 if test "${with_afsdir+set}" = set; then :
29316 withval=$with_afsdir; with_afsdir=$withval
29321 if test x$with_afsdir = x; then
29322 for root in /usr /usr/local; do
29323 if test -d ${root}/include/afs/ ; then
29324 with_afsdir=${root}
29327 if test -d ${root}/include/openafs/afs/ ; then
29328 with_afsdir=${root}
29334 if test -d ${with_afsdir}/include/afs/ ; then
29335 AFS_CFLAGS="-I${with_afsdir}/include"
29337 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29338 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29342 saved_CFLAGS="${CFLAGS}"
29343 saved_CPPFLAGS="${CPPFLAGS}"
29344 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29345 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29347 for ac_header in afs/afsint.h
29349 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29350 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29351 cat >>confdefs.h <<_ACEOF
29352 #define HAVE_AFS_AFSINT_H 1
29359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29360 /* end confdefs.h. */
29362 #include <afs/afsint.h>
29363 #include <afs/venus.h>
29366 if ac_fn_c_try_cpp "$LINENO"; then :
29368 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29372 rm -f conftest.err conftest.i conftest.$ac_ext
29374 CFLAGS="${saved_CFLAGS}"
29375 CPPFLAGS="${saved_CPPFLAGS}"
29377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29378 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29379 for dir in ${with_afsdir}/lib \
29380 ${with_afsdir}/lib/afs \
29381 ${with_afsdir}/lib/openafs \
29382 ${with_afsdir}/lib64 \
29383 ${with_afsdir}/lib64/afs \
29384 ${with_afsdir}/lib64/openafs
29386 for arch_type in .a .so
29388 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29390 if test $pkg = 0; then
29392 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29398 if test $have_afs = yes; then
29399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29400 $as_echo "yes" >&6; }
29402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29403 $as_echo "no" >&6; }
29406 if test x$support_afs = xyes -a $have_afs != yes; then
29407 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29408 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29410 if test $have_afs = yes; then
29412 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29415 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29424 # Check whether --enable-lzo was given.
29425 if test "${enable_lzo+set}" = set; then :
29426 enableval=$enable_lzo;
29427 if test x$enableval = xno; then
29440 if test x$support_lzo = xyes; then
29442 # Check whether --with-lzo was given.
29443 if test "${with_lzo+set}" = set; then :
29445 case "$with_lzo" in
29450 if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29451 LZO_INC="-I${with_lzo}/include"
29452 LZO_LDFLAGS="-L${with_lzo}/lib"
29453 with_lzo="${with_lzo}/include"
29455 with_lzo="/usr/include"
29458 as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29459 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29460 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29463 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29465 LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29471 echo "lzoconf.h not found. lzo turned off ..."
29483 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29484 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29486 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29487 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29490 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29491 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29492 $as_echo_n "(cached) " >&6
29494 ac_check_lib_save_LIBS=$LIBS
29495 LIBS="-llzo2 $LIBS"
29496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29497 /* end confdefs.h. */
29499 /* Override any GCC internal prototype to avoid an error.
29500 Use char because int might match the return type of a GCC
29501 builtin and then its argument prototype would still apply. */
29505 char lzo1x_1_compress ();
29509 return lzo1x_1_compress ();
29514 if ac_fn_c_try_link "$LINENO"; then :
29515 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29517 ac_cv_lib_lzo2_lzo1x_1_compress=no
29519 rm -f core conftest.err conftest.$ac_objext \
29520 conftest$ac_exeext conftest.$ac_ext
29521 LIBS=$ac_check_lib_save_LIBS
29523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29524 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29525 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29529 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29553 # Check whether --enable-acl was given.
29554 if test "${enable_acl+set}" = set; then :
29555 enableval=$enable_acl;
29556 if test x$enableval = xyes; then
29558 elif test x$enableval = xno; then
29567 have_extended_acl=no
29568 if test x$support_acl = xyes -o x$support_acl = xauto; then
29569 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29570 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29572 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29578 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29579 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29587 if test $have_acl = no; then
29588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29589 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29590 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29591 $as_echo_n "(cached) " >&6
29593 ac_check_lib_save_LIBS=$LIBS
29595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29596 /* end confdefs.h. */
29598 /* Override any GCC internal prototype to avoid an error.
29599 Use char because int might match the return type of a GCC
29600 builtin and then its argument prototype would still apply. */
29604 char acl_get_file ();
29608 return acl_get_file ();
29613 if ac_fn_c_try_link "$LINENO"; then :
29614 ac_cv_lib_acl_acl_get_file=yes
29616 ac_cv_lib_acl_acl_get_file=no
29618 rm -f core conftest.err conftest.$ac_objext \
29619 conftest$ac_exeext conftest.$ac_ext
29620 LIBS=$ac_check_lib_save_LIBS
29622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29623 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29624 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29627 if test $have_afs = yes; then
29628 if test -d /usr/lib64/; then
29629 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29631 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29634 FDLIBS="-lacl $FDLIBS"
29642 if test $have_acl = no -a \
29643 x${HAVE_OSF1_OS_TRUE} = x; then
29644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29645 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29646 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29647 $as_echo_n "(cached) " >&6
29649 ac_check_lib_save_LIBS=$LIBS
29650 LIBS="-lpacl $LIBS"
29651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29652 /* end confdefs.h. */
29654 /* Override any GCC internal prototype to avoid an error.
29655 Use char because int might match the return type of a GCC
29656 builtin and then its argument prototype would still apply. */
29660 char acl_get_file ();
29664 return acl_get_file ();
29669 if ac_fn_c_try_link "$LINENO"; then :
29670 ac_cv_lib_pacl_acl_get_file=yes
29672 ac_cv_lib_pacl_acl_get_file=no
29674 rm -f core conftest.err conftest.$ac_objext \
29675 conftest$ac_exeext conftest.$ac_ext
29676 LIBS=$ac_check_lib_save_LIBS
29678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29679 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29680 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29683 FDLIBS="-lpacl $FDLIBS"
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29690 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29691 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29692 if test $? = 0; then
29694 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29697 $as_echo "yes" >&6; }
29699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29700 $as_echo "no" >&6; }
29704 if test $have_acl = yes -a \
29705 x${HAVE_DARWIN_OS_TRUE} = x; then
29706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29707 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29708 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29709 if test $? = 0; then
29711 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29714 $as_echo "yes" >&6; }
29716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29717 $as_echo "no" >&6; }
29721 if test $have_acl = yes -a \
29722 x${HAVE_FREEBSD_OS_TRUE} = x; then
29723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29724 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29725 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29726 if test $? = 0; then
29728 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29731 $as_echo "yes" >&6; }
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29734 $as_echo "no" >&6; }
29738 if test $have_acl = no -a \
29739 x${HAVE_SUN_OS_TRUE} = x; then
29740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29741 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29742 if ${ac_cv_lib_sec_acltotext+:} false; then :
29743 $as_echo_n "(cached) " >&6
29745 ac_check_lib_save_LIBS=$LIBS
29747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29748 /* end confdefs.h. */
29750 /* Override any GCC internal prototype to avoid an error.
29751 Use char because int might match the return type of a GCC
29752 builtin and then its argument prototype would still apply. */
29760 return acltotext ();
29765 if ac_fn_c_try_link "$LINENO"; then :
29766 ac_cv_lib_sec_acltotext=yes
29768 ac_cv_lib_sec_acltotext=no
29770 rm -f core conftest.err conftest.$ac_objext \
29771 conftest$ac_exeext conftest.$ac_ext
29772 LIBS=$ac_check_lib_save_LIBS
29774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29775 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29776 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29779 FDLIBS="-lsec $FDLIBS"
29781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29782 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29783 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29784 $as_echo_n "(cached) " >&6
29786 ac_check_lib_save_LIBS=$LIBS
29788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29789 /* end confdefs.h. */
29791 /* Override any GCC internal prototype to avoid an error.
29792 Use char because int might match the return type of a GCC
29793 builtin and then its argument prototype would still apply. */
29797 char acl_totext ();
29801 return acl_totext ();
29806 if ac_fn_c_try_link "$LINENO"; then :
29807 ac_cv_lib_sec_acl_totext=yes
29809 ac_cv_lib_sec_acl_totext=no
29811 rm -f core conftest.err conftest.$ac_objext \
29812 conftest$ac_exeext conftest.$ac_ext
29813 LIBS=$ac_check_lib_save_LIBS
29815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29816 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29817 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29819 have_extended_acl=yes
29830 if test $have_acl = no -a \
29831 x${HAVE_AIX_OS_TRUE} = x; then
29832 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29833 if test "x$ac_cv_func_acl_get" = xyes; then :
29837 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29838 if test "x$ac_cv_func_aclx_get" = xyes; then :
29840 have_extended_acl=yes
29851 if test x$support_acl = xyes -a $have_acl != yes; then
29852 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29853 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29855 if test $have_acl = yes; then
29857 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29861 if test $have_extended_acl = yes; then
29863 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29870 # Check whether --enable-xattr was given.
29871 if test "${enable_xattr+set}" = set; then :
29872 enableval=$enable_xattr;
29873 if test x$enableval = xyes; then
29875 elif test x$enableval = xno; then
29884 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29885 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29886 x${HAVE_NETBSD_OS_TRUE} = x -o \
29887 x${HAVE_OPENBSD_OS_TRUE} = x; then
29888 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29889 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29891 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29896 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29897 if test "x$ac_cv_header_libutil_h" = xyes; then :
29899 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29904 for ac_func in extattr_get_link extattr_set_link extattr_list_link
29906 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29907 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29908 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29909 cat >>confdefs.h <<_ACEOF
29910 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29915 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29918 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29921 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29929 if test $have_xattr = no; then
29930 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29932 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29933 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29934 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29935 cat >>confdefs.h <<_ACEOF
29936 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29941 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29944 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29947 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29956 if test $have_xattr = yes; then
29957 have_extattr_string_in_libc=no
29958 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29960 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29961 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29962 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29963 cat >>confdefs.h <<_ACEOF
29964 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29967 have_extattr_string_in_libc=yes
29969 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29972 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29980 if test $have_extattr_string_in_libc = no; then
29981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29982 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29983 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29984 $as_echo_n "(cached) " >&6
29986 ac_check_lib_save_LIBS=$LIBS
29987 LIBS="-lutil $LIBS"
29988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29989 /* end confdefs.h. */
29991 /* Override any GCC internal prototype to avoid an error.
29992 Use char because int might match the return type of a GCC
29993 builtin and then its argument prototype would still apply. */
29997 char extattr_namespace_to_string extattr_string_to_namespace ();
30001 return extattr_namespace_to_string extattr_string_to_namespace ();
30006 if ac_fn_c_try_link "$LINENO"; then :
30007 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30009 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30011 rm -f core conftest.err conftest.$ac_objext \
30012 conftest$ac_exeext conftest.$ac_ext
30013 LIBS=$ac_check_lib_save_LIBS
30015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30016 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30017 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30020 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30023 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30025 FDLIBS="-lutil $FDLIBS"
30034 if test $have_xattr = no -a \
30035 x${HAVE_AIX_OS_TRUE} = x; then
30036 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30037 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30039 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30044 for ac_func in llistea lgetea lsetea
30046 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30047 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30048 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30049 cat >>confdefs.h <<_ACEOF
30050 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30055 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30058 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30061 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30069 if test $have_xattr = no; then
30070 for ac_func in listea getea setea
30072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30073 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30074 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30075 cat >>confdefs.h <<_ACEOF
30076 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30081 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30084 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30087 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30097 if test $have_xattr = no -a \
30098 x${HAVE_OSF1_OS_TRUE} = x; then
30099 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30100 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30102 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30107 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30109 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30110 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30111 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30112 cat >>confdefs.h <<_ACEOF
30113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30118 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30121 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30124 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30127 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30130 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30139 if test $have_xattr = no -a \
30140 x${HAVE_SUN_OS_TRUE} = x; then
30141 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30142 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30144 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30149 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30150 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30152 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30157 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30158 if test "x$ac_cv_header_attr_h" = xyes; then :
30160 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30166 for ac_func in openat fstatat unlinkat fchownat futimesat
30168 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30169 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30170 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30171 cat >>confdefs.h <<_ACEOF
30172 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30177 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30180 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30183 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30186 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30189 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30197 if test $have_xattr = yes; then
30198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30199 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30200 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30201 $as_echo_n "(cached) " >&6
30203 ac_check_lib_save_LIBS=$LIBS
30204 LIBS="-lnvpair $LIBS"
30205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30206 /* end confdefs.h. */
30208 /* Override any GCC internal prototype to avoid an error.
30209 Use char because int might match the return type of a GCC
30210 builtin and then its argument prototype would still apply. */
30214 char nvlist_next_nvpair ();
30218 return nvlist_next_nvpair ();
30223 if ac_fn_c_try_link "$LINENO"; then :
30224 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30226 ac_cv_lib_nvpair_nvlist_next_nvpair=no
30228 rm -f core conftest.err conftest.$ac_objext \
30229 conftest$ac_exeext conftest.$ac_ext
30230 LIBS=$ac_check_lib_save_LIBS
30232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30233 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30234 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30237 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30239 FDLIBS="-lnvpair $FDLIBS"
30247 if test $have_xattr = no; then
30248 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30249 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30251 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30256 for ac_func in llistxattr lgetxattr lsetxattr
30258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30259 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30260 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30261 cat >>confdefs.h <<_ACEOF
30262 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30267 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30270 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30273 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30281 if test $have_xattr = no; then
30282 for ac_func in listxattr getxattr setxattr
30284 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30285 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30286 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30287 cat >>confdefs.h <<_ACEOF
30288 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30293 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30296 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30299 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30309 if test x$support_xattr = xyes -a $have_xattr != yes; then
30310 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30311 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30313 if test $have_xattr = yes; then
30315 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30323 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30324 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30325 $as_echo_n "(cached) " >&6
30327 ac_check_lib_save_LIBS=$LIBS
30328 LIBS="-lpthread $LIBS"
30329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30330 /* end confdefs.h. */
30332 /* Override any GCC internal prototype to avoid an error.
30333 Use char because int might match the return type of a GCC
30334 builtin and then its argument prototype would still apply. */
30338 char pthread_create ();
30342 return pthread_create ();
30347 if ac_fn_c_try_link "$LINENO"; then :
30348 ac_cv_lib_pthread_pthread_create=yes
30350 ac_cv_lib_pthread_pthread_create=no
30352 rm -f core conftest.err conftest.$ac_objext \
30353 conftest$ac_exeext conftest.$ac_ext
30354 LIBS=$ac_check_lib_save_LIBS
30356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30357 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30358 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30359 PTHREAD_LIB="-lpthread"
30362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30363 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30364 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30365 $as_echo_n "(cached) " >&6
30367 ac_check_lib_save_LIBS=$LIBS
30368 LIBS="-lpthreads $LIBS"
30369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30370 /* end confdefs.h. */
30372 /* Override any GCC internal prototype to avoid an error.
30373 Use char because int might match the return type of a GCC
30374 builtin and then its argument prototype would still apply. */
30378 char pthread_create ();
30382 return pthread_create ();
30387 if ac_fn_c_try_link "$LINENO"; then :
30388 ac_cv_lib_pthreads_pthread_create=yes
30390 ac_cv_lib_pthreads_pthread_create=no
30392 rm -f core conftest.err conftest.$ac_objext \
30393 conftest$ac_exeext conftest.$ac_ext
30394 LIBS=$ac_check_lib_save_LIBS
30396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30397 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30398 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30399 PTHREAD_LIB="-lpthreads"
30402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30403 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30404 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30405 $as_echo_n "(cached) " >&6
30407 ac_check_lib_save_LIBS=$LIBS
30409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30410 /* end confdefs.h. */
30412 /* Override any GCC internal prototype to avoid an error.
30413 Use char because int might match the return type of a GCC
30414 builtin and then its argument prototype would still apply. */
30418 char pthread_create ();
30422 return pthread_create ();
30427 if ac_fn_c_try_link "$LINENO"; then :
30428 ac_cv_lib_c_r_pthread_create=yes
30430 ac_cv_lib_c_r_pthread_create=no
30432 rm -f core conftest.err conftest.$ac_objext \
30433 conftest$ac_exeext conftest.$ac_ext
30434 LIBS=$ac_check_lib_save_LIBS
30436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30437 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30438 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30439 PTHREAD_LIB="-lc_r"
30442 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30443 if test "x$ac_cv_func_pthread_create" = xyes; then :
30460 for ac_header in sys/prctl.h sys/capability.h
30462 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30463 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30464 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30465 cat >>confdefs.h <<_ACEOF
30466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30473 for ac_func in prctl setreuid
30475 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30476 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30477 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30478 cat >>confdefs.h <<_ACEOF
30479 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30486 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30487 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30488 $as_echo_n "(cached) " >&6
30490 ac_check_lib_save_LIBS=$LIBS
30492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30493 /* end confdefs.h. */
30495 /* Override any GCC internal prototype to avoid an error.
30496 Use char because int might match the return type of a GCC
30497 builtin and then its argument prototype would still apply. */
30501 char cap_set_proc ();
30505 return cap_set_proc ();
30510 if ac_fn_c_try_link "$LINENO"; then :
30511 ac_cv_lib_cap_cap_set_proc=yes
30513 ac_cv_lib_cap_cap_set_proc=no
30515 rm -f core conftest.err conftest.$ac_objext \
30516 conftest$ac_exeext conftest.$ac_ext
30517 LIBS=$ac_check_lib_save_LIBS
30519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30520 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30521 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30527 if test x$CAP_LIBS = x-lcap; then
30529 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30535 $as_echo "#define FDLIBS 1" >>confdefs.h
30538 CFLAGS=${CFLAGS--O}
30540 if test x$have_gcc = xyes ; then
30541 CPPFLAGS="$CPPFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30542 CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30544 LDFLAGS=${LDFLAGS--O}
30545 CPPFLAGS="$CPPFLAGS"
30574 COMPRESS_MANPAGES=yes
30576 case "$DISTNAME" in
30579 PSCMD="ps -e -o pid,comm"
30580 PFILES="${PFILES} platforms/aix/Makefile"
30581 TAPEDRIVE="/dev/rmt0.1"
30585 PTHREAD_LIB="-lpthread -lexc"
30586 if test "${CC}" = "gcc" ; then
30593 TAPEDRIVE="/dev/nrmt0"
30596 DISTVER=`uname -a |awk '{print $3}'`
30597 TAPEDRIVE="/dev/nrmt0"
30598 PTHREAD_LIB="-pthread"
30599 CFLAGS="${CFLAGS} -pthread"
30600 PSCMD="ps -ax -o pid,command"
30603 PFILES="${PFILES} \
30604 platforms/bsdi/Makefile \
30605 platforms/bsdi/bacula-fd \
30606 platforms/bsdi/bacula-sd \
30607 platforms/bsdi/bacula-dir"
30608 largefile_support="yes"
30611 DISTVER=`uname -a |awk '{print $3}'`
30612 TAPEDRIVE="/dev/nrst0"
30614 WCFLAGS="-mwindows"
30615 WLDFLAGS="-mwindows"
30619 TAPEDRIVE="/dev/nst0"
30620 PSCMD="ps -e -o pid,command"
30622 PFILES="${PFILES} \
30623 platforms/darwin/Makefile"
30627 TAPEDRIVE="/dev/nst0"
30628 PSCMD="ps -e -o pid,command"
30630 PFILES="${PFILES} \
30631 platforms/osx/Makefile"
30634 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30637 DISTVER=`cat /etc/debian_version`
30638 if test -f /etc/lsb-release ; then
30640 if test "x$DISTRIB_ID" != "x" ; then
30641 DISTNAME=$DISTRIB_ID
30643 if test "x$DISTRIB_RELEASE" != "x" ; then
30644 DISTVER=$DISTRIB_RELEASE
30647 if test "$DISTNAME" = "Ubuntu" ; then
30650 TAPEDRIVE="/dev/nst0"
30651 PSCMD="ps -e -o pid,command"
30652 if test "$DISTNAME" = "ubuntu" ; then
30653 PFILES="${PFILES} \
30654 platforms/ubuntu/Makefile \
30655 platforms/ubuntu/bacula-fd \
30656 platforms/ubuntu/bacula-sd \
30657 platforms/ubuntu/bacula-dir"
30659 PFILES="${PFILES} \
30660 platforms/debian/Makefile \
30661 platforms/debian/bacula-fd \
30662 platforms/debian/bacula-sd \
30663 platforms/debian/bacula-dir"
30667 DISTVER=`uname -a |awk '{print $3}'`
30668 VER=`echo $DISTVER | cut -c 1`
30669 if test x$VER = x4 ; then
30670 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30671 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30675 TAPEDRIVE="/dev/nrsa0"
30676 PSCMD="ps -ax -o pid,command"
30677 PFILES="${PFILES} \
30678 platforms/freebsd/Makefile \
30679 platforms/freebsd/bacula-fd \
30680 platforms/freebsd/bacula-sd \
30681 platforms/freebsd/bacula-dir"
30682 largefile_support="yes"
30686 TAPEDRIVE="/dev/nst0"
30687 PSCMD="ps -e -o pid,command"
30688 PFILES="${PFILES} \
30689 platforms/hurd/Makefile \
30690 platforms/hurd/bacula-fd \
30691 platforms/hurd/bacula-sd \
30692 platforms/hurd/bacula-dir"
30695 PSCMD="UNIX95=1; ps -e -o pid,comm"
30696 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30698 TAPEDRIVE="/dev/rmt/0hnb"
30699 PTHREAD_LIB="-lpthread"
30700 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30705 TAPEDRIVE="/dev/rmt/0cbn"
30706 PSCMD="ps -e -o pid,comm"
30707 PFILES="${PFILES} \
30708 platforms/irix/Makefile \
30709 platforms/irix/bacula-fd \
30710 platforms/irix/bacula-sd \
30711 platforms/irix/bacula-dir"
30714 DISTVER=`uname -a |awk '{print $3}'`
30717 TAPEDRIVE="/dev/nrst0"
30718 PSCMD="ps -ax -o pid,command"
30719 PTHREAD_LIB="-pthread"
30720 CFLAGS="${CFLAGS} -pthread"
30723 DISTVER=`uname -a |awk '{print $3}'`
30726 TAPEDRIVE="/dev/nrst0"
30727 PSCMD="ps -ax -o pid,command"
30728 PTHREAD_LIB="-pthread"
30729 CFLAGS="${CFLAGS} -pthread"
30730 PFILES="${PFILES} \
30731 platforms/openbsd/Makefile \
30732 platforms/openbsd/bacula-fd \
30733 platforms/openbsd/bacula-sd \
30734 platforms/openbsd/bacula-dir"
30737 if test -f /etc/whitebox-release ; then
30738 f=/etc/whitebox-release
30740 f=/etc/redhat-release
30742 if test `cat $f | grep release |\
30743 cut -f 3 -d ' '`x = "Enterprise"x ; then
30744 DISTVER="Enterprise "`cat $f | grep release |\
30747 DISTVER=`cat /etc/redhat-release | grep release |\
30750 TAPEDRIVE="/dev/nst0"
30751 PSCMD="ps -e -o pid,command"
30752 PFILES="${PFILES} \
30753 platforms/redhat/Makefile \
30754 platforms/redhat/bacula-fd \
30755 platforms/redhat/bacula-sd \
30756 platforms/redhat/bacula-dir
30760 DISTVER=`cat /etc/mandrake-release | grep release |\
30762 TAPEDRIVE="/dev/nst0"
30763 PSCMD="ps -e -o pid,command"
30764 PFILES="${PFILES} \
30765 platforms/mandrake/Makefile \
30766 platforms/mandrake/bacula-fd \
30767 platforms/mandrake/bacula-sd \
30768 platforms/mandrake/bacula-dir \
30772 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30773 TAPEDRIVE="/dev/nst0"
30774 PSCMD="ps -e -o pid,command"
30775 PFILES="${PFILES} \
30776 platforms/gentoo/Makefile \
30777 platforms/gentoo/bacula-init \
30778 platforms/gentoo/bacula-fd \
30779 platforms/gentoo/bacula-sd \
30780 platforms/gentoo/bacula-dir"
30783 DISTVER=`cat /etc/slackware-version`
30784 TAPEDRIVE="/dev/nst0"
30785 PSCMD="ps -e -o pid,command"
30786 PFILES="${PFILES} \
30787 platforms/slackware/Makefile \
30788 platforms/slackware/rc.bacula-fd \
30789 platforms/slackware/rc.bacula-sd \
30790 platforms/slackware/rc.bacula-dir\
30791 platforms/slackware/functions.bacula"
30795 TAPEDRIVE="/dev/rmt/0cbn"
30796 PSCMD="ps -e -o pid,comm"
30797 PFILES="${PFILES} \
30798 platforms/solaris/Makefile \
30799 platforms/solaris/bacula-fd \
30800 platforms/solaris/bacula-sd \
30801 platforms/solaris/bacula-dir"
30805 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30807 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30811 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30817 LIBS="$LIBS -lresolv -lrt"
30820 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30822 TAPEDRIVE="/dev/nst0"
30823 PSCMD="ps -e -o pid,command"
30824 PFILES="${PFILES} \
30825 platforms/suse/Makefile \
30826 platforms/suse/bacula-fd \
30827 platforms/suse/bacula-sd \
30828 platforms/suse/bacula-dir \
30829 platforms/suse/bacula"
30834 TAPEDRIVE="/dev/nst0"
30835 PSCMD="ps -e -o pid,command"
30836 PFILES="${PFILES} \
30837 platforms/suse/Makefile \
30838 platforms/suse/bacula-fd \
30839 platforms/suse/bacula-sd \
30840 platforms/suse/bacula-dir"
30844 TAPEDRIVE="/dev/nst0"
30847 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30852 $as_echo_n "checking for systemd support... " >&6; }
30854 # Check whether --with-systemd was given.
30855 if test "${with_systemd+set}" = set; then :
30856 withval=$with_systemd;
30857 if test "$withval" != "no"; then
30858 if test "$withval" = "yes"; then
30859 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30861 SYSTEMD_UNITDIR="${withval}"
30864 PFILES="${PFILES} \
30865 platforms/systemd/Makefile \
30866 platforms/systemd/bacula-dir.service \
30867 platforms/systemd/bacula-fd.service \
30868 platforms/systemd/bacula-sd.service"
30870 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30873 $as_echo "yes" >&6; }
30874 support_systemd="yes"
30876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30877 $as_echo "no" >&6; }
30878 support_systemd="no"
30883 support_systemd="no"
30884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30885 $as_echo "no" >&6; }
30894 LIBS="$PTHREAD_LIB $LIBS"
30896 cat >>confdefs.h <<_ACEOF
30900 cat >>confdefs.h <<_ACEOF
30912 MCOMMON=./autoconf/Make.common
30915 if test "x${subsysdir}" = "x${sbindir}" ; then
30918 echo "You have set both --sbindir and --with-subsys-dir"
30919 echo " equal to: ${subsysdir} "
30920 echo "This is not permitted. Please reconfigure."
30922 echo "Aborting configuration ..."
30929 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/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"
30931 ac_config_commands="$ac_config_commands default"
30933 cat >confcache <<\_ACEOF
30934 # This file is a shell script that caches the results of configure
30935 # tests run on this system so they can be shared between configure
30936 # scripts and configure runs, see configure's option --config-cache.
30937 # It is not useful on other systems. If it contains results you don't
30938 # want to keep, you may remove or edit it.
30940 # config.status only pays attention to the cache file if you give it
30941 # the --recheck option to rerun configure.
30943 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30944 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30945 # following values.
30949 # The following way of writing the cache mishandles newlines in values,
30950 # but we know of no workaround that is simple, portable, and efficient.
30951 # So, we kill variables containing newlines.
30952 # Ultrix sh set writes to stderr and can't be redirected directly,
30953 # and sets the high bit in the cache file unless we assign to the vars.
30955 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30956 eval ac_val=\$$ac_var
30960 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30961 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30964 _ | IFS | as_nl) ;; #(
30965 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30966 *) { eval $ac_var=; unset $ac_var;} ;;
30972 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30973 *${as_nl}ac_space=\ *)
30974 # `set' does not quote correctly, so add quotes: double-quote
30975 # substitution turns \\\\ into \\, and sed turns \\ into \.
30978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30981 # `set' quotes correctly as required by POSIX, so do not add quotes.
30982 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30991 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30993 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30995 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30996 if test -w "$cache_file"; then
30997 if test "x$cache_file" != "x/dev/null"; then
30998 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30999 $as_echo "$as_me: updating cache $cache_file" >&6;}
31000 if test ! -f "$cache_file" || test -h "$cache_file"; then
31001 cat confcache >"$cache_file"
31003 case $cache_file in #(
31005 mv -f confcache "$cache_file"$$ &&
31006 mv -f "$cache_file"$$ "$cache_file" ;; #(
31008 mv -f confcache "$cache_file" ;;
31013 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31014 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31019 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31020 # Let make expand exec_prefix.
31021 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31023 DEFS=-DHAVE_CONFIG_H
31028 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31029 # 1. Remove the extension, and $U if already installed.
31030 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31031 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31032 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31033 # will be set to the directory where LIBOBJS objects are built.
31034 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31035 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31037 LIBOBJS=$ac_libobjs
31039 LTLIBOBJS=$ac_ltlibobjs
31044 : "${CONFIG_STATUS=./config.status}"
31046 ac_clean_files_save=$ac_clean_files
31047 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31048 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31049 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31051 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31053 # Generated by $as_me.
31054 # Run this file to recreate the current configuration.
31055 # Compiler output produced by configure, useful for debugging
31056 # configure, is in config.log if it exists.
31059 ac_cs_recheck=false
31062 SHELL=\${CONFIG_SHELL-$SHELL}
31065 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31066 ## -------------------- ##
31067 ## M4sh Initialization. ##
31068 ## -------------------- ##
31070 # Be more Bourne compatible
31071 DUALCASE=1; export DUALCASE # for MKS sh
31072 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31075 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31076 # is contrary to our usage. Disable this feature.
31077 alias -g '${1+"$@"}'='"$@"'
31078 setopt NO_GLOB_SUBST
31080 case `(set -o) 2>/dev/null` in #(
31092 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31093 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31094 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31095 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31096 # Prefer a ksh shell builtin over an external printf program on Solaris,
31097 # but without wasting forks for bash or zsh.
31098 if test -z "$BASH_VERSION$ZSH_VERSION" \
31099 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31100 as_echo='print -r --'
31101 as_echo_n='print -rn --'
31102 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31103 as_echo='printf %s\n'
31104 as_echo_n='printf %s'
31106 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31107 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31108 as_echo_n='/usr/ucb/echo -n'
31110 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31111 as_echo_n_body='eval
31115 expr "X$arg" : "X\\(.*\\)$as_nl";
31116 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31118 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31120 export as_echo_n_body
31121 as_echo_n='sh -c $as_echo_n_body as_echo'
31123 export as_echo_body
31124 as_echo='sh -c $as_echo_body as_echo'
31127 # The user is always right.
31128 if test "${PATH_SEPARATOR+set}" != set; then
31130 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31131 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31138 # We need space, tab and new line, in precisely that order. Quoting is
31139 # there to prevent editors from complaining about space-tab.
31140 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31141 # splitting by setting IFS to empty value.)
31144 # Find who we are. Look in the path if we contain no directory separator.
31147 *[\\/]* ) as_myself=$0 ;;
31148 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31149 for as_dir in $PATH
31152 test -z "$as_dir" && as_dir=.
31153 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31159 # We did not find ourselves, most probably we were run as `sh COMMAND'
31160 # in which case we are not to be found in the path.
31161 if test "x$as_myself" = x; then
31164 if test ! -f "$as_myself"; then
31165 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31169 # Unset variables that we do not need and which cause bugs (e.g. in
31170 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31171 # suppresses any "Segmentation fault" message there. '((' could
31172 # trigger a bug in pdksh 5.2.14.
31173 for as_var in BASH_ENV ENV MAIL MAILPATH
31174 do eval test x\${$as_var+set} = xset \
31175 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31188 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31191 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31192 # ----------------------------------------
31193 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31194 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31195 # script with STATUS, using 1 if that was 0.
31198 as_status=$1; test $as_status -eq 0 && as_status=1
31200 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31201 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31203 $as_echo "$as_me: error: $2" >&2
31204 as_fn_exit $as_status
31208 # as_fn_set_status STATUS
31209 # -----------------------
31210 # Set $? to STATUS, without forking.
31211 as_fn_set_status ()
31214 } # as_fn_set_status
31216 # as_fn_exit STATUS
31217 # -----------------
31218 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31222 as_fn_set_status $1
31228 # Portably unset VAR.
31231 { eval $1=; unset $1;}
31233 as_unset=as_fn_unset
31234 # as_fn_append VAR VALUE
31235 # ----------------------
31236 # Append the text in VALUE to the end of the definition contained in VAR. Take
31237 # advantage of any shell optimizations that allow amortized linear growth over
31238 # repeated appends, instead of the typical quadratic growth present in naive
31240 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31241 eval 'as_fn_append ()
31252 # as_fn_arith ARG...
31253 # ------------------
31254 # Perform arithmetic evaluation on the ARGs, and store the result in the
31255 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31256 # must be portable across $(()) and expr.
31257 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31258 eval 'as_fn_arith ()
31265 as_val=`expr "$@" || test $? -eq 1`
31270 if expr a : '\(a\)' >/dev/null 2>&1 &&
31271 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31277 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31278 as_basename=basename
31283 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31289 as_me=`$as_basename -- "$0" ||
31290 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31291 X"$0" : 'X\(//\)$' \| \
31292 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31294 sed '/^.*\/\([^/][^/]*\)\/*$/{
31308 # Avoid depending upon Character Ranges.
31309 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31310 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31311 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31312 as_cr_digits='0123456789'
31313 as_cr_alnum=$as_cr_Letters$as_cr_digits
31315 ECHO_C= ECHO_N= ECHO_T=
31316 case `echo -n x` in #(((((
31318 case `echo 'xy\c'` in
31319 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31321 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31328 rm -f conf$$ conf$$.exe conf$$.file
31329 if test -d conf$$.dir; then
31330 rm -f conf$$.dir/conf$$.file
31333 mkdir conf$$.dir 2>/dev/null
31335 if (echo >conf$$.file) 2>/dev/null; then
31336 if ln -s conf$$.file conf$$ 2>/dev/null; then
31338 # ... but there are two gotchas:
31339 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31340 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31341 # In both cases, we have to default to `cp -pR'.
31342 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31344 elif ln conf$$.file conf$$ 2>/dev/null; then
31352 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31353 rmdir conf$$.dir 2>/dev/null
31358 # Create "$as_dir" as a directory, including parents if necessary.
31363 -*) as_dir=./$as_dir;;
31365 test -d "$as_dir" || eval $as_mkdir_p || {
31369 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31370 *) as_qdir=$as_dir;;
31372 as_dirs="'$as_qdir' $as_dirs"
31373 as_dir=`$as_dirname -- "$as_dir" ||
31374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31375 X"$as_dir" : 'X\(//\)[^/]' \| \
31376 X"$as_dir" : 'X\(//\)$' \| \
31377 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31378 $as_echo X"$as_dir" |
31379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31383 /^X\(\/\/\)[^/].*/{
31396 test -d "$as_dir" && break
31398 test -z "$as_dirs" || eval "mkdir $as_dirs"
31399 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31403 if mkdir -p . 2>/dev/null; then
31404 as_mkdir_p='mkdir -p "$as_dir"'
31406 test -d ./-p && rmdir ./-p
31411 # as_fn_executable_p FILE
31412 # -----------------------
31413 # Test if FILE is an executable regular file.
31414 as_fn_executable_p ()
31416 test -f "$1" && test -x "$1"
31417 } # as_fn_executable_p
31418 as_test_x='test -x'
31419 as_executable_p=as_fn_executable_p
31421 # Sed expression to map a string onto a valid CPP name.
31422 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31424 # Sed expression to map a string onto a valid variable name.
31425 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31429 ## ----------------------------------- ##
31430 ## Main body of $CONFIG_STATUS script. ##
31431 ## ----------------------------------- ##
31433 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31436 # Save the log message, to keep $0 and so on meaningful, and to
31437 # report actual input values of CONFIG_FILES etc. instead of their
31438 # values after options handling.
31440 This file was extended by bacula $as_me 7.4.1, which was
31441 generated by GNU Autoconf 2.69. Invocation command line was
31443 CONFIG_FILES = $CONFIG_FILES
31444 CONFIG_HEADERS = $CONFIG_HEADERS
31445 CONFIG_LINKS = $CONFIG_LINKS
31446 CONFIG_COMMANDS = $CONFIG_COMMANDS
31449 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31454 case $ac_config_files in *"
31455 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31458 case $ac_config_headers in *"
31459 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31464 # Files that config.status was made for.
31465 config_files="$ac_config_files"
31466 config_headers="$ac_config_headers"
31467 config_commands="$ac_config_commands"
31471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31473 \`$as_me' instantiates files and other configuration actions
31474 from templates according to the current configuration. Unless the files
31475 and actions are specified as TAGs, all are instantiated by default.
31477 Usage: $0 [OPTION]... [TAG]...
31479 -h, --help print this help, then exit
31480 -V, --version print version number and configuration settings, then exit
31481 --config print configuration, then exit
31482 -q, --quiet, --silent
31483 do not print progress messages
31484 -d, --debug don't remove temporary files
31485 --recheck update $as_me by reconfiguring in the same conditions
31486 --file=FILE[:TEMPLATE]
31487 instantiate the configuration file FILE
31488 --header=FILE[:TEMPLATE]
31489 instantiate the configuration header FILE
31491 Configuration files:
31494 Configuration headers:
31497 Configuration commands:
31500 Report bugs to the package provider."
31503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31504 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31506 bacula config.status 7.4.1
31507 configured by $0, generated by GNU Autoconf 2.69,
31508 with options \\"\$ac_cs_config\\"
31510 Copyright (C) 2012 Free Software Foundation, Inc.
31511 This config.status script is free software; the Free Software Foundation
31512 gives unlimited permission to copy, distribute and modify it."
31518 test -n "\$AWK" || AWK=awk
31521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31522 # The default lists apply if the user does not specify any file.
31528 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31529 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31533 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31545 # Handling of the options.
31546 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31548 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31549 $as_echo "$ac_cs_version"; exit ;;
31550 --config | --confi | --conf | --con | --co | --c )
31551 $as_echo "$ac_cs_config"; exit ;;
31552 --debug | --debu | --deb | --de | --d | -d )
31554 --file | --fil | --fi | --f )
31557 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31558 '') as_fn_error $? "missing file argument" ;;
31560 as_fn_append CONFIG_FILES " '$ac_optarg'"
31561 ac_need_defaults=false;;
31562 --header | --heade | --head | --hea )
31565 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31567 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31568 ac_need_defaults=false;;
31570 # Conflict between --help and --header
31571 as_fn_error $? "ambiguous option: \`$1'
31572 Try \`$0 --help' for more information.";;
31573 --help | --hel | -h )
31574 $as_echo "$ac_cs_usage"; exit ;;
31575 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31576 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31579 # This is an error.
31580 -*) as_fn_error $? "unrecognized option: \`$1'
31581 Try \`$0 --help' for more information." ;;
31583 *) as_fn_append ac_config_targets " $1"
31584 ac_need_defaults=false ;;
31590 ac_configure_extra_args=
31592 if $ac_cs_silent; then
31594 ac_configure_extra_args="$ac_configure_extra_args --silent"
31598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31599 if \$ac_cs_recheck; then
31600 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31602 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31603 CONFIG_SHELL='$SHELL'
31604 export CONFIG_SHELL
31609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31613 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31614 ## Running $as_me. ##
31620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31626 # The HP-UX ksh and POSIX shell print the target directory to stdout
31627 # if CDPATH is set.
31628 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31630 sed_quote_subst='$sed_quote_subst'
31631 double_quote_subst='$double_quote_subst'
31632 delay_variable_subst='$delay_variable_subst'
31633 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31634 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31635 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31636 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31637 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31638 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31639 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31640 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31641 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31642 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31643 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31644 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31645 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31646 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31647 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31648 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31649 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31650 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31651 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31652 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31653 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31654 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31655 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31656 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31657 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31658 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31659 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31660 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31661 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31662 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31663 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31664 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31665 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31666 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31667 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31668 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31669 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31670 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31671 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31672 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31673 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31674 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31675 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31676 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31677 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31678 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31679 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31680 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31681 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31682 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31683 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31684 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31685 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31686 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31687 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31688 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31689 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"`'
31690 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31691 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31692 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31693 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31694 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31695 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31696 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31697 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31698 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31699 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31700 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31701 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31702 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31703 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31704 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31705 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31706 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31707 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31708 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31709 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31710 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31711 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31712 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31713 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31714 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31715 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31716 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31717 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31718 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31719 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31720 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31721 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31722 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31723 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31724 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31725 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31726 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31727 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31728 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31729 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31730 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31731 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31732 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31733 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31734 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31735 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31736 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31737 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31738 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31739 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31740 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31741 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31742 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31743 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31744 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31745 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31746 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31747 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31748 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31749 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31750 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31751 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31752 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31753 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31754 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31755 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31756 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31757 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31758 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31759 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31760 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31761 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31762 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31763 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31764 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31765 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31766 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31767 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31768 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31769 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31770 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31771 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31772 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31773 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31774 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31775 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31776 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31777 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31778 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31779 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31780 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31781 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31782 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31783 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31784 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31785 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31786 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31787 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31788 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31789 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31790 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31791 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31792 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31793 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31794 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31795 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31796 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31797 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31798 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31799 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31800 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31801 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31802 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31803 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31804 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31805 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31806 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31807 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31808 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31809 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31810 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31811 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31812 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31813 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31814 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31815 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31816 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31819 LTCFLAGS='$LTCFLAGS'
31820 compiler='$compiler_DEFAULT'
31822 # A function that is used when there is no print builtin or printf.
31823 func_fallback_echo ()
31825 eval 'cat <<_LTECHO_EOF
31830 # Quote evaled strings.
31845 deplibs_check_method \
31850 sharedlib_from_linklib_cmd \
31853 archiver_list_spec \
31859 lt_cv_sys_global_symbol_pipe \
31860 lt_cv_sys_global_symbol_to_cdecl \
31861 lt_cv_sys_global_symbol_to_c_name_address \
31862 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31863 nm_file_list_spec \
31864 lt_prog_compiler_no_builtin_flag \
31865 lt_prog_compiler_pic \
31866 lt_prog_compiler_wl \
31867 lt_prog_compiler_static \
31868 lt_cv_prog_compiler_c_o \
31877 export_dynamic_flag_spec \
31878 whole_archive_flag_spec \
31879 compiler_needs_object \
31881 allow_undefined_flag \
31882 no_undefined_flag \
31883 hardcode_libdir_flag_spec \
31884 hardcode_libdir_separator \
31888 variables_saved_for_relink \
31890 library_names_spec \
31892 install_override_mode \
31896 compiler_lib_search_dirs \
31901 compiler_lib_search_path \
31905 lt_prog_compiler_no_builtin_flag_CXX \
31906 lt_prog_compiler_pic_CXX \
31907 lt_prog_compiler_wl_CXX \
31908 lt_prog_compiler_static_CXX \
31909 lt_cv_prog_compiler_c_o_CXX \
31910 export_dynamic_flag_spec_CXX \
31911 whole_archive_flag_spec_CXX \
31912 compiler_needs_object_CXX \
31914 allow_undefined_flag_CXX \
31915 no_undefined_flag_CXX \
31916 hardcode_libdir_flag_spec_CXX \
31917 hardcode_libdir_separator_CXX \
31918 exclude_expsyms_CXX \
31919 include_expsyms_CXX \
31920 file_list_spec_CXX \
31921 compiler_lib_search_dirs_CXX \
31922 predep_objects_CXX \
31923 postdep_objects_CXX \
31926 compiler_lib_search_path_CXX; do
31927 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31928 *[\\\\\\\`\\"\\\$]*)
31929 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31932 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31937 # Double-quote double-evaled strings.
31938 for var in reload_cmds \
31939 old_postinstall_cmds \
31940 old_postuninstall_cmds \
31942 extract_expsyms_cmds \
31943 old_archive_from_new_cmds \
31944 old_archive_from_expsyms_cmds \
31946 archive_expsym_cmds \
31948 module_expsym_cmds \
31949 export_symbols_cmds \
31953 postuninstall_cmds \
31955 sys_lib_search_path_spec \
31956 sys_lib_dlsearch_path_spec \
31958 old_archive_cmds_CXX \
31959 old_archive_from_new_cmds_CXX \
31960 old_archive_from_expsyms_cmds_CXX \
31962 archive_expsym_cmds_CXX \
31964 module_expsym_cmds_CXX \
31965 export_symbols_cmds_CXX \
31967 postlink_cmds_CXX; do
31968 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31969 *[\\\\\\\`\\"\\\$]*)
31970 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31973 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31978 ac_aux_dir='$ac_aux_dir'
31979 xsi_shell='$xsi_shell'
31980 lt_shell_append='$lt_shell_append'
31982 # See if we are running on zsh, and set the options which allow our
31983 # commands through without removal of \ escapes INIT.
31984 if test -n "\${ZSH_VERSION+set}" ; then
31985 setopt NO_GLOB_SUBST
31991 TIMESTAMP='$TIMESTAMP'
31999 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32000 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32002 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32003 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32004 LINGUAS="${LINGUAS-%UNSET%}"
32009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32011 # Handling of arguments.
32012 for ac_config_target in $ac_config_targets
32014 case $ac_config_target in
32015 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32016 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32017 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32018 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32019 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32020 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32021 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32022 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32023 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32024 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32025 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32026 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32027 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32028 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32029 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32030 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32031 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32032 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32033 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32034 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32035 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32036 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32037 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32038 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32039 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32040 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32041 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32042 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32043 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32044 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32045 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32046 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32047 "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32048 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32049 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32050 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32051 "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32052 "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32053 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32054 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32055 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32056 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32057 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32058 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32059 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32060 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32061 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32062 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32063 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32064 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32065 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32066 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32067 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32068 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32069 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32070 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32071 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32072 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32073 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32074 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32075 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32076 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32077 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32078 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32079 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32080 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32081 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32082 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32083 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32084 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32085 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32086 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32087 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32088 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32089 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32090 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32091 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32092 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32093 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32094 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32095 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32096 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32097 "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32098 "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32099 "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32100 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32101 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32102 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32103 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32104 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32105 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32106 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32107 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32108 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32109 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32110 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32111 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32112 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32113 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32114 "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32115 "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32116 "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32117 "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32118 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32119 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32121 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32126 # If the user did not use the arguments to specify the items to instantiate,
32127 # then the envvar interface is used. Set only those that are not.
32128 # We use the long form for the default assignment because of an extremely
32129 # bizarre bug on SunOS 4.1.3.
32130 if $ac_need_defaults; then
32131 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32132 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32133 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32136 # Have a temporary directory for convenience. Make it in the build tree
32137 # simply because there is no reason against having it here, and in addition,
32138 # creating and moving files from /tmp can sometimes cause problems.
32139 # Hook for its removal unless debugging.
32140 # Note that there is a small window in which the directory will not be cleaned:
32141 # after its creation but before its name has been assigned to `$tmp'.
32145 trap 'exit_status=$?
32146 : "${ac_tmp:=$tmp}"
32147 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32149 trap 'as_fn_exit 1' 1 2 13 15
32151 # Create a (secure) tmp directory for tmp files.
32154 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32158 tmp=./conf$$-$RANDOM
32159 (umask 077 && mkdir "$tmp")
32160 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32163 # Set up the scripts for CONFIG_FILES section.
32164 # No need to generate them if there are no CONFIG_FILES.
32165 # This happens for instance with `./config.status config.h'.
32166 if test -n "$CONFIG_FILES"; then
32168 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32169 ac_cs_awk_getline=:
32170 ac_cs_awk_pipe_init=
32171 ac_cs_awk_read_file='
32172 while ((getline aline < (F[key])) > 0)
32175 ac_cs_awk_pipe_fini=
32177 ac_cs_awk_getline=false
32178 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32179 ac_cs_awk_read_file='
32181 print "cat " F[key] " &&"
32182 '$ac_cs_awk_pipe_init
32183 # The final `:' finishes the AND list.
32184 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32186 ac_cr=`echo X | tr X '\015'`
32187 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32188 # But we know of no other shell where ac_cr would be empty at this
32189 # point, so we can use a bashism as a fallback.
32190 if test "x$ac_cr" = x; then
32191 eval ac_cr=\$\'\\r\'
32193 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32194 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32197 ac_cs_awk_cr=$ac_cr
32200 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32203 # Create commands to substitute file output variables.
32205 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32206 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32207 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32210 } >conf$$files.sh &&
32211 . ./conf$$files.sh ||
32212 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32213 rm -f conf$$files.sh
32216 echo "cat >conf$$subs.awk <<_ACEOF" &&
32217 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32219 } >conf$$subs.sh ||
32220 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32221 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32223 for ac_last_try in false false false false false :; do
32224 . ./conf$$subs.sh ||
32225 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32227 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32228 if test $ac_delim_n = $ac_delim_num; then
32230 elif $ac_last_try; then
32231 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32233 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32236 rm -f conf$$subs.sh
32238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32239 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32243 s/^/S["/; s/!.*/"]=/
32253 s/\(.\{148\}\)..*/\1/
32255 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32260 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32267 s/\(.\{148\}\)..*/\1/
32269 s/["\\]/\\&/g; s/^/"/; s/$/"/
32273 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32278 ' <conf$$subs.awk | sed '
32283 ' >>$CONFIG_STATUS || ac_write_fail=1
32284 rm -f conf$$subs.awk
32285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32287 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32288 for (key in S) S_is_set[key] = 1
32290 \$ac_cs_awk_pipe_init
32294 nfields = split(line, field, "@")
32296 len = length(field[1])
32297 for (i = 2; i < nfields; i++) {
32299 keylen = length(key)
32300 if (S_is_set[key]) {
32302 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32303 len += length(value) + length(field[++i])
32308 if (nfields == 3 && !substed) {
32310 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32311 \$ac_cs_awk_read_file
32317 \$ac_cs_awk_pipe_fini
32320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32321 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32322 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32325 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32326 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32329 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32330 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32331 # trailing colons and then remove the whole line if VPATH becomes empty
32332 # (actually we leave an empty line to preserve line numbers).
32333 if test "x$srcdir" = x.; then
32334 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32353 fi # test -n "$CONFIG_FILES"
32355 # Set up the scripts for CONFIG_HEADERS section.
32356 # No need to generate them if there are no CONFIG_HEADERS.
32357 # This happens for instance with `./config.status Makefile'.
32358 if test -n "$CONFIG_HEADERS"; then
32359 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32363 # Transform confdefs.h into an awk script `defines.awk', embedded as
32364 # here-document in config.status, that substitutes the proper values into
32365 # config.h.in to produce config.h.
32367 # Create a delimiter string that does not exist in confdefs.h, to ease
32368 # handling of long lines.
32370 for ac_last_try in false false :; do
32371 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32372 if test -z "$ac_tt"; then
32374 elif $ac_last_try; then
32375 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32377 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32381 # For the awk script, D is an array of macro values keyed by name,
32382 # likewise P contains macro parameters if any. Preserve backslash
32383 # newline sequences.
32385 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32387 s/.\{148\}/&'"$ac_delim"'/g
32390 s/^[ ]*#[ ]*define[ ][ ]*/ /
32397 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32399 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32404 D["\1"]=" \3\\\\\\n"\\/p
32406 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32411 s/.\{148\}/&'"$ac_delim"'/g
32416 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32419 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32421 ' <confdefs.h | sed '
32422 s/'"$ac_delim"'/"\\\
32423 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32426 for (key in D) D_is_set[key] = 1
32429 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32431 split(line, arg, " ")
32432 if (arg[1] == "#") {
32436 defundef = substr(arg[1], 2)
32439 split(mac1, mac2, "(") #)
32441 prefix = substr(line, 1, index(line, defundef) - 1)
32442 if (D_is_set[macro]) {
32443 # Preserve the white space surrounding the "#".
32444 print prefix "define", macro P[macro] D[macro]
32447 # Replace #undef with comments. This is necessary, for example,
32448 # in the case of _POSIX_SOURCE, which is predefined and required
32449 # on some systems where configure will not decide to define it.
32450 if (defundef == "undef") {
32451 print "/*", prefix defundef, macro, "*/"
32459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32460 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32461 fi # test -n "$CONFIG_HEADERS"
32464 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32469 :[FHLC]) ac_mode=$ac_tag; continue;;
32471 case $ac_mode$ac_tag in
32473 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32474 :[FH]-) ac_tag=-:-;;
32475 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32492 -) ac_f="$ac_tmp/stdin";;
32493 *) # Look for the file first in the build tree, then in the source tree
32494 # (if the path is not absolute). The absolute path cannot be DOS-style,
32495 # because $ac_f cannot contain `:'.
32499 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32501 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32503 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32504 as_fn_append ac_file_inputs " '$ac_f'"
32507 # Let's still pretend it is `configure' which instantiates (i.e., don't
32508 # use $as_me), people would be surprised to read:
32509 # /* config.h. Generated by config.status. */
32510 configure_input='Generated from '`
32511 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32513 if test x"$ac_file" != x-; then
32514 configure_input="$ac_file. $configure_input"
32515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32516 $as_echo "$as_me: creating $ac_file" >&6;}
32518 # Neutralize special characters interpreted by sed in replacement strings.
32519 case $configure_input in #(
32520 *\&* | *\|* | *\\* )
32521 ac_sed_conf_input=`$as_echo "$configure_input" |
32522 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32523 *) ac_sed_conf_input=$configure_input;;
32527 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32528 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32533 ac_dir=`$as_dirname -- "$ac_file" ||
32534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32535 X"$ac_file" : 'X\(//\)[^/]' \| \
32536 X"$ac_file" : 'X\(//\)$' \| \
32537 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32538 $as_echo X"$ac_file" |
32539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32543 /^X\(\/\/\)[^/].*/{
32556 as_dir="$ac_dir"; as_fn_mkdir_p
32560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32563 # A ".." for each directory in $ac_dir_suffix.
32564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32565 case $ac_top_builddir_sub in
32566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32570 ac_abs_top_builddir=$ac_pwd
32571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32572 # for backward compatibility:
32573 ac_top_builddir=$ac_top_build_prefix
32576 .) # We are building in place.
32578 ac_top_srcdir=$ac_top_builddir_sub
32579 ac_abs_top_srcdir=$ac_pwd ;;
32580 [\\/]* | ?:[\\/]* ) # Absolute name.
32581 ac_srcdir=$srcdir$ac_dir_suffix;
32582 ac_top_srcdir=$srcdir
32583 ac_abs_top_srcdir=$srcdir ;;
32584 *) # Relative name.
32585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32586 ac_top_srcdir=$ac_top_build_prefix$srcdir
32587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32599 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32600 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32605 # If the template does not know about datarootdir, expand it.
32606 # FIXME: This hack should be removed a few years after 2.60.
32607 ac_datarootdir_hack=; ac_datarootdir_seen=
32618 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32619 *datarootdir*) ac_datarootdir_seen=yes;;
32620 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32622 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32625 ac_datarootdir_hack='
32626 s&@datadir@&$datadir&g
32627 s&@docdir@&$docdir&g
32628 s&@infodir@&$infodir&g
32629 s&@localedir@&$localedir&g
32630 s&@mandir@&$mandir&g
32631 s&\\\${datarootdir}&$datarootdir&g' ;;
32635 # Neutralize VPATH when `$srcdir' = `.'.
32636 # Shell code in configure.ac might set extrasub.
32637 # FIXME: do we really want to maintain this feature?
32638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32639 ac_sed_extra="$ac_vpsub
32642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32644 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32645 s|@configure_input@|$ac_sed_conf_input|;t t
32646 s&@top_builddir@&$ac_top_builddir_sub&;t t
32647 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32648 s&@srcdir@&$ac_srcdir&;t t
32649 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32650 s&@top_srcdir@&$ac_top_srcdir&;t t
32651 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32652 s&@builddir@&$ac_builddir&;t t
32653 s&@abs_builddir@&$ac_abs_builddir&;t t
32654 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32655 s&@INSTALL@&$ac_INSTALL&;t t
32656 $ac_datarootdir_hack
32658 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32659 if $ac_cs_awk_getline; then
32660 $AWK -f "$ac_tmp/subs.awk"
32662 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32664 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32666 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32667 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32668 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32669 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32671 which seems to be undefined. Please make sure it is defined" >&5
32672 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32673 which seems to be undefined. Please make sure it is defined" >&2;}
32675 rm -f "$ac_tmp/stdin"
32677 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32678 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32680 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32686 if test x"$ac_file" != x-; then
32688 $as_echo "/* $configure_input */" \
32689 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32690 } >"$ac_tmp/config.h" \
32691 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32692 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32693 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32694 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32697 mv "$ac_tmp/config.h" "$ac_file" \
32698 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32701 $as_echo "/* $configure_input */" \
32702 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32703 || as_fn_error $? "could not create -" "$LINENO" 5
32707 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32708 $as_echo "$as_me: executing $ac_file commands" >&6;}
32713 case $ac_file$ac_mode in
32716 # See if we are running on zsh, and set the options which allow our
32717 # commands through without removal of \ escapes.
32718 if test -n "${ZSH_VERSION+set}" ; then
32719 setopt NO_GLOB_SUBST
32722 cfgfile="${ofile}T"
32723 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32726 cat <<_LT_EOF >> "$cfgfile"
32729 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32730 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32732 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32734 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32735 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32737 # Written by Gordon Matzigkeit, 1996
32739 # This file is part of GNU Libtool.
32741 # GNU Libtool is free software; you can redistribute it and/or
32742 # modify it under the terms of the GNU General Public License as
32743 # published by the Free Software Foundation; either version 2 of
32744 # the License, or (at your option) any later version.
32746 # As a special exception to the GNU General Public License,
32747 # if you distribute this file as part of a program or library that
32748 # is built using GNU Libtool, you may include this file under the
32749 # same distribution terms that you use for the rest of that program.
32751 # GNU Libtool is distributed in the hope that it will be useful,
32752 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32753 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32754 # GNU General Public License for more details.
32756 # You should have received a copy of the GNU General Public License
32757 # along with GNU Libtool; see the file COPYING. If not, a copy
32758 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32759 # obtained by writing to the Free Software Foundation, Inc.,
32760 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32763 # The names of the tagged configurations supported by this script.
32764 available_tags="CXX "
32766 # ### BEGIN LIBTOOL CONFIG
32768 # Which release of libtool.m4 was used?
32769 macro_version=$macro_version
32770 macro_revision=$macro_revision
32772 # Whether or not to build shared libraries.
32773 build_libtool_libs=$enable_shared
32775 # Whether or not to build static libraries.
32776 build_old_libs=$enable_static
32778 # What type of objects to build.
32781 # Whether or not to optimize for fast installation.
32782 fast_install=$enable_fast_install
32784 # Shell to use when invoking shell scripts.
32787 # An echo program that protects backslashes.
32790 # The PATH separator for the build system.
32791 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32794 host_alias=$host_alias
32798 # The build system.
32799 build_alias=$build_alias
32803 # A sed program that does not truncate output.
32806 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32807 Xsed="\$SED -e 1s/^X//"
32809 # A grep program that handles long lines.
32815 # A literal string matcher.
32818 # A BSD- or MS-compatible name lister.
32821 # Whether we need soft or hard links.
32824 # What is the maximum length of a command?
32825 max_cmd_len=$max_cmd_len
32827 # Object file suffix (normally "o").
32830 # Executable file suffix (normally "").
32833 # whether the shell understands "unset".
32836 # turn spaces into newlines.
32839 # turn newlines into spaces.
32842 # convert \$build file names to \$host format.
32843 to_host_file_cmd=$lt_cv_to_host_file_cmd
32845 # convert \$build files to toolchain format.
32846 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32848 # An object symbol dumper.
32849 OBJDUMP=$lt_OBJDUMP
32851 # Method to check whether dependent libraries are shared objects.
32852 deplibs_check_method=$lt_deplibs_check_method
32854 # Command to use when deplibs_check_method = "file_magic".
32855 file_magic_cmd=$lt_file_magic_cmd
32857 # How to find potential files when deplibs_check_method = "file_magic".
32858 file_magic_glob=$lt_file_magic_glob
32860 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32861 want_nocaseglob=$lt_want_nocaseglob
32863 # DLL creation program.
32864 DLLTOOL=$lt_DLLTOOL
32866 # Command to associate shared and link libraries.
32867 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32872 # Flags to create an archive.
32873 AR_FLAGS=$lt_AR_FLAGS
32875 # How to feed a file listing to the archiver.
32876 archiver_list_spec=$lt_archiver_list_spec
32878 # A symbol stripping program.
32881 # Commands used to install an old-style archive.
32883 old_postinstall_cmds=$lt_old_postinstall_cmds
32884 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32886 # Whether to use a lock for old archive extraction.
32887 lock_old_archive_extraction=$lock_old_archive_extraction
32892 # LTCC compiler flags.
32893 LTCFLAGS=$lt_CFLAGS
32895 # Take the output of nm and produce a listing of raw symbols and C names.
32896 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32898 # Transform the output of nm in a proper C declaration.
32899 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32901 # Transform the output of nm in a C name address pair.
32902 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32904 # Transform the output of nm in a C name address pair when lib prefix is needed.
32905 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32907 # Specify filename containing input files for \$NM.
32908 nm_file_list_spec=$lt_nm_file_list_spec
32910 # The root where to search for dependent libraries,and in which our libraries should be installed.
32911 lt_sysroot=$lt_sysroot
32913 # The name of the directory that contains temporary libtool files.
32916 # Used to examine libraries when file_magic_cmd begins with "file".
32917 MAGIC_CMD=$MAGIC_CMD
32919 # Must we lock files when doing compilation?
32920 need_locks=$lt_need_locks
32923 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32925 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32926 DSYMUTIL=$lt_DSYMUTIL
32928 # Tool to change global to local symbols on Mac OS X.
32931 # Tool to manipulate fat objects and archives on Mac OS X.
32934 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32937 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32938 OTOOL64=$lt_OTOOL64
32940 # Old archive suffix (normally "a").
32943 # Shared library suffix (normally ".so").
32944 shrext_cmds=$lt_shrext_cmds
32946 # The commands to extract the exported symbol list from a shared archive.
32947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32949 # Variables whose values should be saved in libtool wrapper scripts and
32950 # restored at link time.
32951 variables_saved_for_relink=$lt_variables_saved_for_relink
32953 # Do we need the "lib" prefix for modules?
32954 need_lib_prefix=$need_lib_prefix
32956 # Do we need a version for libraries?
32957 need_version=$need_version
32959 # Library versioning type.
32960 version_type=$version_type
32962 # Shared library runtime path variable.
32963 runpath_var=$runpath_var
32965 # Shared library path variable.
32966 shlibpath_var=$shlibpath_var
32968 # Is shlibpath searched before the hard-coded library search path?
32969 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32971 # Format of library name prefix.
32972 libname_spec=$lt_libname_spec
32974 # List of archive names. First name is the real one, the rest are links.
32975 # The last name is the one that the linker finds with -lNAME
32976 library_names_spec=$lt_library_names_spec
32978 # The coded name of the library, if different from the real name.
32979 soname_spec=$lt_soname_spec
32981 # Permission mode override for installation of shared libraries.
32982 install_override_mode=$lt_install_override_mode
32984 # Command to use after installation of a shared archive.
32985 postinstall_cmds=$lt_postinstall_cmds
32987 # Command to use after uninstallation of a shared archive.
32988 postuninstall_cmds=$lt_postuninstall_cmds
32990 # Commands used to finish a libtool library installation in a directory.
32991 finish_cmds=$lt_finish_cmds
32993 # As "finish_cmds", except a single script fragment to be evaled but
32995 finish_eval=$lt_finish_eval
32997 # Whether we should hardcode library paths into libraries.
32998 hardcode_into_libs=$hardcode_into_libs
33000 # Compile-time system search path for libraries.
33001 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33003 # Run-time system search path for libraries.
33004 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33006 # Whether dlopen is supported.
33007 dlopen_support=$enable_dlopen
33009 # Whether dlopen of programs is supported.
33010 dlopen_self=$enable_dlopen_self
33012 # Whether dlopen of statically linked programs is supported.
33013 dlopen_self_static=$enable_dlopen_self_static
33015 # Commands to strip libraries.
33016 old_striplib=$lt_old_striplib
33017 striplib=$lt_striplib
33020 # The linker used to build libraries.
33023 # How to create reloadable object files.
33024 reload_flag=$lt_reload_flag
33025 reload_cmds=$lt_reload_cmds
33027 # Commands used to build an old-style archive.
33028 old_archive_cmds=$lt_old_archive_cmds
33030 # A language specific compiler.
33033 # Is the compiler the GNU compiler?
33036 # Compiler flag to turn off builtin functions.
33037 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33039 # Additional compiler flags for building library objects.
33040 pic_flag=$lt_lt_prog_compiler_pic
33042 # How to pass a linker flag through the compiler.
33043 wl=$lt_lt_prog_compiler_wl
33045 # Compiler flag to prevent dynamic linking.
33046 link_static_flag=$lt_lt_prog_compiler_static
33048 # Does compiler simultaneously support -c and -o options?
33049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33051 # Whether or not to add -lc for building shared libraries.
33052 build_libtool_need_lc=$archive_cmds_need_lc
33054 # Whether or not to disallow shared libs when runtime libs are static.
33055 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33057 # Compiler flag to allow reflexive dlopens.
33058 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33060 # Compiler flag to generate shared objects directly from archives.
33061 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33063 # Whether the compiler copes with passing no objects directly.
33064 compiler_needs_object=$lt_compiler_needs_object
33066 # Create an old-style archive from a shared archive.
33067 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33069 # Create a temporary old-style archive to link instead of a shared archive.
33070 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33072 # Commands used to build a shared archive.
33073 archive_cmds=$lt_archive_cmds
33074 archive_expsym_cmds=$lt_archive_expsym_cmds
33076 # Commands used to build a loadable module if different from building
33077 # a shared archive.
33078 module_cmds=$lt_module_cmds
33079 module_expsym_cmds=$lt_module_expsym_cmds
33081 # Whether we are building with GNU ld or not.
33082 with_gnu_ld=$lt_with_gnu_ld
33084 # Flag that allows shared libraries with undefined symbols to be built.
33085 allow_undefined_flag=$lt_allow_undefined_flag
33087 # Flag that enforces no undefined symbols.
33088 no_undefined_flag=$lt_no_undefined_flag
33090 # Flag to hardcode \$libdir into a binary during linking.
33091 # This must work even if \$libdir does not exist
33092 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33094 # Whether we need a single "-rpath" flag with a separated argument.
33095 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33097 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33098 # DIR into the resulting binary.
33099 hardcode_direct=$hardcode_direct
33101 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33102 # DIR into the resulting binary and the resulting library dependency is
33103 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33104 # library is relocated.
33105 hardcode_direct_absolute=$hardcode_direct_absolute
33107 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33108 # into the resulting binary.
33109 hardcode_minus_L=$hardcode_minus_L
33111 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33112 # into the resulting binary.
33113 hardcode_shlibpath_var=$hardcode_shlibpath_var
33115 # Set to "yes" if building a shared library automatically hardcodes DIR
33116 # into the library and all subsequent libraries and executables linked
33118 hardcode_automatic=$hardcode_automatic
33120 # Set to yes if linker adds runtime paths of dependent libraries
33121 # to runtime path list.
33122 inherit_rpath=$inherit_rpath
33124 # Whether libtool must link a program against all its dependency libraries.
33125 link_all_deplibs=$link_all_deplibs
33127 # Set to "yes" if exported symbols are required.
33128 always_export_symbols=$always_export_symbols
33130 # The commands to list exported symbols.
33131 export_symbols_cmds=$lt_export_symbols_cmds
33133 # Symbols that should not be listed in the preloaded symbols.
33134 exclude_expsyms=$lt_exclude_expsyms
33136 # Symbols that must always be exported.
33137 include_expsyms=$lt_include_expsyms
33139 # Commands necessary for linking programs (against libraries) with templates.
33140 prelink_cmds=$lt_prelink_cmds
33142 # Commands necessary for finishing linking programs.
33143 postlink_cmds=$lt_postlink_cmds
33145 # Specify filename containing input files.
33146 file_list_spec=$lt_file_list_spec
33148 # How to hardcode a shared library path into an executable.
33149 hardcode_action=$hardcode_action
33151 # The directories searched by this compiler when creating a shared library.
33152 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33154 # Dependencies to place before and after the objects being linked to
33155 # create a shared library.
33156 predep_objects=$lt_predep_objects
33157 postdep_objects=$lt_postdep_objects
33158 predeps=$lt_predeps
33159 postdeps=$lt_postdeps
33161 # The library search path used internally by the compiler when linking
33162 # a shared library.
33163 compiler_lib_search_path=$lt_compiler_lib_search_path
33165 # ### END LIBTOOL CONFIG
33171 cat <<\_LT_EOF >> "$cfgfile"
33172 # AIX sometimes has problems with the GCC collect2 program. For some
33173 # reason, if we set the COLLECT_NAMES environment variable, the problems
33174 # vanish in a puff of smoke.
33175 if test "X${COLLECT_NAMES+set}" != Xset; then
33177 export COLLECT_NAMES
33184 ltmain="$ac_aux_dir/ltmain.sh"
33187 # We use sed instead of cat because bash on DJGPP gets confused if
33188 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33189 # text mode, it properly converts lines to CR/LF. This bash problem
33190 # is reportedly fixed, but why not run on old versions too?
33191 sed '$q' "$ltmain" >> "$cfgfile" \
33192 || (rm -f "$cfgfile"; exit 1)
33194 if test x"$xsi_shell" = xyes; then
33195 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33199 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33200 \ * ) func_dirname_result="${3}" ;;\
33202 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33203 && mv -f "$cfgfile.tmp" "$cfgfile" \
33204 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33205 test 0 -eq $? || _lt_function_replace_fail=:
33208 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33211 \ func_basename_result="${1##*/}"\
33212 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33213 && mv -f "$cfgfile.tmp" "$cfgfile" \
33214 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33215 test 0 -eq $? || _lt_function_replace_fail=:
33218 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33219 func_dirname_and_basename ()\
33222 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33223 \ * ) func_dirname_result="${3}" ;;\
33225 \ func_basename_result="${1##*/}"\
33226 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33227 && mv -f "$cfgfile.tmp" "$cfgfile" \
33228 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33229 test 0 -eq $? || _lt_function_replace_fail=:
33232 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33235 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33236 \ # positional parameters, so assign one to ordinary parameter first.\
33237 \ func_stripname_result=${3}\
33238 \ func_stripname_result=${func_stripname_result#"${1}"}\
33239 \ func_stripname_result=${func_stripname_result%"${2}"}\
33240 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33241 && mv -f "$cfgfile.tmp" "$cfgfile" \
33242 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33243 test 0 -eq $? || _lt_function_replace_fail=:
33246 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33247 func_split_long_opt ()\
33249 \ func_split_long_opt_name=${1%%=*}\
33250 \ func_split_long_opt_arg=${1#*=}\
33251 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33252 && mv -f "$cfgfile.tmp" "$cfgfile" \
33253 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33254 test 0 -eq $? || _lt_function_replace_fail=:
33257 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33258 func_split_short_opt ()\
33260 \ func_split_short_opt_arg=${1#??}\
33261 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33262 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33263 && mv -f "$cfgfile.tmp" "$cfgfile" \
33264 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33265 test 0 -eq $? || _lt_function_replace_fail=:
33268 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33272 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33273 \ *) func_lo2o_result=${1} ;;\
33275 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33276 && mv -f "$cfgfile.tmp" "$cfgfile" \
33277 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33278 test 0 -eq $? || _lt_function_replace_fail=:
33281 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33284 func_xform_result=${1%.*}.lo\
33285 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33286 && mv -f "$cfgfile.tmp" "$cfgfile" \
33287 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33288 test 0 -eq $? || _lt_function_replace_fail=:
33291 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33294 func_arith_result=$(( $* ))\
33295 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33296 && mv -f "$cfgfile.tmp" "$cfgfile" \
33297 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33298 test 0 -eq $? || _lt_function_replace_fail=:
33301 sed -e '/^func_len ()$/,/^} # func_len /c\
33304 func_len_result=${#1}\
33305 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33306 && mv -f "$cfgfile.tmp" "$cfgfile" \
33307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33308 test 0 -eq $? || _lt_function_replace_fail=:
33312 if test x"$lt_shell_append" = xyes; then
33313 sed -e '/^func_append ()$/,/^} # func_append /c\
33316 eval "${1}+=\\${2}"\
33317 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33318 && mv -f "$cfgfile.tmp" "$cfgfile" \
33319 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33320 test 0 -eq $? || _lt_function_replace_fail=:
33323 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33324 func_append_quoted ()\
33326 \ func_quote_for_eval "${2}"\
33327 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33328 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33329 && mv -f "$cfgfile.tmp" "$cfgfile" \
33330 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33331 test 0 -eq $? || _lt_function_replace_fail=:
33334 # Save a `func_append' function call where possible by direct use of '+='
33335 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33336 && mv -f "$cfgfile.tmp" "$cfgfile" \
33337 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33338 test 0 -eq $? || _lt_function_replace_fail=:
33340 # Save a `func_append' function call even when '+=' is not available
33341 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33342 && mv -f "$cfgfile.tmp" "$cfgfile" \
33343 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33344 test 0 -eq $? || _lt_function_replace_fail=:
33347 if test x"$_lt_function_replace_fail" = x":"; then
33348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33349 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33353 mv -f "$cfgfile" "$ofile" ||
33354 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33358 cat <<_LT_EOF >> "$ofile"
33360 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33362 # The linker used to build libraries.
33365 # How to create reloadable object files.
33366 reload_flag=$lt_reload_flag_CXX
33367 reload_cmds=$lt_reload_cmds_CXX
33369 # Commands used to build an old-style archive.
33370 old_archive_cmds=$lt_old_archive_cmds_CXX
33372 # A language specific compiler.
33373 CC=$lt_compiler_CXX
33375 # Is the compiler the GNU compiler?
33378 # Compiler flag to turn off builtin functions.
33379 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33381 # Additional compiler flags for building library objects.
33382 pic_flag=$lt_lt_prog_compiler_pic_CXX
33384 # How to pass a linker flag through the compiler.
33385 wl=$lt_lt_prog_compiler_wl_CXX
33387 # Compiler flag to prevent dynamic linking.
33388 link_static_flag=$lt_lt_prog_compiler_static_CXX
33390 # Does compiler simultaneously support -c and -o options?
33391 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33393 # Whether or not to add -lc for building shared libraries.
33394 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33396 # Whether or not to disallow shared libs when runtime libs are static.
33397 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33399 # Compiler flag to allow reflexive dlopens.
33400 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33402 # Compiler flag to generate shared objects directly from archives.
33403 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33405 # Whether the compiler copes with passing no objects directly.
33406 compiler_needs_object=$lt_compiler_needs_object_CXX
33408 # Create an old-style archive from a shared archive.
33409 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33411 # Create a temporary old-style archive to link instead of a shared archive.
33412 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33414 # Commands used to build a shared archive.
33415 archive_cmds=$lt_archive_cmds_CXX
33416 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33418 # Commands used to build a loadable module if different from building
33419 # a shared archive.
33420 module_cmds=$lt_module_cmds_CXX
33421 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33423 # Whether we are building with GNU ld or not.
33424 with_gnu_ld=$lt_with_gnu_ld_CXX
33426 # Flag that allows shared libraries with undefined symbols to be built.
33427 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33429 # Flag that enforces no undefined symbols.
33430 no_undefined_flag=$lt_no_undefined_flag_CXX
33432 # Flag to hardcode \$libdir into a binary during linking.
33433 # This must work even if \$libdir does not exist
33434 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33436 # Whether we need a single "-rpath" flag with a separated argument.
33437 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33439 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33440 # DIR into the resulting binary.
33441 hardcode_direct=$hardcode_direct_CXX
33443 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33444 # DIR into the resulting binary and the resulting library dependency is
33445 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33446 # library is relocated.
33447 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33449 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33450 # into the resulting binary.
33451 hardcode_minus_L=$hardcode_minus_L_CXX
33453 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33454 # into the resulting binary.
33455 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33457 # Set to "yes" if building a shared library automatically hardcodes DIR
33458 # into the library and all subsequent libraries and executables linked
33460 hardcode_automatic=$hardcode_automatic_CXX
33462 # Set to yes if linker adds runtime paths of dependent libraries
33463 # to runtime path list.
33464 inherit_rpath=$inherit_rpath_CXX
33466 # Whether libtool must link a program against all its dependency libraries.
33467 link_all_deplibs=$link_all_deplibs_CXX
33469 # Set to "yes" if exported symbols are required.
33470 always_export_symbols=$always_export_symbols_CXX
33472 # The commands to list exported symbols.
33473 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33475 # Symbols that should not be listed in the preloaded symbols.
33476 exclude_expsyms=$lt_exclude_expsyms_CXX
33478 # Symbols that must always be exported.
33479 include_expsyms=$lt_include_expsyms_CXX
33481 # Commands necessary for linking programs (against libraries) with templates.
33482 prelink_cmds=$lt_prelink_cmds_CXX
33484 # Commands necessary for finishing linking programs.
33485 postlink_cmds=$lt_postlink_cmds_CXX
33487 # Specify filename containing input files.
33488 file_list_spec=$lt_file_list_spec_CXX
33490 # How to hardcode a shared library path into an executable.
33491 hardcode_action=$hardcode_action_CXX
33493 # The directories searched by this compiler when creating a shared library.
33494 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33496 # Dependencies to place before and after the objects being linked to
33497 # create a shared library.
33498 predep_objects=$lt_predep_objects_CXX
33499 postdep_objects=$lt_postdep_objects_CXX
33500 predeps=$lt_predeps_CXX
33501 postdeps=$lt_postdeps_CXX
33503 # The library search path used internally by the compiler when linking
33504 # a shared library.
33505 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33507 # ### END LIBTOOL TAG CONFIG: CXX
33512 for ac_file in $CONFIG_FILES; do
33513 # Support "outfile[:infile[:infile...]]"
33515 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33517 # PO directories have a Makefile.in generated from Makefile.in.in.
33518 case "$ac_file" in */Makefile.in)
33519 # Adjust a relative srcdir.
33520 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33521 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33522 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33523 # In autoconf-2.13 it is called $ac_given_srcdir.
33524 # In autoconf-2.50 it is called $srcdir.
33525 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33526 case "$ac_given_srcdir" in
33527 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33528 /*) top_srcdir="$ac_given_srcdir" ;;
33529 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33531 # Treat a directory as a PO directory if and only if it has a
33532 # POTFILES.in file. This allows packages to have multiple PO
33533 # directories under different names or in different locations.
33534 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33535 rm -f "$ac_dir/POTFILES"
33536 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33537 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33538 POMAKEFILEDEPS="POTFILES.in"
33539 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33540 # on $ac_dir but don't depend on user-specified configuration
33542 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33543 # The LINGUAS file contains the set of available languages.
33544 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33545 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33547 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33548 # Hide the ALL_LINGUAS assigment from automake.
33549 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33550 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33552 # The set of available languages was given in configure.in.
33553 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33556 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33557 # Compute UPDATEPOFILES
33558 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33559 # Compute DUMMYPOFILES
33560 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33562 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33563 case "$ac_given_srcdir" in
33565 *) srcdirpre='$(srcdir)/' ;;
33571 for lang in $ALL_LINGUAS; do
33572 POFILES="$POFILES $srcdirpre$lang.po"
33573 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33574 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33575 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33577 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33578 # environment variable.
33580 if test -n "$ALL_LINGUAS"; then
33581 for presentlang in $ALL_LINGUAS; do
33583 if test "%UNSET%" != "$LINGUAS"; then
33584 desiredlanguages="$LINGUAS"
33586 desiredlanguages="$ALL_LINGUAS"
33588 for desiredlang in $desiredlanguages; do
33589 # Use the presentlang catalog if desiredlang is
33590 # a. equal to presentlang, or
33591 # b. a variant of presentlang (because in this case,
33592 # presentlang can be used as a fallback for messages
33593 # which are not translated in the desiredlang catalog).
33594 case "$desiredlang" in
33595 "$presentlang"*) useit=yes;;
33598 if test $useit = yes; then
33599 INST_LINGUAS="$INST_LINGUAS $presentlang"
33604 if test -n "$INST_LINGUAS"; then
33605 for lang in $INST_LINGUAS; do
33606 CATALOGS="$CATALOGS $lang.gmo"
33609 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33610 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"
33611 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33612 if test -f "$f"; then
33614 *.orig | *.bak | *~) ;;
33615 *) cat "$f" >> "$ac_dir/Makefile" ;;
33632 ac_clean_files=$ac_clean_files_save
33634 test $ac_write_fail = 0 ||
33635 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33638 # configure is writing to config.log, and then calls config.status.
33639 # config.status does its own redirection, appending to config.log.
33640 # Unfortunately, on DOS this fails, as config.log is still kept open
33641 # by configure, so config.status won't be able to write to it; its
33642 # output is simply discarded. So we exec the FD to /dev/null,
33643 # effectively closing config.log, so it can be properly (re)opened and
33644 # appended to by config.status. When coming back to configure, we
33645 # need to make the FD available again.
33646 if test "$no_create" != yes; then
33648 ac_config_status_args=
33649 test "$silent" = yes &&
33650 ac_config_status_args="$ac_config_status_args --quiet"
33652 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33654 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33655 # would make configure fail if this is the last instruction.
33656 $ac_cs_success || as_fn_exit 1
33658 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33660 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33664 if test "${support_bat}" = "yes" ; then
33665 if test "x$QMAKE" = "xnone"; then
33666 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33670 echo "Creating bat Makefile"
33676 ${MAKE:-make} clean
33680 if test X"$GCC" = "Xyes" ; then
33681 echo "Doing make of dependencies"
33682 ${MAKE:-make} depend
33686 chmod 755 install_conf_file build-depkgs-qt-console
33690 chmod 755 bacula btraceback mtx-changer
33691 chmod 755 dvd-handler dvd-simulator
33692 chmod 755 bconsole disk-changer devel_bacula logrotate
33696 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33697 chmod 755 $c/update_postgresql_tables_10_to_11
33698 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33699 chmod 755 $c/update_postgresql_tables_11_to_12
33704 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33705 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33707 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33708 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33710 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33711 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33713 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33714 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33716 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33717 chmod 755 $c/sqlite
33720 chmod 755 $c/install-default-backend
33722 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33723 largefile_support="yes"
33726 if test X"$GCC" = "Xyes" ; then
33727 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33728 if test "x${CCVERSION}" = "x" ; then
33729 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33731 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33732 if test x"${CXXVERSION}" = x ; then
33733 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33737 # clean up any old junk
33741 ${MAKE:-make} clean
33744 Configuration on `date`:
33746 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33747 Bacula version: ${BACULA} ${VERSION} (${DATE})
33748 Source code location: ${srcdir}
33749 Install binaries: ${sbindir}
33750 Install libraries: ${libdir}
33751 Install config files: ${sysconfdir}
33752 Scripts directory: ${scriptdir}
33753 Archive directory: ${archivedir}
33754 Working directory: ${working_dir}
33755 PID directory: ${piddir}
33756 Subsys directory: ${subsysdir}
33757 Man directory: ${mandir}
33758 Data directory: ${datarootdir}
33759 Plugin directory: ${plugindir}
33760 C Compiler: ${CC} ${CCVERSION}
33761 C++ Compiler: ${CXX} ${CXXVERSION}
33762 Compiler flags: ${WCFLAGS} ${CFLAGS}
33763 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33765 Statically Linked Tools: ${support_static_tools}
33766 Statically Linked FD: ${support_static_fd}
33767 Statically Linked SD: ${support_static_sd}
33768 Statically Linked DIR: ${support_static_dir}
33769 Statically Linked CONS: ${support_static_cons}
33770 Database backends: ${db_backends}
33771 Database port: ${db_port}
33772 Database name: ${db_name}
33773 Database user: ${db_user}
33774 Database SSL options: ${db_ssl_options}
33776 Job Output Email: ${job_email}
33777 Traceback Email: ${dump_email}
33778 SMTP Host Address: ${smtp_host}
33780 Director Port: ${dir_port}
33781 File daemon Port: ${fd_port}
33782 Storage daemon Port: ${sd_port}
33784 Director User: ${dir_user}
33785 Director Group: ${dir_group}
33786 Storage Daemon User: ${sd_user}
33787 Storage DaemonGroup: ${sd_group}
33788 File Daemon User: ${fd_user}
33789 File Daemon Group: ${fd_group}
33791 Large file support: $largefile_support
33792 Bacula conio support: ${got_conio} ${CONS_LIBS}
33793 readline support: ${got_readline} ${PRTREADLINE_SRC}
33794 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33795 TLS support: ${support_tls}
33796 Encryption support: ${support_crypto}
33797 ZLIB support: ${have_zlib}
33798 LZO support: ${have_lzo}
33799 enable-smartalloc: ${support_smartalloc}
33800 enable-lockmgr: ${support_lockmgr}
33801 bat support: ${support_bat}
33802 client-only: ${build_client_only}
33803 build-dird: ${build_dird}
33804 build-stored: ${build_stored}
33805 Plugin support: ${have_plugins}
33806 AFS support: ${have_afs}
33807 ACL support: ${have_acl}
33808 XATTR support: ${have_xattr}
33809 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
33810 Batch insert enabled: ${batch_insert_db_backends}
33814 # create a small shell script useful for support with
33815 # configure options and config.out info
33816 cat > scripts/bacula_config << EOF
33819 $ $0 $ac_configure_args
33821 cat config.out >> scripts/bacula_config
33822 echo __EOC__ >> scripts/bacula_config
33823 chmod 755 scripts/bacula_config