2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bacula 9.0.6.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='bacula'
589 PACKAGE_TARNAME='bacula'
590 PACKAGE_VERSION='9.0.6'
591 PACKAGE_STRING='bacula 9.0.6'
595 ac_unique_file="src/version.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
633 ac_subst_vars='LTLIBOBJS
665 SHARED_CATALOG_TARGETS
736 INTL_LIBTOOL_SUFFIX_PREFIX
743 BUILD_INCLUDED_LIBINTL
766 HAVE_KFREEBSD_OS_FALSE
767 HAVE_KFREEBSD_OS_TRUE
776 HAVE_OPENBSD_OS_FALSE
780 HAVE_FREEBSD_OS_FALSE
794 INCLUDE_UNINSTALL_TARGET
795 INCLUDE_INSTALL_TARGET
799 LIBTOOL_UNINSTALL_TARGET
800 LIBTOOL_INSTALL_TARGET
801 DEFAULT_SHARED_OBJECT_TYPE
880 LIBBACFIND_LT_RELEASE
881 LIBBACCATS_LT_RELEASE
929 program_transform_name
940 ac_subst_files='MCOMMON'
942 enable_option_checking
956 with_included_gettext
991 with_mon_dir_password
1022 ac_precious_vars='build_alias
1038 # Initialize some variables set by options.
1040 ac_init_version=false
1041 ac_unrecognized_opts=
1042 ac_unrecognized_sep=
1043 # The variables have the same names as the options, with
1044 # dashes changed to underlines.
1045 cache_file=/dev/null
1052 program_transform_name=s,x,x,
1060 # Installation directory options.
1061 # These are left unexpanded so users can "make install exec_prefix=/foo"
1062 # and all the variables that are supposed to be based on exec_prefix
1063 # by default will actually change.
1064 # Use braces instead of parens because sh, perl, etc. also accept them.
1065 # (The list follows the same order as the GNU Coding Standards.)
1066 bindir='${exec_prefix}/bin'
1067 sbindir='${exec_prefix}/sbin'
1068 libexecdir='${exec_prefix}/libexec'
1069 datarootdir='${prefix}/share'
1070 datadir='${datarootdir}'
1071 sysconfdir='${prefix}/etc'
1072 sharedstatedir='${prefix}/com'
1073 localstatedir='${prefix}/var'
1074 runstatedir='${localstatedir}/run'
1075 includedir='${prefix}/include'
1076 oldincludedir='/usr/include'
1077 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1078 infodir='${datarootdir}/info'
1083 libdir='${exec_prefix}/lib'
1084 localedir='${datarootdir}/locale'
1085 mandir='${datarootdir}/man'
1091 # If the previous option needs an argument, assign it.
1092 if test -n "$ac_prev"; then
1093 eval $ac_prev=\$ac_option
1099 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1104 # Accept the important Cygnus configure options, so we can diagnose typos.
1106 case $ac_dashdash$ac_option in
1110 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1112 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1113 bindir=$ac_optarg ;;
1115 -build | --build | --buil | --bui | --bu)
1116 ac_prev=build_alias ;;
1117 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1118 build_alias=$ac_optarg ;;
1120 -cache-file | --cache-file | --cache-fil | --cache-fi \
1121 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1122 ac_prev=cache_file ;;
1123 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1124 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1125 cache_file=$ac_optarg ;;
1127 --config-cache | -C)
1128 cache_file=config.cache ;;
1130 -datadir | --datadir | --datadi | --datad)
1132 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1133 datadir=$ac_optarg ;;
1135 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1136 | --dataroo | --dataro | --datar)
1137 ac_prev=datarootdir ;;
1138 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1139 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1140 datarootdir=$ac_optarg ;;
1142 -disable-* | --disable-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid feature name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1151 "enable_$ac_useropt"
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1156 eval enable_$ac_useropt=no ;;
1158 -docdir | --docdir | --docdi | --doc | --do)
1160 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1161 docdir=$ac_optarg ;;
1163 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1165 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1166 dvidir=$ac_optarg ;;
1168 -enable-* | --enable-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid feature name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1177 "enable_$ac_useropt"
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1182 eval enable_$ac_useropt=\$ac_optarg ;;
1184 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1185 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1186 | --exec | --exe | --ex)
1187 ac_prev=exec_prefix ;;
1188 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1189 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1190 | --exec=* | --exe=* | --ex=*)
1191 exec_prefix=$ac_optarg ;;
1193 -gas | --gas | --ga | --g)
1194 # Obsolete; use --with-gas.
1197 -help | --help | --hel | --he | -h)
1198 ac_init_help=long ;;
1199 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1200 ac_init_help=recursive ;;
1201 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1202 ac_init_help=short ;;
1204 -host | --host | --hos | --ho)
1205 ac_prev=host_alias ;;
1206 -host=* | --host=* | --hos=* | --ho=*)
1207 host_alias=$ac_optarg ;;
1209 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1211 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1213 htmldir=$ac_optarg ;;
1215 -includedir | --includedir | --includedi | --included | --include \
1216 | --includ | --inclu | --incl | --inc)
1217 ac_prev=includedir ;;
1218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1219 | --includ=* | --inclu=* | --incl=* | --inc=*)
1220 includedir=$ac_optarg ;;
1222 -infodir | --infodir | --infodi | --infod | --info | --inf)
1224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1225 infodir=$ac_optarg ;;
1227 -libdir | --libdir | --libdi | --libd)
1229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1230 libdir=$ac_optarg ;;
1232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1233 | --libexe | --libex | --libe)
1234 ac_prev=libexecdir ;;
1235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1236 | --libexe=* | --libex=* | --libe=*)
1237 libexecdir=$ac_optarg ;;
1239 -localedir | --localedir | --localedi | --localed | --locale)
1240 ac_prev=localedir ;;
1241 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1242 localedir=$ac_optarg ;;
1244 -localstatedir | --localstatedir | --localstatedi | --localstated \
1245 | --localstate | --localstat | --localsta | --localst | --locals)
1246 ac_prev=localstatedir ;;
1247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1248 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1249 localstatedir=$ac_optarg ;;
1251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1254 mandir=$ac_optarg ;;
1256 -nfp | --nfp | --nf)
1257 # Obsolete; use --without-fp.
1260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1261 | --no-cr | --no-c | -n)
1264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1270 | --oldin | --oldi | --old | --ol | --o)
1271 ac_prev=oldincludedir ;;
1272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1275 oldincludedir=$ac_optarg ;;
1277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1280 prefix=$ac_optarg ;;
1282 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1283 | --program-pre | --program-pr | --program-p)
1284 ac_prev=program_prefix ;;
1285 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1287 program_prefix=$ac_optarg ;;
1289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1290 | --program-suf | --program-su | --program-s)
1291 ac_prev=program_suffix ;;
1292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1294 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1304 -program-transform-name=* | --program-transform-name=* \
1305 | --program-transform-nam=* | --program-transform-na=* \
1306 | --program-transform-n=* | --program-transform-=* \
1307 | --program-transform=* | --program-transfor=* \
1308 | --program-transfo=* | --program-transf=* \
1309 | --program-trans=* | --program-tran=* \
1310 | --progr-tra=* | --program-tr=* | --program-t=*)
1311 program_transform_name=$ac_optarg ;;
1313 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1315 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1316 pdfdir=$ac_optarg ;;
1318 -psdir | --psdir | --psdi | --psd | --ps)
1320 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1324 | -silent | --silent | --silen | --sile | --sil)
1327 -runstatedir | --runstatedir | --runstatedi | --runstated \
1328 | --runstate | --runstat | --runsta | --runst | --runs \
1329 | --run | --ru | --r)
1330 ac_prev=runstatedir ;;
1331 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1332 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1333 | --run=* | --ru=* | --r=*)
1334 runstatedir=$ac_optarg ;;
1336 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1338 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1340 sbindir=$ac_optarg ;;
1342 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1343 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1344 | --sharedst | --shareds | --shared | --share | --shar \
1346 ac_prev=sharedstatedir ;;
1347 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1348 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1349 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1351 sharedstatedir=$ac_optarg ;;
1353 -site | --site | --sit)
1355 -site=* | --site=* | --sit=*)
1358 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1360 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1361 srcdir=$ac_optarg ;;
1363 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1364 | --syscon | --sysco | --sysc | --sys | --sy)
1365 ac_prev=sysconfdir ;;
1366 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1367 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1368 sysconfdir=$ac_optarg ;;
1370 -target | --target | --targe | --targ | --tar | --ta | --t)
1371 ac_prev=target_alias ;;
1372 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1373 target_alias=$ac_optarg ;;
1375 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1378 -version | --version | --versio | --versi | --vers | -V)
1379 ac_init_version=: ;;
1382 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1383 # Reject names that are not valid shell variable names.
1384 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1385 as_fn_error $? "invalid package name: $ac_useropt"
1386 ac_useropt_orig=$ac_useropt
1387 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1388 case $ac_user_opts in
1392 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1393 ac_unrecognized_sep=', ';;
1395 eval with_$ac_useropt=\$ac_optarg ;;
1397 -without-* | --without-*)
1398 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1399 # Reject names that are not valid shell variable names.
1400 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1401 as_fn_error $? "invalid package name: $ac_useropt"
1402 ac_useropt_orig=$ac_useropt
1403 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1404 case $ac_user_opts in
1408 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1409 ac_unrecognized_sep=', ';;
1411 eval with_$ac_useropt=no ;;
1414 # Obsolete; use --with-x.
1417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1418 | --x-incl | --x-inc | --x-in | --x-i)
1419 ac_prev=x_includes ;;
1420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1422 x_includes=$ac_optarg ;;
1424 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1426 ac_prev=x_libraries ;;
1427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1429 x_libraries=$ac_optarg ;;
1431 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1432 Try \`$0 --help' for more information"
1436 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1437 # Reject names that are not valid shell variable names.
1438 case $ac_envvar in #(
1439 '' | [0-9]* | *[!_$as_cr_alnum]* )
1440 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1442 eval $ac_envvar=\$ac_optarg
1443 export $ac_envvar ;;
1446 # FIXME: should be removed in autoconf 3.0.
1447 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1448 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1449 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1450 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1456 if test -n "$ac_prev"; then
1457 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1458 as_fn_error $? "missing argument to $ac_option"
1461 if test -n "$ac_unrecognized_opts"; then
1462 case $enable_option_checking in
1464 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1465 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1469 # Check all directory arguments for consistency.
1470 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1471 datadir sysconfdir sharedstatedir localstatedir includedir \
1472 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1473 libdir localedir mandir runstatedir
1475 eval ac_val=\$$ac_var
1476 # Remove trailing slashes.
1479 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1480 eval $ac_var=\$ac_val;;
1482 # Be sure to have absolute directory names.
1484 [\\/$]* | ?:[\\/]* ) continue;;
1485 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1487 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1490 # There might be people who depend on the old broken behavior: `$host'
1491 # used to hold the argument of --host etc.
1492 # FIXME: To remove some day.
1495 target=$target_alias
1497 # FIXME: To remove some day.
1498 if test "x$host_alias" != x; then
1499 if test "x$build_alias" = x; then
1500 cross_compiling=maybe
1501 elif test "x$build_alias" != "x$host_alias"; then
1507 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1509 test "$silent" = yes && exec 6>/dev/null
1512 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1513 ac_ls_di=`ls -di .` &&
1514 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1515 as_fn_error $? "working directory cannot be determined"
1516 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1517 as_fn_error $? "pwd does not report name of working directory"
1520 # Find the source files, if location was not specified.
1521 if test -z "$srcdir"; then
1522 ac_srcdir_defaulted=yes
1523 # Try the directory containing this script, then the parent directory.
1524 ac_confdir=`$as_dirname -- "$as_myself" ||
1525 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1526 X"$as_myself" : 'X\(//\)[^/]' \| \
1527 X"$as_myself" : 'X\(//\)$' \| \
1528 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1529 $as_echo X"$as_myself" |
1530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1548 if test ! -r "$srcdir/$ac_unique_file"; then
1552 ac_srcdir_defaulted=no
1554 if test ! -r "$srcdir/$ac_unique_file"; then
1555 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1556 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1558 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1560 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1562 # When building in place, set srcdir=.
1563 if test "$ac_abs_confdir" = "$ac_pwd"; then
1566 # Remove unnecessary trailing slashes from srcdir.
1567 # Double slashes in file names in object file debugging info
1568 # mess up M-x gdb in Emacs.
1570 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1572 for ac_var in $ac_precious_vars; do
1573 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1574 eval ac_env_${ac_var}_value=\$${ac_var}
1575 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1576 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1580 # Report the --help message.
1582 if test "$ac_init_help" = "long"; then
1583 # Omit some internal or obsolete options to make the list less imposing.
1584 # This message is too long to be a string in the A/UX 3.1 sh.
1586 \`configure' configures bacula 9.0.6 to adapt to many kinds of systems.
1588 Usage: $0 [OPTION]... [VAR=VALUE]...
1590 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1591 VAR=VALUE. See below for descriptions of some of the useful variables.
1593 Defaults for the options are specified in brackets.
1596 -h, --help display this help and exit
1597 --help=short display options specific to this package
1598 --help=recursive display the short help of all the included packages
1599 -V, --version display version information and exit
1600 -q, --quiet, --silent do not print \`checking ...' messages
1601 --cache-file=FILE cache test results in FILE [disabled]
1602 -C, --config-cache alias for \`--cache-file=config.cache'
1603 -n, --no-create do not create output files
1604 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1606 Installation directories:
1607 --prefix=PREFIX install architecture-independent files in PREFIX
1608 [$ac_default_prefix]
1609 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1612 By default, \`make install' will install all the files in
1613 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1614 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1615 for instance \`--prefix=\$HOME'.
1617 For better control, use the options below.
1619 Fine tuning of the installation directories:
1620 --bindir=DIR user executables [EPREFIX/bin]
1621 --sbindir=DIR system admin executables [EPREFIX/sbin]
1622 --libexecdir=DIR program executables [EPREFIX/libexec]
1623 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1624 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1625 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1626 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1627 --libdir=DIR object code libraries [EPREFIX/lib]
1628 --includedir=DIR C header files [PREFIX/include]
1629 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1630 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1631 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1632 --infodir=DIR info documentation [DATAROOTDIR/info]
1633 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1634 --mandir=DIR man documentation [DATAROOTDIR/man]
1635 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1636 --htmldir=DIR html documentation [DOCDIR]
1637 --dvidir=DIR dvi documentation [DOCDIR]
1638 --pdfdir=DIR pdf documentation [DOCDIR]
1639 --psdir=DIR ps documentation [DOCDIR]
1645 --x-includes=DIR X include files are in DIR
1646 --x-libraries=DIR X library files are in DIR
1649 --build=BUILD configure for building on BUILD [guessed]
1650 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1654 if test -n "$ac_init_help"; then
1655 case $ac_init_help in
1656 short | recursive ) echo "Configuration of bacula 9.0.6:";;
1661 --disable-option-checking ignore unrecognized --enable/--with options
1662 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1663 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1664 --enable-libtool enable building using GNU libtool [default=yes]
1665 --enable-shared[=PKGS] build shared libraries [default=yes]
1666 --enable-static[=PKGS] build static libraries [default=no]
1667 --enable-fast-install[=PKGS]
1668 optimize for fast installation [default=yes]
1669 --disable-libtool-lock avoid locking (might break parallel builds)
1670 --enable-includes enable installing of include files [default=no]
1671 --disable-nls do not use Native Language Support
1672 --disable-rpath do not hardcode runtime library paths
1673 --enable-bat enable build of bat Qt GUI [default=no]
1674 --enable-smartalloc enable smartalloc debugging support [default=no]
1675 --enable-lockmgr enable lock manager support [default=no]
1676 --enable-static-tools enable static tape tools [default=no]
1677 --enable-static-fd enable static File daemon [default=no]
1678 --enable-static-sd enable static Storage daemon [default=no]
1679 --enable-static-dir enable static Director [default=no]
1680 --enable-static-cons enable static Console [default=no]
1681 --enable-client-only build client (File daemon) only [default=no]
1682 --enable-build-dird enable building of dird (Director) [default=yes]
1683 --enable-build-stored enable building of stored (Storage daemon)
1685 --disable-conio disable conio support [default=no]
1686 --enable-ipv6 enable ipv6 support [default=yes]
1687 --disable-readline disable readline support [default=yes]
1688 --enable-batch-insert enable the DB batch insert code [default=yes]
1689 --disable-largefile omit support for large files
1690 --disable-afs disable afs support [default=auto]
1691 --disable-lzo disable lzo support [default=yes]
1692 --disable-acl disable acl support [default=auto]
1693 --disable-xattr disable xattr support [default=auto]
1696 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1697 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1698 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1700 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1701 --with-sysroot=DIR Search for dependent libraries within DIR
1702 (or the compiler's sysroot if not specified).
1703 --with-gnu-ld assume the C compiler uses GNU ld default=no
1704 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1705 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1706 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1707 --without-libintl-prefix don't search for libintl in includedir and libdir
1708 --with-included-gettext use the GNU gettext library included here
1709 --with-readline[=DIR] specify readline library directory
1710 --with-tcp-wrappers[=DIR]
1711 enable tcpwrappers support
1712 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1713 --with-working-dir=PATH specify path of Bacula working directory
1714 --with-archivedir=PATH specify path of SD archive directory
1715 --with-basename=RESNAME specify base resource name for daemons
1716 --with-hostname=RESNAME specify host name for daemons
1717 --with-scriptdir=PATH specify path of Bacula scripts directory
1718 --with-bsrdir=PATH specify path of Bacula bsrs directory
1719 --with-logdir=PATH specify path of Bacula logs directory
1720 --with-plugindir=PATH specify path of Bacula plugins directory
1721 --with-dump-email=EMAIL dump email address
1722 --with-job-email=EMAIL job output email address
1723 --with-smtp-host=HOST SMTP mail host address
1724 --with-pid-dir=PATH specify location of Bacula pid files
1725 --with-subsys-dir=PATH specify location of Bacula subsys file
1726 --with-baseport=PORT specify base port address for daemons
1727 --with-dir-password=PASSWORD
1728 specify Director's password
1729 --with-fd-password=PASSWORD
1730 specify Client's password
1731 --with-sd-password=PASSWORD
1732 specify Storage daemon's password
1733 --with-mon-dir-password=PASSWORD
1734 specify Director's password used by the monitor
1735 --with-mon-fd-password=PASSWORD
1736 specify Client's password used by the monitor
1737 --with-mon-sd-password=PASSWORD
1738 specify Storage daemon's password used by the
1740 --with-db-name=DBNAME specify database name [default=bacula]
1741 --with-db-user=UNAME specify database user [default=bacula]
1742 --with-db-password=PWD specify database password [default=*none*]
1743 --with-db-port=DBPORT specify a database port [default=null]
1744 --with-db-ssl-options=DBSSLOPTIONS
1745 specify SSL options for database user connection
1747 --with-dir-user=USER specify user for Director daemon
1748 --with-dir-group=GROUP specify group for Director daemon
1749 --with-sd-user=USER specify user for Storage daemon
1750 --with-sd-group=GROUP specify group for Storage daemon
1751 --with-fd-user=USER specify user for File daemon
1752 --with-fd-group=GROUP specify group for File daemon
1753 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1754 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1755 base install directory, [default=/usr/local/pgsql]
1756 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1757 directory, default is to search through a number of
1758 common places for the MySQL files.
1759 --with-embedded-mysql[=DIR]
1760 Include MySQL support. DIR is the MySQL base install
1761 directory, default is to search through a number of
1762 common places for the MySQL files.
1763 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1764 install directory, default is to search through a
1765 number of common places for the SQLite3 files.
1766 --with-x use the X Window System
1767 --with-s3[=DIR] specify s3 library directory
1768 --with-afsdir[=DIR] Directory holding AFS includes/libs
1769 --with-lzo[=DIR] specify lzo library directory
1770 --with-systemd[=UNITDIR]
1771 Include systemd support. UNITDIR is where systemd
1772 system .service files are located, default is to ask
1775 Some influential environment variables:
1776 CC C compiler command
1777 CFLAGS C compiler flags
1778 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1779 nonstandard directory <lib dir>
1780 LIBS libraries to pass to the linker, e.g. -l<library>
1781 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1782 you have headers in a nonstandard directory <include dir>
1783 CXX C++ compiler command
1784 CXXFLAGS C++ compiler flags
1786 CXXCPP C++ preprocessor
1787 XMKMF Path to xmkmf, Makefile generator for X Window System
1789 Use these variables to override the choices made by `configure' or to help
1790 it to find libraries and programs with nonstandard names/locations.
1792 Report bugs to the package provider.
1797 if test "$ac_init_help" = "recursive"; then
1798 # If there are subdirs, report their specific --help.
1799 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1800 test -d "$ac_dir" ||
1801 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1806 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1808 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1809 # A ".." for each directory in $ac_dir_suffix.
1810 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1811 case $ac_top_builddir_sub in
1812 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1813 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1816 ac_abs_top_builddir=$ac_pwd
1817 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1818 # for backward compatibility:
1819 ac_top_builddir=$ac_top_build_prefix
1822 .) # We are building in place.
1824 ac_top_srcdir=$ac_top_builddir_sub
1825 ac_abs_top_srcdir=$ac_pwd ;;
1826 [\\/]* | ?:[\\/]* ) # Absolute name.
1827 ac_srcdir=$srcdir$ac_dir_suffix;
1828 ac_top_srcdir=$srcdir
1829 ac_abs_top_srcdir=$srcdir ;;
1831 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1832 ac_top_srcdir=$ac_top_build_prefix$srcdir
1833 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1835 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1837 cd "$ac_dir" || { ac_status=$?; continue; }
1838 # Check for guested configure.
1839 if test -f "$ac_srcdir/configure.gnu"; then
1841 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1842 elif test -f "$ac_srcdir/configure"; then
1844 $SHELL "$ac_srcdir/configure" --help=recursive
1846 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1848 cd "$ac_pwd" || { ac_status=$?; break; }
1852 test -n "$ac_init_help" && exit $ac_status
1853 if $ac_init_version; then
1855 bacula configure 9.0.6
1856 generated by GNU Autoconf 2.69
1858 Copyright (C) 2012 Free Software Foundation, Inc.
1859 This configure script is free software; the Free Software Foundation
1860 gives unlimited permission to copy, distribute and modify it.
1865 ## ------------------------ ##
1866 ## Autoconf initialization. ##
1867 ## ------------------------ ##
1869 # ac_fn_c_try_compile LINENO
1870 # --------------------------
1871 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1872 ac_fn_c_try_compile ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 rm -f conftest.$ac_objext
1876 if { { ac_try="$ac_compile"
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_compile") 2>conftest.err
1885 if test -s conftest.err; then
1886 grep -v '^ *+' conftest.err >conftest.er1
1887 cat conftest.er1 >&5
1888 mv -f conftest.er1 conftest.err
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; } && {
1892 test -z "$ac_c_werror_flag" ||
1893 test ! -s conftest.err
1894 } && test -s conftest.$ac_objext; then :
1897 $as_echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1905 } # ac_fn_c_try_compile
1907 # ac_fn_cxx_try_compile LINENO
1908 # ----------------------------
1909 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1910 ac_fn_cxx_try_compile ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 rm -f conftest.$ac_objext
1914 if { { ac_try="$ac_compile"
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_compile") 2>conftest.err
1923 if test -s conftest.err; then
1924 grep -v '^ *+' conftest.err >conftest.er1
1925 cat conftest.er1 >&5
1926 mv -f conftest.er1 conftest.err
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && {
1930 test -z "$ac_cxx_werror_flag" ||
1931 test ! -s conftest.err
1932 } && test -s conftest.$ac_objext; then :
1935 $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1943 } # ac_fn_cxx_try_compile
1945 # ac_fn_c_try_cpp LINENO
1946 # ----------------------
1947 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if { { ac_try="$ac_cpp conftest.$ac_ext"
1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1960 if test -s conftest.err; then
1961 grep -v '^ *+' conftest.err >conftest.er1
1962 cat conftest.er1 >&5
1963 mv -f conftest.er1 conftest.err
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; } > conftest.i && {
1967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1968 test ! -s conftest.err
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status $ac_retval
1982 # ac_fn_c_try_link LINENO
1983 # -----------------------
1984 # Try to link conftest.$ac_ext, and return whether this succeeded.
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 rm -f conftest.$ac_objext conftest$ac_exeext
1989 if { { ac_try="$ac_link"
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_link") 2>conftest.err
1998 if test -s conftest.err; then
1999 grep -v '^ *+' conftest.err >conftest.er1
2000 cat conftest.er1 >&5
2001 mv -f conftest.er1 conftest.err
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; } && {
2005 test -z "$ac_c_werror_flag" ||
2006 test ! -s conftest.err
2007 } && test -s conftest$ac_exeext && {
2008 test "$cross_compiling" = yes ||
2009 test -x conftest$ac_exeext
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2018 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2019 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2020 # interfere with the next link command; also delete a directory that is
2021 # left behind by Apple's compiler. We do this before executing the actions.
2022 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 as_fn_set_status $ac_retval
2026 } # ac_fn_c_try_link
2028 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2029 # -------------------------------------------------------
2030 # Tests whether HEADER exists and can be compiled using the include files in
2031 # INCLUDES, setting the cache variable VAR accordingly.
2032 ac_fn_c_check_header_compile ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036 $as_echo_n "checking for $2... " >&6; }
2037 if eval \${$3+:} false; then :
2038 $as_echo_n "(cached) " >&6
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2045 if ac_fn_c_try_compile "$LINENO"; then :
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 } # ac_fn_c_check_header_compile
2059 # ac_fn_c_try_run LINENO
2060 # ----------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2062 # that executables *can* be run.
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 if { { ac_try="$ac_link"
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073 (eval "$ac_link") 2>&5
2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2077 { { case "(($ac_try" in
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_try") 2>&5
2085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086 test $ac_status = 0; }; }; then :
2089 $as_echo "$as_me: program exited with status $ac_status" >&5
2090 $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2093 ac_retval=$ac_status
2095 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
2101 # ac_fn_c_check_func LINENO FUNC VAR
2102 # ----------------------------------
2103 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2104 ac_fn_c_check_func ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \${$3+:} false; then :
2110 $as_echo_n "(cached) " >&6
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2114 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2116 #define $2 innocuous_$2
2118 /* System header to define __stub macros and hopefully few prototypes,
2119 which can conflict with char $2 (); below.
2120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2121 <limits.h> exists even on freestanding compilers. */
2124 # include <limits.h>
2126 # include <assert.h>
2131 /* Override any GCC internal prototype to avoid an error.
2132 Use char because int might match the return type of a GCC
2133 builtin and then its argument prototype would still apply. */
2138 /* The GNU C library defines this for functions which it implements
2139 to always fail with ENOSYS. Some functions are actually named
2140 something starting with __ and the normal name is an alias. */
2141 #if defined __stub_$2 || defined __stub___$2
2153 if ac_fn_c_try_link "$LINENO"; then :
2158 rm -f core conftest.err conftest.$ac_objext \
2159 conftest$ac_exeext conftest.$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 } # ac_fn_c_check_func
2168 # ac_fn_cxx_try_cpp LINENO
2169 # ------------------------
2170 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2171 ac_fn_cxx_try_cpp ()
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 if { { ac_try="$ac_cpp conftest.$ac_ext"
2176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177 *) ac_try_echo=$ac_try;;
2179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2180 $as_echo "$ac_try_echo"; } >&5
2181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2183 if test -s conftest.err; then
2184 grep -v '^ *+' conftest.err >conftest.er1
2185 cat conftest.er1 >&5
2186 mv -f conftest.er1 conftest.err
2188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2189 test $ac_status = 0; } > conftest.i && {
2190 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2191 test ! -s conftest.err
2195 $as_echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201 as_fn_set_status $ac_retval
2203 } # ac_fn_cxx_try_cpp
2205 # ac_fn_cxx_try_link LINENO
2206 # -------------------------
2207 # Try to link conftest.$ac_ext, and return whether this succeeded.
2208 ac_fn_cxx_try_link ()
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 rm -f conftest.$ac_objext conftest$ac_exeext
2212 if { { ac_try="$ac_link"
2214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2215 *) ac_try_echo=$ac_try;;
2217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2218 $as_echo "$ac_try_echo"; } >&5
2219 (eval "$ac_link") 2>conftest.err
2221 if test -s conftest.err; then
2222 grep -v '^ *+' conftest.err >conftest.er1
2223 cat conftest.er1 >&5
2224 mv -f conftest.er1 conftest.err
2226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227 test $ac_status = 0; } && {
2228 test -z "$ac_cxx_werror_flag" ||
2229 test ! -s conftest.err
2230 } && test -s conftest$ac_exeext && {
2231 test "$cross_compiling" = yes ||
2232 test -x conftest$ac_exeext
2236 $as_echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.$ac_ext >&5
2241 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2242 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2243 # interfere with the next link command; also delete a directory that is
2244 # left behind by Apple's compiler. We do this before executing the actions.
2245 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2246 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2247 as_fn_set_status $ac_retval
2249 } # ac_fn_cxx_try_link
2251 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2252 # ---------------------------------------------
2253 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2255 ac_fn_c_check_decl ()
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 as_decl_name=`echo $2|sed 's/ *(.*//'`
2259 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2261 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2262 if eval \${$3+:} false; then :
2263 $as_echo_n "(cached) " >&6
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2271 #ifndef $as_decl_name
2273 (void) $as_decl_use;
2275 (void) $as_decl_name;
2283 if ac_fn_c_try_compile "$LINENO"; then :
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292 $as_echo "$ac_res" >&6; }
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295 } # ac_fn_c_check_decl
2297 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2298 # -------------------------------------------
2299 # Tests whether TYPE exists after having included INCLUDES, setting cache
2300 # variable VAR accordingly.
2301 ac_fn_c_check_type ()
2303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2305 $as_echo_n "checking for $2... " >&6; }
2306 if eval \${$3+:} false; then :
2307 $as_echo_n "(cached) " >&6
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2335 if ac_fn_c_try_compile "$LINENO"; then :
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2349 } # ac_fn_c_check_type
2351 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2352 # -------------------------------------------------------
2353 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2354 # the include files in INCLUDES and setting the cache variable VAR
2356 ac_fn_c_check_header_mongrel ()
2358 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359 if eval \${$3+:} false; then :
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2361 $as_echo_n "checking for $2... " >&6; }
2362 if eval \${$3+:} false; then :
2363 $as_echo_n "(cached) " >&6
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367 $as_echo "$ac_res" >&6; }
2369 # Is the header compilable?
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2371 $as_echo_n "checking $2 usability... " >&6; }
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2377 if ac_fn_c_try_compile "$LINENO"; then :
2378 ac_header_compiler=yes
2380 ac_header_compiler=no
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2384 $as_echo "$ac_header_compiler" >&6; }
2386 # Is the header present?
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2388 $as_echo_n "checking $2 presence... " >&6; }
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2393 if ac_fn_c_try_cpp "$LINENO"; then :
2394 ac_header_preproc=yes
2396 ac_header_preproc=no
2398 rm -f conftest.err conftest.i conftest.$ac_ext
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2400 $as_echo "$ac_header_preproc" >&6; }
2402 # So? What about this header?
2403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2406 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2408 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2412 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2414 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2416 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2418 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2420 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2424 $as_echo_n "checking for $2... " >&6; }
2425 if eval \${$3+:} false; then :
2426 $as_echo_n "(cached) " >&6
2428 eval "$3=\$ac_header_compiler"
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432 $as_echo "$ac_res" >&6; }
2434 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2436 } # ac_fn_c_check_header_mongrel
2438 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2439 # --------------------------------------------
2440 # Tries to find the compile-time value of EXPR in a program that includes
2441 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2443 ac_fn_c_compute_int ()
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 if test "$cross_compiling" = yes; then
2447 # Depending upon the size, compute the lo and hi bounds.
2448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449 /* end confdefs.h. */
2454 static int test_array [1 - 2 * !(($2) >= 0)];
2456 return test_array [0];
2462 if ac_fn_c_try_compile "$LINENO"; then :
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2471 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2473 return test_array [0];
2479 if ac_fn_c_try_compile "$LINENO"; then :
2480 ac_hi=$ac_mid; break
2482 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2483 if test $ac_lo -le $ac_mid; then
2487 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2498 static int test_array [1 - 2 * !(($2) < 0)];
2500 return test_array [0];
2506 if ac_fn_c_try_compile "$LINENO"; then :
2509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510 /* end confdefs.h. */
2515 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2517 return test_array [0];
2523 if ac_fn_c_try_compile "$LINENO"; then :
2524 ac_lo=$ac_mid; break
2526 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2527 if test $ac_mid -le $ac_hi; then
2531 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 # Binary search between lo and hi bounds.
2542 while test "x$ac_lo" != "x$ac_hi"; do
2543 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2550 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2552 return test_array [0];
2558 if ac_fn_c_try_compile "$LINENO"; then :
2561 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2566 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2573 static long int longval () { return $2; }
2574 static unsigned long int ulongval () { return $2; }
2581 FILE *f = fopen ("conftest.val", "w");
2586 long int i = longval ();
2589 fprintf (f, "%ld", i);
2593 unsigned long int i = ulongval ();
2596 fprintf (f, "%lu", i);
2598 /* Do not output a trailing newline, as this causes \r\n confusion
2599 on some platforms. */
2600 return ferror (f) || fclose (f) != 0;
2606 if ac_fn_c_try_run "$LINENO"; then :
2607 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2612 conftest.$ac_objext conftest.beam conftest.$ac_ext
2616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2617 as_fn_set_status $ac_retval
2619 } # ac_fn_c_compute_int
2621 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2622 # ----------------------------------------------------
2623 # Tries to find if the field MEMBER exists in type AGGR, after including
2624 # INCLUDES, setting cache variable VAR accordingly.
2625 ac_fn_c_check_member ()
2627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2629 $as_echo_n "checking for $2.$3... " >&6; }
2630 if eval \${$4+:} false; then :
2631 $as_echo_n "(cached) " >&6
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2646 if ac_fn_c_try_compile "$LINENO"; then :
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2656 if (sizeof ac_aggr.$3)
2662 if ac_fn_c_try_compile "$LINENO"; then :
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2673 $as_echo "$ac_res" >&6; }
2674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2676 } # ac_fn_c_check_member
2678 # ac_fn_cxx_try_run LINENO
2679 # ------------------------
2680 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2681 # that executables *can* be run.
2682 ac_fn_cxx_try_run ()
2684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2685 if { { ac_try="$ac_link"
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2691 $as_echo "$ac_try_echo"; } >&5
2692 (eval "$ac_link") 2>&5
2694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2695 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2696 { { case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701 $as_echo "$ac_try_echo"; } >&5
2702 (eval "$ac_try") 2>&5
2704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2705 test $ac_status = 0; }; }; then :
2708 $as_echo "$as_me: program exited with status $ac_status" >&5
2709 $as_echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2712 ac_retval=$ac_status
2714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2716 as_fn_set_status $ac_retval
2718 } # ac_fn_cxx_try_run
2720 # ac_fn_cxx_check_func LINENO FUNC VAR
2721 # ------------------------------------
2722 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2723 ac_fn_cxx_check_func ()
2725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2727 $as_echo_n "checking for $2... " >&6; }
2728 if eval \${$3+:} false; then :
2729 $as_echo_n "(cached) " >&6
2731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h. */
2733 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2735 #define $2 innocuous_$2
2737 /* System header to define __stub macros and hopefully few prototypes,
2738 which can conflict with char $2 (); below.
2739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2740 <limits.h> exists even on freestanding compilers. */
2743 # include <limits.h>
2745 # include <assert.h>
2750 /* Override any GCC internal prototype to avoid an error.
2751 Use char because int might match the return type of a GCC
2752 builtin and then its argument prototype would still apply. */
2757 /* The GNU C library defines this for functions which it implements
2758 to always fail with ENOSYS. Some functions are actually named
2759 something starting with __ and the normal name is an alias. */
2760 #if defined __stub_$2 || defined __stub___$2
2772 if ac_fn_cxx_try_link "$LINENO"; then :
2777 rm -f core conftest.err conftest.$ac_objext \
2778 conftest$ac_exeext conftest.$ac_ext
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2782 $as_echo "$ac_res" >&6; }
2783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2785 } # ac_fn_cxx_check_func
2786 cat >config.log <<_ACEOF
2787 This file contains any messages produced by compilers while
2788 running configure, to aid debugging if configure makes a mistake.
2790 It was created by bacula $as_me 9.0.6, which was
2791 generated by GNU Autoconf 2.69. Invocation command line was
2803 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2804 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2805 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2806 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2807 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2809 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2810 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2812 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2813 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2814 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2815 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2816 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2817 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2818 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir=.
2827 $as_echo "PATH: $as_dir"
2843 # Keep a trace of the command line.
2844 # Strip out --no-create and --no-recursion so they do not pile up.
2845 # Strip out --silent because we don't want to record it for future runs.
2846 # Also quote any args containing shell meta-characters.
2847 # Make two passes to allow for proper duplicate-argument suppression.
2851 ac_must_keep_next=false
2857 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2859 | -silent | --silent | --silen | --sile | --sil)
2862 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2865 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2867 as_fn_append ac_configure_args1 " '$ac_arg'"
2868 if test $ac_must_keep_next = true; then
2869 ac_must_keep_next=false # Got value, back to normal.
2872 *=* | --config-cache | -C | -disable-* | --disable-* \
2873 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2874 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2875 | -with-* | --with-* | -without-* | --without-* | --x)
2876 case "$ac_configure_args0 " in
2877 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2880 -* ) ac_must_keep_next=true ;;
2883 as_fn_append ac_configure_args " '$ac_arg'"
2888 { ac_configure_args0=; unset ac_configure_args0;}
2889 { ac_configure_args1=; unset ac_configure_args1;}
2891 # When interrupted or exit'd, cleanup temporary files, and complete
2892 # config.log. We remove comments because anyway the quotes in there
2893 # would cause problems or look ugly.
2894 # WARNING: Use '\'' to represent an apostrophe within the trap.
2895 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2896 trap 'exit_status=$?
2897 # Save into config.log some information that might help in debugging.
2901 $as_echo "## ---------------- ##
2902 ## Cache variables. ##
2903 ## ---------------- ##"
2905 # The following way of writing the cache mishandles newlines in values,
2907 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2908 eval ac_val=\$$ac_var
2912 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2913 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2916 _ | IFS | as_nl) ;; #(
2917 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2918 *) { eval $ac_var=; unset $ac_var;} ;;
2923 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2924 *${as_nl}ac_space=\ *)
2926 "s/'\''/'\''\\\\'\'''\''/g;
2927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2930 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2937 $as_echo "## ----------------- ##
2938 ## Output variables. ##
2939 ## ----------------- ##"
2941 for ac_var in $ac_subst_vars
2943 eval ac_val=\$$ac_var
2945 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2947 $as_echo "$ac_var='\''$ac_val'\''"
2951 if test -n "$ac_subst_files"; then
2952 $as_echo "## ------------------- ##
2953 ## File substitutions. ##
2954 ## ------------------- ##"
2956 for ac_var in $ac_subst_files
2958 eval ac_val=\$$ac_var
2960 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2962 $as_echo "$ac_var='\''$ac_val'\''"
2967 if test -s confdefs.h; then
2968 $as_echo "## ----------- ##
2975 test "$ac_signal" != 0 &&
2976 $as_echo "$as_me: caught signal $ac_signal"
2977 $as_echo "$as_me: exit $exit_status"
2979 rm -f core *.core core.conftest.* &&
2980 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2983 for ac_signal in 1 2 13 15; do
2984 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2988 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2989 rm -f -r conftest* confdefs.h
2991 $as_echo "/* confdefs.h */" > confdefs.h
2993 # Predefined preprocessor variables.
2995 cat >>confdefs.h <<_ACEOF
2996 #define PACKAGE_NAME "$PACKAGE_NAME"
2999 cat >>confdefs.h <<_ACEOF
3000 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3003 cat >>confdefs.h <<_ACEOF
3004 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3007 cat >>confdefs.h <<_ACEOF
3008 #define PACKAGE_STRING "$PACKAGE_STRING"
3011 cat >>confdefs.h <<_ACEOF
3012 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3015 cat >>confdefs.h <<_ACEOF
3016 #define PACKAGE_URL "$PACKAGE_URL"
3020 # Let the site file select an alternate cache file if it wants to.
3021 # Prefer an explicitly selected file to automatically selected ones.
3024 if test -n "$CONFIG_SITE"; then
3025 # We do not want a PATH search for config.site.
3026 case $CONFIG_SITE in #((
3027 -*) ac_site_file1=./$CONFIG_SITE;;
3028 */*) ac_site_file1=$CONFIG_SITE;;
3029 *) ac_site_file1=./$CONFIG_SITE;;
3031 elif test "x$prefix" != xNONE; then
3032 ac_site_file1=$prefix/share/config.site
3033 ac_site_file2=$prefix/etc/config.site
3035 ac_site_file1=$ac_default_prefix/share/config.site
3036 ac_site_file2=$ac_default_prefix/etc/config.site
3038 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3040 test "x$ac_site_file" = xNONE && continue
3041 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3043 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3044 sed 's/^/| /' "$ac_site_file" >&5
3046 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 as_fn_error $? "failed to load site script $ac_site_file
3049 See \`config.log' for more details" "$LINENO" 5; }
3053 if test -r "$cache_file"; then
3054 # Some versions of bash will fail to source /dev/null (special files
3055 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3056 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3058 $as_echo "$as_me: loading cache $cache_file" >&6;}
3060 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3061 *) . "./$cache_file";;
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3066 $as_echo "$as_me: creating cache $cache_file" >&6;}
3070 as_fn_append ac_header_list " stdlib.h"
3071 as_fn_append ac_header_list " unistd.h"
3072 as_fn_append ac_header_list " sys/param.h"
3073 # Check that the precious variables saved in the cache have kept the same
3075 ac_cache_corrupted=false
3076 for ac_var in $ac_precious_vars; do
3077 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3078 eval ac_new_set=\$ac_env_${ac_var}_set
3079 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3080 eval ac_new_val=\$ac_env_${ac_var}_value
3081 case $ac_old_set,$ac_new_set in
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3084 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3085 ac_cache_corrupted=: ;;
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3088 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3089 ac_cache_corrupted=: ;;
3092 if test "x$ac_old_val" != "x$ac_new_val"; then
3093 # differences in whitespace do not lead to failure.
3094 ac_old_val_w=`echo x $ac_old_val`
3095 ac_new_val_w=`echo x $ac_new_val`
3096 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3098 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3099 ac_cache_corrupted=:
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3102 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3103 eval $ac_var=\$ac_old_val
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3106 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3108 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3111 # Pass precious variables to config.status.
3112 if test "$ac_new_set" = set; then
3114 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3115 *) ac_arg=$ac_var=$ac_new_val ;;
3117 case " $ac_configure_args " in
3118 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3119 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3123 if $ac_cache_corrupted; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3127 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3128 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3130 ## -------------------- ##
3131 ## Main body of script. ##
3132 ## -------------------- ##
3135 ac_cpp='$CPP $CPPFLAGS'
3136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3151 if test -f "$ac_dir/install-sh"; then
3153 ac_install_sh="$ac_aux_dir/install-sh -c"
3155 elif test -f "$ac_dir/install.sh"; then
3157 ac_install_sh="$ac_aux_dir/install.sh -c"
3159 elif test -f "$ac_dir/shtool"; then
3161 ac_install_sh="$ac_aux_dir/shtool install -c"
3165 if test -z "$ac_aux_dir"; then
3166 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3169 # These three variables are undocumented and unsupported,
3170 # and are intended to be withdrawn in a future Autoconf release.
3171 # They can cause serious problems if a builder's source tree is in a directory
3172 # whose full name contains unusual characters.
3173 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3174 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3175 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3178 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3183 # Extract the first word of "$ac_prog", so it can be a program name with args.
3184 set dummy $ac_prog; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_path_TRUEPRG+:} false; then :
3188 $as_echo_n "(cached) " >&6
3192 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 TRUEPRG=$ac_cv_path_TRUEPRG
3214 if test -n "$TRUEPRG"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3216 $as_echo "$TRUEPRG" >&6; }
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3223 test -n "$TRUEPRG" && break
3225 test -n "$TRUEPRG" || TRUEPRG=":"
3227 for ac_prog in false
3229 # Extract the first word of "$ac_prog", so it can be a program name with args.
3230 set dummy $ac_prog; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if ${ac_cv_path_FALSEPRG+:} false; then :
3234 $as_echo_n "(cached) " >&6
3238 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 FALSEPRG=$ac_cv_path_FALSEPRG
3260 if test -n "$FALSEPRG"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3262 $as_echo "$FALSEPRG" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3269 test -n "$FALSEPRG" && break
3271 test -n "$FALSEPRG" || FALSEPRG=":"
3276 if test "x$BACULA" != x; then
3277 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3279 BACULA=${BACULA:-Bacula}
3280 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3281 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3282 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3283 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3284 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3285 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3286 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3287 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3288 VIX_VERSION=`sed -n -e 's/^#define VIX_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3289 JAVA_VERSION=`sed -n -e 's/^#define JAVA_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3290 NDMP_VERSION=`sed -n -e 's/^#define NDMP_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3291 LIBRSYNC_VERSION=`sed -n -e 's/^#define LIBRSYNC_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3294 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3295 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3296 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3298 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3299 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3302 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3303 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3305 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3306 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3309 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3311 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3314 PFILES="platforms/Makefile"
3316 echo "configuring for ${BACULA} $VERSION ($DATE)"
3321 ac_cpp='$CPP $CPPFLAGS'
3322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3327 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if ${ac_cv_prog_CC+:} false; then :
3331 $as_echo_n "(cached) " >&6
3333 if test -n "$CC"; then
3334 ac_cv_prog_CC="$CC" # Let the user override the test.
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 if test -n "$CC"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356 $as_echo "$CC" >&6; }
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3364 if test -z "$ac_cv_prog_CC"; then
3366 # Extract the first word of "gcc", so it can be a program name with args.
3367 set dummy gcc; ac_word=$2
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3371 $as_echo_n "(cached) " >&6
3373 if test -n "$ac_ct_CC"; then
3374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 test -z "$as_dir" && as_dir=.
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3383 ac_cv_prog_ac_ct_CC="gcc"
3384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3394 if test -n "$ac_ct_CC"; then
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3396 $as_echo "$ac_ct_CC" >&6; }
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3402 if test "x$ac_ct_CC" = x; then
3405 case $cross_compiling:$ac_tool_warned in
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3409 ac_tool_warned=yes ;;
3417 if test -z "$CC"; then
3418 if test -n "$ac_tool_prefix"; then
3419 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3420 set dummy ${ac_tool_prefix}cc; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if ${ac_cv_prog_CC+:} false; then :
3424 $as_echo_n "(cached) " >&6
3426 if test -n "$CC"; then
3427 ac_cv_prog_CC="$CC" # Let the user override the test.
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_CC="${ac_tool_prefix}cc"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 if test -n "$CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449 $as_echo "$CC" >&6; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3458 if test -z "$CC"; then
3459 # Extract the first word of "cc", so it can be a program name with args.
3460 set dummy cc; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_CC+:} false; then :
3464 $as_echo_n "(cached) " >&6
3466 if test -n "$CC"; then
3467 ac_cv_prog_CC="$CC" # Let the user override the test.
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3478 ac_prog_rejected=yes
3482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 if test $ac_prog_rejected = yes; then
3490 # We found a bogon in the path, so make sure we never use it.
3491 set dummy $ac_cv_prog_CC
3493 if test $# != 0; then
3494 # We chose a different compiler from the bogus one.
3495 # However, it has the same basename, so the bogon will be chosen
3496 # first if we set CC to just the basename; use the full file name.
3498 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3504 if test -n "$CC"; then
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3506 $as_echo "$CC" >&6; }
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 $as_echo "no" >&6; }
3514 if test -z "$CC"; then
3515 if test -n "$ac_tool_prefix"; then
3516 for ac_prog in cl.exe
3518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if ${ac_cv_prog_CC+:} false; then :
3523 $as_echo_n "(cached) " >&6
3525 if test -n "$CC"; then
3526 ac_cv_prog_CC="$CC" # Let the user override the test.
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 if test -n "$CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548 $as_echo "$CC" >&6; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3555 test -n "$CC" && break
3558 if test -z "$CC"; then
3560 for ac_prog in cl.exe
3562 # Extract the first word of "$ac_prog", so it can be a program name with args.
3563 set dummy $ac_prog; ac_word=$2
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565 $as_echo_n "checking for $ac_word... " >&6; }
3566 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3567 $as_echo_n "(cached) " >&6
3569 if test -n "$ac_ct_CC"; then
3570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579 ac_cv_prog_ac_ct_CC="$ac_prog"
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3590 if test -n "$ac_ct_CC"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3592 $as_echo "$ac_ct_CC" >&6; }
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3599 test -n "$ac_ct_CC" && break
3602 if test "x$ac_ct_CC" = x; then
3605 case $cross_compiling:$ac_tool_warned in
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3609 ac_tool_warned=yes ;;
3618 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620 as_fn_error $? "no acceptable C compiler found in \$PATH
3621 See \`config.log' for more details" "$LINENO" 5; }
3623 # Provide some information about the compiler.
3624 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3627 for ac_option in --version -v -V -qversion; do
3628 { { ac_try="$ac_compiler $ac_option >&5"
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634 $as_echo "$ac_try_echo"; } >&5
3635 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3637 if test -s conftest.err; then
3639 ... rest of stderr output deleted ...
3640 10q' conftest.err >conftest.er1
3641 cat conftest.er1 >&5
3643 rm -f conftest.er1 conftest.err
3644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645 test $ac_status = 0; }
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3659 ac_clean_files_save=$ac_clean_files
3660 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3661 # Try to create an executable without -o first, disregard a.out.
3662 # It will help us diagnose broken compilers, and finding out an intuition
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3665 $as_echo_n "checking whether the C compiler works... " >&6; }
3666 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3668 # The possible output files:
3669 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3672 for ac_file in $ac_files
3675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3676 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3681 if { { ac_try="$ac_link_default"
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3687 $as_echo "$ac_try_echo"; } >&5
3688 (eval "$ac_link_default") 2>&5
3690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3691 test $ac_status = 0; }; then :
3692 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3693 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3694 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3695 # so that the user can short-circuit this test for compilers unknown to
3697 for ac_file in $ac_files ''
3699 test -f "$ac_file" || continue
3701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3704 # We found the default executable, but exeext='' is most
3708 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3710 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3712 # We set ac_cv_exeext here because the later test for it is not
3713 # safe: cross compilers may not add the suffix if given an `-o'
3714 # argument, so we may need to know it at that point already.
3715 # Even if this section looks crufty: it has the advantage of
3722 test "$ac_cv_exeext" = no && ac_cv_exeext=
3727 if test -z "$ac_file"; then :
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3730 $as_echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3735 as_fn_error 77 "C compiler cannot create executables
3736 See \`config.log' for more details" "$LINENO" 5; }
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3739 $as_echo "yes" >&6; }
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3742 $as_echo_n "checking for C compiler default output file name... " >&6; }
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3744 $as_echo "$ac_file" >&6; }
3745 ac_exeext=$ac_cv_exeext
3747 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3748 ac_clean_files=$ac_clean_files_save
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3750 $as_echo_n "checking for suffix of executables... " >&6; }
3751 if { { ac_try="$ac_link"
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757 $as_echo "$ac_try_echo"; } >&5
3758 (eval "$ac_link") 2>&5
3760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761 test $ac_status = 0; }; then :
3762 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3763 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3764 # work properly (i.e., refer to `conftest.exe'), while it won't with
3766 for ac_file in conftest.exe conftest conftest.*; do
3767 test -f "$ac_file" || continue
3769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3770 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3779 See \`config.log' for more details" "$LINENO" 5; }
3781 rm -f conftest conftest$ac_cv_exeext
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3783 $as_echo "$ac_cv_exeext" >&6; }
3785 rm -f conftest.$ac_ext
3786 EXEEXT=$ac_cv_exeext
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3794 FILE *f = fopen ("conftest.out", "w");
3795 return ferror (f) || fclose (f) != 0;
3801 ac_clean_files="$ac_clean_files conftest.out"
3802 # Check that the compiler produces executables we can run. If not, either
3803 # the compiler is broken, or we cross compile.
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3805 $as_echo_n "checking whether we are cross compiling... " >&6; }
3806 if test "$cross_compiling" != yes; then
3807 { { ac_try="$ac_link"
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814 (eval "$ac_link") 2>&5
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }
3818 if { ac_try='./conftest$ac_cv_exeext'
3819 { { case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824 $as_echo "$ac_try_echo"; } >&5
3825 (eval "$ac_try") 2>&5
3827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828 test $ac_status = 0; }; }; then
3831 if test "$cross_compiling" = maybe; then
3834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836 as_fn_error $? "cannot run C compiled programs.
3837 If you meant to cross compile, use \`--host'.
3838 See \`config.log' for more details" "$LINENO" 5; }
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3843 $as_echo "$cross_compiling" >&6; }
3845 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3846 ac_clean_files=$ac_clean_files_save
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3848 $as_echo_n "checking for suffix of object files... " >&6; }
3849 if ${ac_cv_objext+:} false; then :
3850 $as_echo_n "(cached) " >&6
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3863 rm -f conftest.o conftest.obj
3864 if { { ac_try="$ac_compile"
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870 $as_echo "$ac_try_echo"; } >&5
3871 (eval "$ac_compile") 2>&5
3873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874 test $ac_status = 0; }; then :
3875 for ac_file in conftest.o conftest.obj conftest.*; do
3876 test -f "$ac_file" || continue;
3878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3879 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3884 $as_echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3889 as_fn_error $? "cannot compute suffix of object files: cannot compile
3890 See \`config.log' for more details" "$LINENO" 5; }
3892 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3895 $as_echo "$ac_cv_objext" >&6; }
3896 OBJEXT=$ac_cv_objext
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3899 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3900 if ${ac_cv_c_compiler_gnu+:} false; then :
3901 $as_echo_n "(cached) " >&6
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3917 if ac_fn_c_try_compile "$LINENO"; then :
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3927 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3928 if test $ac_compiler_gnu = yes; then
3933 ac_test_CFLAGS=${CFLAGS+set}
3934 ac_save_CFLAGS=$CFLAGS
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3936 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3937 if ${ac_cv_prog_cc_g+:} false; then :
3938 $as_echo_n "(cached) " >&6
3940 ac_save_c_werror_flag=$ac_c_werror_flag
3941 ac_c_werror_flag=yes
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3955 if ac_fn_c_try_compile "$LINENO"; then :
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3970 if ac_fn_c_try_compile "$LINENO"; then :
3973 ac_c_werror_flag=$ac_save_c_werror_flag
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3986 if ac_fn_c_try_compile "$LINENO"; then :
3989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 ac_c_werror_flag=$ac_save_c_werror_flag
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3997 $as_echo "$ac_cv_prog_cc_g" >&6; }
3998 if test "$ac_test_CFLAGS" = set; then
3999 CFLAGS=$ac_save_CFLAGS
4000 elif test $ac_cv_prog_cc_g = yes; then
4001 if test "$GCC" = yes; then
4007 if test "$GCC" = yes; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4014 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4015 if ${ac_cv_prog_cc_c89+:} false; then :
4016 $as_echo_n "(cached) " >&6
4018 ac_cv_prog_cc_c89=no
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h. */
4025 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4026 struct buf { int x; };
4027 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4028 static char *e (p, i)
4034 static char *f (char * (*g) (char **, int), char **p, ...)
4039 s = g (p, va_arg (v,int));
4044 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4045 function prototypes and stuff, but not '\xHH' hex character constants.
4046 These don't provoke an error unfortunately, instead are silently treated
4047 as 'x'. The following induces an error, until -std is added to get
4048 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4049 array size at least. It's necessary to write '\x00'==0 to get something
4050 that's true only with -std. */
4051 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4053 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4054 inside strings and character constants. */
4056 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4058 int test (int i, double x);
4059 struct s1 {int (*f) (int a);};
4060 struct s2 {int (*f) (double a);};
4061 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4067 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4072 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4073 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4075 CC="$ac_save_CC $ac_arg"
4076 if ac_fn_c_try_compile "$LINENO"; then :
4077 ac_cv_prog_cc_c89=$ac_arg
4079 rm -f core conftest.err conftest.$ac_objext
4080 test "x$ac_cv_prog_cc_c89" != "xno" && break
4082 rm -f conftest.$ac_ext
4087 case "x$ac_cv_prog_cc_c89" in
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4090 $as_echo "none needed" >&6; } ;;
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4093 $as_echo "unsupported" >&6; } ;;
4095 CC="$CC $ac_cv_prog_cc_c89"
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4097 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4099 if test "x$ac_cv_prog_cc_c89" != xno; then :
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109 ac_cpp='$CXXCPP $CPPFLAGS'
4110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4113 if test -z "$CXX"; then
4114 if test -n "$CCC"; then
4117 if test -n "$ac_tool_prefix"; then
4118 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4121 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if ${ac_cv_prog_CXX+:} false; then :
4125 $as_echo_n "(cached) " >&6
4127 if test -n "$CXX"; then
4128 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 if test -n "$CXX"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4150 $as_echo "$CXX" >&6; }
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4157 test -n "$CXX" && break
4160 if test -z "$CXX"; then
4162 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4164 # Extract the first word of "$ac_prog", so it can be a program name with args.
4165 set dummy $ac_prog; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4169 $as_echo_n "(cached) " >&6
4171 if test -n "$ac_ct_CXX"; then
4172 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181 ac_cv_prog_ac_ct_CXX="$ac_prog"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4192 if test -n "$ac_ct_CXX"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4194 $as_echo "$ac_ct_CXX" >&6; }
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4201 test -n "$ac_ct_CXX" && break
4204 if test "x$ac_ct_CXX" = x; then
4207 case $cross_compiling:$ac_tool_warned in
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4211 ac_tool_warned=yes ;;
4219 # Provide some information about the compiler.
4220 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4223 for ac_option in --version -v -V -qversion; do
4224 { { ac_try="$ac_compiler $ac_option >&5"
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4230 $as_echo "$ac_try_echo"; } >&5
4231 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4233 if test -s conftest.err; then
4235 ... rest of stderr output deleted ...
4236 10q' conftest.err >conftest.er1
4237 cat conftest.er1 >&5
4239 rm -f conftest.er1 conftest.err
4240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4241 test $ac_status = 0; }
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4245 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4246 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4247 $as_echo_n "(cached) " >&6
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4263 if ac_fn_cxx_try_compile "$LINENO"; then :
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4273 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4274 if test $ac_compiler_gnu = yes; then
4279 ac_test_CXXFLAGS=${CXXFLAGS+set}
4280 ac_save_CXXFLAGS=$CXXFLAGS
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4282 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4283 if ${ac_cv_prog_cxx_g+:} false; then :
4284 $as_echo_n "(cached) " >&6
4286 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4287 ac_cxx_werror_flag=yes
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4301 if ac_fn_cxx_try_compile "$LINENO"; then :
4302 ac_cv_prog_cxx_g=yes
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4316 if ac_fn_cxx_try_compile "$LINENO"; then :
4319 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4332 if ac_fn_cxx_try_compile "$LINENO"; then :
4333 ac_cv_prog_cxx_g=yes
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4343 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4344 if test "$ac_test_CXXFLAGS" = set; then
4345 CXXFLAGS=$ac_save_CXXFLAGS
4346 elif test $ac_cv_prog_cxx_g = yes; then
4347 if test "$GXX" = yes; then
4353 if test "$GXX" = yes; then
4360 ac_cpp='$CPP $CPPFLAGS'
4361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365 if test "x$CC" != xcc; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4367 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4370 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4372 set dummy $CC; ac_cc=`$as_echo "$2" |
4373 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4374 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4375 $as_echo_n "(cached) " >&6
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4388 # Make sure it works both with $CC and with simple cc.
4389 # We do the test twice because some compilers refuse to overwrite an
4390 # existing .o file with -o, though they will create one.
4391 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4393 if { { case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398 $as_echo "$ac_try_echo"; } >&5
4399 (eval "$ac_try") 2>&5
4401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402 test $ac_status = 0; } &&
4403 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408 $as_echo "$ac_try_echo"; } >&5
4409 (eval "$ac_try") 2>&5
4411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412 test $ac_status = 0; };
4414 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4415 if test "x$CC" != xcc; then
4416 # Test first that cc exists at all.
4417 if { ac_try='cc -c conftest.$ac_ext >&5'
4418 { { case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423 $as_echo "$ac_try_echo"; } >&5
4424 (eval "$ac_try") 2>&5
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }; }; then
4428 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4430 if { { case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 $as_echo "$ac_try_echo"; } >&5
4436 (eval "$ac_try") 2>&5
4438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; } &&
4440 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446 (eval "$ac_try") 2>&5
4448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449 test $ac_status = 0; };
4454 # cc exists but doesn't like -o.
4455 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4460 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4462 rm -f core conftest*
4465 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4467 $as_echo "yes" >&6; }
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4472 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4477 ac_cpp='$CPP $CPPFLAGS'
4478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4482 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4483 # On Suns, sometimes $CPP names a directory.
4484 if test -n "$CPP" && test -d "$CPP"; then
4487 if test -z "$CPP"; then
4488 if ${ac_cv_prog_CPP+:} false; then :
4489 $as_echo_n "(cached) " >&6
4491 # Double quotes because CPP needs to be expanded
4492 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4495 for ac_c_preproc_warn_flag in '' yes
4497 # Use a header file that comes with gcc, so configuring glibc
4498 # with a fresh cross-compiler works.
4499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4500 # <limits.h> exists even on freestanding compilers.
4501 # On the NeXT, cc -E runs the code through the compiler's parser,
4502 # not just through cpp. "Syntax error" is here to catch this case.
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4506 # include <limits.h>
4508 # include <assert.h>
4512 if ac_fn_c_try_cpp "$LINENO"; then :
4515 # Broken: fails on valid input.
4518 rm -f conftest.err conftest.i conftest.$ac_ext
4520 # OK, works on sane cases. Now check whether nonexistent headers
4521 # can be detected and how.
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #include <ac_nonexistent.h>
4526 if ac_fn_c_try_cpp "$LINENO"; then :
4527 # Broken: success on invalid input.
4530 # Passes both tests.
4534 rm -f conftest.err conftest.i conftest.$ac_ext
4537 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4538 rm -f conftest.i conftest.err conftest.$ac_ext
4539 if $ac_preproc_ok; then :
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4552 $as_echo "$CPP" >&6; }
4554 for ac_c_preproc_warn_flag in '' yes
4556 # Use a header file that comes with gcc, so configuring glibc
4557 # with a fresh cross-compiler works.
4558 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4559 # <limits.h> exists even on freestanding compilers.
4560 # On the NeXT, cc -E runs the code through the compiler's parser,
4561 # not just through cpp. "Syntax error" is here to catch this case.
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4565 # include <limits.h>
4567 # include <assert.h>
4571 if ac_fn_c_try_cpp "$LINENO"; then :
4574 # Broken: fails on valid input.
4577 rm -f conftest.err conftest.i conftest.$ac_ext
4579 # OK, works on sane cases. Now check whether nonexistent headers
4580 # can be detected and how.
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4583 #include <ac_nonexistent.h>
4585 if ac_fn_c_try_cpp "$LINENO"; then :
4586 # Broken: success on invalid input.
4589 # Passes both tests.
4593 rm -f conftest.err conftest.i conftest.$ac_ext
4596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4597 rm -f conftest.i conftest.err conftest.$ac_ext
4598 if $ac_preproc_ok; then :
4601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4604 See \`config.log' for more details" "$LINENO" 5; }
4608 ac_cpp='$CPP $CPPFLAGS'
4609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4615 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4616 if ${ac_cv_path_GREP+:} false; then :
4617 $as_echo_n "(cached) " >&6
4619 if test -z "$GREP"; then
4620 ac_path_GREP_found=false
4621 # Loop through the user's path and test for each of PROGNAME-LIST
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4626 test -z "$as_dir" && as_dir=.
4627 for ac_prog in grep ggrep; do
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4630 as_fn_executable_p "$ac_path_GREP" || continue
4631 # Check for GNU ac_path_GREP and select it if it is found.
4632 # Check for GNU $ac_path_GREP
4633 case `"$ac_path_GREP" --version 2>&1` in
4635 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4638 $as_echo_n 0123456789 >"conftest.in"
4641 cat "conftest.in" "conftest.in" >"conftest.tmp"
4642 mv "conftest.tmp" "conftest.in"
4643 cp "conftest.in" "conftest.nl"
4644 $as_echo 'GREP' >> "conftest.nl"
4645 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4646 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4647 as_fn_arith $ac_count + 1 && ac_count=$as_val
4648 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4649 # Best one so far, save it but keep looking for a better one
4650 ac_cv_path_GREP="$ac_path_GREP"
4651 ac_path_GREP_max=$ac_count
4653 # 10*(2^10) chars as input seems more than enough
4654 test $ac_count -gt 10 && break
4656 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4659 $ac_path_GREP_found && break 3
4664 if test -z "$ac_cv_path_GREP"; then
4665 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4668 ac_cv_path_GREP=$GREP
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4673 $as_echo "$ac_cv_path_GREP" >&6; }
4674 GREP="$ac_cv_path_GREP"
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4678 $as_echo_n "checking for egrep... " >&6; }
4679 if ${ac_cv_path_EGREP+:} false; then :
4680 $as_echo_n "(cached) " >&6
4682 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4683 then ac_cv_path_EGREP="$GREP -E"
4685 if test -z "$EGREP"; then
4686 ac_path_EGREP_found=false
4687 # Loop through the user's path and test for each of PROGNAME-LIST
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4692 test -z "$as_dir" && as_dir=.
4693 for ac_prog in egrep; do
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4696 as_fn_executable_p "$ac_path_EGREP" || continue
4697 # Check for GNU ac_path_EGREP and select it if it is found.
4698 # Check for GNU $ac_path_EGREP
4699 case `"$ac_path_EGREP" --version 2>&1` in
4701 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4704 $as_echo_n 0123456789 >"conftest.in"
4707 cat "conftest.in" "conftest.in" >"conftest.tmp"
4708 mv "conftest.tmp" "conftest.in"
4709 cp "conftest.in" "conftest.nl"
4710 $as_echo 'EGREP' >> "conftest.nl"
4711 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4712 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4713 as_fn_arith $ac_count + 1 && ac_count=$as_val
4714 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4715 # Best one so far, save it but keep looking for a better one
4716 ac_cv_path_EGREP="$ac_path_EGREP"
4717 ac_path_EGREP_max=$ac_count
4719 # 10*(2^10) chars as input seems more than enough
4720 test $ac_count -gt 10 && break
4722 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4725 $ac_path_EGREP_found && break 3
4730 if test -z "$ac_cv_path_EGREP"; then
4731 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4734 ac_cv_path_EGREP=$EGREP
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4740 $as_echo "$ac_cv_path_EGREP" >&6; }
4741 EGREP="$ac_cv_path_EGREP"
4744 if test $ac_cv_c_compiler_gnu = yes; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4746 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4747 if ${ac_cv_prog_gcc_traditional+:} false; then :
4748 $as_echo_n "(cached) " >&6
4750 ac_pattern="Autoconf.*'x'"
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4757 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4758 ac_cv_prog_gcc_traditional=yes
4760 ac_cv_prog_gcc_traditional=no
4765 if test $ac_cv_prog_gcc_traditional = no; then
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4772 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4773 ac_cv_prog_gcc_traditional=yes
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4780 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4781 if test $ac_cv_prog_gcc_traditional = yes; then
4782 CC="$CC -traditional"
4786 BASECC=`basename $CC`
4788 if test x"$GCC" = "xyes"; then
4789 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4793 # Extract the first word of "$CXX", so it can be a program name with args.
4794 set dummy $CXX; ac_word=$2
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if ${ac_cv_path_CXX+:} false; then :
4798 $as_echo_n "(cached) " >&6
4802 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4812 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4825 if test -n "$CXX"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4827 $as_echo "$CXX" >&6; }
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4834 if test ! -e $CXX; then
4835 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4838 # Find a good install program. We prefer a C program (faster),
4839 # so one script is as good as another. But avoid the broken or
4840 # incompatible versions:
4841 # SysV /etc/install, /usr/sbin/install
4842 # SunOS /usr/etc/install
4843 # IRIX /sbin/install
4845 # AmigaOS /C/install, which installs bootblocks on floppy discs
4846 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4847 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4848 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4849 # OS/2's system install, which has a completely different semantic
4850 # ./install, which can be erroneously created by make from ./install.sh.
4851 # Reject install programs that cannot install multiple files.
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4853 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4854 if test -z "$INSTALL"; then
4855 if ${ac_cv_path_install+:} false; then :
4856 $as_echo_n "(cached) " >&6
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 test -z "$as_dir" && as_dir=.
4863 # Account for people who put trailing slashes in PATH elements.
4864 case $as_dir/ in #((
4865 ./ | .// | /[cC]/* | \
4866 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4867 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4870 # OSF1 and SCO ODT 3.0 have their own names for install.
4871 # Don't use installbsd from OSF since it installs stuff as root
4873 for ac_prog in ginstall scoinst install; do
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4876 if test $ac_prog = install &&
4877 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4878 # AIX install. It has an incompatible calling convention.
4880 elif test $ac_prog = install &&
4881 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4882 # program-specific install script used by HP pwplus--don't use.
4885 rm -rf conftest.one conftest.two conftest.dir
4886 echo one > conftest.one
4887 echo two > conftest.two
4889 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4890 test -s conftest.one && test -s conftest.two &&
4891 test -s conftest.dir/conftest.one &&
4892 test -s conftest.dir/conftest.two
4894 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4907 rm -rf conftest.one conftest.two conftest.dir
4910 if test "${ac_cv_path_install+set}" = set; then
4911 INSTALL=$ac_cv_path_install
4913 # As a last resort, use the slow shell script. Don't cache a
4914 # value for INSTALL within a source directory, because that will
4915 # break other packages using the cache if that directory is
4916 # removed, or if the value is a relative name.
4917 INSTALL=$ac_install_sh
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4921 $as_echo "$INSTALL" >&6; }
4923 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4924 # It thinks the first close brace ends the variable substitution.
4925 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4927 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4929 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4931 # Extract the first word of "mv", so it can be a program name with args.
4932 set dummy mv; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if ${ac_cv_path_MV+:} false; then :
4936 $as_echo_n "(cached) " >&6
4940 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4963 if test -n "$MV"; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4965 $as_echo "$MV" >&6; }
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4972 # Extract the first word of "rm", so it can be a program name with args.
4973 set dummy rm; ac_word=$2
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975 $as_echo_n "checking for $ac_word... " >&6; }
4976 if ${ac_cv_path_REMOVE+:} false; then :
4977 $as_echo_n "(cached) " >&6
4981 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4991 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5003 REMOVE=$ac_cv_path_REMOVE
5004 if test -n "$REMOVE"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5006 $as_echo "$REMOVE" >&6; }
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5013 # Extract the first word of "cp", so it can be a program name with args.
5014 set dummy cp; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_path_CP+:} false; then :
5018 $as_echo_n "(cached) " >&6
5022 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5045 if test -n "$CP"; then
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5047 $as_echo "$CP" >&6; }
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 $as_echo "no" >&6; }
5054 # Extract the first word of "sed", so it can be a program name with args.
5055 set dummy sed; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_path_SED+:} false; then :
5059 $as_echo_n "(cached) " >&6
5063 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5086 if test -n "$SED"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5088 $as_echo "$SED" >&6; }
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5095 # Extract the first word of "echo", so it can be a program name with args.
5096 set dummy echo; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_path_ECHO+:} false; then :
5100 $as_echo_n "(cached) " >&6
5104 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5126 ECHO=$ac_cv_path_ECHO
5127 if test -n "$ECHO"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5129 $as_echo "$ECHO" >&6; }
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5136 # Extract the first word of "cmp", so it can be a program name with args.
5137 set dummy cmp; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if ${ac_cv_path_CMP+:} false; then :
5141 $as_echo_n "(cached) " >&6
5145 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5168 if test -n "$CMP"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5170 $as_echo "$CMP" >&6; }
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5177 # Extract the first word of "tbl", so it can be a program name with args.
5178 set dummy tbl; ac_word=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if ${ac_cv_path_TBL+:} false; then :
5182 $as_echo_n "(cached) " >&6
5186 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5209 if test -n "$TBL"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5211 $as_echo "$TBL" >&6; }
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5218 # Extract the first word of "ar", so it can be a program name with args.
5219 set dummy ar; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_path_AR+:} false; then :
5223 $as_echo_n "(cached) " >&6
5227 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5250 if test -n "$AR"; then
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5252 $as_echo "$AR" >&6; }
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255 $as_echo "no" >&6; }
5259 # Extract the first word of "openssl", so it can be a program name with args.
5260 set dummy openssl; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if ${ac_cv_path_OPENSSL+:} false; then :
5264 $as_echo_n "(cached) " >&6
5268 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5290 OPENSSL=$ac_cv_path_OPENSSL
5291 if test -n "$OPENSSL"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5293 $as_echo "$OPENSSL" >&6; }
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5300 # Extract the first word of "mtx", so it can be a program name with args.
5301 set dummy mtx; ac_word=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if ${ac_cv_path_MTX+:} false; then :
5305 $as_echo_n "(cached) " >&6
5309 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5319 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5332 if test -n "$MTX"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5334 $as_echo "$MTX" >&6; }
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5341 # Extract the first word of "dd", so it can be a program name with args.
5342 set dummy dd; ac_word=$2
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if ${ac_cv_path_DD+:} false; then :
5346 $as_echo_n "(cached) " >&6
5350 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5373 if test -n "$DD"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5375 $as_echo "$DD" >&6; }
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5382 # Extract the first word of "mkisofs", so it can be a program name with args.
5383 set dummy mkisofs; ac_word=$2
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385 $as_echo_n "checking for $ac_word... " >&6; }
5386 if ${ac_cv_path_MKISOFS+:} false; then :
5387 $as_echo_n "(cached) " >&6
5391 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5413 MKISOFS=$ac_cv_path_MKISOFS
5414 if test -n "$MKISOFS"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5416 $as_echo "$MKISOFS" >&6; }
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5423 # Extract the first word of "python", so it can be a program name with args.
5424 set dummy python; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_path_PYTHON+:} false; then :
5428 $as_echo_n "(cached) " >&6
5432 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5454 PYTHON=$ac_cv_path_PYTHON
5455 if test -n "$PYTHON"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5457 $as_echo "$PYTHON" >&6; }
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5464 # Extract the first word of "growisofs", so it can be a program name with args.
5465 set dummy growisofs; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_path_GROWISOFS+:} false; then :
5469 $as_echo_n "(cached) " >&6
5473 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 test -z "$as_dir" && as_dir=.
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5483 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5495 GROWISOFS=$ac_cv_path_GROWISOFS
5496 if test -n "$GROWISOFS"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5498 $as_echo "$GROWISOFS" >&6; }
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5505 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5506 set dummy dvd+rw-mediainfo; ac_word=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5510 $as_echo_n "(cached) " >&6
5512 case $DVDRWMEDIAINFO in
5514 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5536 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5537 if test -n "$DVDRWMEDIAINFO"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5539 $as_echo "$DVDRWMEDIAINFO" >&6; }
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5546 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5547 set dummy dvd+rw-format; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5551 $as_echo_n "(cached) " >&6
5553 case $DVDRWFORMAT in
5555 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5565 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5577 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5578 if test -n "$DVDRWFORMAT"; then
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5580 $as_echo "$DVDRWFORMAT" >&6; }
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 $as_echo "no" >&6; }
5587 # Extract the first word of "pkg-config", so it can be a program name with args.
5588 set dummy pkg-config; ac_word=$2
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590 $as_echo_n "checking for $ac_word... " >&6; }
5591 if ${ac_cv_path_PKGCONFIG+:} false; then :
5592 $as_echo_n "(cached) " >&6
5596 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5618 PKGCONFIG=$ac_cv_path_PKGCONFIG
5619 if test -n "$PKGCONFIG"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5621 $as_echo "$PKGCONFIG" >&6; }
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5628 # Extract the first word of "qmake", so it can be a program name with args.
5629 set dummy qmake; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if ${ac_cv_path_QMAKE+:} false; then :
5633 $as_echo_n "(cached) " >&6
5637 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5659 QMAKE=$ac_cv_path_QMAKE
5660 if test -n "$QMAKE"; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5662 $as_echo "$QMAKE" >&6; }
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5669 # Extract the first word of "gmake", so it can be a program name with args.
5670 set dummy gmake; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if ${ac_cv_path_GMAKE+:} false; then :
5674 $as_echo_n "(cached) " >&6
5678 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5700 GMAKE=$ac_cv_path_GMAKE
5701 if test -n "$GMAKE"; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5703 $as_echo "$GMAKE" >&6; }
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5710 # Extract the first word of "pidof", so it can be a program name with args.
5711 set dummy pidof; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if ${ac_cv_path_PIDOF+:} false; then :
5715 $as_echo_n "(cached) " >&6
5719 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5741 PIDOF=$ac_cv_path_PIDOF
5742 if test -n "$PIDOF"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5744 $as_echo "$PIDOF" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5751 for ac_prog in gawk mawk nawk awk
5753 # Extract the first word of "$ac_prog", so it can be a program name with args.
5754 set dummy $ac_prog; ac_word=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if ${ac_cv_prog_AWK+:} false; then :
5758 $as_echo_n "(cached) " >&6
5760 if test -n "$AWK"; then
5761 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_AWK="$ac_prog"
5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 if test -n "$AWK"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5783 $as_echo "$AWK" >&6; }
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5790 test -n "$AWK" && break
5793 # Some AWK programs fail, so test it and warn the user
5794 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5795 { if ((prog == $2) || (("(" prog ")") == $2) ||
5796 (("" prog "") == $2) ||
5797 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5799 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5800 The regex engine of $AWK is too broken to be used you
5801 might want to install GNU AWK.
5802 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5805 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5806 set dummy $THE_AWK; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_path_AWK+:} false; then :
5810 $as_echo_n "(cached) " >&6
5814 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5837 if test -n "$AWK"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5839 $as_echo "$AWK" >&6; }
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5848 test -n "$ARFLAG" || ARFLAGS="cr"
5860 # Check whether --enable-libtool was given.
5861 if test "${enable_libtool+set}" = set; then :
5862 enableval=$enable_libtool;
5863 if test x$enableval = xno; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5873 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5878 macro_version='2.4.2'
5879 macro_revision='1.3337'
5893 ltmain="$ac_aux_dir/ltmain.sh"
5895 # Make sure we can run config.sub.
5896 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5897 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5900 $as_echo_n "checking build system type... " >&6; }
5901 if ${ac_cv_build+:} false; then :
5902 $as_echo_n "(cached) " >&6
5904 ac_build_alias=$build_alias
5905 test "x$ac_build_alias" = x &&
5906 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5907 test "x$ac_build_alias" = x &&
5908 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5909 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5910 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5914 $as_echo "$ac_cv_build" >&6; }
5915 case $ac_cv_build in
5917 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5920 ac_save_IFS=$IFS; IFS='-'
5926 # Remember, the first character of IFS is used to create $*,
5927 # except with old shells:
5930 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5934 $as_echo_n "checking host system type... " >&6; }
5935 if ${ac_cv_host+:} false; then :
5936 $as_echo_n "(cached) " >&6
5938 if test "x$host_alias" = x; then
5939 ac_cv_host=$ac_cv_build
5941 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5942 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5947 $as_echo "$ac_cv_host" >&6; }
5950 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5953 ac_save_IFS=$IFS; IFS='-'
5959 # Remember, the first character of IFS is used to create $*,
5960 # except with old shells:
5963 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5966 # Backslashify metacharacters that are still active within
5967 # double-quoted strings.
5968 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5970 # Same as above, but do not quote variable references.
5971 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5973 # Sed substitution to delay expansion of an escaped shell variable in a
5974 # double_quote_subst'ed string.
5975 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5977 # Sed substitution to delay expansion of an escaped single quote.
5978 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5980 # Sed substitution to avoid accidental globbing in evaled expressions
5981 no_glob_subst='s/\*/\\\*/g'
5983 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5984 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5985 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5988 $as_echo_n "checking how to print strings... " >&6; }
5989 # Test print first, because it will be a builtin if present.
5990 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5991 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5993 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5996 # Use this function as a fallback that always works.
5997 func_fallback_echo ()
5999 eval 'cat <<_LTECHO_EOF
6003 ECHO='func_fallback_echo'
6006 # func_echo_all arg...
6007 # Invoke $ECHO with all args, space-separated.
6014 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6015 $as_echo "printf" >&6; } ;;
6016 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6017 $as_echo "print -r" >&6; } ;;
6018 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6019 $as_echo "cat" >&6; } ;;
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6036 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6037 if ${ac_cv_path_SED+:} false; then :
6038 $as_echo_n "(cached) " >&6
6040 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6041 for ac_i in 1 2 3 4 5 6 7; do
6042 ac_script="$ac_script$as_nl$ac_script"
6044 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6045 { ac_script=; unset ac_script;}
6046 if test -z "$SED"; then
6047 ac_path_SED_found=false
6048 # Loop through the user's path and test for each of PROGNAME-LIST
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 test -z "$as_dir" && as_dir=.
6054 for ac_prog in sed gsed; do
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6057 as_fn_executable_p "$ac_path_SED" || continue
6058 # Check for GNU ac_path_SED and select it if it is found.
6059 # Check for GNU $ac_path_SED
6060 case `"$ac_path_SED" --version 2>&1` in
6062 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6065 $as_echo_n 0123456789 >"conftest.in"
6068 cat "conftest.in" "conftest.in" >"conftest.tmp"
6069 mv "conftest.tmp" "conftest.in"
6070 cp "conftest.in" "conftest.nl"
6071 $as_echo '' >> "conftest.nl"
6072 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6074 as_fn_arith $ac_count + 1 && ac_count=$as_val
6075 if test $ac_count -gt ${ac_path_SED_max-0}; then
6076 # Best one so far, save it but keep looking for a better one
6077 ac_cv_path_SED="$ac_path_SED"
6078 ac_path_SED_max=$ac_count
6080 # 10*(2^10) chars as input seems more than enough
6081 test $ac_count -gt 10 && break
6083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6086 $ac_path_SED_found && break 3
6091 if test -z "$ac_cv_path_SED"; then
6092 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6100 $as_echo "$ac_cv_path_SED" >&6; }
6101 SED="$ac_cv_path_SED"
6104 test -z "$SED" && SED=sed
6105 Xsed="$SED -e 1s/^X//"
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6118 $as_echo_n "checking for fgrep... " >&6; }
6119 if ${ac_cv_path_FGREP+:} false; then :
6120 $as_echo_n "(cached) " >&6
6122 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6123 then ac_cv_path_FGREP="$GREP -F"
6125 if test -z "$FGREP"; then
6126 ac_path_FGREP_found=false
6127 # Loop through the user's path and test for each of PROGNAME-LIST
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6132 test -z "$as_dir" && as_dir=.
6133 for ac_prog in fgrep; do
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6136 as_fn_executable_p "$ac_path_FGREP" || continue
6137 # Check for GNU ac_path_FGREP and select it if it is found.
6138 # Check for GNU $ac_path_FGREP
6139 case `"$ac_path_FGREP" --version 2>&1` in
6141 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6144 $as_echo_n 0123456789 >"conftest.in"
6147 cat "conftest.in" "conftest.in" >"conftest.tmp"
6148 mv "conftest.tmp" "conftest.in"
6149 cp "conftest.in" "conftest.nl"
6150 $as_echo 'FGREP' >> "conftest.nl"
6151 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6153 as_fn_arith $ac_count + 1 && ac_count=$as_val
6154 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6155 # Best one so far, save it but keep looking for a better one
6156 ac_cv_path_FGREP="$ac_path_FGREP"
6157 ac_path_FGREP_max=$ac_count
6159 # 10*(2^10) chars as input seems more than enough
6160 test $ac_count -gt 10 && break
6162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6165 $ac_path_FGREP_found && break 3
6170 if test -z "$ac_cv_path_FGREP"; then
6171 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6174 ac_cv_path_FGREP=$FGREP
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6180 $as_echo "$ac_cv_path_FGREP" >&6; }
6181 FGREP="$ac_cv_path_FGREP"
6184 test -z "$GREP" && GREP=grep
6204 # Check whether --with-gnu-ld was given.
6205 if test "${with_gnu_ld+set}" = set; then :
6206 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6212 if test "$GCC" = yes; then
6213 # Check if gcc -print-prog-name=ld gives a path.
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6215 $as_echo_n "checking for ld used by $CC... " >&6; }
6218 # gcc leaves a trailing carriage return which upsets mingw
6219 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6221 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6224 # Accept absolute paths.
6226 re_direlt='/[^/][^/]*/\.\./'
6227 # Canonicalize the pathname of ld
6228 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6229 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6230 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6232 test -z "$LD" && LD="$ac_prog"
6235 # If it fails, then pretend we aren't using GCC.
6239 # If it is relative, then search for the first ld in PATH.
6243 elif test "$with_gnu_ld" = yes; then
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6245 $as_echo_n "checking for GNU ld... " >&6; }
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6248 $as_echo_n "checking for non-GNU ld... " >&6; }
6250 if ${lt_cv_path_LD+:} false; then :
6251 $as_echo_n "(cached) " >&6
6253 if test -z "$LD"; then
6254 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6255 for ac_dir in $PATH; do
6257 test -z "$ac_dir" && ac_dir=.
6258 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6259 lt_cv_path_LD="$ac_dir/$ac_prog"
6260 # Check to see if the program is GNU ld. I'd rather use --version,
6261 # but apparently some variants of GNU ld only accept -v.
6262 # Break only if it was the GNU/non-GNU ld that we prefer.
6263 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6264 *GNU* | *'with BFD'*)
6265 test "$with_gnu_ld" != no && break
6268 test "$with_gnu_ld" != yes && break
6275 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6280 if test -n "$LD"; then
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6282 $as_echo "$LD" >&6; }
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6287 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6289 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6290 if ${lt_cv_prog_gnu_ld+:} false; then :
6291 $as_echo_n "(cached) " >&6
6293 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6294 case `$LD -v 2>&1 </dev/null` in
6295 *GNU* | *'with BFD'*)
6296 lt_cv_prog_gnu_ld=yes
6299 lt_cv_prog_gnu_ld=no
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6304 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6305 with_gnu_ld=$lt_cv_prog_gnu_ld
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6316 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6317 if ${lt_cv_path_NM+:} false; then :
6318 $as_echo_n "(cached) " >&6
6320 if test -n "$NM"; then
6321 # Let the user override the test.
6324 lt_nm_to_check="${ac_tool_prefix}nm"
6325 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6326 lt_nm_to_check="$lt_nm_to_check nm"
6328 for lt_tmp_nm in $lt_nm_to_check; do
6329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6330 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6332 test -z "$ac_dir" && ac_dir=.
6333 tmp_nm="$ac_dir/$lt_tmp_nm"
6334 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6335 # Check to see if the nm accepts a BSD-compat flag.
6336 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6337 # nm: unknown option "B" ignored
6338 # Tru64's nm complains that /dev/null is an invalid object file
6339 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6340 */dev/null* | *'Invalid file or object type'*)
6341 lt_cv_path_NM="$tmp_nm -B"
6345 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6347 lt_cv_path_NM="$tmp_nm -p"
6351 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6352 continue # so that we can try to find one that supports BSD flags
6361 : ${lt_cv_path_NM=no}
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6365 $as_echo "$lt_cv_path_NM" >&6; }
6366 if test "$lt_cv_path_NM" != "no"; then
6369 # Didn't find any BSD compatible name lister, look for dumpbin.
6370 if test -n "$DUMPBIN"; then :
6371 # Let the user override the test.
6373 if test -n "$ac_tool_prefix"; then
6374 for ac_prog in dumpbin "link -dump"
6376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_DUMPBIN+:} false; then :
6381 $as_echo_n "(cached) " >&6
6383 if test -n "$DUMPBIN"; then
6384 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 DUMPBIN=$ac_cv_prog_DUMPBIN
6404 if test -n "$DUMPBIN"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6406 $as_echo "$DUMPBIN" >&6; }
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6413 test -n "$DUMPBIN" && break
6416 if test -z "$DUMPBIN"; then
6417 ac_ct_DUMPBIN=$DUMPBIN
6418 for ac_prog in dumpbin "link -dump"
6420 # Extract the first word of "$ac_prog", so it can be a program name with args.
6421 set dummy $ac_prog; ac_word=$2
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6425 $as_echo_n "(cached) " >&6
6427 if test -n "$ac_ct_DUMPBIN"; then
6428 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6448 if test -n "$ac_ct_DUMPBIN"; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6450 $as_echo "$ac_ct_DUMPBIN" >&6; }
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6457 test -n "$ac_ct_DUMPBIN" && break
6460 if test "x$ac_ct_DUMPBIN" = x; then
6463 case $cross_compiling:$ac_tool_warned in
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6467 ac_tool_warned=yes ;;
6469 DUMPBIN=$ac_ct_DUMPBIN
6473 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6475 DUMPBIN="$DUMPBIN -symbols"
6483 if test "$DUMPBIN" != ":"; then
6487 test -z "$NM" && NM=nm
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6495 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6496 if ${lt_cv_nm_interface+:} false; then :
6497 $as_echo_n "(cached) " >&6
6499 lt_cv_nm_interface="BSD nm"
6500 echo "int some_variable = 0;" > conftest.$ac_ext
6501 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6502 (eval "$ac_compile" 2>conftest.err)
6503 cat conftest.err >&5
6504 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6505 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6506 cat conftest.err >&5
6507 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6508 cat conftest.out >&5
6509 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6510 lt_cv_nm_interface="MS dumpbin"
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6515 $as_echo "$lt_cv_nm_interface" >&6; }
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6518 $as_echo_n "checking whether ln -s works... " >&6; }
6520 if test "$LN_S" = "ln -s"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6522 $as_echo "yes" >&6; }
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6525 $as_echo "no, using $LN_S" >&6; }
6528 # find the maximum length of command line arguments
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6530 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6531 if ${lt_cv_sys_max_cmd_len+:} false; then :
6532 $as_echo_n "(cached) " >&6
6539 # On DJGPP, this test can blow up pretty badly due to problems in libc
6540 # (any single argument exceeding 2000 bytes causes a buffer overrun
6541 # during glob expansion). Even if it were fixed, the result of this
6542 # check would be larger than it should be.
6543 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6547 # Under GNU Hurd, this test is not required because there is
6548 # no limit to the length of command line arguments.
6549 # Libtool will interpret -1 as no limit whatsoever
6550 lt_cv_sys_max_cmd_len=-1;
6553 cygwin* | mingw* | cegcc*)
6554 # On Win9x/ME, this test blows up -- it succeeds, but takes
6555 # about 5 minutes as the teststring grows exponentially.
6556 # Worse, since 9x/ME are not pre-emptively multitasking,
6557 # you end up with a "frozen" computer, even though with patience
6558 # the test eventually succeeds (with a max line length of 256k).
6559 # Instead, let's just punt: use the minimum linelength reported by
6560 # all of the supported platforms: 8192 (on NT/2K/XP).
6561 lt_cv_sys_max_cmd_len=8192;
6565 # On MiNT this can take a long time and run out of memory.
6566 lt_cv_sys_max_cmd_len=8192;
6570 # On AmigaOS with pdksh, this test takes hours, literally.
6571 # So we just punt and use a minimum line length of 8192.
6572 lt_cv_sys_max_cmd_len=8192;
6575 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6576 # This has been around since 386BSD, at least. Likely further.
6577 if test -x /sbin/sysctl; then
6578 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6579 elif test -x /usr/sbin/sysctl; then
6580 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6582 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6584 # And add a safety zone
6585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6590 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6591 lt_cv_sys_max_cmd_len=196608
6595 # The test takes a long time on OS/2.
6596 lt_cv_sys_max_cmd_len=8192
6600 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6601 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6602 # nice to cause kernel panics so lets avoid the loop below.
6603 # First set a reasonable default.
6604 lt_cv_sys_max_cmd_len=16384
6606 if test -x /sbin/sysconfig; then
6607 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6608 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6613 lt_cv_sys_max_cmd_len=102400
6615 sysv5* | sco5v6* | sysv4.2uw2*)
6616 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6617 if test -n "$kargmax"; then
6618 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6620 lt_cv_sys_max_cmd_len=32768
6624 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6625 if test -n "$lt_cv_sys_max_cmd_len" && \
6626 test undefined != "$lt_cv_sys_max_cmd_len"; then
6627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6630 # Make teststring a little bigger before we do anything with it.
6631 # a 1K string should be a reasonable start.
6632 for i in 1 2 3 4 5 6 7 8 ; do
6633 teststring=$teststring$teststring
6635 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6636 # If test is not a shell built-in, we'll probably end up computing a
6637 # maximum length that is only half of the actual maximum length, but
6639 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6640 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6641 test $i != 17 # 1/2 MB should be enough
6644 teststring=$teststring$teststring
6646 # Only check the string length outside the loop.
6647 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6649 # Add a significant safety factor because C++ compilers can tack on
6650 # massive amounts of additional arguments before passing them to the
6651 # linker. It appears as though 1/2 is a usable value.
6652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6659 if test -n $lt_cv_sys_max_cmd_len ; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6661 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6664 $as_echo "none" >&6; }
6666 max_cmd_len=$lt_cv_sys_max_cmd_len
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6678 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6679 # Try some XSI features
6682 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6684 && eval 'test $(( 1 + 1 )) -eq 2 \
6685 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6688 $as_echo "$xsi_shell" >&6; }
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6692 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6694 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6696 && lt_shell_append=yes
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6698 $as_echo "$lt_shell_append" >&6; }
6701 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6711 # test EBCDIC or ASCII
6712 case `echo X|tr X '\101'` in
6713 A) # ASCII based system
6714 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6715 lt_SP2NL='tr \040 \012'
6716 lt_NL2SP='tr \015\012 \040\040'
6718 *) # EBCDIC based system
6719 lt_SP2NL='tr \100 \n'
6720 lt_NL2SP='tr \r\n \100\100'
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6733 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6734 if ${lt_cv_to_host_file_cmd+:} false; then :
6735 $as_echo_n "(cached) " >&6
6740 *-*-mingw* ) # actually msys
6741 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6744 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6746 * ) # otherwise, assume *nix
6747 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6753 *-*-mingw* ) # actually msys
6754 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6757 lt_cv_to_host_file_cmd=func_convert_file_noop
6759 * ) # otherwise, assume *nix
6760 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6764 * ) # unhandled hosts (and "normal" native builds)
6765 lt_cv_to_host_file_cmd=func_convert_file_noop
6771 to_host_file_cmd=$lt_cv_to_host_file_cmd
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6773 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6780 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6781 if ${lt_cv_to_tool_file_cmd+:} false; then :
6782 $as_echo_n "(cached) " >&6
6784 #assume ordinary cross tools, or native build.
6785 lt_cv_to_tool_file_cmd=func_convert_file_noop
6789 *-*-mingw* ) # actually msys
6790 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6798 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6800 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6807 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6808 if ${lt_cv_ld_reload_flag+:} false; then :
6809 $as_echo_n "(cached) " >&6
6811 lt_cv_ld_reload_flag='-r'
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6814 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6815 reload_flag=$lt_cv_ld_reload_flag
6816 case $reload_flag in
6818 *) reload_flag=" $reload_flag" ;;
6820 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6822 cygwin* | mingw* | pw32* | cegcc*)
6823 if test "$GCC" != yes; then
6828 if test "$GCC" = yes; then
6829 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6844 if test -n "$ac_tool_prefix"; then
6845 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6846 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if ${ac_cv_prog_OBJDUMP+:} false; then :
6850 $as_echo_n "(cached) " >&6
6852 if test -n "$OBJDUMP"; then
6853 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6862 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 OBJDUMP=$ac_cv_prog_OBJDUMP
6873 if test -n "$OBJDUMP"; then
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6875 $as_echo "$OBJDUMP" >&6; }
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 $as_echo "no" >&6; }
6883 if test -z "$ac_cv_prog_OBJDUMP"; then
6884 ac_ct_OBJDUMP=$OBJDUMP
6885 # Extract the first word of "objdump", so it can be a program name with args.
6886 set dummy objdump; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6890 $as_echo_n "(cached) " >&6
6892 if test -n "$ac_ct_OBJDUMP"; then
6893 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6913 if test -n "$ac_ct_OBJDUMP"; then
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6915 $as_echo "$ac_ct_OBJDUMP" >&6; }
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6921 if test "x$ac_ct_OBJDUMP" = x; then
6924 case $cross_compiling:$ac_tool_warned in
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6928 ac_tool_warned=yes ;;
6930 OBJDUMP=$ac_ct_OBJDUMP
6933 OBJDUMP="$ac_cv_prog_OBJDUMP"
6936 test -z "$OBJDUMP" && OBJDUMP=objdump
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6947 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6948 if ${lt_cv_deplibs_check_method+:} false; then :
6949 $as_echo_n "(cached) " >&6
6951 lt_cv_file_magic_cmd='$MAGIC_CMD'
6952 lt_cv_file_magic_test_file=
6953 lt_cv_deplibs_check_method='unknown'
6954 # Need to set the preceding variable on all platforms that support
6955 # interlibrary dependencies.
6956 # 'none' -- dependencies not supported.
6957 # `unknown' -- same as none, but documents that we really don't know.
6958 # 'pass_all' -- all dependencies passed with no checks.
6959 # 'test_compile' -- check by making test program.
6960 # 'file_magic [[regex]]' -- check by looking for files in library path
6961 # which responds to the $file_magic_cmd with a given extended regex.
6962 # If you have `file' or equivalent on your system and you're not sure
6963 # whether `pass_all' will *always* work, you probably want this one.
6967 lt_cv_deplibs_check_method=pass_all
6971 lt_cv_deplibs_check_method=pass_all
6975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6976 lt_cv_file_magic_cmd='/usr/bin/file -L'
6977 lt_cv_file_magic_test_file=/shlib/libc.so
6981 # func_win32_libid is a shell function defined in ltmain.sh
6982 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6983 lt_cv_file_magic_cmd='func_win32_libid'
6987 # Base MSYS/MinGW do not provide the 'file' command needed by
6988 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6989 # unless we find 'file', for example because we are cross-compiling.
6990 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6991 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6992 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6993 lt_cv_file_magic_cmd='func_win32_libid'
6995 # Keep this pattern in sync with the one in func_win32_libid.
6996 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6997 lt_cv_file_magic_cmd='$OBJDUMP -f'
7002 # use the weaker test based on 'objdump'. See mingw*.
7003 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7004 lt_cv_file_magic_cmd='$OBJDUMP -f'
7007 darwin* | rhapsody*)
7008 lt_cv_deplibs_check_method=pass_all
7011 freebsd* | dragonfly*)
7012 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7015 # Not sure whether the presence of OpenBSD here was a mistake.
7016 # Let's accept both of them until this is cleared up.
7017 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7018 lt_cv_file_magic_cmd=/usr/bin/file
7019 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7023 lt_cv_deplibs_check_method=pass_all
7028 lt_cv_deplibs_check_method=pass_all
7031 hpux10.20* | hpux11*)
7032 lt_cv_file_magic_cmd=/usr/bin/file
7035 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7036 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7039 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]'
7040 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7043 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7044 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7050 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7054 irix5* | irix6* | nonstopux*)
7056 *-32|*"-32 ") libmagic=32-bit;;
7057 *-n32|*"-n32 ") libmagic=N32;;
7058 *-64|*"-64 ") libmagic=64-bit;;
7059 *) libmagic=never-match;;
7061 lt_cv_deplibs_check_method=pass_all
7064 # This must be glibc/ELF.
7065 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7066 lt_cv_deplibs_check_method=pass_all
7069 netbsd* | netbsdelf*-gnu)
7070 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7079 lt_cv_file_magic_cmd=/usr/bin/file
7080 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7084 lt_cv_deplibs_check_method=pass_all
7088 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7095 osf3* | osf4* | osf5*)
7096 lt_cv_deplibs_check_method=pass_all
7100 lt_cv_deplibs_check_method=pass_all
7104 lt_cv_deplibs_check_method=pass_all
7107 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7108 lt_cv_deplibs_check_method=pass_all
7112 case $host_vendor in
7114 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]'
7115 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7118 lt_cv_deplibs_check_method=pass_all
7121 lt_cv_file_magic_cmd='/bin/file'
7122 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7125 lt_cv_file_magic_cmd='/bin/file'
7126 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7127 lt_cv_file_magic_test_file=/lib/libc.so
7130 lt_cv_deplibs_check_method=pass_all
7133 lt_cv_deplibs_check_method=pass_all
7139 lt_cv_deplibs_check_method=pass_all
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7145 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7149 if test "$build" = "$host"; then
7152 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7155 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7161 file_magic_cmd=$lt_cv_file_magic_cmd
7162 deplibs_check_method=$lt_cv_deplibs_check_method
7163 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7186 if test -n "$ac_tool_prefix"; then
7187 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_prog_DLLTOOL+:} false; then :
7192 $as_echo_n "(cached) " >&6
7194 if test -n "$DLLTOOL"; then
7195 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 DLLTOOL=$ac_cv_prog_DLLTOOL
7215 if test -n "$DLLTOOL"; then
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7217 $as_echo "$DLLTOOL" >&6; }
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7225 if test -z "$ac_cv_prog_DLLTOOL"; then
7226 ac_ct_DLLTOOL=$DLLTOOL
7227 # Extract the first word of "dlltool", so it can be a program name with args.
7228 set dummy dlltool; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7232 $as_echo_n "(cached) " >&6
7234 if test -n "$ac_ct_DLLTOOL"; then
7235 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7255 if test -n "$ac_ct_DLLTOOL"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7257 $as_echo "$ac_ct_DLLTOOL" >&6; }
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7263 if test "x$ac_ct_DLLTOOL" = x; then
7266 case $cross_compiling:$ac_tool_warned in
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270 ac_tool_warned=yes ;;
7272 DLLTOOL=$ac_ct_DLLTOOL
7275 DLLTOOL="$ac_cv_prog_DLLTOOL"
7278 test -z "$DLLTOOL" && DLLTOOL=dlltool
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7290 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7291 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7292 $as_echo_n "(cached) " >&6
7294 lt_cv_sharedlib_from_linklib_cmd='unknown'
7297 cygwin* | mingw* | pw32* | cegcc*)
7298 # two different shell functions defined in ltmain.sh
7299 # decide which to use based on capabilities of $DLLTOOL
7300 case `$DLLTOOL --help 2>&1` in
7301 *--identify-strict*)
7302 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7305 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7310 # fallback: assume linklib IS sharedlib
7311 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7317 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7318 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7319 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7327 if test -n "$ac_tool_prefix"; then
7330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_AR+:} false; then :
7335 $as_echo_n "(cached) " >&6
7337 if test -n "$AR"; then
7338 ac_cv_prog_AR="$AR" # Let the user override the test.
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 if test -n "$AR"; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7360 $as_echo "$AR" >&6; }
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7367 test -n "$AR" && break
7370 if test -z "$AR"; then
7374 # Extract the first word of "$ac_prog", so it can be a program name with args.
7375 set dummy $ac_prog; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7379 $as_echo_n "(cached) " >&6
7381 if test -n "$ac_ct_AR"; then
7382 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7391 ac_cv_prog_ac_ct_AR="$ac_prog"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7402 if test -n "$ac_ct_AR"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7404 $as_echo "$ac_ct_AR" >&6; }
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7411 test -n "$ac_ct_AR" && break
7414 if test "x$ac_ct_AR" = x; then
7417 case $cross_compiling:$ac_tool_warned in
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7421 ac_tool_warned=yes ;;
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7441 $as_echo_n "checking for archiver @FILE support... " >&6; }
7442 if ${lt_cv_ar_at_file+:} false; then :
7443 $as_echo_n "(cached) " >&6
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7457 if ac_fn_c_try_compile "$LINENO"; then :
7458 echo conftest.$ac_objext > conftest.lst
7459 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7461 (eval $lt_ar_try) 2>&5
7463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7464 test $ac_status = 0; }
7465 if test "$ac_status" -eq 0; then
7466 # Ensure the archiver fails upon bogus file names.
7467 rm -f conftest.$ac_objext libconftest.a
7468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7469 (eval $lt_ar_try) 2>&5
7471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472 test $ac_status = 0; }
7473 if test "$ac_status" -ne 0; then
7477 rm -f conftest.* libconftest.a
7480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7484 $as_echo "$lt_cv_ar_at_file" >&6; }
7486 if test "x$lt_cv_ar_at_file" = xno; then
7489 archiver_list_spec=$lt_cv_ar_at_file
7498 if test -n "$ac_tool_prefix"; then
7499 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7500 set dummy ${ac_tool_prefix}strip; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if ${ac_cv_prog_STRIP+:} false; then :
7504 $as_echo_n "(cached) " >&6
7506 if test -n "$STRIP"; then
7507 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 STRIP=$ac_cv_prog_STRIP
7527 if test -n "$STRIP"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7529 $as_echo "$STRIP" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7537 if test -z "$ac_cv_prog_STRIP"; then
7539 # Extract the first word of "strip", so it can be a program name with args.
7540 set dummy strip; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7544 $as_echo_n "(cached) " >&6
7546 if test -n "$ac_ct_STRIP"; then
7547 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556 ac_cv_prog_ac_ct_STRIP="strip"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7567 if test -n "$ac_ct_STRIP"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7569 $as_echo "$ac_ct_STRIP" >&6; }
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7575 if test "x$ac_ct_STRIP" = x; then
7578 case $cross_compiling:$ac_tool_warned in
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7582 ac_tool_warned=yes ;;
7587 STRIP="$ac_cv_prog_STRIP"
7590 test -z "$STRIP" && STRIP=:
7597 if test -n "$ac_tool_prefix"; then
7598 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7599 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if ${ac_cv_prog_RANLIB+:} false; then :
7603 $as_echo_n "(cached) " >&6
7605 if test -n "$RANLIB"; then
7606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7615 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 RANLIB=$ac_cv_prog_RANLIB
7626 if test -n "$RANLIB"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7628 $as_echo "$RANLIB" >&6; }
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7636 if test -z "$ac_cv_prog_RANLIB"; then
7637 ac_ct_RANLIB=$RANLIB
7638 # Extract the first word of "ranlib", so it can be a program name with args.
7639 set dummy ranlib; ac_word=$2
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 $as_echo_n "checking for $ac_word... " >&6; }
7642 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7643 $as_echo_n "(cached) " >&6
7645 if test -n "$ac_ct_RANLIB"; then
7646 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 test -z "$as_dir" && as_dir=.
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7655 ac_cv_prog_ac_ct_RANLIB="ranlib"
7656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7666 if test -n "$ac_ct_RANLIB"; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7668 $as_echo "$ac_ct_RANLIB" >&6; }
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7674 if test "x$ac_ct_RANLIB" = x; then
7677 case $cross_compiling:$ac_tool_warned in
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7681 ac_tool_warned=yes ;;
7683 RANLIB=$ac_ct_RANLIB
7686 RANLIB="$ac_cv_prog_RANLIB"
7689 test -z "$RANLIB" && RANLIB=:
7696 # Determine commands to create old-style static archives.
7697 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7698 old_postinstall_cmds='chmod 644 $oldlib'
7699 old_postuninstall_cmds=
7701 if test -n "$RANLIB"; then
7704 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7707 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7710 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7715 lock_old_archive_extraction=yes ;;
7717 lock_old_archive_extraction=no ;;
7758 # If no C compiler was specified, use CC.
7761 # If no C compiler flags were specified, use CFLAGS.
7762 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7764 # Allow CC to be a program name with arguments.
7768 # Check for command to grab the raw symbol name followed by C symbol from nm.
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7770 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7771 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7772 $as_echo_n "(cached) " >&6
7775 # These are sane defaults that work on at least a few old systems.
7776 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7778 # Character class describing NM global symbol codes.
7779 symcode='[BCDEGRST]'
7781 # Regexp to match symbols that can be accessed directly from C.
7782 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7784 # Define system-specific variables.
7789 cygwin* | mingw* | pw32* | cegcc*)
7790 symcode='[ABCDGISTW]'
7793 if test "$host_cpu" = ia64; then
7794 symcode='[ABCDEGRST]'
7798 symcode='[BCDEGRST]'
7801 symcode='[BCDEGQRST]'
7812 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7820 # If we're using GNU nm, then use its standard symbol codes.
7821 case `$NM -V 2>&1` in
7822 *GNU* | *'with BFD'*)
7823 symcode='[ABCDGIRSTW]' ;;
7826 # Transform an extracted symbol line into a proper C declaration.
7827 # Some systems (esp. on ia64) link data and code symbols differently,
7828 # so use this general approach.
7829 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7831 # Transform an extracted symbol line into symbol name and symbol address
7832 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7833 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'"
7835 # Handle CRLF in mingw tool chain
7839 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7843 # Try without a prefix underscore, then with it.
7844 for ac_symprfx in "" "_"; do
7846 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7847 symxfrm="\\1 $ac_symprfx\\2 \\2"
7849 # Write the raw and C identifiers.
7850 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7851 # Fake it for dumpbin and say T for any non-static function
7852 # and D for any global variable.
7853 # Also find C++ and __fastcall symbols from MSVC++,
7854 # which start with @ or ?.
7855 lt_cv_sys_global_symbol_pipe="$AWK '"\
7856 " {last_section=section; section=\$ 3};"\
7857 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7858 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7859 " \$ 0!~/External *\|/{next};"\
7860 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7861 " {if(hide[section]) next};"\
7862 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7863 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7864 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7865 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7866 " ' prfx=^$ac_symprfx"
7868 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7870 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7872 # Check to see that the pipe works correctly.
7876 cat > conftest.$ac_ext <<_LT_EOF
7881 void nm_test_func(void);
7882 void nm_test_func(void){}
7886 int main(){nm_test_var='a';nm_test_func();return(0);}
7889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7890 (eval $ac_compile) 2>&5
7892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7893 test $ac_status = 0; }; then
7894 # Now try to grab the symbols.
7896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7897 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7900 test $ac_status = 0; } && test -s "$nlist"; then
7901 # Try sorting and uniquifying the output.
7902 if sort "$nlist" | uniq > "$nlist"T; then
7903 mv -f "$nlist"T "$nlist"
7908 # Make sure that we snagged all the symbols we need.
7909 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7910 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7911 cat <<_LT_EOF > conftest.$ac_ext
7912 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7913 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7914 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7915 relocations are performed -- see ld's documentation on pseudo-relocs. */
7916 # define LT_DLSYM_CONST
7917 #elif defined(__osf__)
7918 /* This system does not cope well with relocations in const data. */
7919 # define LT_DLSYM_CONST
7921 # define LT_DLSYM_CONST const
7929 # Now generate the symbol file.
7930 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7932 cat <<_LT_EOF >> conftest.$ac_ext
7934 /* The mapping between symbol names and symbols. */
7935 LT_DLSYM_CONST struct {
7939 lt__PROGRAM__LTX_preloaded_symbols[] =
7941 { "@PROGRAM@", (void *) 0 },
7943 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7944 cat <<\_LT_EOF >> conftest.$ac_ext
7948 /* This works around a problem in FreeBSD linker */
7949 #ifdef FREEBSD_WORKAROUND
7950 static const void *lt_preloaded_setup() {
7951 return lt__PROGRAM__LTX_preloaded_symbols;
7959 # Now try linking the two files.
7960 mv conftest.$ac_objext conftstm.$ac_objext
7961 lt_globsym_save_LIBS=$LIBS
7962 lt_globsym_save_CFLAGS=$CFLAGS
7963 LIBS="conftstm.$ac_objext"
7964 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7966 (eval $ac_link) 2>&5
7968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7969 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7972 LIBS=$lt_globsym_save_LIBS
7973 CFLAGS=$lt_globsym_save_CFLAGS
7975 echo "cannot find nm_test_func in $nlist" >&5
7978 echo "cannot find nm_test_var in $nlist" >&5
7981 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7984 echo "$progname: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7987 rm -rf conftest* conftst*
7989 # Do not use the global_symbol_pipe unless it works.
7990 if test "$pipe_works" = yes; then
7993 lt_cv_sys_global_symbol_pipe=
7999 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8000 lt_cv_sys_global_symbol_to_cdecl=
8002 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8004 $as_echo "failed" >&6; }
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8007 $as_echo "ok" >&6; }
8010 # Response file support.
8011 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8012 nm_file_list_spec='@'
8013 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8014 nm_file_list_spec='@'
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8044 $as_echo_n "checking for sysroot... " >&6; }
8046 # Check whether --with-sysroot was given.
8047 if test "${with_sysroot+set}" = set; then :
8048 withval=$with_sysroot;
8055 case ${with_sysroot} in #(
8057 if test "$GCC" = yes; then
8058 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8062 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8068 $as_echo "${with_sysroot}" >&6; }
8069 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8074 $as_echo "${lt_sysroot:-no}" >&6; }
8080 # Check whether --enable-libtool-lock was given.
8081 if test "${enable_libtool_lock+set}" = set; then :
8082 enableval=$enable_libtool_lock;
8085 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8087 # Some flags need to be propagated to the compiler or linker for good
8091 # Find out which ABI we are using.
8092 echo 'int i;' > conftest.$ac_ext
8093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8094 (eval $ac_compile) 2>&5
8096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8097 test $ac_status = 0; }; then
8098 case `/usr/bin/file conftest.$ac_objext` in
8110 # Find out which ABI we are using.
8111 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8113 (eval $ac_compile) 2>&5
8115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8116 test $ac_status = 0; }; then
8117 if test "$lt_cv_prog_gnu_ld" = yes; then
8118 case `/usr/bin/file conftest.$ac_objext` in
8120 LD="${LD-ld} -melf32bsmip"
8123 LD="${LD-ld} -melf32bmipn32"
8126 LD="${LD-ld} -melf64bmip"
8130 case `/usr/bin/file conftest.$ac_objext` in
8146 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8147 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8148 # Find out which ABI we are using.
8149 echo 'int i;' > conftest.$ac_ext
8150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8151 (eval $ac_compile) 2>&5
8153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8154 test $ac_status = 0; }; then
8155 case `/usr/bin/file conftest.o` in
8158 x86_64-*kfreebsd*-gnu)
8159 LD="${LD-ld} -m elf_i386_fbsd"
8162 case `/usr/bin/file conftest.o` in
8164 LD="${LD-ld} -m elf32_x86_64"
8167 LD="${LD-ld} -m elf_i386"
8172 LD="${LD-ld} -m elf32lppclinux"
8175 LD="${LD-ld} -m elf32ppclinux"
8178 LD="${LD-ld} -m elf_s390"
8181 LD="${LD-ld} -m elf32_sparc"
8187 x86_64-*kfreebsd*-gnu)
8188 LD="${LD-ld} -m elf_x86_64_fbsd"
8191 LD="${LD-ld} -m elf_x86_64"
8194 LD="${LD-ld} -m elf64lppc"
8197 LD="${LD-ld} -m elf64ppc"
8199 s390*-*linux*|s390*-*tpf*)
8200 LD="${LD-ld} -m elf64_s390"
8203 LD="${LD-ld} -m elf64_sparc"
8213 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8214 SAVE_CFLAGS="$CFLAGS"
8215 CFLAGS="$CFLAGS -belf"
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8217 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8218 if ${lt_cv_cc_needs_belf+:} false; then :
8219 $as_echo_n "(cached) " >&6
8222 ac_cpp='$CPP $CPPFLAGS'
8223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h. */
8238 if ac_fn_c_try_link "$LINENO"; then :
8239 lt_cv_cc_needs_belf=yes
8241 lt_cv_cc_needs_belf=no
8243 rm -f core conftest.err conftest.$ac_objext \
8244 conftest$ac_exeext conftest.$ac_ext
8246 ac_cpp='$CPP $CPPFLAGS'
8247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8253 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8254 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8255 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8256 CFLAGS="$SAVE_CFLAGS"
8260 # Find out which ABI we are using.
8261 echo 'int i;' > conftest.$ac_ext
8262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8263 (eval $ac_compile) 2>&5
8265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8266 test $ac_status = 0; }; then
8267 case `/usr/bin/file conftest.o` in
8269 case $lt_cv_prog_gnu_ld in
8273 LD="${LD-ld} -m elf_x86_64"
8276 LD="${LD-ld} -m elf64_sparc"
8279 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8280 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8285 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8297 need_locks="$enable_libtool_lock"
8299 if test -n "$ac_tool_prefix"; then
8300 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8301 set dummy ${ac_tool_prefix}mt; ac_word=$2
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303 $as_echo_n "checking for $ac_word... " >&6; }
8304 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8305 $as_echo_n "(cached) " >&6
8307 if test -n "$MANIFEST_TOOL"; then
8308 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8317 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8328 if test -n "$MANIFEST_TOOL"; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8330 $as_echo "$MANIFEST_TOOL" >&6; }
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 $as_echo "no" >&6; }
8338 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8339 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8340 # Extract the first word of "mt", so it can be a program name with args.
8341 set dummy mt; ac_word=$2
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343 $as_echo_n "checking for $ac_word... " >&6; }
8344 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8345 $as_echo_n "(cached) " >&6
8347 if test -n "$ac_ct_MANIFEST_TOOL"; then
8348 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354 test -z "$as_dir" && as_dir=.
8355 for ac_exec_ext in '' $ac_executable_extensions; do
8356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8357 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8368 if test -n "$ac_ct_MANIFEST_TOOL"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8370 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8376 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8379 case $cross_compiling:$ac_tool_warned in
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8383 ac_tool_warned=yes ;;
8385 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8388 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8391 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8393 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8394 if ${lt_cv_path_mainfest_tool+:} false; then :
8395 $as_echo_n "(cached) " >&6
8397 lt_cv_path_mainfest_tool=no
8398 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8399 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8400 cat conftest.err >&5
8401 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8402 lt_cv_path_mainfest_tool=yes
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8407 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8408 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8418 rhapsody* | darwin*)
8419 if test -n "$ac_tool_prefix"; then
8420 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8421 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8423 $as_echo_n "checking for $ac_word... " >&6; }
8424 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8425 $as_echo_n "(cached) " >&6
8427 if test -n "$DSYMUTIL"; then
8428 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 test -z "$as_dir" && as_dir=.
8435 for ac_exec_ext in '' $ac_executable_extensions; do
8436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8437 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8448 if test -n "$DSYMUTIL"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8450 $as_echo "$DSYMUTIL" >&6; }
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8458 if test -z "$ac_cv_prog_DSYMUTIL"; then
8459 ac_ct_DSYMUTIL=$DSYMUTIL
8460 # Extract the first word of "dsymutil", so it can be a program name with args.
8461 set dummy dsymutil; ac_word=$2
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 $as_echo_n "checking for $ac_word... " >&6; }
8464 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8465 $as_echo_n "(cached) " >&6
8467 if test -n "$ac_ct_DSYMUTIL"; then
8468 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8477 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8488 if test -n "$ac_ct_DSYMUTIL"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8490 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8496 if test "x$ac_ct_DSYMUTIL" = x; then
8499 case $cross_compiling:$ac_tool_warned in
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8503 ac_tool_warned=yes ;;
8505 DSYMUTIL=$ac_ct_DSYMUTIL
8508 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8511 if test -n "$ac_tool_prefix"; then
8512 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8513 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if ${ac_cv_prog_NMEDIT+:} false; then :
8517 $as_echo_n "(cached) " >&6
8519 if test -n "$NMEDIT"; then
8520 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8529 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8539 NMEDIT=$ac_cv_prog_NMEDIT
8540 if test -n "$NMEDIT"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8542 $as_echo "$NMEDIT" >&6; }
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8550 if test -z "$ac_cv_prog_NMEDIT"; then
8551 ac_ct_NMEDIT=$NMEDIT
8552 # Extract the first word of "nmedit", so it can be a program name with args.
8553 set dummy nmedit; ac_word=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8557 $as_echo_n "(cached) " >&6
8559 if test -n "$ac_ct_NMEDIT"; then
8560 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8569 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8580 if test -n "$ac_ct_NMEDIT"; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8582 $as_echo "$ac_ct_NMEDIT" >&6; }
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8588 if test "x$ac_ct_NMEDIT" = x; then
8591 case $cross_compiling:$ac_tool_warned in
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8595 ac_tool_warned=yes ;;
8597 NMEDIT=$ac_ct_NMEDIT
8600 NMEDIT="$ac_cv_prog_NMEDIT"
8603 if test -n "$ac_tool_prefix"; then
8604 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8605 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607 $as_echo_n "checking for $ac_word... " >&6; }
8608 if ${ac_cv_prog_LIPO+:} false; then :
8609 $as_echo_n "(cached) " >&6
8611 if test -n "$LIPO"; then
8612 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618 test -z "$as_dir" && as_dir=.
8619 for ac_exec_ext in '' $ac_executable_extensions; do
8620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8621 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8631 LIPO=$ac_cv_prog_LIPO
8632 if test -n "$LIPO"; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8634 $as_echo "$LIPO" >&6; }
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637 $as_echo "no" >&6; }
8642 if test -z "$ac_cv_prog_LIPO"; then
8644 # Extract the first word of "lipo", so it can be a program name with args.
8645 set dummy lipo; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8649 $as_echo_n "(cached) " >&6
8651 if test -n "$ac_ct_LIPO"; then
8652 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8661 ac_cv_prog_ac_ct_LIPO="lipo"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8672 if test -n "$ac_ct_LIPO"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8674 $as_echo "$ac_ct_LIPO" >&6; }
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8680 if test "x$ac_ct_LIPO" = x; then
8683 case $cross_compiling:$ac_tool_warned in
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8687 ac_tool_warned=yes ;;
8692 LIPO="$ac_cv_prog_LIPO"
8695 if test -n "$ac_tool_prefix"; then
8696 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8697 set dummy ${ac_tool_prefix}otool; ac_word=$2
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8699 $as_echo_n "checking for $ac_word... " >&6; }
8700 if ${ac_cv_prog_OTOOL+:} false; then :
8701 $as_echo_n "(cached) " >&6
8703 if test -n "$OTOOL"; then
8704 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710 test -z "$as_dir" && as_dir=.
8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8713 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8723 OTOOL=$ac_cv_prog_OTOOL
8724 if test -n "$OTOOL"; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8726 $as_echo "$OTOOL" >&6; }
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729 $as_echo "no" >&6; }
8734 if test -z "$ac_cv_prog_OTOOL"; then
8736 # Extract the first word of "otool", so it can be a program name with args.
8737 set dummy otool; ac_word=$2
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739 $as_echo_n "checking for $ac_word... " >&6; }
8740 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8741 $as_echo_n "(cached) " >&6
8743 if test -n "$ac_ct_OTOOL"; then
8744 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750 test -z "$as_dir" && as_dir=.
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8753 ac_cv_prog_ac_ct_OTOOL="otool"
8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8764 if test -n "$ac_ct_OTOOL"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8766 $as_echo "$ac_ct_OTOOL" >&6; }
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8772 if test "x$ac_ct_OTOOL" = x; then
8775 case $cross_compiling:$ac_tool_warned in
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8779 ac_tool_warned=yes ;;
8784 OTOOL="$ac_cv_prog_OTOOL"
8787 if test -n "$ac_tool_prefix"; then
8788 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8789 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8791 $as_echo_n "checking for $ac_word... " >&6; }
8792 if ${ac_cv_prog_OTOOL64+:} false; then :
8793 $as_echo_n "(cached) " >&6
8795 if test -n "$OTOOL64"; then
8796 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 test -z "$as_dir" && as_dir=.
8803 for ac_exec_ext in '' $ac_executable_extensions; do
8804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8805 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 OTOOL64=$ac_cv_prog_OTOOL64
8816 if test -n "$OTOOL64"; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8818 $as_echo "$OTOOL64" >&6; }
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8821 $as_echo "no" >&6; }
8826 if test -z "$ac_cv_prog_OTOOL64"; then
8827 ac_ct_OTOOL64=$OTOOL64
8828 # Extract the first word of "otool64", so it can be a program name with args.
8829 set dummy otool64; ac_word=$2
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831 $as_echo_n "checking for $ac_word... " >&6; }
8832 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8833 $as_echo_n "(cached) " >&6
8835 if test -n "$ac_ct_OTOOL64"; then
8836 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8845 ac_cv_prog_ac_ct_OTOOL64="otool64"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8855 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8856 if test -n "$ac_ct_OTOOL64"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8858 $as_echo "$ac_ct_OTOOL64" >&6; }
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8864 if test "x$ac_ct_OTOOL64" = x; then
8867 case $cross_compiling:$ac_tool_warned in
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8871 ac_tool_warned=yes ;;
8873 OTOOL64=$ac_ct_OTOOL64
8876 OTOOL64="$ac_cv_prog_OTOOL64"
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8906 $as_echo_n "checking for -single_module linker flag... " >&6; }
8907 if ${lt_cv_apple_cc_single_mod+:} false; then :
8908 $as_echo_n "(cached) " >&6
8910 lt_cv_apple_cc_single_mod=no
8911 if test -z "${LT_MULTI_MODULE}"; then
8912 # By default we will add the -single_module flag. You can override
8913 # by either setting the environment variable LT_MULTI_MODULE
8914 # non-empty at configure time, or by adding -multi_module to the
8916 rm -rf libconftest.dylib*
8917 echo "int foo(void){return 1;}" > conftest.c
8918 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8919 -dynamiclib -Wl,-single_module conftest.c" >&5
8920 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8921 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8923 # If there is a non-empty error log, and "single_module"
8924 # appears in it, assume the flag caused a linker warning
8925 if test -s conftest.err && $GREP single_module conftest.err; then
8926 cat conftest.err >&5
8927 # Otherwise, if the output was created with a 0 exit code from
8928 # the compiler, it worked.
8929 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8930 lt_cv_apple_cc_single_mod=yes
8932 cat conftest.err >&5
8934 rm -rf libconftest.dylib*
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8939 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8942 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8943 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8944 $as_echo_n "(cached) " >&6
8946 lt_cv_ld_exported_symbols_list=no
8947 save_LDFLAGS=$LDFLAGS
8948 echo "_main" > conftest.sym
8949 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8951 /* end confdefs.h. */
8961 if ac_fn_c_try_link "$LINENO"; then :
8962 lt_cv_ld_exported_symbols_list=yes
8964 lt_cv_ld_exported_symbols_list=no
8966 rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8968 LDFLAGS="$save_LDFLAGS"
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8972 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8975 $as_echo_n "checking for -force_load linker flag... " >&6; }
8976 if ${lt_cv_ld_force_load+:} false; then :
8977 $as_echo_n "(cached) " >&6
8979 lt_cv_ld_force_load=no
8980 cat > conftest.c << _LT_EOF
8981 int forced_loaded() { return 2;}
8983 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8984 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8985 echo "$AR cru libconftest.a conftest.o" >&5
8986 $AR cru libconftest.a conftest.o 2>&5
8987 echo "$RANLIB libconftest.a" >&5
8988 $RANLIB libconftest.a 2>&5
8989 cat > conftest.c << _LT_EOF
8990 int main() { return 0;}
8992 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8993 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8995 if test -s conftest.err && $GREP force_load conftest.err; then
8996 cat conftest.err >&5
8997 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8998 lt_cv_ld_force_load=yes
9000 cat conftest.err >&5
9002 rm -f conftest.err libconftest.a conftest conftest.c
9003 rm -rf conftest.dSYM
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9007 $as_echo "$lt_cv_ld_force_load" >&6; }
9009 rhapsody* | darwin1.[012])
9010 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9012 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9013 darwin*) # darwin 5.x on
9014 # if running on 10.5 or later, the deployment target defaults
9015 # to the OS version, if on x86, and 10.4, the deployment
9016 # target defaults to 10.4. Don't you love it?
9017 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9018 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9019 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9021 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9023 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9027 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9028 _lt_dar_single_mod='$single_module'
9030 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9031 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9033 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9035 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9036 _lt_dsymutil='~$DSYMUTIL $lib || :'
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9044 $as_echo_n "checking for ANSI C header files... " >&6; }
9045 if ${ac_cv_header_stdc+:} false; then :
9046 $as_echo_n "(cached) " >&6
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9063 if ac_fn_c_try_compile "$LINENO"; then :
9064 ac_cv_header_stdc=yes
9066 ac_cv_header_stdc=no
9068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 if test $ac_cv_header_stdc = yes; then
9071 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9078 $EGREP "memchr" >/dev/null 2>&1; then :
9081 ac_cv_header_stdc=no
9087 if test $ac_cv_header_stdc = yes; then
9088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h. */
9094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9095 $EGREP "free" >/dev/null 2>&1; then :
9098 ac_cv_header_stdc=no
9104 if test $ac_cv_header_stdc = yes; then
9105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9106 if test "$cross_compiling" = yes; then :
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9113 #if ((' ' & 0x0FF) == 0x020)
9114 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9115 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9117 # define ISLOWER(c) \
9118 (('a' <= (c) && (c) <= 'i') \
9119 || ('j' <= (c) && (c) <= 'r') \
9120 || ('s' <= (c) && (c) <= 'z'))
9121 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9124 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9129 for (i = 0; i < 256; i++)
9130 if (XOR (islower (i), ISLOWER (i))
9131 || toupper (i) != TOUPPER (i))
9136 if ac_fn_c_try_run "$LINENO"; then :
9139 ac_cv_header_stdc=no
9141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9142 conftest.$ac_objext conftest.beam conftest.$ac_ext
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9148 $as_echo "$ac_cv_header_stdc" >&6; }
9149 if test $ac_cv_header_stdc = yes; then
9151 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9155 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9156 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9157 inttypes.h stdint.h unistd.h
9159 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9160 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9162 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9163 cat >>confdefs.h <<_ACEOF
9164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9172 for ac_header in dlfcn.h
9174 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9176 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9177 cat >>confdefs.h <<_ACEOF
9178 #define HAVE_DLFCN_H 1
9188 func_stripname_cnf ()
9191 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9192 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9194 } # func_stripname_cnf
9201 # Check whether --enable-shared was given.
9202 if test "${enable_shared+set}" = set; then :
9203 enableval=$enable_shared; p=${PACKAGE-default}
9205 yes) enable_shared=yes ;;
9206 no) enable_shared=no ;;
9209 # Look at the argument we got. We use all the common list separators.
9210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9211 for pkg in $enableval; do
9213 if test "X$pkg" = "X$p"; then
9230 # Check whether --enable-static was given.
9231 if test "${enable_static+set}" = set; then :
9232 enableval=$enable_static; p=${PACKAGE-default}
9234 yes) enable_static=yes ;;
9235 no) enable_static=no ;;
9238 # Look at the argument we got. We use all the common list separators.
9239 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9240 for pkg in $enableval; do
9242 if test "X$pkg" = "X$p"; then
9271 # Check whether --with-pic was given.
9272 if test "${with_pic+set}" = set; then :
9273 withval=$with_pic; lt_p=${PACKAGE-default}
9275 yes|no) pic_mode=$withval ;;
9278 # Look at the argument we got. We use all the common list separators.
9279 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9280 for lt_pkg in $withval; do
9282 if test "X$lt_pkg" = "X$lt_p"; then
9294 test -z "$pic_mode" && pic_mode=default
9302 # Check whether --enable-fast-install was given.
9303 if test "${enable_fast_install+set}" = set; then :
9304 enableval=$enable_fast_install; p=${PACKAGE-default}
9306 yes) enable_fast_install=yes ;;
9307 no) enable_fast_install=no ;;
9309 enable_fast_install=no
9310 # Look at the argument we got. We use all the common list separators.
9311 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9312 for pkg in $enableval; do
9314 if test "X$pkg" = "X$p"; then
9315 enable_fast_install=yes
9322 enable_fast_install=yes
9335 # This can be used to rebuild libtool when needed
9336 LIBTOOL_DEPS="$ltmain"
9338 # Always use our own libtool.
9339 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9370 test -z "$LN_S" && LN_S="ln -s"
9385 if test -n "${ZSH_VERSION+set}" ; then
9386 setopt NO_GLOB_SUBST
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9390 $as_echo_n "checking for objdir... " >&6; }
9391 if ${lt_cv_objdir+:} false; then :
9392 $as_echo_n "(cached) " >&6
9394 rm -f .libs 2>/dev/null
9395 mkdir .libs 2>/dev/null
9396 if test -d .libs; then
9399 # MS-DOS does not allow filenames that begin with a dot.
9402 rmdir .libs 2>/dev/null
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9405 $as_echo "$lt_cv_objdir" >&6; }
9406 objdir=$lt_cv_objdir
9412 cat >>confdefs.h <<_ACEOF
9413 #define LT_OBJDIR "$lt_cv_objdir/"
9421 # AIX sometimes has problems with the GCC collect2 program. For some
9422 # reason, if we set the COLLECT_NAMES environment variable, the problems
9423 # vanish in a puff of smoke.
9424 if test "X${COLLECT_NAMES+set}" != Xset; then
9426 export COLLECT_NAMES
9433 can_build_shared=yes
9435 # All known linkers require a `.a' archive for static linking (except MSVC,
9436 # which needs '.lib').
9439 with_gnu_ld="$lt_cv_prog_gnu_ld"
9442 old_CFLAGS="$CFLAGS"
9444 # Set sane defaults for various variables
9445 test -z "$CC" && CC=cc
9446 test -z "$LTCC" && LTCC=$CC
9447 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9448 test -z "$LD" && LD=ld
9449 test -z "$ac_objext" && ac_objext=o
9451 for cc_temp in $compiler""; do
9453 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9454 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9459 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9462 # Only perform the check for file, if the check method requires it
9463 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9464 case $deplibs_check_method in
9466 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9468 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9469 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9470 $as_echo_n "(cached) " >&6
9474 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9477 lt_save_MAGIC_CMD="$MAGIC_CMD"
9478 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9479 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9480 for ac_dir in $ac_dummy; do
9482 test -z "$ac_dir" && ac_dir=.
9483 if test -f $ac_dir/${ac_tool_prefix}file; then
9484 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9485 if test -n "$file_magic_test_file"; then
9486 case $deplibs_check_method in
9488 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9490 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9491 $EGREP "$file_magic_regex" > /dev/null; then
9496 *** Warning: the command libtool uses to detect shared libraries,
9497 *** $file_magic_cmd, produces output that libtool cannot recognize.
9498 *** The result is that libtool may fail to recognize shared libraries
9499 *** as such. This will affect the creation of libtool libraries that
9500 *** depend on shared libraries, but programs linked with such libtool
9501 *** libraries will work regardless of this problem. Nevertheless, you
9502 *** may want to report the problem to your system manager and/or to
9503 *** bug-libtool@gnu.org
9513 MAGIC_CMD="$lt_save_MAGIC_CMD"
9518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9519 if test -n "$MAGIC_CMD"; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9521 $as_echo "$MAGIC_CMD" >&6; }
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 $as_echo "no" >&6; }
9531 if test -z "$lt_cv_path_MAGIC_CMD"; then
9532 if test -n "$ac_tool_prefix"; then
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9534 $as_echo_n "checking for file... " >&6; }
9535 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9536 $as_echo_n "(cached) " >&6
9540 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9543 lt_save_MAGIC_CMD="$MAGIC_CMD"
9544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9545 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9546 for ac_dir in $ac_dummy; do
9548 test -z "$ac_dir" && ac_dir=.
9549 if test -f $ac_dir/file; then
9550 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9551 if test -n "$file_magic_test_file"; then
9552 case $deplibs_check_method in
9554 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9555 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9556 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9557 $EGREP "$file_magic_regex" > /dev/null; then
9562 *** Warning: the command libtool uses to detect shared libraries,
9563 *** $file_magic_cmd, produces output that libtool cannot recognize.
9564 *** The result is that libtool may fail to recognize shared libraries
9565 *** as such. This will affect the creation of libtool libraries that
9566 *** depend on shared libraries, but programs linked with such libtool
9567 *** libraries will work regardless of this problem. Nevertheless, you
9568 *** may want to report the problem to your system manager and/or to
9569 *** bug-libtool@gnu.org
9579 MAGIC_CMD="$lt_save_MAGIC_CMD"
9584 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9585 if test -n "$MAGIC_CMD"; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9587 $as_echo "$MAGIC_CMD" >&6; }
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590 $as_echo "no" >&6; }
9603 # Use C for the default configuration in the libtool script
9607 ac_cpp='$CPP $CPPFLAGS'
9608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9613 # Source file extension for C test sources.
9616 # Object file extension for compiled C test sources.
9620 # Code to be used in simple compile tests
9621 lt_simple_compile_test_code="int some_variable = 0;"
9623 # Code to be used in simple link tests
9624 lt_simple_link_test_code='int main(){return(0);}'
9632 # If no C compiler was specified, use CC.
9635 # If no C compiler flags were specified, use CFLAGS.
9636 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9638 # Allow CC to be a program name with arguments.
9641 # Save the default compiler, since it gets overwritten when the other
9642 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9643 compiler_DEFAULT=$CC
9645 # save warnings/boilerplate of simple test code
9646 ac_outfile=conftest.$ac_objext
9647 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9648 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9649 _lt_compiler_boilerplate=`cat conftest.err`
9652 ac_outfile=conftest.$ac_objext
9653 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9654 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9655 _lt_linker_boilerplate=`cat conftest.err`
9660 ## There is no encapsulation within the following macros, do not change
9661 ## the running order or otherwise move them around unless you know exactly
9662 ## what you are doing...
9663 if test -n "$compiler"; then
9665 lt_prog_compiler_no_builtin_flag=
9667 if test "$GCC" = yes; then
9668 case $cc_basename in
9670 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9672 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9676 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9677 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9678 $as_echo_n "(cached) " >&6
9680 lt_cv_prog_compiler_rtti_exceptions=no
9681 ac_outfile=conftest.$ac_objext
9682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9683 lt_compiler_flag="-fno-rtti -fno-exceptions"
9684 # Insert the option either (1) after the last *FLAGS variable, or
9685 # (2) before a word containing "conftest.", or (3) at the end.
9686 # Note that $ac_compile itself does not contain backslashes and begins
9687 # with a dollar sign (not a hyphen), so the echo should work correctly.
9688 # The option is referenced via a variable to avoid confusing sed.
9689 lt_compile=`echo "$ac_compile" | $SED \
9690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9692 -e 's:$: $lt_compiler_flag:'`
9693 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9694 (eval "$lt_compile" 2>conftest.err)
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 if (exit $ac_status) && test -s "$ac_outfile"; then
9699 # The compiler can only warn and ignore the option if not recognized
9700 # So say no if there are warnings other than the usual output.
9701 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9703 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9704 lt_cv_prog_compiler_rtti_exceptions=yes
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9711 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9713 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9714 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9726 lt_prog_compiler_wl=
9727 lt_prog_compiler_pic=
9728 lt_prog_compiler_static=
9731 if test "$GCC" = yes; then
9732 lt_prog_compiler_wl='-Wl,'
9733 lt_prog_compiler_static='-static'
9737 # All AIX code is PIC.
9738 if test "$host_cpu" = ia64; then
9739 # AIX 5 now supports IA64 processor
9740 lt_prog_compiler_static='-Bstatic'
9747 # see comment about AmigaOS4 .so support
9748 lt_prog_compiler_pic='-fPIC'
9751 # FIXME: we need at least 68020 code to build shared libraries, but
9752 # adding the `-m68020' flag to GCC prevents building anything better,
9754 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9759 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9760 # PIC is the default for these OSes.
9763 mingw* | cygwin* | pw32* | os2* | cegcc*)
9764 # This hack is so that the source file can tell whether it is being
9765 # built for inclusion in a dll (and should export symbols for example).
9766 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9767 # (--disable-auto-import) libraries
9768 lt_prog_compiler_pic='-DDLL_EXPORT'
9771 darwin* | rhapsody*)
9772 # PIC is the default on this platform
9773 # Common symbols not allowed in MH_DYLIB files
9774 lt_prog_compiler_pic='-fno-common'
9778 # PIC is the default for Haiku.
9779 # The "-static" flag exists, but is broken.
9780 lt_prog_compiler_static=
9784 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9785 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9786 # sets the default TLS model and affects inlining.
9792 lt_prog_compiler_pic='-fPIC'
9798 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9799 # Instead, we relocate shared libraries at runtime.
9803 # Just because we use GCC doesn't mean we suddenly get shared libraries
9804 # on systems that don't support them.
9805 lt_prog_compiler_can_build_shared=no
9810 # QNX uses GNU C++, but need to define -shared option too, otherwise
9812 lt_prog_compiler_pic='-fPIC -shared'
9816 if test -d /usr/nec; then
9817 lt_prog_compiler_pic=-Kconform_pic
9822 lt_prog_compiler_pic='-fPIC'
9826 case $cc_basename in
9827 nvcc*) # Cuda Compiler Driver 2.2
9828 lt_prog_compiler_wl='-Xlinker '
9829 if test -n "$lt_prog_compiler_pic"; then
9830 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9835 # PORTME Check for flag to pass linker flags through the system compiler.
9838 lt_prog_compiler_wl='-Wl,'
9839 if test "$host_cpu" = ia64; then
9840 # AIX 5 now supports IA64 processor
9841 lt_prog_compiler_static='-Bstatic'
9843 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9847 mingw* | cygwin* | pw32* | os2* | cegcc*)
9848 # This hack is so that the source file can tell whether it is being
9849 # built for inclusion in a dll (and should export symbols for example).
9850 lt_prog_compiler_pic='-DDLL_EXPORT'
9853 hpux9* | hpux10* | hpux11*)
9854 lt_prog_compiler_wl='-Wl,'
9855 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9862 lt_prog_compiler_pic='+Z'
9865 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9866 lt_prog_compiler_static='${wl}-a ${wl}archive'
9869 irix5* | irix6* | nonstopux*)
9870 lt_prog_compiler_wl='-Wl,'
9871 # PIC (with -KPIC) is the default.
9872 lt_prog_compiler_static='-non_shared'
9875 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9876 case $cc_basename in
9877 # old Intel for x86_64 which still supported -KPIC.
9879 lt_prog_compiler_wl='-Wl,'
9880 lt_prog_compiler_pic='-KPIC'
9881 lt_prog_compiler_static='-static'
9883 # icc used to be incompatible with GCC.
9884 # ICC 10 doesn't accept -KPIC any more.
9886 lt_prog_compiler_wl='-Wl,'
9887 lt_prog_compiler_pic='-fPIC'
9888 lt_prog_compiler_static='-static'
9890 # Lahey Fortran 8.1.
9892 lt_prog_compiler_wl='-Wl,'
9893 lt_prog_compiler_pic='--shared'
9894 lt_prog_compiler_static='--static'
9897 # NAG Fortran compiler
9898 lt_prog_compiler_wl='-Wl,-Wl,,'
9899 lt_prog_compiler_pic='-PIC'
9900 lt_prog_compiler_static='-Bstatic'
9902 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9903 # Portland Group compilers (*not* the Pentium gcc compiler,
9904 # which looks to be a dead project)
9905 lt_prog_compiler_wl='-Wl,'
9906 lt_prog_compiler_pic='-fpic'
9907 lt_prog_compiler_static='-Bstatic'
9910 lt_prog_compiler_wl='-Wl,'
9911 # All Alpha code is PIC.
9912 lt_prog_compiler_static='-non_shared'
9914 xl* | bgxl* | bgf* | mpixl*)
9915 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9916 lt_prog_compiler_wl='-Wl,'
9917 lt_prog_compiler_pic='-qpic'
9918 lt_prog_compiler_static='-qstaticlink'
9921 case `$CC -V 2>&1 | sed 5q` in
9922 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9923 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9924 lt_prog_compiler_pic='-KPIC'
9925 lt_prog_compiler_static='-Bstatic'
9926 lt_prog_compiler_wl=''
9928 *Sun\ F* | *Sun*Fortran*)
9929 lt_prog_compiler_pic='-KPIC'
9930 lt_prog_compiler_static='-Bstatic'
9931 lt_prog_compiler_wl='-Qoption ld '
9935 lt_prog_compiler_pic='-KPIC'
9936 lt_prog_compiler_static='-Bstatic'
9937 lt_prog_compiler_wl='-Wl,'
9939 *Intel*\ [CF]*Compiler*)
9940 lt_prog_compiler_wl='-Wl,'
9941 lt_prog_compiler_pic='-fPIC'
9942 lt_prog_compiler_static='-static'
9945 lt_prog_compiler_wl='-Wl,'
9946 lt_prog_compiler_pic='-fpic'
9947 lt_prog_compiler_static='-Bstatic'
9955 lt_prog_compiler_pic='-KPIC'
9956 lt_prog_compiler_static='-Bstatic'
9960 # QNX uses GNU C++, but need to define -shared option too, otherwise
9962 lt_prog_compiler_pic='-fPIC -shared'
9965 osf3* | osf4* | osf5*)
9966 lt_prog_compiler_wl='-Wl,'
9967 # All OSF/1 code is PIC.
9968 lt_prog_compiler_static='-non_shared'
9972 lt_prog_compiler_static='-non_shared'
9976 lt_prog_compiler_pic='-KPIC'
9977 lt_prog_compiler_static='-Bstatic'
9978 case $cc_basename in
9979 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9980 lt_prog_compiler_wl='-Qoption ld ';;
9982 lt_prog_compiler_wl='-Wl,';;
9987 lt_prog_compiler_wl='-Qoption ld '
9988 lt_prog_compiler_pic='-PIC'
9989 lt_prog_compiler_static='-Bstatic'
9992 sysv4 | sysv4.2uw2* | sysv4.3*)
9993 lt_prog_compiler_wl='-Wl,'
9994 lt_prog_compiler_pic='-KPIC'
9995 lt_prog_compiler_static='-Bstatic'
9999 if test -d /usr/nec ;then
10000 lt_prog_compiler_pic='-Kconform_pic'
10001 lt_prog_compiler_static='-Bstatic'
10005 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10006 lt_prog_compiler_wl='-Wl,'
10007 lt_prog_compiler_pic='-KPIC'
10008 lt_prog_compiler_static='-Bstatic'
10012 lt_prog_compiler_wl='-Wl,'
10013 lt_prog_compiler_can_build_shared=no
10017 lt_prog_compiler_pic='-pic'
10018 lt_prog_compiler_static='-Bstatic'
10022 lt_prog_compiler_can_build_shared=no
10028 # For platforms which do not support PIC, -DPIC is meaningless:
10030 lt_prog_compiler_pic=
10033 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10038 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10039 if ${lt_cv_prog_compiler_pic+:} false; then :
10040 $as_echo_n "(cached) " >&6
10042 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10045 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10046 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10049 # Check to make sure the PIC flag actually works.
10051 if test -n "$lt_prog_compiler_pic"; then
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10053 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10054 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10055 $as_echo_n "(cached) " >&6
10057 lt_cv_prog_compiler_pic_works=no
10058 ac_outfile=conftest.$ac_objext
10059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10060 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10061 # Insert the option either (1) after the last *FLAGS variable, or
10062 # (2) before a word containing "conftest.", or (3) at the end.
10063 # Note that $ac_compile itself does not contain backslashes and begins
10064 # with a dollar sign (not a hyphen), so the echo should work correctly.
10065 # The option is referenced via a variable to avoid confusing sed.
10066 lt_compile=`echo "$ac_compile" | $SED \
10067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10069 -e 's:$: $lt_compiler_flag:'`
10070 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10071 (eval "$lt_compile" 2>conftest.err)
10073 cat conftest.err >&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 if (exit $ac_status) && test -s "$ac_outfile"; then
10076 # The compiler can only warn and ignore the option if not recognized
10077 # So say no if there are warnings other than the usual output.
10078 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10081 lt_cv_prog_compiler_pic_works=yes
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10088 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10090 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10091 case $lt_prog_compiler_pic in
10093 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10096 lt_prog_compiler_pic=
10097 lt_prog_compiler_can_build_shared=no
10113 # Check to make sure the static flag actually works.
10115 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10117 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10118 if ${lt_cv_prog_compiler_static_works+:} false; then :
10119 $as_echo_n "(cached) " >&6
10121 lt_cv_prog_compiler_static_works=no
10122 save_LDFLAGS="$LDFLAGS"
10123 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10124 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10125 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10126 # The linker can only warn and ignore the option if not recognized
10127 # So say no if there are warnings
10128 if test -s conftest.err; then
10129 # Append any errors to the config.log.
10130 cat conftest.err 1>&5
10131 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10133 if diff conftest.exp conftest.er2 >/dev/null; then
10134 lt_cv_prog_compiler_static_works=yes
10137 lt_cv_prog_compiler_static_works=yes
10141 LDFLAGS="$save_LDFLAGS"
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10145 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10147 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10150 lt_prog_compiler_static=
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10160 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10161 if ${lt_cv_prog_compiler_c_o+:} false; then :
10162 $as_echo_n "(cached) " >&6
10164 lt_cv_prog_compiler_c_o=no
10165 $RM -r conftest 2>/dev/null
10169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10171 lt_compiler_flag="-o out/conftest2.$ac_objext"
10172 # Insert the option either (1) after the last *FLAGS variable, or
10173 # (2) before a word containing "conftest.", or (3) at the end.
10174 # Note that $ac_compile itself does not contain backslashes and begins
10175 # with a dollar sign (not a hyphen), so the echo should work correctly.
10176 lt_compile=`echo "$ac_compile" | $SED \
10177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10179 -e 's:$: $lt_compiler_flag:'`
10180 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10181 (eval "$lt_compile" 2>out/conftest.err)
10183 cat out/conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10187 # The compiler can only warn and ignore the option if not recognized
10188 # So say no if there are warnings
10189 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10190 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10191 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10192 lt_cv_prog_compiler_c_o=yes
10197 # SGI C++ compiler will create directory out/ii_files/ for
10198 # template instantiation
10199 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10200 $RM out/* && rmdir out
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10207 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10215 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10216 if ${lt_cv_prog_compiler_c_o+:} false; then :
10217 $as_echo_n "(cached) " >&6
10219 lt_cv_prog_compiler_c_o=no
10220 $RM -r conftest 2>/dev/null
10224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10226 lt_compiler_flag="-o out/conftest2.$ac_objext"
10227 # Insert the option either (1) after the last *FLAGS variable, or
10228 # (2) before a word containing "conftest.", or (3) at the end.
10229 # Note that $ac_compile itself does not contain backslashes and begins
10230 # with a dollar sign (not a hyphen), so the echo should work correctly.
10231 lt_compile=`echo "$ac_compile" | $SED \
10232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10234 -e 's:$: $lt_compiler_flag:'`
10235 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10236 (eval "$lt_compile" 2>out/conftest.err)
10238 cat out/conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10242 # The compiler can only warn and ignore the option if not recognized
10243 # So say no if there are warnings
10244 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10247 lt_cv_prog_compiler_c_o=yes
10252 # SGI C++ compiler will create directory out/ii_files/ for
10253 # template instantiation
10254 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10255 $RM out/* && rmdir out
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10262 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10267 hard_links="nottested"
10268 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10269 # do not overwrite the value of need_locks provided by the user
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10271 $as_echo_n "checking if we can lock with hard links... " >&6; }
10274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10276 ln conftest.a conftest.b 2>&5 || hard_links=no
10277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10279 $as_echo "$hard_links" >&6; }
10280 if test "$hard_links" = no; then
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10282 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10295 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10298 allow_undefined_flag=
10299 always_export_symbols=no
10301 archive_expsym_cmds=
10302 compiler_needs_object=no
10303 enable_shared_with_static_runtimes=no
10304 export_dynamic_flag_spec=
10305 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10306 hardcode_automatic=no
10308 hardcode_direct_absolute=no
10309 hardcode_libdir_flag_spec=
10310 hardcode_libdir_separator=
10311 hardcode_minus_L=no
10312 hardcode_shlibpath_var=unsupported
10314 link_all_deplibs=unknown
10316 module_expsym_cmds=
10317 old_archive_from_new_cmds=
10318 old_archive_from_expsyms_cmds=
10319 thread_safe_flag_spec=
10320 whole_archive_flag_spec=
10321 # include_expsyms should be a list of space-separated symbols to be *always*
10322 # included in the symbol list
10324 # exclude_expsyms can be an extended regexp of symbols to exclude
10325 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10326 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10327 # as well as any symbol that contains `d'.
10328 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10329 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10330 # platforms (ab)use it in PIC code, but their linkers get confused if
10331 # the symbol is explicitly referenced. Since portable code cannot
10332 # rely on this symbol name, it's probably fine to never include it in
10333 # preloaded symbol tables.
10334 # Exclude shared library initialization/finalization symbols.
10335 extract_expsyms_cmds=
10338 cygwin* | mingw* | pw32* | cegcc*)
10339 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10340 # When not using gcc, we currently assume that we are using
10341 # Microsoft Visual C++.
10342 if test "$GCC" != yes; then
10347 # we just hope/assume this is gcc and not c89 (= MSVC++)
10353 linux* | k*bsd*-gnu | gnu*)
10354 link_all_deplibs=no
10360 # On some targets, GNU ld is compatible enough with the native linker
10361 # that we're better off using the native interface for both.
10362 lt_use_gnu_ld_interface=no
10363 if test "$with_gnu_ld" = yes; then
10366 # The AIX port of GNU ld has always aspired to compatibility
10367 # with the native linker. However, as the warning in the GNU ld
10368 # block says, versions before 2.19.5* couldn't really create working
10369 # shared libraries, regardless of the interface used.
10370 case `$LD -v 2>&1` in
10371 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10372 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10373 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10375 lt_use_gnu_ld_interface=yes
10380 lt_use_gnu_ld_interface=yes
10385 if test "$lt_use_gnu_ld_interface" = yes; then
10386 # If archive_cmds runs LD, not CC, wlarc should be empty
10389 # Set some defaults for GNU ld with shared library support. These
10390 # are reset later if shared libraries are not supported. Putting them
10391 # here allows them to be overridden if necessary.
10392 runpath_var=LD_RUN_PATH
10393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10394 export_dynamic_flag_spec='${wl}--export-dynamic'
10395 # ancient GNU ld didn't support --whole-archive et. al.
10396 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10397 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10399 whole_archive_flag_spec=
10401 supports_anon_versioning=no
10402 case `$LD -v 2>&1` in
10403 *GNU\ gold*) supports_anon_versioning=yes ;;
10404 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10405 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10406 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10407 *\ 2.11.*) ;; # other 2.11 versions
10408 *) supports_anon_versioning=yes ;;
10411 # See if GNU ld supports shared libraries.
10414 # On AIX/PPC, the GNU linker is very broken
10415 if test "$host_cpu" != ia64; then
10419 *** Warning: the GNU linker, at least up to release 2.19, is reported
10420 *** to be unable to reliably create shared libraries on AIX.
10421 *** Therefore, libtool is disabling shared libraries support. If you
10422 *** really care for shared libraries, you may want to install binutils
10423 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10424 *** You will then need to restart the configuration process.
10433 # see comment about AmigaOS4 .so support
10434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10435 archive_expsym_cmds=''
10438 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)'
10439 hardcode_libdir_flag_spec='-L$libdir'
10440 hardcode_minus_L=yes
10446 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10447 allow_undefined_flag=unsupported
10448 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10449 # support --undefined. This deserves some investigation. FIXME
10450 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10456 cygwin* | mingw* | pw32* | cegcc*)
10457 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10458 # as there is no search path for DLLs.
10459 hardcode_libdir_flag_spec='-L$libdir'
10460 export_dynamic_flag_spec='${wl}--export-all-symbols'
10461 allow_undefined_flag=unsupported
10462 always_export_symbols=no
10463 enable_shared_with_static_runtimes=yes
10464 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'
10465 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10467 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10469 # If the export-symbols file already is a .def file (1st line
10470 # is EXPORTS), use it as is; otherwise, prepend...
10471 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10472 cp $export_symbols $output_objdir/$soname.def;
10474 echo EXPORTS > $output_objdir/$soname.def;
10475 cat $export_symbols >> $output_objdir/$soname.def;
10477 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10485 link_all_deplibs=yes
10490 hardcode_shlibpath_var=no
10491 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10492 export_dynamic_flag_spec='${wl}-E'
10493 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10494 # Instead, shared libraries are loaded at an image base (0x10000000 by
10495 # default) and relocated if they conflict, which is a slow very memory
10496 # consuming and fragmenting process. To avoid this, we pick a random,
10497 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10498 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10499 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10500 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'
10503 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10505 if test "$host_os" = linux-dietlibc; then
10506 case $cc_basename in
10507 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10510 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10511 && test "$tmp_diet" = no
10513 tmp_addflag=' $pic_flag'
10514 tmp_sharedflag='-shared'
10515 case $cc_basename,$host_cpu in
10516 pgcc*) # Portland Group C compiler
10517 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'
10518 tmp_addflag=' $pic_flag'
10520 pgf77* | pgf90* | pgf95* | pgfortran*)
10521 # Portland Group f77 and f90 compilers
10522 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10523 tmp_addflag=' $pic_flag -Mnomain' ;;
10524 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10525 tmp_addflag=' -i_dynamic' ;;
10526 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10527 tmp_addflag=' -i_dynamic -nofor_main' ;;
10528 ifc* | ifort*) # Intel Fortran compiler
10529 tmp_addflag=' -nofor_main' ;;
10530 lf95*) # Lahey Fortran 8.1
10531 whole_archive_flag_spec=
10532 tmp_sharedflag='--shared' ;;
10533 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10534 tmp_sharedflag='-qmkshrobj'
10536 nvcc*) # Cuda Compiler Driver 2.2
10537 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'
10538 compiler_needs_object=yes
10541 case `$CC -V 2>&1 | sed 5q` in
10542 *Sun\ C*) # Sun C 5.9
10543 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'
10544 compiler_needs_object=yes
10545 tmp_sharedflag='-G' ;;
10546 *Sun\ F*) # Sun Fortran 8.3
10547 tmp_sharedflag='-G' ;;
10549 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10551 if test "x$supports_anon_versioning" = xyes; then
10552 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10553 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10554 echo "local: *; };" >> $output_objdir/$libname.ver~
10555 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10558 case $cc_basename in
10559 xlf* | bgf* | bgxlf* | mpixlf*)
10560 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10561 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10563 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10564 if test "x$supports_anon_versioning" = xyes; then
10565 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10566 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10567 echo "local: *; };" >> $output_objdir/$libname.ver~
10568 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10577 netbsd* | netbsdelf*-gnu)
10578 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10579 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10582 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10583 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10588 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10592 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10593 *** create shared libraries on Solaris systems. Therefore, libtool
10594 *** is disabling shared libraries support. We urge you to upgrade GNU
10595 *** binutils to release 2.9.1 or newer. Another option is to modify
10596 *** your PATH or compiler configuration so that the native linker is
10597 *** used, and then restart.
10600 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10601 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10602 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10608 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10609 case `$LD -v 2>&1` in
10610 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10614 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10615 *** reliably create shared libraries on SCO systems. Therefore, libtool
10616 *** is disabling shared libraries support. We urge you to upgrade GNU
10617 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10618 *** your PATH or compiler configuration so that the native linker is
10619 *** used, and then restart.
10624 # For security reasons, it is highly recommended that you always
10625 # use absolute paths for naming shared libraries, and exclude the
10626 # DT_RUNPATH tag from executables and libraries. But doing so
10627 # requires that you compile everything twice, which is a pain.
10628 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10629 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10631 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10640 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10642 hardcode_direct=yes
10643 hardcode_shlibpath_var=no
10647 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10648 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10649 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10656 if test "$ld_shlibs" = no; then
10658 hardcode_libdir_flag_spec=
10659 export_dynamic_flag_spec=
10660 whole_archive_flag_spec=
10663 # PORTME fill in a description of your system's linker (not GNU ld)
10666 allow_undefined_flag=unsupported
10667 always_export_symbols=yes
10668 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'
10669 # Note: this linker hardcodes the directories in LIBPATH if there
10670 # are no directories specified by -L.
10671 hardcode_minus_L=yes
10672 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10673 # Neither direct hardcoding nor static linking is supported with a
10675 hardcode_direct=unsupported
10680 if test "$host_cpu" = ia64; then
10681 # On IA64, the linker does run time linking by default, so we don't
10682 # have to do anything special.
10683 aix_use_runtimelinking=no
10684 exp_sym_flag='-Bexport'
10687 # If we're using GNU nm, then we don't want the "-C" option.
10688 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10689 # Also, AIX nm treats weak defined symbols like other global
10690 # defined symbols, whereas GNU nm marks them as "W".
10691 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10692 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'
10694 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'
10696 aix_use_runtimelinking=no
10698 # Test if we are trying to use run time linking or normal
10699 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10700 # need to do runtime linking.
10701 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10702 for ld_flag in $LDFLAGS; do
10703 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10704 aix_use_runtimelinking=yes
10711 exp_sym_flag='-bexport'
10712 no_entry_flag='-bnoentry'
10715 # When large executables or shared objects are built, AIX ld can
10716 # have problems creating the table of contents. If linking a library
10717 # or program results in "error TOC overflow" add -mminimal-toc to
10718 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10719 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10722 hardcode_direct=yes
10723 hardcode_direct_absolute=yes
10724 hardcode_libdir_separator=':'
10725 link_all_deplibs=yes
10726 file_list_spec='${wl}-f,'
10728 if test "$GCC" = yes; then
10729 case $host_os in aix4.[012]|aix4.[012].*)
10730 # We only want to do this on AIX 4.2 and lower, the check
10731 # below for broken collect2 doesn't work under 4.3+
10732 collect2name=`${CC} -print-prog-name=collect2`
10733 if test -f "$collect2name" &&
10734 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10736 # We have reworked collect2
10739 # We have old collect2
10740 hardcode_direct=unsupported
10741 # It fails to find uninstalled libraries when the uninstalled
10742 # path is not listed in the libpath. Setting hardcode_minus_L
10743 # to unsupported forces relinking
10744 hardcode_minus_L=yes
10745 hardcode_libdir_flag_spec='-L$libdir'
10746 hardcode_libdir_separator=
10750 shared_flag='-shared'
10751 if test "$aix_use_runtimelinking" = yes; then
10752 shared_flag="$shared_flag "'${wl}-G'
10754 link_all_deplibs=no
10757 if test "$host_cpu" = ia64; then
10758 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10759 # chokes on -Wl,-G. The following line is correct:
10762 if test "$aix_use_runtimelinking" = yes; then
10763 shared_flag='${wl}-G'
10765 shared_flag='${wl}-bM:SRE'
10770 export_dynamic_flag_spec='${wl}-bexpall'
10771 # It seems that -bexpall does not export symbols beginning with
10772 # underscore (_), so it is better to generate a list of symbols to export.
10773 always_export_symbols=yes
10774 if test "$aix_use_runtimelinking" = yes; then
10775 # Warning - without using the other runtime loading flags (-brtl),
10776 # -berok will link without error, but may produce a broken library.
10777 allow_undefined_flag='-berok'
10778 # Determine the default libpath from the value encoded in an
10779 # empty executable.
10780 if test "${lt_cv_aix_libpath+set}" = set; then
10781 aix_libpath=$lt_cv_aix_libpath
10783 if ${lt_cv_aix_libpath_+:} false; then :
10784 $as_echo_n "(cached) " >&6
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10797 if ac_fn_c_try_link "$LINENO"; then :
10799 lt_aix_libpath_sed='
10800 /Import File Strings/,/^$/ {
10802 s/^0 *\([^ ]*\) *$/\1/
10806 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10807 # Check for a 64-bit object if we didn't find anything.
10808 if test -z "$lt_cv_aix_libpath_"; then
10809 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10812 rm -f core conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10814 if test -z "$lt_cv_aix_libpath_"; then
10815 lt_cv_aix_libpath_="/usr/lib:/lib"
10820 aix_libpath=$lt_cv_aix_libpath_
10823 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10824 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"
10826 if test "$host_cpu" = ia64; then
10827 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10828 allow_undefined_flag="-z nodefs"
10829 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"
10831 # Determine the default libpath from the value encoded in an
10832 # empty executable.
10833 if test "${lt_cv_aix_libpath+set}" = set; then
10834 aix_libpath=$lt_cv_aix_libpath
10836 if ${lt_cv_aix_libpath_+:} false; then :
10837 $as_echo_n "(cached) " >&6
10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h. */
10850 if ac_fn_c_try_link "$LINENO"; then :
10852 lt_aix_libpath_sed='
10853 /Import File Strings/,/^$/ {
10855 s/^0 *\([^ ]*\) *$/\1/
10859 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10860 # Check for a 64-bit object if we didn't find anything.
10861 if test -z "$lt_cv_aix_libpath_"; then
10862 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10865 rm -f core conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10867 if test -z "$lt_cv_aix_libpath_"; then
10868 lt_cv_aix_libpath_="/usr/lib:/lib"
10873 aix_libpath=$lt_cv_aix_libpath_
10876 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10877 # Warning - without using the other run time loading flags,
10878 # -berok will link without error, but may produce a broken library.
10879 no_undefined_flag=' ${wl}-bernotok'
10880 allow_undefined_flag=' ${wl}-berok'
10881 if test "$with_gnu_ld" = yes; then
10882 # We only use this code for GNU lds that support --whole-archive.
10883 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10885 # Exported symbols can be pulled into shared objects from archives
10886 whole_archive_flag_spec='$convenience'
10888 archive_cmds_need_lc=yes
10889 # This is similar to how AIX traditionally builds its shared libraries.
10890 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'
10898 # see comment about AmigaOS4 .so support
10899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10900 archive_expsym_cmds=''
10903 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)'
10904 hardcode_libdir_flag_spec='-L$libdir'
10905 hardcode_minus_L=yes
10911 export_dynamic_flag_spec=-rdynamic
10914 cygwin* | mingw* | pw32* | cegcc*)
10915 # When not using gcc, we currently assume that we are using
10916 # Microsoft Visual C++.
10917 # hardcode_libdir_flag_spec is actually meaningless, as there is
10918 # no search path for DLLs.
10919 case $cc_basename in
10922 hardcode_libdir_flag_spec=' '
10923 allow_undefined_flag=unsupported
10924 always_export_symbols=yes
10926 # Tell ltmain to make .lib files, not .a files.
10928 # Tell ltmain to make .dll files, not .so files.
10930 # FIXME: Setting linknames here is a bad hack.
10931 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10932 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10933 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10935 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10937 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10939 # The linker will not automatically build a static lib if we build a DLL.
10940 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10941 enable_shared_with_static_runtimes=yes
10942 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10943 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10945 old_postinstall_cmds='chmod 644 $oldlib'
10946 postlink_cmds='lt_outputfile="@OUTPUT@"~
10947 lt_tool_outputfile="@TOOL_OUTPUT@"~
10948 case $lt_outputfile in
10951 lt_outputfile="$lt_outputfile.exe"
10952 lt_tool_outputfile="$lt_tool_outputfile.exe"
10955 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10956 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10957 $RM "$lt_outputfile.manifest";
10961 # Assume MSVC wrapper
10962 hardcode_libdir_flag_spec=' '
10963 allow_undefined_flag=unsupported
10964 # Tell ltmain to make .lib files, not .a files.
10966 # Tell ltmain to make .dll files, not .so files.
10968 # FIXME: Setting linknames here is a bad hack.
10969 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10970 # The linker will automatically build a .lib file if we build a DLL.
10971 old_archive_from_new_cmds='true'
10972 # FIXME: Should let the user specify the lib program.
10973 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10974 enable_shared_with_static_runtimes=yes
10979 darwin* | rhapsody*)
10982 archive_cmds_need_lc=no
10984 hardcode_automatic=yes
10985 hardcode_shlibpath_var=unsupported
10986 if test "$lt_cv_ld_force_load" = "yes"; then
10987 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\"`'
10990 whole_archive_flag_spec=''
10992 link_all_deplibs=yes
10993 allow_undefined_flag="$_lt_dar_allow_undefined"
10994 case $cc_basename in
10995 ifort*) _lt_dar_can_shared=yes ;;
10996 *) _lt_dar_can_shared=$GCC ;;
10998 if test "$_lt_dar_can_shared" = "yes"; then
10999 output_verbose_link_cmd=func_echo_all
11000 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11001 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11002 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}"
11003 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}"
11012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11013 hardcode_libdir_flag_spec='-L$libdir'
11014 hardcode_shlibpath_var=no
11017 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11018 # support. Future versions do this automatically, but an explicit c++rt0.o
11019 # does not break anything, and helps significantly (at the cost of a little
11022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11023 hardcode_libdir_flag_spec='-R$libdir'
11024 hardcode_direct=yes
11025 hardcode_shlibpath_var=no
11028 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11031 hardcode_direct=yes
11032 hardcode_minus_L=yes
11033 hardcode_shlibpath_var=no
11036 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11037 freebsd* | dragonfly*)
11038 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11039 hardcode_libdir_flag_spec='-R$libdir'
11040 hardcode_direct=yes
11041 hardcode_shlibpath_var=no
11045 if test "$GCC" = yes; then
11046 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'
11048 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'
11050 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11051 hardcode_libdir_separator=:
11052 hardcode_direct=yes
11054 # hardcode_minus_L: Not really in the search PATH,
11055 # but as the default location of the library.
11056 hardcode_minus_L=yes
11057 export_dynamic_flag_spec='${wl}-E'
11061 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11062 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11064 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11066 if test "$with_gnu_ld" = no; then
11067 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11068 hardcode_libdir_separator=:
11069 hardcode_direct=yes
11070 hardcode_direct_absolute=yes
11071 export_dynamic_flag_spec='${wl}-E'
11072 # hardcode_minus_L: Not really in the search PATH,
11073 # but as the default location of the library.
11074 hardcode_minus_L=yes
11079 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11082 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11085 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11088 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11094 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11097 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11101 # Older versions of the 11.00 compiler do not understand -b yet
11102 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11104 $as_echo_n "checking if $CC understands -b... " >&6; }
11105 if ${lt_cv_prog_compiler__b+:} false; then :
11106 $as_echo_n "(cached) " >&6
11108 lt_cv_prog_compiler__b=no
11109 save_LDFLAGS="$LDFLAGS"
11110 LDFLAGS="$LDFLAGS -b"
11111 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11112 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11113 # The linker can only warn and ignore the option if not recognized
11114 # So say no if there are warnings
11115 if test -s conftest.err; then
11116 # Append any errors to the config.log.
11117 cat conftest.err 1>&5
11118 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11120 if diff conftest.exp conftest.er2 >/dev/null; then
11121 lt_cv_prog_compiler__b=yes
11124 lt_cv_prog_compiler__b=yes
11128 LDFLAGS="$save_LDFLAGS"
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11132 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11134 if test x"$lt_cv_prog_compiler__b" = xyes; then
11135 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11137 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11143 if test "$with_gnu_ld" = no; then
11144 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11145 hardcode_libdir_separator=:
11150 hardcode_shlibpath_var=no
11153 hardcode_direct=yes
11154 hardcode_direct_absolute=yes
11155 export_dynamic_flag_spec='${wl}-E'
11157 # hardcode_minus_L: Not really in the search PATH,
11158 # but as the default location of the library.
11159 hardcode_minus_L=yes
11165 irix5* | irix6* | nonstopux*)
11166 if test "$GCC" = yes; then
11167 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'
11168 # Try to use the -exported_symbol ld option, if it does not
11169 # work, assume that -exports_file does not work either and
11170 # implicitly export all symbols.
11171 # This should be the same for all languages, so no per-tag cache variable.
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11173 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11174 if ${lt_cv_irix_exported_symbol+:} false; then :
11175 $as_echo_n "(cached) " >&6
11177 save_LDFLAGS="$LDFLAGS"
11178 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180 /* end confdefs.h. */
11181 int foo (void) { return 0; }
11183 if ac_fn_c_try_link "$LINENO"; then :
11184 lt_cv_irix_exported_symbol=yes
11186 lt_cv_irix_exported_symbol=no
11188 rm -f core conftest.err conftest.$ac_objext \
11189 conftest$ac_exeext conftest.$ac_ext
11190 LDFLAGS="$save_LDFLAGS"
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11193 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11194 if test "$lt_cv_irix_exported_symbol" = yes; then
11195 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'
11198 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'
11199 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'
11201 archive_cmds_need_lc='no'
11202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11203 hardcode_libdir_separator=:
11205 link_all_deplibs=yes
11208 netbsd* | netbsdelf*-gnu)
11209 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11212 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11214 hardcode_libdir_flag_spec='-R$libdir'
11215 hardcode_direct=yes
11216 hardcode_shlibpath_var=no
11220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11221 hardcode_direct=yes
11222 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11223 hardcode_libdir_separator=:
11224 hardcode_shlibpath_var=no
11231 if test -f /usr/libexec/ld.so; then
11232 hardcode_direct=yes
11233 hardcode_shlibpath_var=no
11234 hardcode_direct_absolute=yes
11235 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11236 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11237 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11238 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11239 export_dynamic_flag_spec='${wl}-E'
11242 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11243 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11244 hardcode_libdir_flag_spec='-R$libdir'
11247 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11248 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11258 hardcode_libdir_flag_spec='-L$libdir'
11259 hardcode_minus_L=yes
11260 allow_undefined_flag=unsupported
11261 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'
11262 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11266 if test "$GCC" = yes; then
11267 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11268 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'
11270 allow_undefined_flag=' -expect_unresolved \*'
11271 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'
11273 archive_cmds_need_lc='no'
11274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11275 hardcode_libdir_separator=:
11278 osf4* | osf5*) # as osf3* with the addition of -msym flag
11279 if test "$GCC" = yes; then
11280 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11281 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'
11282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11284 allow_undefined_flag=' -expect_unresolved \*'
11285 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'
11286 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~
11287 $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'
11289 # Both c and cxx compiler support -rpath directly
11290 hardcode_libdir_flag_spec='-rpath $libdir'
11292 archive_cmds_need_lc='no'
11293 hardcode_libdir_separator=:
11297 no_undefined_flag=' -z defs'
11298 if test "$GCC" = yes; then
11300 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11301 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11302 $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'
11304 case `$CC -V 2>&1` in
11307 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11308 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11309 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11313 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11315 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11319 hardcode_libdir_flag_spec='-R$libdir'
11320 hardcode_shlibpath_var=no
11322 solaris2.[0-5] | solaris2.[0-5].*) ;;
11324 # The compiler driver will combine and reorder linker options,
11325 # but understands `-z linker_flag'. GCC discards it without `$wl',
11326 # but is careful enough not to reorder.
11327 # Supported since Solaris 2.6 (maybe 2.5.1?)
11328 if test "$GCC" = yes; then
11329 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11331 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11335 link_all_deplibs=yes
11339 if test "x$host_vendor" = xsequent; then
11340 # Use $CC to link under sequent, because it throws in some extra .o
11341 # files that make .init and .fini sections work.
11342 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11344 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11346 hardcode_libdir_flag_spec='-L$libdir'
11347 hardcode_direct=yes
11348 hardcode_minus_L=yes
11349 hardcode_shlibpath_var=no
11353 case $host_vendor in
11355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11356 hardcode_direct=yes # is this really true???
11359 ## LD is ld it makes a PLAMLIB
11360 ## CC just makes a GrossModule.
11361 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11362 reload_cmds='$CC -r -o $output$reload_objs'
11366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11367 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11370 runpath_var='LD_RUN_PATH'
11371 hardcode_shlibpath_var=no
11375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11376 hardcode_shlibpath_var=no
11377 export_dynamic_flag_spec='-Bexport'
11381 if test -d /usr/nec; then
11382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11383 hardcode_shlibpath_var=no
11384 runpath_var=LD_RUN_PATH
11385 hardcode_runpath_var=yes
11390 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11391 no_undefined_flag='${wl}-z,text'
11392 archive_cmds_need_lc=no
11393 hardcode_shlibpath_var=no
11394 runpath_var='LD_RUN_PATH'
11396 if test "$GCC" = yes; then
11397 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11398 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11400 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11401 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405 sysv5* | sco3.2v5* | sco5v6*)
11406 # Note: We can NOT use -z defs as we might desire, because we do not
11407 # link with -lc, and that would cause any symbols used from libc to
11408 # always be unresolved, which means just about no library would
11409 # ever link correctly. If we're not using GNU ld we use -z text
11410 # though, which does catch some bad symbols but isn't as heavy-handed
11412 no_undefined_flag='${wl}-z,text'
11413 allow_undefined_flag='${wl}-z,nodefs'
11414 archive_cmds_need_lc=no
11415 hardcode_shlibpath_var=no
11416 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11417 hardcode_libdir_separator=':'
11418 link_all_deplibs=yes
11419 export_dynamic_flag_spec='${wl}-Bexport'
11420 runpath_var='LD_RUN_PATH'
11422 if test "$GCC" = yes; then
11423 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11424 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11426 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11427 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11433 hardcode_libdir_flag_spec='-L$libdir'
11434 hardcode_shlibpath_var=no
11442 if test x$host_vendor = xsni; then
11444 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11445 export_dynamic_flag_spec='${wl}-Blargedynsym'
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11452 $as_echo "$ld_shlibs" >&6; }
11453 test "$ld_shlibs" = no && can_build_shared=no
11455 with_gnu_ld=$with_gnu_ld
11472 # Do we need to explicitly link libc?
11474 case "x$archive_cmds_need_lc" in
11476 # Assume -lc should be added
11477 archive_cmds_need_lc=yes
11479 if test "$enable_shared" = yes && test "$GCC" = yes; then
11480 case $archive_cmds in
11482 # FIXME: we may have to deal with multi-command sequences.
11485 # Test whether the compiler implicitly links with -lc since on some
11486 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11487 # to ld, don't add -lc before -lgcc.
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11489 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11490 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11491 $as_echo_n "(cached) " >&6
11494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11497 (eval $ac_compile) 2>&5
11499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11500 test $ac_status = 0; } 2>conftest.err; then
11503 libobjs=conftest.$ac_objext
11505 wl=$lt_prog_compiler_wl
11506 pic_flag=$lt_prog_compiler_pic
11512 lt_save_allow_undefined_flag=$allow_undefined_flag
11513 allow_undefined_flag=
11514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11515 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11518 test $ac_status = 0; }
11520 lt_cv_archive_cmds_need_lc=no
11522 lt_cv_archive_cmds_need_lc=yes
11524 allow_undefined_flag=$lt_save_allow_undefined_flag
11526 cat conftest.err 1>&5
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11532 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11533 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11692 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11694 if test "$GCC" = yes; then
11696 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11697 *) lt_awk_arg="/^libraries:/" ;;
11700 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11701 *) lt_sed_strip_eq="s,=/,/,g" ;;
11703 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11704 case $lt_search_path_spec in
11706 # if the path contains ";" then we assume it to be the separator
11707 # otherwise default to the standard path separator (i.e. ":") - it is
11708 # assumed that no part of a normal pathname contains ";" but that should
11709 # okay in the real world where ";" in dirpaths is itself problematic.
11710 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11713 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11716 # Ok, now we have the path, separated by spaces, we can step through it
11717 # and add multilib dir if necessary.
11718 lt_tmp_lt_search_path_spec=
11719 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11720 for lt_sys_path in $lt_search_path_spec; do
11721 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11722 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11724 test -d "$lt_sys_path" && \
11725 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11728 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11729 BEGIN {RS=" "; FS="/|\n";} {
11732 for (lt_i = NF; lt_i > 0; lt_i--) {
11733 if ($lt_i != "" && $lt_i != ".") {
11734 if ($lt_i == "..") {
11737 if (lt_count == 0) {
11738 lt_foo="/" $lt_i lt_foo;
11745 if (lt_foo != "") { lt_freq[lt_foo]++; }
11746 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11748 # AWK program above erroneously prepends '/' to C:/dos/paths
11751 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11752 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11754 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11756 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11758 library_names_spec=
11759 libname_spec='lib$name'
11763 postuninstall_cmds=
11767 shlibpath_overrides_runpath=unknown
11769 dynamic_linker="$host_os ld.so"
11770 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11771 need_lib_prefix=unknown
11772 hardcode_into_libs=no
11774 # when you set need_version to no, make sure it does not cause -set_version
11775 # flags to be left without arguments
11776 need_version=unknown
11780 version_type=linux # correct to gnu/linux during the next big refactor
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11782 shlibpath_var=LIBPATH
11784 # AIX 3 has no versioning support, so we append a major version to the name.
11785 soname_spec='${libname}${release}${shared_ext}$major'
11789 version_type=linux # correct to gnu/linux during the next big refactor
11792 hardcode_into_libs=yes
11793 if test "$host_cpu" = ia64; then
11794 # AIX 5 supports IA64
11795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11796 shlibpath_var=LD_LIBRARY_PATH
11798 # With GCC up to 2.95.x, collect2 would create an import file
11799 # for dependence libraries. The import file would start with
11800 # the line `#! .'. This would cause the generated library to
11801 # depend on `.', always an invalid library. This was fixed in
11802 # development snapshots of GCC prior to 3.0.
11804 aix4 | aix4.[01] | aix4.[01].*)
11805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11807 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11810 can_build_shared=no
11814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11815 # soname into executable. Probably we can add versioning support to
11816 # collect2, so additional links can be useful in future.
11817 if test "$aix_use_runtimelinking" = yes; then
11818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11819 # instead of lib<name>.a to let people know that these are not
11820 # typical AIX shared libraries.
11821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11823 # We preserve .a as extension for shared libraries through AIX4.2
11824 # and later when we are not doing run time linking.
11825 library_names_spec='${libname}${release}.a $libname.a'
11826 soname_spec='${libname}${release}${shared_ext}$major'
11828 shlibpath_var=LIBPATH
11835 # Since July 2007 AmigaOS4 officially supports .so libraries.
11836 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11840 library_names_spec='$libname.ixlibrary $libname.a'
11841 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11842 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'
11848 library_names_spec='${libname}${shared_ext}'
11849 dynamic_linker="$host_os ld.so"
11850 shlibpath_var=LIBRARY_PATH
11854 version_type=linux # correct to gnu/linux during the next big refactor
11856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11857 soname_spec='${libname}${release}${shared_ext}$major'
11858 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11859 shlibpath_var=LD_LIBRARY_PATH
11860 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11861 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11862 # the default ld.so.conf also contains /usr/contrib/lib and
11863 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11864 # libtool to hard-code these into programs
11867 cygwin* | mingw* | pw32* | cegcc*)
11868 version_type=windows
11873 case $GCC,$cc_basename in
11876 library_names_spec='$libname.dll.a'
11877 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11878 postinstall_cmds='base_file=`basename \${file}`~
11879 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11880 dldir=$destdir/`dirname \$dlpath`~
11881 test -d \$dldir || mkdir -p \$dldir~
11882 $install_prog $dir/$dlname \$dldir/$dlname~
11883 chmod a+x \$dldir/$dlname~
11884 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11885 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11887 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11888 dlpath=$dir/\$dldll~
11890 shlibpath_overrides_runpath=yes
11894 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11895 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11897 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11900 # MinGW DLLs use traditional 'lib' prefix
11901 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11904 # pw32 DLLs use 'pw' prefix rather than 'lib'
11905 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11908 dynamic_linker='Win32 ld.exe'
11913 libname_spec='$name'
11914 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11915 library_names_spec='${libname}.dll.lib'
11919 sys_lib_search_path_spec=
11922 for lt_path in $LIB
11925 # Let DOS variable expansion print the short 8.3 style file name.
11926 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11927 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11930 # Convert to MSYS style.
11931 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11934 # Convert to unix form, then to dos form, then back to unix form
11935 # but this time dos style (no spaces!) so that the unix form looks
11936 # like /cygdrive/c/PROGRA~1:/cygdr...
11937 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11938 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11939 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11942 sys_lib_search_path_spec="$LIB"
11943 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11944 # It is most probably a Windows format PATH.
11945 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11947 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11949 # FIXME: find the short name or the path components, as spaces are
11950 # common. (e.g. "Program Files" -> "PROGRA~1")
11954 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11955 postinstall_cmds='base_file=`basename \${file}`~
11956 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11957 dldir=$destdir/`dirname \$dlpath`~
11958 test -d \$dldir || mkdir -p \$dldir~
11959 $install_prog $dir/$dlname \$dldir/$dlname'
11960 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11961 dlpath=$dir/\$dldll~
11963 shlibpath_overrides_runpath=yes
11964 dynamic_linker='Win32 link.exe'
11968 # Assume MSVC wrapper
11969 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11970 dynamic_linker='Win32 ld.exe'
11973 # FIXME: first we should search . and the directory the executable is in
11977 darwin* | rhapsody*)
11978 dynamic_linker="$host_os dyld"
11979 version_type=darwin
11982 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11983 soname_spec='${libname}${release}${major}$shared_ext'
11984 shlibpath_overrides_runpath=yes
11985 shlibpath_var=DYLD_LIBRARY_PATH
11986 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11988 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11989 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11993 version_type=linux # correct to gnu/linux during the next big refactor
11996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11997 soname_spec='${libname}${release}${shared_ext}$major'
11998 shlibpath_var=LD_LIBRARY_PATH
12001 freebsd* | dragonfly*)
12002 # DragonFly does not have aout. When/if they implement a new
12003 # versioning mechanism, adjust this.
12004 if test -x /usr/bin/objformat; then
12005 objformat=`/usr/bin/objformat`
12008 freebsd[23].*) objformat=aout ;;
12009 *) objformat=elf ;;
12012 version_type=freebsd-$objformat
12013 case $version_type in
12015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12024 shlibpath_var=LD_LIBRARY_PATH
12027 shlibpath_overrides_runpath=yes
12029 freebsd3.[01]* | freebsdelf3.[01]*)
12030 shlibpath_overrides_runpath=yes
12031 hardcode_into_libs=yes
12033 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12034 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12035 shlibpath_overrides_runpath=no
12036 hardcode_into_libs=yes
12038 *) # from 4.6 on, and DragonFly
12039 shlibpath_overrides_runpath=yes
12040 hardcode_into_libs=yes
12046 version_type=linux # correct to gnu/linux during the next big refactor
12049 dynamic_linker="$host_os runtime_loader"
12050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12051 soname_spec='${libname}${release}${shared_ext}$major'
12052 shlibpath_var=LIBRARY_PATH
12053 shlibpath_overrides_runpath=yes
12054 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12055 hardcode_into_libs=yes
12058 hpux9* | hpux10* | hpux11*)
12059 # Give a soname corresponding to the major version so that dld.sl refuses to
12060 # link against other versions.
12067 hardcode_into_libs=yes
12068 dynamic_linker="$host_os dld.so"
12069 shlibpath_var=LD_LIBRARY_PATH
12070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12072 soname_spec='${libname}${release}${shared_ext}$major'
12073 if test "X$HPUX_IA64_MODE" = X32; then
12074 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12076 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12082 hardcode_into_libs=yes
12083 dynamic_linker="$host_os dld.sl"
12084 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12087 soname_spec='${libname}${release}${shared_ext}$major'
12088 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12089 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12093 dynamic_linker="$host_os dld.sl"
12094 shlibpath_var=SHLIB_PATH
12095 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097 soname_spec='${libname}${release}${shared_ext}$major'
12100 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12101 postinstall_cmds='chmod 555 $lib'
12102 # or fails outright, so override atomically:
12103 install_override_mode=555
12107 version_type=linux # correct to gnu/linux during the next big refactor
12110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12111 soname_spec='${libname}${release}${shared_ext}$major'
12112 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12113 shlibpath_var=LD_LIBRARY_PATH
12114 shlibpath_overrides_runpath=no
12115 hardcode_into_libs=yes
12118 irix5* | irix6* | nonstopux*)
12120 nonstopux*) version_type=nonstopux ;;
12122 if test "$lt_cv_prog_gnu_ld" = yes; then
12123 version_type=linux # correct to gnu/linux during the next big refactor
12130 soname_spec='${libname}${release}${shared_ext}$major'
12131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12133 irix5* | nonstopux*)
12134 libsuff= shlibsuff=
12137 case $LD in # libtool.m4 will add one of these switches to LD
12138 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12139 libsuff= shlibsuff= libmagic=32-bit;;
12140 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12141 libsuff=32 shlibsuff=N32 libmagic=N32;;
12142 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12143 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12144 *) libsuff= shlibsuff= libmagic=never-match;;
12148 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12149 shlibpath_overrides_runpath=no
12150 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12151 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12152 hardcode_into_libs=yes
12155 # No shared lib support for Linux oldld, aout, or coff.
12156 linux*oldld* | linux*aout* | linux*coff*)
12160 # This must be glibc/ELF.
12161 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12162 version_type=linux # correct to gnu/linux during the next big refactor
12165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12166 soname_spec='${libname}${release}${shared_ext}$major'
12167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12168 shlibpath_var=LD_LIBRARY_PATH
12169 shlibpath_overrides_runpath=no
12171 # Some binutils ld are patched to set DT_RUNPATH
12172 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12173 $as_echo_n "(cached) " >&6
12175 lt_cv_shlibpath_overrides_runpath=no
12176 save_LDFLAGS=$LDFLAGS
12177 save_libdir=$libdir
12178 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12179 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12191 if ac_fn_c_try_link "$LINENO"; then :
12192 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12193 lt_cv_shlibpath_overrides_runpath=yes
12196 rm -f core conftest.err conftest.$ac_objext \
12197 conftest$ac_exeext conftest.$ac_ext
12198 LDFLAGS=$save_LDFLAGS
12199 libdir=$save_libdir
12203 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12205 # This implies no fast_install, which is unacceptable.
12206 # Some rework will be needed to allow for fast_install
12207 # before this can be enabled.
12208 hardcode_into_libs=yes
12210 # Append ld.so.conf contents to the search path
12211 if test -f /etc/ld.so.conf; then
12212 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' ' '`
12213 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12216 # We used to test for /lib/ld.so.1 and disable shared libraries on
12217 # powerpc, because MkLinux only supported shared libraries with the
12218 # GNU dynamic linker. Since this was broken with cross compilers,
12219 # most powerpc-linux boxes support dynamic linking these days and
12220 # people can always --disable-shared, the test was removed, and we
12221 # assume the GNU/Linux dynamic linker is in use.
12222 dynamic_linker='GNU/Linux ld.so'
12229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12230 soname_spec='${libname}${release}${shared_ext}$major'
12231 shlibpath_var=LD_LIBRARY_PATH
12232 shlibpath_overrides_runpath=no
12233 hardcode_into_libs=yes
12234 dynamic_linker='NetBSD ld.elf_so'
12241 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12244 dynamic_linker='NetBSD (a.out) ld.so'
12246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12247 soname_spec='${libname}${release}${shared_ext}$major'
12248 dynamic_linker='NetBSD ld.elf_so'
12250 shlibpath_var=LD_LIBRARY_PATH
12251 shlibpath_overrides_runpath=yes
12252 hardcode_into_libs=yes
12256 version_type=linux # correct to gnu/linux during the next big refactor
12257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12258 shlibpath_var=LD_LIBRARY_PATH
12259 shlibpath_overrides_runpath=yes
12266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12267 soname_spec='${libname}${release}${shared_ext}$major'
12268 shlibpath_var=LD_LIBRARY_PATH
12269 shlibpath_overrides_runpath=no
12270 hardcode_into_libs=yes
12271 dynamic_linker='ldqnx.so'
12276 sys_lib_dlsearch_path_spec="/usr/lib"
12278 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12280 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12281 *) need_version=no ;;
12283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12285 shlibpath_var=LD_LIBRARY_PATH
12286 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12288 openbsd2.[89] | openbsd2.[89].*)
12289 shlibpath_overrides_runpath=no
12292 shlibpath_overrides_runpath=yes
12296 shlibpath_overrides_runpath=yes
12301 libname_spec='$name'
12304 library_names_spec='$libname${shared_ext} $libname.a'
12305 dynamic_linker='OS/2 ld.exe'
12306 shlibpath_var=LIBPATH
12309 osf3* | osf4* | osf5*)
12313 soname_spec='${libname}${release}${shared_ext}$major'
12314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12315 shlibpath_var=LD_LIBRARY_PATH
12316 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12317 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12325 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 shlibpath_overrides_runpath=yes
12332 hardcode_into_libs=yes
12333 # ldd complains unless libraries are executable
12334 postinstall_cmds='chmod +x $lib'
12339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12340 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12341 shlibpath_var=LD_LIBRARY_PATH
12342 shlibpath_overrides_runpath=yes
12343 if test "$with_gnu_ld" = yes; then
12350 version_type=linux # correct to gnu/linux during the next big refactor
12351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12352 soname_spec='${libname}${release}${shared_ext}$major'
12353 shlibpath_var=LD_LIBRARY_PATH
12354 case $host_vendor in
12356 shlibpath_overrides_runpath=no
12358 runpath_var=LD_RUN_PATH
12366 shlibpath_overrides_runpath=no
12367 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12373 if test -d /usr/nec ;then
12374 version_type=linux # correct to gnu/linux during the next big refactor
12375 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12376 soname_spec='$libname${shared_ext}.$major'
12377 shlibpath_var=LD_LIBRARY_PATH
12381 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12382 version_type=freebsd-elf
12385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12386 soname_spec='${libname}${release}${shared_ext}$major'
12387 shlibpath_var=LD_LIBRARY_PATH
12388 shlibpath_overrides_runpath=yes
12389 hardcode_into_libs=yes
12390 if test "$with_gnu_ld" = yes; then
12391 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12393 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12396 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12400 sys_lib_dlsearch_path_spec='/usr/lib'
12404 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12405 version_type=linux # correct to gnu/linux during the next big refactor
12408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12409 shlibpath_var=LD_LIBRARY_PATH
12410 shlibpath_overrides_runpath=no
12411 hardcode_into_libs=yes
12415 version_type=linux # correct to gnu/linux during the next big refactor
12416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12417 soname_spec='${libname}${release}${shared_ext}$major'
12418 shlibpath_var=LD_LIBRARY_PATH
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12426 $as_echo "$dynamic_linker" >&6; }
12427 test "$dynamic_linker" = no && can_build_shared=no
12429 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12430 if test "$GCC" = yes; then
12431 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12434 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12435 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12437 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12438 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12533 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12535 if test -n "$hardcode_libdir_flag_spec" ||
12536 test -n "$runpath_var" ||
12537 test "X$hardcode_automatic" = "Xyes" ; then
12539 # We can hardcode non-existent directories.
12540 if test "$hardcode_direct" != no &&
12541 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12542 # have to relink, otherwise we might link with an installed library
12543 # when we should be linking with a yet-to-be-installed one
12544 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12545 test "$hardcode_minus_L" != no; then
12546 # Linking always hardcodes the temporary library directory.
12547 hardcode_action=relink
12549 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12550 hardcode_action=immediate
12553 # We cannot hardcode anything, or else we can only hardcode existing
12555 hardcode_action=unsupported
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12558 $as_echo "$hardcode_action" >&6; }
12560 if test "$hardcode_action" = relink ||
12561 test "$inherit_rpath" = yes; then
12562 # Fast installation is not supported
12563 enable_fast_install=no
12564 elif test "$shlibpath_overrides_runpath" = yes ||
12565 test "$enable_shared" = no; then
12566 # Fast installation is not necessary
12567 enable_fast_install=needless
12575 if test "x$enable_dlopen" != xyes; then
12576 enable_dlopen=unknown
12577 enable_dlopen_self=unknown
12578 enable_dlopen_self_static=unknown
12585 lt_cv_dlopen="load_add_on"
12587 lt_cv_dlopen_self=yes
12590 mingw* | pw32* | cegcc*)
12591 lt_cv_dlopen="LoadLibrary"
12596 lt_cv_dlopen="dlopen"
12601 # if libdl is installed we need to link against it
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12603 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12604 if ${ac_cv_lib_dl_dlopen+:} false; then :
12605 $as_echo_n "(cached) " >&6
12607 ac_check_lib_save_LIBS=$LIBS
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12612 /* Override any GCC internal prototype to avoid an error.
12613 Use char because int might match the return type of a GCC
12614 builtin and then its argument prototype would still apply. */
12627 if ac_fn_c_try_link "$LINENO"; then :
12628 ac_cv_lib_dl_dlopen=yes
12630 ac_cv_lib_dl_dlopen=no
12632 rm -f core conftest.err conftest.$ac_objext \
12633 conftest$ac_exeext conftest.$ac_ext
12634 LIBS=$ac_check_lib_save_LIBS
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12637 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12638 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12642 lt_cv_dlopen="dyld"
12644 lt_cv_dlopen_self=yes
12651 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12652 if test "x$ac_cv_func_shl_load" = xyes; then :
12653 lt_cv_dlopen="shl_load"
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12656 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12657 if ${ac_cv_lib_dld_shl_load+:} false; then :
12658 $as_echo_n "(cached) " >&6
12660 ac_check_lib_save_LIBS=$LIBS
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12665 /* Override any GCC internal prototype to avoid an error.
12666 Use char because int might match the return type of a GCC
12667 builtin and then its argument prototype would still apply. */
12675 return shl_load ();
12680 if ac_fn_c_try_link "$LINENO"; then :
12681 ac_cv_lib_dld_shl_load=yes
12683 ac_cv_lib_dld_shl_load=no
12685 rm -f core conftest.err conftest.$ac_objext \
12686 conftest$ac_exeext conftest.$ac_ext
12687 LIBS=$ac_check_lib_save_LIBS
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12690 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12691 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12692 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12694 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12695 if test "x$ac_cv_func_dlopen" = xyes; then :
12696 lt_cv_dlopen="dlopen"
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12699 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12700 if ${ac_cv_lib_dl_dlopen+:} false; then :
12701 $as_echo_n "(cached) " >&6
12703 ac_check_lib_save_LIBS=$LIBS
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h. */
12708 /* Override any GCC internal prototype to avoid an error.
12709 Use char because int might match the return type of a GCC
12710 builtin and then its argument prototype would still apply. */
12723 if ac_fn_c_try_link "$LINENO"; then :
12724 ac_cv_lib_dl_dlopen=yes
12726 ac_cv_lib_dl_dlopen=no
12728 rm -f core conftest.err conftest.$ac_objext \
12729 conftest$ac_exeext conftest.$ac_ext
12730 LIBS=$ac_check_lib_save_LIBS
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12733 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12734 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12735 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12738 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12739 if ${ac_cv_lib_svld_dlopen+:} false; then :
12740 $as_echo_n "(cached) " >&6
12742 ac_check_lib_save_LIBS=$LIBS
12743 LIBS="-lsvld $LIBS"
12744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745 /* end confdefs.h. */
12747 /* Override any GCC internal prototype to avoid an error.
12748 Use char because int might match the return type of a GCC
12749 builtin and then its argument prototype would still apply. */
12762 if ac_fn_c_try_link "$LINENO"; then :
12763 ac_cv_lib_svld_dlopen=yes
12765 ac_cv_lib_svld_dlopen=no
12767 rm -f core conftest.err conftest.$ac_objext \
12768 conftest$ac_exeext conftest.$ac_ext
12769 LIBS=$ac_check_lib_save_LIBS
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12772 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12773 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12774 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12777 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12778 if ${ac_cv_lib_dld_dld_link+:} false; then :
12779 $as_echo_n "(cached) " >&6
12781 ac_check_lib_save_LIBS=$LIBS
12783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h. */
12786 /* Override any GCC internal prototype to avoid an error.
12787 Use char because int might match the return type of a GCC
12788 builtin and then its argument prototype would still apply. */
12796 return dld_link ();
12801 if ac_fn_c_try_link "$LINENO"; then :
12802 ac_cv_lib_dld_dld_link=yes
12804 ac_cv_lib_dld_dld_link=no
12806 rm -f core conftest.err conftest.$ac_objext \
12807 conftest$ac_exeext conftest.$ac_ext
12808 LIBS=$ac_check_lib_save_LIBS
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12811 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12812 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12813 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12834 if test "x$lt_cv_dlopen" != xno; then
12840 case $lt_cv_dlopen in
12842 save_CPPFLAGS="$CPPFLAGS"
12843 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12845 save_LDFLAGS="$LDFLAGS"
12846 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12849 LIBS="$lt_cv_dlopen_libs $LIBS"
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12852 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12853 if ${lt_cv_dlopen_self+:} false; then :
12854 $as_echo_n "(cached) " >&6
12856 if test "$cross_compiling" = yes; then :
12857 lt_cv_dlopen_self=cross
12859 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12860 lt_status=$lt_dlunknown
12861 cat > conftest.$ac_ext <<_LT_EOF
12862 #line $LINENO "configure"
12863 #include "confdefs.h"
12872 # define LT_DLGLOBAL RTLD_GLOBAL
12875 # define LT_DLGLOBAL DL_GLOBAL
12877 # define LT_DLGLOBAL 0
12881 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12882 find out it does not work in some platform. */
12883 #ifndef LT_DLLAZY_OR_NOW
12885 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12888 # define LT_DLLAZY_OR_NOW DL_LAZY
12891 # define LT_DLLAZY_OR_NOW RTLD_NOW
12894 # define LT_DLLAZY_OR_NOW DL_NOW
12896 # define LT_DLLAZY_OR_NOW 0
12903 /* When -fvisbility=hidden is used, assume the code has been annotated
12904 correspondingly for the symbols needed. */
12905 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12906 int fnord () __attribute__((visibility("default")));
12909 int fnord () { return 42; }
12912 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12913 int status = $lt_dlunknown;
12917 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12920 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12921 else puts (dlerror ());
12923 /* dlclose (self); */
12931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12932 (eval $ac_link) 2>&5
12934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12935 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12936 (./conftest; exit; ) >&5 2>/dev/null
12938 case x$lt_status in
12939 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12940 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12941 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12944 # compilation failed
12945 lt_cv_dlopen_self=no
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12953 $as_echo "$lt_cv_dlopen_self" >&6; }
12955 if test "x$lt_cv_dlopen_self" = xyes; then
12956 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12958 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12959 if ${lt_cv_dlopen_self_static+:} false; then :
12960 $as_echo_n "(cached) " >&6
12962 if test "$cross_compiling" = yes; then :
12963 lt_cv_dlopen_self_static=cross
12965 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12966 lt_status=$lt_dlunknown
12967 cat > conftest.$ac_ext <<_LT_EOF
12968 #line $LINENO "configure"
12969 #include "confdefs.h"
12978 # define LT_DLGLOBAL RTLD_GLOBAL
12981 # define LT_DLGLOBAL DL_GLOBAL
12983 # define LT_DLGLOBAL 0
12987 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12988 find out it does not work in some platform. */
12989 #ifndef LT_DLLAZY_OR_NOW
12991 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12994 # define LT_DLLAZY_OR_NOW DL_LAZY
12997 # define LT_DLLAZY_OR_NOW RTLD_NOW
13000 # define LT_DLLAZY_OR_NOW DL_NOW
13002 # define LT_DLLAZY_OR_NOW 0
13009 /* When -fvisbility=hidden is used, assume the code has been annotated
13010 correspondingly for the symbols needed. */
13011 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13012 int fnord () __attribute__((visibility("default")));
13015 int fnord () { return 42; }
13018 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13019 int status = $lt_dlunknown;
13023 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13026 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13027 else puts (dlerror ());
13029 /* dlclose (self); */
13037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13038 (eval $ac_link) 2>&5
13040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13041 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13042 (./conftest; exit; ) >&5 2>/dev/null
13044 case x$lt_status in
13045 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13046 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13047 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13050 # compilation failed
13051 lt_cv_dlopen_self_static=no
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13059 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13062 CPPFLAGS="$save_CPPFLAGS"
13063 LDFLAGS="$save_LDFLAGS"
13068 case $lt_cv_dlopen_self in
13069 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13070 *) enable_dlopen_self=unknown ;;
13073 case $lt_cv_dlopen_self_static in
13074 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13075 *) enable_dlopen_self_static=unknown ;;
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13098 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13099 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13100 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13101 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13103 $as_echo "yes" >&6; }
13105 # FIXME - insert some real tests, host_os isn't really good enough
13108 if test -n "$STRIP" ; then
13109 striplib="$STRIP -x"
13110 old_striplib="$STRIP -S"
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13112 $as_echo "yes" >&6; }
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115 $as_echo "no" >&6; }
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120 $as_echo "no" >&6; }
13136 # Report which library types will actually be built
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13138 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13140 $as_echo "$can_build_shared" >&6; }
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13143 $as_echo_n "checking whether to build shared libraries... " >&6; }
13144 test "$can_build_shared" = "no" && enable_shared=no
13146 # On AIX, shared libraries and static libraries use the same namespace, and
13147 # are all built from PIC.
13150 test "$enable_shared" = yes && enable_static=no
13151 if test -n "$RANLIB"; then
13152 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13153 postinstall_cmds='$RANLIB $lib'
13158 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13159 test "$enable_shared" = yes && enable_static=no
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13164 $as_echo "$enable_shared" >&6; }
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13167 $as_echo_n "checking whether to build static libraries... " >&6; }
13168 # Make sure either enable_shared or enable_static is yes.
13169 test "$enable_shared" = yes || enable_static=yes
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13171 $as_echo "$enable_static" >&6; }
13178 ac_cpp='$CPP $CPPFLAGS'
13179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13185 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13186 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13187 (test "X$CXX" != "Xg++"))) ; then
13189 ac_cpp='$CXXCPP $CPPFLAGS'
13190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13194 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13195 if test -z "$CXXCPP"; then
13196 if ${ac_cv_prog_CXXCPP+:} false; then :
13197 $as_echo_n "(cached) " >&6
13199 # Double quotes because CXXCPP needs to be expanded
13200 for CXXCPP in "$CXX -E" "/lib/cpp"
13202 ac_preproc_ok=false
13203 for ac_cxx_preproc_warn_flag in '' yes
13205 # Use a header file that comes with gcc, so configuring glibc
13206 # with a fresh cross-compiler works.
13207 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13208 # <limits.h> exists even on freestanding compilers.
13209 # On the NeXT, cc -E runs the code through the compiler's parser,
13210 # not just through cpp. "Syntax error" is here to catch this case.
13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13214 # include <limits.h>
13216 # include <assert.h>
13220 if ac_fn_cxx_try_cpp "$LINENO"; then :
13223 # Broken: fails on valid input.
13226 rm -f conftest.err conftest.i conftest.$ac_ext
13228 # OK, works on sane cases. Now check whether nonexistent headers
13229 # can be detected and how.
13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h. */
13232 #include <ac_nonexistent.h>
13234 if ac_fn_cxx_try_cpp "$LINENO"; then :
13235 # Broken: success on invalid input.
13238 # Passes both tests.
13242 rm -f conftest.err conftest.i conftest.$ac_ext
13245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13246 rm -f conftest.i conftest.err conftest.$ac_ext
13247 if $ac_preproc_ok; then :
13252 ac_cv_prog_CXXCPP=$CXXCPP
13255 CXXCPP=$ac_cv_prog_CXXCPP
13257 ac_cv_prog_CXXCPP=$CXXCPP
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13260 $as_echo "$CXXCPP" >&6; }
13261 ac_preproc_ok=false
13262 for ac_cxx_preproc_warn_flag in '' yes
13264 # Use a header file that comes with gcc, so configuring glibc
13265 # with a fresh cross-compiler works.
13266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13267 # <limits.h> exists even on freestanding compilers.
13268 # On the NeXT, cc -E runs the code through the compiler's parser,
13269 # not just through cpp. "Syntax error" is here to catch this case.
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13273 # include <limits.h>
13275 # include <assert.h>
13279 if ac_fn_cxx_try_cpp "$LINENO"; then :
13282 # Broken: fails on valid input.
13285 rm -f conftest.err conftest.i conftest.$ac_ext
13287 # OK, works on sane cases. Now check whether nonexistent headers
13288 # can be detected and how.
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13291 #include <ac_nonexistent.h>
13293 if ac_fn_cxx_try_cpp "$LINENO"; then :
13294 # Broken: success on invalid input.
13297 # Passes both tests.
13301 rm -f conftest.err conftest.i conftest.$ac_ext
13304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13305 rm -f conftest.i conftest.err conftest.$ac_ext
13306 if $ac_preproc_ok; then :
13309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13311 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13312 See \`config.log' for more details" "$LINENO" 5; }
13316 ac_cpp='$CPP $CPPFLAGS'
13317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13322 _lt_caught_CXX_error=yes
13326 ac_cpp='$CXXCPP $CPPFLAGS'
13327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13331 archive_cmds_need_lc_CXX=no
13332 allow_undefined_flag_CXX=
13333 always_export_symbols_CXX=no
13334 archive_expsym_cmds_CXX=
13335 compiler_needs_object_CXX=no
13336 export_dynamic_flag_spec_CXX=
13337 hardcode_direct_CXX=no
13338 hardcode_direct_absolute_CXX=no
13339 hardcode_libdir_flag_spec_CXX=
13340 hardcode_libdir_separator_CXX=
13341 hardcode_minus_L_CXX=no
13342 hardcode_shlibpath_var_CXX=unsupported
13343 hardcode_automatic_CXX=no
13344 inherit_rpath_CXX=no
13346 module_expsym_cmds_CXX=
13347 link_all_deplibs_CXX=unknown
13348 old_archive_cmds_CXX=$old_archive_cmds
13349 reload_flag_CXX=$reload_flag
13350 reload_cmds_CXX=$reload_cmds
13351 no_undefined_flag_CXX=
13352 whole_archive_flag_spec_CXX=
13353 enable_shared_with_static_runtimes_CXX=no
13355 # Source file extension for C++ test sources.
13358 # Object file extension for compiled C++ test sources.
13362 # No sense in running all these tests if we already determined that
13363 # the CXX compiler isn't working. Some variables (like enable_shared)
13364 # are currently assumed to apply to all compilers on this platform,
13365 # and will be corrupted by setting them based on a non-working compiler.
13366 if test "$_lt_caught_CXX_error" != yes; then
13367 # Code to be used in simple compile tests
13368 lt_simple_compile_test_code="int some_variable = 0;"
13370 # Code to be used in simple link tests
13371 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13373 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13380 # If no C compiler was specified, use CC.
13383 # If no C compiler flags were specified, use CFLAGS.
13384 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13386 # Allow CC to be a program name with arguments.
13390 # save warnings/boilerplate of simple test code
13391 ac_outfile=conftest.$ac_objext
13392 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13393 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13394 _lt_compiler_boilerplate=`cat conftest.err`
13397 ac_outfile=conftest.$ac_objext
13398 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13399 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13400 _lt_linker_boilerplate=`cat conftest.err`
13404 # Allow CC to be a program name with arguments.
13406 lt_save_CFLAGS=$CFLAGS
13410 lt_save_with_gnu_ld=$with_gnu_ld
13411 lt_save_path_LD=$lt_cv_path_LD
13412 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13413 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13415 $as_unset lt_cv_prog_gnu_ld
13417 if test -n "${lt_cv_path_LDCXX+set}"; then
13418 lt_cv_path_LD=$lt_cv_path_LDCXX
13420 $as_unset lt_cv_path_LD
13422 test -z "${LDCXX+set}" || LD=$LDCXX
13427 for cc_temp in $compiler""; do
13429 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13430 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13435 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13438 if test -n "$compiler"; then
13439 # We don't want -fno-exception when compiling C++ code, so set the
13440 # no_builtin_flag separately
13441 if test "$GXX" = yes; then
13442 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13444 lt_prog_compiler_no_builtin_flag_CXX=
13447 if test "$GXX" = yes; then
13448 # Set up default GNU C++ configuration
13452 # Check whether --with-gnu-ld was given.
13453 if test "${with_gnu_ld+set}" = set; then :
13454 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13460 if test "$GCC" = yes; then
13461 # Check if gcc -print-prog-name=ld gives a path.
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13463 $as_echo_n "checking for ld used by $CC... " >&6; }
13466 # gcc leaves a trailing carriage return which upsets mingw
13467 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13469 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13472 # Accept absolute paths.
13474 re_direlt='/[^/][^/]*/\.\./'
13475 # Canonicalize the pathname of ld
13476 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13477 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13478 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13480 test -z "$LD" && LD="$ac_prog"
13483 # If it fails, then pretend we aren't using GCC.
13487 # If it is relative, then search for the first ld in PATH.
13488 with_gnu_ld=unknown
13491 elif test "$with_gnu_ld" = yes; then
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13493 $as_echo_n "checking for GNU ld... " >&6; }
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13496 $as_echo_n "checking for non-GNU ld... " >&6; }
13498 if ${lt_cv_path_LD+:} false; then :
13499 $as_echo_n "(cached) " >&6
13501 if test -z "$LD"; then
13502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13503 for ac_dir in $PATH; do
13505 test -z "$ac_dir" && ac_dir=.
13506 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13507 lt_cv_path_LD="$ac_dir/$ac_prog"
13508 # Check to see if the program is GNU ld. I'd rather use --version,
13509 # but apparently some variants of GNU ld only accept -v.
13510 # Break only if it was the GNU/non-GNU ld that we prefer.
13511 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13512 *GNU* | *'with BFD'*)
13513 test "$with_gnu_ld" != no && break
13516 test "$with_gnu_ld" != yes && break
13523 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13527 LD="$lt_cv_path_LD"
13528 if test -n "$LD"; then
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13530 $as_echo "$LD" >&6; }
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533 $as_echo "no" >&6; }
13535 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13537 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13538 if ${lt_cv_prog_gnu_ld+:} false; then :
13539 $as_echo_n "(cached) " >&6
13541 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13542 case `$LD -v 2>&1 </dev/null` in
13543 *GNU* | *'with BFD'*)
13544 lt_cv_prog_gnu_ld=yes
13547 lt_cv_prog_gnu_ld=no
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13552 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13553 with_gnu_ld=$lt_cv_prog_gnu_ld
13561 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13562 # archiving commands below assume that GNU ld is being used.
13563 if test "$with_gnu_ld" = yes; then
13564 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13565 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'
13567 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13568 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13570 # If archive_cmds runs LD, not CC, wlarc should be empty
13571 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13572 # investigate it a little bit more. (MM)
13575 # ancient GNU ld didn't support --whole-archive et. al.
13576 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13577 $GREP 'no-whole-archive' > /dev/null; then
13578 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13580 whole_archive_flag_spec_CXX=
13586 # A generic and very simple default shared library creation
13587 # command for GNU C++ for the case where it uses the native
13588 # linker, instead of GNU ld. If possible, this setting should
13589 # overridden to take advantage of the native linker features on
13590 # the platform it is being used on.
13591 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13594 # Commands to make compiler produce verbose output that lists
13595 # what "hidden" libraries, object files and flags are used when
13596 # linking a shared library.
13597 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13605 # PORTME: fill in a description of your system's C++ link characteristics
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13607 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13611 # FIXME: insert proper C++ library support
13615 if test "$host_cpu" = ia64; then
13616 # On IA64, the linker does run time linking by default, so we don't
13617 # have to do anything special.
13618 aix_use_runtimelinking=no
13619 exp_sym_flag='-Bexport'
13622 aix_use_runtimelinking=no
13624 # Test if we are trying to use run time linking or normal
13625 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13626 # need to do runtime linking.
13627 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13628 for ld_flag in $LDFLAGS; do
13631 aix_use_runtimelinking=yes
13639 exp_sym_flag='-bexport'
13640 no_entry_flag='-bnoentry'
13643 # When large executables or shared objects are built, AIX ld can
13644 # have problems creating the table of contents. If linking a library
13645 # or program results in "error TOC overflow" add -mminimal-toc to
13646 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13647 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13649 archive_cmds_CXX=''
13650 hardcode_direct_CXX=yes
13651 hardcode_direct_absolute_CXX=yes
13652 hardcode_libdir_separator_CXX=':'
13653 link_all_deplibs_CXX=yes
13654 file_list_spec_CXX='${wl}-f,'
13656 if test "$GXX" = yes; then
13657 case $host_os in aix4.[012]|aix4.[012].*)
13658 # We only want to do this on AIX 4.2 and lower, the check
13659 # below for broken collect2 doesn't work under 4.3+
13660 collect2name=`${CC} -print-prog-name=collect2`
13661 if test -f "$collect2name" &&
13662 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13664 # We have reworked collect2
13667 # We have old collect2
13668 hardcode_direct_CXX=unsupported
13669 # It fails to find uninstalled libraries when the uninstalled
13670 # path is not listed in the libpath. Setting hardcode_minus_L
13671 # to unsupported forces relinking
13672 hardcode_minus_L_CXX=yes
13673 hardcode_libdir_flag_spec_CXX='-L$libdir'
13674 hardcode_libdir_separator_CXX=
13677 shared_flag='-shared'
13678 if test "$aix_use_runtimelinking" = yes; then
13679 shared_flag="$shared_flag "'${wl}-G'
13683 if test "$host_cpu" = ia64; then
13684 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13685 # chokes on -Wl,-G. The following line is correct:
13688 if test "$aix_use_runtimelinking" = yes; then
13689 shared_flag='${wl}-G'
13691 shared_flag='${wl}-bM:SRE'
13696 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13697 # It seems that -bexpall does not export symbols beginning with
13698 # underscore (_), so it is better to generate a list of symbols to
13700 always_export_symbols_CXX=yes
13701 if test "$aix_use_runtimelinking" = yes; then
13702 # Warning - without using the other runtime loading flags (-brtl),
13703 # -berok will link without error, but may produce a broken library.
13704 allow_undefined_flag_CXX='-berok'
13705 # Determine the default libpath from the value encoded in an empty
13707 if test "${lt_cv_aix_libpath+set}" = set; then
13708 aix_libpath=$lt_cv_aix_libpath
13710 if ${lt_cv_aix_libpath__CXX+:} false; then :
13711 $as_echo_n "(cached) " >&6
13713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714 /* end confdefs.h. */
13724 if ac_fn_cxx_try_link "$LINENO"; then :
13726 lt_aix_libpath_sed='
13727 /Import File Strings/,/^$/ {
13729 s/^0 *\([^ ]*\) *$/\1/
13733 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13734 # Check for a 64-bit object if we didn't find anything.
13735 if test -z "$lt_cv_aix_libpath__CXX"; then
13736 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13739 rm -f core conftest.err conftest.$ac_objext \
13740 conftest$ac_exeext conftest.$ac_ext
13741 if test -z "$lt_cv_aix_libpath__CXX"; then
13742 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13747 aix_libpath=$lt_cv_aix_libpath__CXX
13750 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13752 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"
13754 if test "$host_cpu" = ia64; then
13755 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13756 allow_undefined_flag_CXX="-z nodefs"
13757 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"
13759 # Determine the default libpath from the value encoded in an
13760 # empty executable.
13761 if test "${lt_cv_aix_libpath+set}" = set; then
13762 aix_libpath=$lt_cv_aix_libpath
13764 if ${lt_cv_aix_libpath__CXX+:} false; then :
13765 $as_echo_n "(cached) " >&6
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13778 if ac_fn_cxx_try_link "$LINENO"; then :
13780 lt_aix_libpath_sed='
13781 /Import File Strings/,/^$/ {
13783 s/^0 *\([^ ]*\) *$/\1/
13787 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13788 # Check for a 64-bit object if we didn't find anything.
13789 if test -z "$lt_cv_aix_libpath__CXX"; then
13790 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13793 rm -f core conftest.err conftest.$ac_objext \
13794 conftest$ac_exeext conftest.$ac_ext
13795 if test -z "$lt_cv_aix_libpath__CXX"; then
13796 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13801 aix_libpath=$lt_cv_aix_libpath__CXX
13804 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13805 # Warning - without using the other run time loading flags,
13806 # -berok will link without error, but may produce a broken library.
13807 no_undefined_flag_CXX=' ${wl}-bernotok'
13808 allow_undefined_flag_CXX=' ${wl}-berok'
13809 if test "$with_gnu_ld" = yes; then
13810 # We only use this code for GNU lds that support --whole-archive.
13811 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13813 # Exported symbols can be pulled into shared objects from archives
13814 whole_archive_flag_spec_CXX='$convenience'
13816 archive_cmds_need_lc_CXX=yes
13817 # This is similar to how AIX traditionally builds its shared
13819 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'
13825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13826 allow_undefined_flag_CXX=unsupported
13827 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13828 # support --undefined. This deserves some investigation. FIXME
13829 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13836 case $cc_basename in
13838 # FIXME: insert proper C++ library support
13844 cygwin* | mingw* | pw32* | cegcc*)
13845 case $GXX,$cc_basename in
13848 # hardcode_libdir_flag_spec is actually meaningless, as there is
13849 # no search path for DLLs.
13850 hardcode_libdir_flag_spec_CXX=' '
13851 allow_undefined_flag_CXX=unsupported
13852 always_export_symbols_CXX=yes
13853 file_list_spec_CXX='@'
13854 # Tell ltmain to make .lib files, not .a files.
13856 # Tell ltmain to make .dll files, not .so files.
13858 # FIXME: Setting linknames here is a bad hack.
13859 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13860 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13861 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13863 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13865 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13867 # The linker will not automatically build a static lib if we build a DLL.
13868 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13869 enable_shared_with_static_runtimes_CXX=yes
13871 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13872 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13873 lt_tool_outputfile="@TOOL_OUTPUT@"~
13874 case $lt_outputfile in
13877 lt_outputfile="$lt_outputfile.exe"
13878 lt_tool_outputfile="$lt_tool_outputfile.exe"
13881 func_to_tool_file "$lt_outputfile"~
13882 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13883 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13884 $RM "$lt_outputfile.manifest";
13889 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13890 # as there is no search path for DLLs.
13891 hardcode_libdir_flag_spec_CXX='-L$libdir'
13892 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13893 allow_undefined_flag_CXX=unsupported
13894 always_export_symbols_CXX=no
13895 enable_shared_with_static_runtimes_CXX=yes
13897 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13898 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'
13899 # If the export-symbols file already is a .def file (1st line
13900 # is EXPORTS), use it as is; otherwise, prepend...
13901 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13902 cp $export_symbols $output_objdir/$soname.def;
13904 echo EXPORTS > $output_objdir/$soname.def;
13905 cat $export_symbols >> $output_objdir/$soname.def;
13907 $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'
13914 darwin* | rhapsody*)
13917 archive_cmds_need_lc_CXX=no
13918 hardcode_direct_CXX=no
13919 hardcode_automatic_CXX=yes
13920 hardcode_shlibpath_var_CXX=unsupported
13921 if test "$lt_cv_ld_force_load" = "yes"; then
13922 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\"`'
13925 whole_archive_flag_spec_CXX=''
13927 link_all_deplibs_CXX=yes
13928 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13929 case $cc_basename in
13930 ifort*) _lt_dar_can_shared=yes ;;
13931 *) _lt_dar_can_shared=$GCC ;;
13933 if test "$_lt_dar_can_shared" = "yes"; then
13934 output_verbose_link_cmd=func_echo_all
13935 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}"
13936 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13937 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}"
13938 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}"
13939 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13940 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}"
13941 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}"
13951 case $cc_basename in
13953 # FIXME: insert proper C++ library support
13957 # Green Hills C++ Compiler
13958 # FIXME: insert proper C++ library support
13962 # FIXME: insert proper C++ library support
13969 # C++ shared libraries reported to be fairly broken before
13975 archive_cmds_need_lc_CXX=no
13978 freebsd* | dragonfly*)
13979 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13985 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13986 link_all_deplibs_CXX=yes
13990 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13991 hardcode_libdir_separator_CXX=:
13992 export_dynamic_flag_spec_CXX='${wl}-E'
13993 hardcode_direct_CXX=yes
13994 hardcode_minus_L_CXX=yes # Not in the search PATH,
13995 # but as the default
13996 # location of the library.
13998 case $cc_basename in
14000 # FIXME: insert proper C++ library support
14004 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'
14005 # Commands to make compiler produce verbose output that lists
14006 # what "hidden" libraries, object files and flags are used when
14007 # linking a shared library.
14009 # There doesn't appear to be a way to prevent this compiler from
14010 # explicitly linking system object files so we need to strip them
14011 # from the output so that they don't get included in the library
14013 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"'
14016 if test "$GXX" = yes; then
14017 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'
14019 # FIXME: insert proper C++ library support
14027 if test $with_gnu_ld = no; then
14028 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14029 hardcode_libdir_separator_CXX=:
14035 export_dynamic_flag_spec_CXX='${wl}-E'
14041 hardcode_direct_CXX=no
14042 hardcode_shlibpath_var_CXX=no
14045 hardcode_direct_CXX=yes
14046 hardcode_direct_absolute_CXX=yes
14047 hardcode_minus_L_CXX=yes # Not in the search PATH,
14048 # but as the default
14049 # location of the library.
14053 case $cc_basename in
14055 # FIXME: insert proper C++ library support
14061 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14064 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14067 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14070 # Commands to make compiler produce verbose output that lists
14071 # what "hidden" libraries, object files and flags are used when
14072 # linking a shared library.
14074 # There doesn't appear to be a way to prevent this compiler from
14075 # explicitly linking system object files so we need to strip them
14076 # from the output so that they don't get included in the library
14078 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"'
14081 if test "$GXX" = yes; then
14082 if test $with_gnu_ld = no; then
14085 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14088 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14091 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'
14096 # FIXME: insert proper C++ library support
14104 hardcode_direct_CXX=no
14105 hardcode_shlibpath_var_CXX=no
14106 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14107 export_dynamic_flag_spec_CXX='${wl}-E'
14108 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14109 # Instead, shared libraries are loaded at an image base (0x10000000 by
14110 # default) and relocated if they conflict, which is a slow very memory
14111 # consuming and fragmenting process. To avoid this, we pick a random,
14112 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14113 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14114 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'
14115 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'
14118 case $cc_basename in
14121 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'
14123 # Archives containing C++ object files must be created using
14124 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14125 # necessary to make sure instantiated templates are included
14127 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14130 if test "$GXX" = yes; then
14131 if test "$with_gnu_ld" = no; then
14132 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14134 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'
14137 link_all_deplibs_CXX=yes
14140 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14141 hardcode_libdir_separator_CXX=:
14142 inherit_rpath_CXX=yes
14145 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14146 case $cc_basename in
14148 # Kuck and Associates, Inc. (KAI) C++ Compiler
14150 # KCC will only create a shared library if the output file
14151 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14152 # to its proper name (with version) after linking.
14153 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'
14154 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'
14155 # Commands to make compiler produce verbose output that lists
14156 # what "hidden" libraries, object files and flags are used when
14157 # linking a shared library.
14159 # There doesn't appear to be a way to prevent this compiler from
14160 # explicitly linking system object files so we need to strip them
14161 # from the output so that they don't get included in the library
14163 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"'
14165 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14166 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14168 # Archives containing C++ object files must be created using
14169 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14170 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14175 # version 8.0 and above of icpc choke on multiply defined symbols
14176 # if we add $predep_objects and $postdep_objects, however 7.1 and
14177 # earlier do not add the objects themselves.
14178 case `$CC -V 2>&1` in
14180 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14181 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'
14183 *) # Version 8.0 or newer
14186 ia64*) tmp_idyn=' -i_dynamic';;
14188 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14189 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'
14192 archive_cmds_need_lc_CXX=no
14193 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14194 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14195 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14198 # Portland Group C++ compiler
14200 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14201 prelink_cmds_CXX='tpldir=Template.dir~
14203 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14204 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14205 old_archive_cmds_CXX='tpldir=Template.dir~
14207 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14208 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14210 archive_cmds_CXX='tpldir=Template.dir~
14212 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14213 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14214 archive_expsym_cmds_CXX='tpldir=Template.dir~
14216 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14217 $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'
14219 *) # Version 6 and above use weak symbols
14220 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14221 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'
14225 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14226 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14227 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'
14231 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14232 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'
14234 runpath_var=LD_RUN_PATH
14235 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14236 hardcode_libdir_separator_CXX=:
14238 # Commands to make compiler produce verbose output that lists
14239 # what "hidden" libraries, object files and flags are used when
14240 # linking a shared library.
14242 # There doesn't appear to be a way to prevent this compiler from
14243 # explicitly linking system object files so we need to strip them
14244 # from the output so that they don't get included in the library
14246 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'
14248 xl* | mpixl* | bgxl*)
14249 # IBM XL 8.0 on PPC, with GNU ld
14250 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14251 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14252 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14253 if test "x$supports_anon_versioning" = xyes; then
14254 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14256 echo "local: *; };" >> $output_objdir/$libname.ver~
14257 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14261 case `$CC -V 2>&1 | sed 5q` in
14264 no_undefined_flag_CXX=' -zdefs'
14265 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14266 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'
14267 hardcode_libdir_flag_spec_CXX='-R$libdir'
14268 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'
14269 compiler_needs_object_CXX=yes
14271 # Not sure whether something based on
14272 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14274 output_verbose_link_cmd='func_echo_all'
14276 # Archives containing C++ object files must be created using
14277 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14278 # necessary to make sure instantiated templates are included
14280 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14288 # FIXME: insert proper C++ library support
14293 # FIXME: insert proper C++ library support
14298 case $cc_basename in
14300 # FIXME: insert proper C++ library support
14304 # FIXME: insert proper C++ library support
14311 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14312 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14314 hardcode_libdir_flag_spec_CXX='-R$libdir'
14315 hardcode_direct_CXX=yes
14316 hardcode_shlibpath_var_CXX=no
14318 # Workaround some broken pre-1.5 toolchains
14319 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14327 # C++ shared libraries are fairly broken
14332 if test -f /usr/libexec/ld.so; then
14333 hardcode_direct_CXX=yes
14334 hardcode_shlibpath_var_CXX=no
14335 hardcode_direct_absolute_CXX=yes
14336 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14337 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14338 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14339 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14340 export_dynamic_flag_spec_CXX='${wl}-E'
14341 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14343 output_verbose_link_cmd=func_echo_all
14349 osf3* | osf4* | osf5*)
14350 case $cc_basename in
14352 # Kuck and Associates, Inc. (KAI) C++ Compiler
14354 # KCC will only create a shared library if the output file
14355 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14356 # to its proper name (with version) after linking.
14357 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'
14359 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14360 hardcode_libdir_separator_CXX=:
14362 # Archives containing C++ object files must be created using
14363 # the KAI C++ compiler.
14365 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14366 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14370 # Rational C++ 2.4.1
14371 # FIXME: insert proper C++ library support
14377 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14378 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'
14379 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14382 allow_undefined_flag_CXX=' -expect_unresolved \*'
14383 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'
14384 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14385 echo "-hidden">> $lib.exp~
14386 $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~
14388 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14392 hardcode_libdir_separator_CXX=:
14394 # Commands to make compiler produce verbose output that lists
14395 # what "hidden" libraries, object files and flags are used when
14396 # linking a shared library.
14398 # There doesn't appear to be a way to prevent this compiler from
14399 # explicitly linking system object files so we need to strip them
14400 # from the output so that they don't get included in the library
14402 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"'
14405 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14406 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14409 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'
14412 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'
14416 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14417 hardcode_libdir_separator_CXX=:
14419 # Commands to make compiler produce verbose output that lists
14420 # what "hidden" libraries, object files and flags are used when
14421 # linking a shared library.
14422 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14425 # FIXME: insert proper C++ library support
14433 # FIXME: insert proper C++ library support
14438 case $cc_basename in
14441 # FIXME: insert proper C++ library support
14446 # FIXME: insert proper C++ library support
14450 # FIXME: insert proper C++ library support
14457 case $cc_basename in
14459 # Sun C++ 4.2, 5.x and Centerline C++
14460 archive_cmds_need_lc_CXX=yes
14461 no_undefined_flag_CXX=' -zdefs'
14462 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14463 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14464 $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'
14466 hardcode_libdir_flag_spec_CXX='-R$libdir'
14467 hardcode_shlibpath_var_CXX=no
14469 solaris2.[0-5] | solaris2.[0-5].*) ;;
14471 # The compiler driver will combine and reorder linker options,
14472 # but understands `-z linker_flag'.
14473 # Supported since Solaris 2.6 (maybe 2.5.1?)
14474 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14477 link_all_deplibs_CXX=yes
14479 output_verbose_link_cmd='func_echo_all'
14481 # Archives containing C++ object files must be created using
14482 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14483 # necessary to make sure instantiated templates are included
14485 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14488 # Green Hills C++ Compiler
14489 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14491 # The C++ compiler must be used to create the archive.
14492 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14495 # GNU C++ compiler with Solaris linker
14496 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14497 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14498 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14499 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14500 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14501 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14503 # Commands to make compiler produce verbose output that lists
14504 # what "hidden" libraries, object files and flags are used when
14505 # linking a shared library.
14506 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14508 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14510 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14511 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14512 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14514 # Commands to make compiler produce verbose output that lists
14515 # what "hidden" libraries, object files and flags are used when
14516 # linking a shared library.
14517 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14520 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14522 solaris2.[0-5] | solaris2.[0-5].*) ;;
14524 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14532 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14533 no_undefined_flag_CXX='${wl}-z,text'
14534 archive_cmds_need_lc_CXX=no
14535 hardcode_shlibpath_var_CXX=no
14536 runpath_var='LD_RUN_PATH'
14538 case $cc_basename in
14540 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14541 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14544 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14545 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14550 sysv5* | sco3.2v5* | sco5v6*)
14551 # Note: We can NOT use -z defs as we might desire, because we do not
14552 # link with -lc, and that would cause any symbols used from libc to
14553 # always be unresolved, which means just about no library would
14554 # ever link correctly. If we're not using GNU ld we use -z text
14555 # though, which does catch some bad symbols but isn't as heavy-handed
14557 no_undefined_flag_CXX='${wl}-z,text'
14558 allow_undefined_flag_CXX='${wl}-z,nodefs'
14559 archive_cmds_need_lc_CXX=no
14560 hardcode_shlibpath_var_CXX=no
14561 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14562 hardcode_libdir_separator_CXX=':'
14563 link_all_deplibs_CXX=yes
14564 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14565 runpath_var='LD_RUN_PATH'
14567 case $cc_basename in
14569 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14570 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14571 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14572 '"$old_archive_cmds_CXX"
14573 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14574 '"$reload_cmds_CXX"
14577 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14578 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14584 case $cc_basename in
14586 # NonStop-UX NCC 3.20
14587 # FIXME: insert proper C++ library support
14591 # FIXME: insert proper C++ library support
14598 # FIXME: insert proper C++ library support
14603 # FIXME: insert proper C++ library support
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14609 $as_echo "$ld_shlibs_CXX" >&6; }
14610 test "$ld_shlibs_CXX" = no && can_build_shared=no
14616 ## There is no encapsulation within the following macros, do not change
14617 ## the running order or otherwise move them around unless you know exactly
14618 ## what you are doing...
14619 # Dependencies to place before and after the object being linked:
14620 predep_objects_CXX=
14621 postdep_objects_CXX=
14624 compiler_lib_search_path_CXX=
14626 cat > conftest.$ac_ext <<_LT_EOF
14630 Foo (void) { a = 0; }
14637 _lt_libdeps_save_CFLAGS=$CFLAGS
14638 case "$CC $CFLAGS " in #(
14639 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14640 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14641 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14645 (eval $ac_compile) 2>&5
14647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14648 test $ac_status = 0; }; then
14649 # Parse the compiler output and extract the necessary
14650 # objects, libraries and library flags.
14652 # Sentinel used to keep track of whether or not we are before
14653 # the conftest object file.
14654 pre_test_object_deps_done=no
14656 for p in `eval "$output_verbose_link_cmd"`; do
14657 case ${prev}${p} in
14660 # Some compilers place space between "-{L,R}" and the path.
14661 # Remove the space.
14662 if test $p = "-L" ||
14663 test $p = "-R"; then
14668 # Expand the sysroot to ease extracting the directories later.
14669 if test -z "$prev"; then
14671 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14672 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14673 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14677 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14679 if test "$pre_test_object_deps_done" = no; then
14682 # Internal compiler library paths should come after those
14683 # provided the user. The postdeps already come after the
14684 # user supplied libs so there is no need to process them.
14685 if test -z "$compiler_lib_search_path_CXX"; then
14686 compiler_lib_search_path_CXX="${prev}${p}"
14688 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14691 # The "-l" case would never come before the object being
14692 # linked, so don't bother handling this case.
14695 if test -z "$postdeps_CXX"; then
14696 postdeps_CXX="${prev}${p}"
14698 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14704 *.lto.$objext) ;; # Ignore GCC LTO objects
14706 # This assumes that the test object file only shows up
14707 # once in the compiler output.
14708 if test "$p" = "conftest.$objext"; then
14709 pre_test_object_deps_done=yes
14713 if test "$pre_test_object_deps_done" = no; then
14714 if test -z "$predep_objects_CXX"; then
14715 predep_objects_CXX="$p"
14717 predep_objects_CXX="$predep_objects_CXX $p"
14720 if test -z "$postdep_objects_CXX"; then
14721 postdep_objects_CXX="$p"
14723 postdep_objects_CXX="$postdep_objects_CXX $p"
14728 *) ;; # Ignore the rest.
14736 echo "libtool.m4: error: problem compiling CXX test program"
14739 $RM -f confest.$objext
14740 CFLAGS=$_lt_libdeps_save_CFLAGS
14742 # PORTME: override above test on systems where it is broken
14745 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14746 # hack all around it, let's just trust "g++" to DTRT.
14747 predep_objects_CXX=
14748 postdep_objects_CXX=
14753 case `$CC -V 2>&1 | sed 5q` in
14757 # The more standards-conforming stlport4 library is
14758 # incompatible with the Cstd library. Avoid specifying
14759 # it if it's in CXXFLAGS. Ignore libCrun as
14760 # -library=stlport4 depends on it.
14761 case " $CXX $CXXFLAGS " in
14762 *" -library=stlport4 "*)
14763 solaris_use_stlport4=yes
14767 if test "$solaris_use_stlport4" != yes; then
14768 postdeps_CXX='-library=Cstd -library=Crun'
14775 case $cc_basename in
14777 # The more standards-conforming stlport4 library is
14778 # incompatible with the Cstd library. Avoid specifying
14779 # it if it's in CXXFLAGS. Ignore libCrun as
14780 # -library=stlport4 depends on it.
14781 case " $CXX $CXXFLAGS " in
14782 *" -library=stlport4 "*)
14783 solaris_use_stlport4=yes
14787 # Adding this requires a known-good setup of shared libraries for
14788 # Sun compiler versions before 5.6, else PIC objects from an old
14789 # archive will be linked into the output, leading to subtle bugs.
14790 if test "$solaris_use_stlport4" != yes; then
14791 postdeps_CXX='-library=Cstd -library=Crun'
14799 case " $postdeps_CXX " in
14800 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14802 compiler_lib_search_dirs_CXX=
14803 if test -n "${compiler_lib_search_path_CXX}"; then
14804 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14837 lt_prog_compiler_wl_CXX=
14838 lt_prog_compiler_pic_CXX=
14839 lt_prog_compiler_static_CXX=
14842 # C++ specific cases for pic, static, wl, etc.
14843 if test "$GXX" = yes; then
14844 lt_prog_compiler_wl_CXX='-Wl,'
14845 lt_prog_compiler_static_CXX='-static'
14849 # All AIX code is PIC.
14850 if test "$host_cpu" = ia64; then
14851 # AIX 5 now supports IA64 processor
14852 lt_prog_compiler_static_CXX='-Bstatic'
14859 # see comment about AmigaOS4 .so support
14860 lt_prog_compiler_pic_CXX='-fPIC'
14863 # FIXME: we need at least 68020 code to build shared libraries, but
14864 # adding the `-m68020' flag to GCC prevents building anything better,
14866 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14871 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14872 # PIC is the default for these OSes.
14874 mingw* | cygwin* | os2* | pw32* | cegcc*)
14875 # This hack is so that the source file can tell whether it is being
14876 # built for inclusion in a dll (and should export symbols for example).
14877 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14878 # (--disable-auto-import) libraries
14879 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14881 darwin* | rhapsody*)
14882 # PIC is the default on this platform
14883 # Common symbols not allowed in MH_DYLIB files
14884 lt_prog_compiler_pic_CXX='-fno-common'
14887 # DJGPP does not support shared libraries at all
14888 lt_prog_compiler_pic_CXX=
14891 # PIC is the default for Haiku.
14892 # The "-static" flag exists, but is broken.
14893 lt_prog_compiler_static_CXX=
14896 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14897 # Instead, we relocate shared libraries at runtime.
14900 if test -d /usr/nec; then
14901 lt_prog_compiler_pic_CXX=-Kconform_pic
14905 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14906 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14907 # sets the default TLS model and affects inlining.
14912 lt_prog_compiler_pic_CXX='-fPIC'
14917 # QNX uses GNU C++, but need to define -shared option too, otherwise
14918 # it will coredump.
14919 lt_prog_compiler_pic_CXX='-fPIC -shared'
14922 lt_prog_compiler_pic_CXX='-fPIC'
14928 # All AIX code is PIC.
14929 if test "$host_cpu" = ia64; then
14930 # AIX 5 now supports IA64 processor
14931 lt_prog_compiler_static_CXX='-Bstatic'
14933 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14937 case $cc_basename in
14939 # Green Hills C++ Compiler
14940 # _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"
14944 mingw* | cygwin* | os2* | pw32* | cegcc*)
14945 # This hack is so that the source file can tell whether it is being
14946 # built for inclusion in a dll (and should export symbols for example).
14947 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14950 case $cc_basename in
14952 lt_prog_compiler_pic_CXX='-KPIC'
14955 # Green Hills C++ Compiler
14956 lt_prog_compiler_pic_CXX='-pic'
14962 freebsd* | dragonfly*)
14963 # FreeBSD uses GNU C++
14965 hpux9* | hpux10* | hpux11*)
14966 case $cc_basename in
14968 lt_prog_compiler_wl_CXX='-Wl,'
14969 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14970 if test "$host_cpu" != ia64; then
14971 lt_prog_compiler_pic_CXX='+Z'
14975 lt_prog_compiler_wl_CXX='-Wl,'
14976 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14982 lt_prog_compiler_pic_CXX='+Z'
14991 # This is c89, which is MS Visual C++ (no shared libs)
14992 # Anyone wants to do a port?
14994 irix5* | irix6* | nonstopux*)
14995 case $cc_basename in
14997 lt_prog_compiler_wl_CXX='-Wl,'
14998 lt_prog_compiler_static_CXX='-non_shared'
14999 # CC pic flag -KPIC is the default.
15005 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15006 case $cc_basename in
15009 lt_prog_compiler_wl_CXX='--backend -Wl,'
15010 lt_prog_compiler_pic_CXX='-fPIC'
15013 # old Intel C++ for x86_64 which still supported -KPIC.
15014 lt_prog_compiler_wl_CXX='-Wl,'
15015 lt_prog_compiler_pic_CXX='-KPIC'
15016 lt_prog_compiler_static_CXX='-static'
15019 # Intel C++, used to be incompatible with GCC.
15020 # ICC 10 doesn't accept -KPIC any more.
15021 lt_prog_compiler_wl_CXX='-Wl,'
15022 lt_prog_compiler_pic_CXX='-fPIC'
15023 lt_prog_compiler_static_CXX='-static'
15026 # Portland Group C++ compiler
15027 lt_prog_compiler_wl_CXX='-Wl,'
15028 lt_prog_compiler_pic_CXX='-fpic'
15029 lt_prog_compiler_static_CXX='-Bstatic'
15033 # Make sure the PIC flag is empty. It appears that all Alpha
15034 # Linux and Compaq Tru64 Unix objects are PIC.
15035 lt_prog_compiler_pic_CXX=
15036 lt_prog_compiler_static_CXX='-non_shared'
15038 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15039 # IBM XL 8.0, 9.0 on PPC and BlueGene
15040 lt_prog_compiler_wl_CXX='-Wl,'
15041 lt_prog_compiler_pic_CXX='-qpic'
15042 lt_prog_compiler_static_CXX='-qstaticlink'
15045 case `$CC -V 2>&1 | sed 5q` in
15048 lt_prog_compiler_pic_CXX='-KPIC'
15049 lt_prog_compiler_static_CXX='-Bstatic'
15050 lt_prog_compiler_wl_CXX='-Qoption ld '
15061 case $cc_basename in
15063 lt_prog_compiler_pic_CXX='-W c,exportall'
15069 netbsd* | netbsdelf*-gnu)
15072 # QNX uses GNU C++, but need to define -shared option too, otherwise
15073 # it will coredump.
15074 lt_prog_compiler_pic_CXX='-fPIC -shared'
15076 osf3* | osf4* | osf5*)
15077 case $cc_basename in
15079 lt_prog_compiler_wl_CXX='--backend -Wl,'
15082 # Rational C++ 2.4.1
15083 lt_prog_compiler_pic_CXX='-pic'
15086 # Digital/Compaq C++
15087 lt_prog_compiler_wl_CXX='-Wl,'
15088 # Make sure the PIC flag is empty. It appears that all Alpha
15089 # Linux and Compaq Tru64 Unix objects are PIC.
15090 lt_prog_compiler_pic_CXX=
15091 lt_prog_compiler_static_CXX='-non_shared'
15100 case $cc_basename in
15102 # Sun C++ 4.2, 5.x and Centerline C++
15103 lt_prog_compiler_pic_CXX='-KPIC'
15104 lt_prog_compiler_static_CXX='-Bstatic'
15105 lt_prog_compiler_wl_CXX='-Qoption ld '
15108 # Green Hills C++ Compiler
15109 lt_prog_compiler_pic_CXX='-PIC'
15116 case $cc_basename in
15119 lt_prog_compiler_pic_CXX='-pic'
15120 lt_prog_compiler_static_CXX='-Bstatic'
15124 lt_prog_compiler_pic_CXX='-pic'
15130 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15131 case $cc_basename in
15133 lt_prog_compiler_wl_CXX='-Wl,'
15134 lt_prog_compiler_pic_CXX='-KPIC'
15135 lt_prog_compiler_static_CXX='-Bstatic'
15140 case $cc_basename in
15142 # NonStop-UX NCC 3.20
15143 lt_prog_compiler_pic_CXX='-KPIC'
15152 lt_prog_compiler_can_build_shared_CXX=no
15158 # For platforms which do not support PIC, -DPIC is meaningless:
15160 lt_prog_compiler_pic_CXX=
15163 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15168 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15169 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15170 $as_echo_n "(cached) " >&6
15172 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15175 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15176 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15179 # Check to make sure the PIC flag actually works.
15181 if test -n "$lt_prog_compiler_pic_CXX"; then
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15183 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15184 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15185 $as_echo_n "(cached) " >&6
15187 lt_cv_prog_compiler_pic_works_CXX=no
15188 ac_outfile=conftest.$ac_objext
15189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15190 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15191 # Insert the option either (1) after the last *FLAGS variable, or
15192 # (2) before a word containing "conftest.", or (3) at the end.
15193 # Note that $ac_compile itself does not contain backslashes and begins
15194 # with a dollar sign (not a hyphen), so the echo should work correctly.
15195 # The option is referenced via a variable to avoid confusing sed.
15196 lt_compile=`echo "$ac_compile" | $SED \
15197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15199 -e 's:$: $lt_compiler_flag:'`
15200 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15201 (eval "$lt_compile" 2>conftest.err)
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 if (exit $ac_status) && test -s "$ac_outfile"; then
15206 # The compiler can only warn and ignore the option if not recognized
15207 # So say no if there are warnings other than the usual output.
15208 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15210 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15211 lt_cv_prog_compiler_pic_works_CXX=yes
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15218 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15220 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15221 case $lt_prog_compiler_pic_CXX in
15223 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15226 lt_prog_compiler_pic_CXX=
15227 lt_prog_compiler_can_build_shared_CXX=no
15237 # Check to make sure the static flag actually works.
15239 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15241 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15242 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15243 $as_echo_n "(cached) " >&6
15245 lt_cv_prog_compiler_static_works_CXX=no
15246 save_LDFLAGS="$LDFLAGS"
15247 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15248 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15249 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15250 # The linker can only warn and ignore the option if not recognized
15251 # So say no if there are warnings
15252 if test -s conftest.err; then
15253 # Append any errors to the config.log.
15254 cat conftest.err 1>&5
15255 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15257 if diff conftest.exp conftest.er2 >/dev/null; then
15258 lt_cv_prog_compiler_static_works_CXX=yes
15261 lt_cv_prog_compiler_static_works_CXX=yes
15265 LDFLAGS="$save_LDFLAGS"
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15269 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15271 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15274 lt_prog_compiler_static_CXX=
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15281 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15282 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15283 $as_echo_n "(cached) " >&6
15285 lt_cv_prog_compiler_c_o_CXX=no
15286 $RM -r conftest 2>/dev/null
15290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15292 lt_compiler_flag="-o out/conftest2.$ac_objext"
15293 # Insert the option either (1) after the last *FLAGS variable, or
15294 # (2) before a word containing "conftest.", or (3) at the end.
15295 # Note that $ac_compile itself does not contain backslashes and begins
15296 # with a dollar sign (not a hyphen), so the echo should work correctly.
15297 lt_compile=`echo "$ac_compile" | $SED \
15298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15300 -e 's:$: $lt_compiler_flag:'`
15301 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15302 (eval "$lt_compile" 2>out/conftest.err)
15304 cat out/conftest.err >&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15308 # The compiler can only warn and ignore the option if not recognized
15309 # So say no if there are warnings
15310 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15311 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15312 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15313 lt_cv_prog_compiler_c_o_CXX=yes
15318 # SGI C++ compiler will create directory out/ii_files/ for
15319 # template instantiation
15320 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15321 $RM out/* && rmdir out
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15328 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15333 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15334 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15335 $as_echo_n "(cached) " >&6
15337 lt_cv_prog_compiler_c_o_CXX=no
15338 $RM -r conftest 2>/dev/null
15342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15344 lt_compiler_flag="-o out/conftest2.$ac_objext"
15345 # Insert the option either (1) after the last *FLAGS variable, or
15346 # (2) before a word containing "conftest.", or (3) at the end.
15347 # Note that $ac_compile itself does not contain backslashes and begins
15348 # with a dollar sign (not a hyphen), so the echo should work correctly.
15349 lt_compile=`echo "$ac_compile" | $SED \
15350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15352 -e 's:$: $lt_compiler_flag:'`
15353 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15354 (eval "$lt_compile" 2>out/conftest.err)
15356 cat out/conftest.err >&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15360 # The compiler can only warn and ignore the option if not recognized
15361 # So say no if there are warnings
15362 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15363 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15364 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15365 lt_cv_prog_compiler_c_o_CXX=yes
15370 # SGI C++ compiler will create directory out/ii_files/ for
15371 # template instantiation
15372 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15373 $RM out/* && rmdir out
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15380 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15385 hard_links="nottested"
15386 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15387 # do not overwrite the value of need_locks provided by the user
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15389 $as_echo_n "checking if we can lock with hard links... " >&6; }
15392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15394 ln conftest.a conftest.b 2>&5 || hard_links=no
15395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15397 $as_echo "$hard_links" >&6; }
15398 if test "$hard_links" = no; then
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15400 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15410 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15412 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15413 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15416 # If we're using GNU nm, then we don't want the "-C" option.
15417 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15418 # Also, AIX nm treats weak defined symbols like other global defined
15419 # symbols, whereas GNU nm marks them as "W".
15420 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15421 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'
15423 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'
15427 export_symbols_cmds_CXX="$ltdll_cmds"
15429 cygwin* | mingw* | cegcc*)
15430 case $cc_basename in
15432 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15435 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'
15436 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15440 linux* | k*bsd*-gnu | gnu*)
15441 link_all_deplibs_CXX=no
15444 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15449 $as_echo "$ld_shlibs_CXX" >&6; }
15450 test "$ld_shlibs_CXX" = no && can_build_shared=no
15452 with_gnu_ld_CXX=$with_gnu_ld
15460 # Do we need to explicitly link libc?
15462 case "x$archive_cmds_need_lc_CXX" in
15464 # Assume -lc should be added
15465 archive_cmds_need_lc_CXX=yes
15467 if test "$enable_shared" = yes && test "$GCC" = yes; then
15468 case $archive_cmds_CXX in
15470 # FIXME: we may have to deal with multi-command sequences.
15473 # Test whether the compiler implicitly links with -lc since on some
15474 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15475 # to ld, don't add -lc before -lgcc.
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15477 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15478 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15479 $as_echo_n "(cached) " >&6
15482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15485 (eval $ac_compile) 2>&5
15487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15488 test $ac_status = 0; } 2>conftest.err; then
15491 libobjs=conftest.$ac_objext
15493 wl=$lt_prog_compiler_wl_CXX
15494 pic_flag=$lt_prog_compiler_pic_CXX
15500 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15501 allow_undefined_flag_CXX=
15502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15503 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15506 test $ac_status = 0; }
15508 lt_cv_archive_cmds_need_lc_CXX=no
15510 lt_cv_archive_cmds_need_lc_CXX=yes
15512 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15514 cat conftest.err 1>&5
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15520 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15521 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15590 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15592 library_names_spec=
15593 libname_spec='lib$name'
15597 postuninstall_cmds=
15601 shlibpath_overrides_runpath=unknown
15603 dynamic_linker="$host_os ld.so"
15604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15605 need_lib_prefix=unknown
15606 hardcode_into_libs=no
15608 # when you set need_version to no, make sure it does not cause -set_version
15609 # flags to be left without arguments
15610 need_version=unknown
15614 version_type=linux # correct to gnu/linux during the next big refactor
15615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15616 shlibpath_var=LIBPATH
15618 # AIX 3 has no versioning support, so we append a major version to the name.
15619 soname_spec='${libname}${release}${shared_ext}$major'
15623 version_type=linux # correct to gnu/linux during the next big refactor
15626 hardcode_into_libs=yes
15627 if test "$host_cpu" = ia64; then
15628 # AIX 5 supports IA64
15629 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15630 shlibpath_var=LD_LIBRARY_PATH
15632 # With GCC up to 2.95.x, collect2 would create an import file
15633 # for dependence libraries. The import file would start with
15634 # the line `#! .'. This would cause the generated library to
15635 # depend on `.', always an invalid library. This was fixed in
15636 # development snapshots of GCC prior to 3.0.
15638 aix4 | aix4.[01] | aix4.[01].*)
15639 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15641 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15644 can_build_shared=no
15648 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15649 # soname into executable. Probably we can add versioning support to
15650 # collect2, so additional links can be useful in future.
15651 if test "$aix_use_runtimelinking" = yes; then
15652 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15653 # instead of lib<name>.a to let people know that these are not
15654 # typical AIX shared libraries.
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657 # We preserve .a as extension for shared libraries through AIX4.2
15658 # and later when we are not doing run time linking.
15659 library_names_spec='${libname}${release}.a $libname.a'
15660 soname_spec='${libname}${release}${shared_ext}$major'
15662 shlibpath_var=LIBPATH
15669 # Since July 2007 AmigaOS4 officially supports .so libraries.
15670 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15674 library_names_spec='$libname.ixlibrary $libname.a'
15675 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15676 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'
15682 library_names_spec='${libname}${shared_ext}'
15683 dynamic_linker="$host_os ld.so"
15684 shlibpath_var=LIBRARY_PATH
15688 version_type=linux # correct to gnu/linux during the next big refactor
15690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15691 soname_spec='${libname}${release}${shared_ext}$major'
15692 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15693 shlibpath_var=LD_LIBRARY_PATH
15694 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15695 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15696 # the default ld.so.conf also contains /usr/contrib/lib and
15697 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15698 # libtool to hard-code these into programs
15701 cygwin* | mingw* | pw32* | cegcc*)
15702 version_type=windows
15707 case $GCC,$cc_basename in
15710 library_names_spec='$libname.dll.a'
15711 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15712 postinstall_cmds='base_file=`basename \${file}`~
15713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15714 dldir=$destdir/`dirname \$dlpath`~
15715 test -d \$dldir || mkdir -p \$dldir~
15716 $install_prog $dir/$dlname \$dldir/$dlname~
15717 chmod a+x \$dldir/$dlname~
15718 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15719 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15722 dlpath=$dir/\$dldll~
15724 shlibpath_overrides_runpath=yes
15728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15729 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15733 # MinGW DLLs use traditional 'lib' prefix
15734 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15737 # pw32 DLLs use 'pw' prefix rather than 'lib'
15738 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15741 dynamic_linker='Win32 ld.exe'
15746 libname_spec='$name'
15747 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15748 library_names_spec='${libname}.dll.lib'
15752 sys_lib_search_path_spec=
15755 for lt_path in $LIB
15758 # Let DOS variable expansion print the short 8.3 style file name.
15759 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15760 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15763 # Convert to MSYS style.
15764 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15767 # Convert to unix form, then to dos form, then back to unix form
15768 # but this time dos style (no spaces!) so that the unix form looks
15769 # like /cygdrive/c/PROGRA~1:/cygdr...
15770 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15771 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15772 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15775 sys_lib_search_path_spec="$LIB"
15776 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15777 # It is most probably a Windows format PATH.
15778 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15780 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15782 # FIXME: find the short name or the path components, as spaces are
15783 # common. (e.g. "Program Files" -> "PROGRA~1")
15787 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15788 postinstall_cmds='base_file=`basename \${file}`~
15789 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15790 dldir=$destdir/`dirname \$dlpath`~
15791 test -d \$dldir || mkdir -p \$dldir~
15792 $install_prog $dir/$dlname \$dldir/$dlname'
15793 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15794 dlpath=$dir/\$dldll~
15796 shlibpath_overrides_runpath=yes
15797 dynamic_linker='Win32 link.exe'
15801 # Assume MSVC wrapper
15802 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15803 dynamic_linker='Win32 ld.exe'
15806 # FIXME: first we should search . and the directory the executable is in
15810 darwin* | rhapsody*)
15811 dynamic_linker="$host_os dyld"
15812 version_type=darwin
15815 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15816 soname_spec='${libname}${release}${major}$shared_ext'
15817 shlibpath_overrides_runpath=yes
15818 shlibpath_var=DYLD_LIBRARY_PATH
15819 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15821 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15825 version_type=linux # correct to gnu/linux during the next big refactor
15828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15829 soname_spec='${libname}${release}${shared_ext}$major'
15830 shlibpath_var=LD_LIBRARY_PATH
15833 freebsd* | dragonfly*)
15834 # DragonFly does not have aout. When/if they implement a new
15835 # versioning mechanism, adjust this.
15836 if test -x /usr/bin/objformat; then
15837 objformat=`/usr/bin/objformat`
15840 freebsd[23].*) objformat=aout ;;
15841 *) objformat=elf ;;
15844 version_type=freebsd-$objformat
15845 case $version_type in
15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15856 shlibpath_var=LD_LIBRARY_PATH
15859 shlibpath_overrides_runpath=yes
15861 freebsd3.[01]* | freebsdelf3.[01]*)
15862 shlibpath_overrides_runpath=yes
15863 hardcode_into_libs=yes
15865 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15866 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15867 shlibpath_overrides_runpath=no
15868 hardcode_into_libs=yes
15870 *) # from 4.6 on, and DragonFly
15871 shlibpath_overrides_runpath=yes
15872 hardcode_into_libs=yes
15878 version_type=linux # correct to gnu/linux during the next big refactor
15881 dynamic_linker="$host_os runtime_loader"
15882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15883 soname_spec='${libname}${release}${shared_ext}$major'
15884 shlibpath_var=LIBRARY_PATH
15885 shlibpath_overrides_runpath=yes
15886 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15887 hardcode_into_libs=yes
15890 hpux9* | hpux10* | hpux11*)
15891 # Give a soname corresponding to the major version so that dld.sl refuses to
15892 # link against other versions.
15899 hardcode_into_libs=yes
15900 dynamic_linker="$host_os dld.so"
15901 shlibpath_var=LD_LIBRARY_PATH
15902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15904 soname_spec='${libname}${release}${shared_ext}$major'
15905 if test "X$HPUX_IA64_MODE" = X32; then
15906 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15908 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15914 hardcode_into_libs=yes
15915 dynamic_linker="$host_os dld.sl"
15916 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15917 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15919 soname_spec='${libname}${release}${shared_ext}$major'
15920 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15921 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15925 dynamic_linker="$host_os dld.sl"
15926 shlibpath_var=SHLIB_PATH
15927 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929 soname_spec='${libname}${release}${shared_ext}$major'
15932 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15933 postinstall_cmds='chmod 555 $lib'
15934 # or fails outright, so override atomically:
15935 install_override_mode=555
15939 version_type=linux # correct to gnu/linux during the next big refactor
15942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15943 soname_spec='${libname}${release}${shared_ext}$major'
15944 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15945 shlibpath_var=LD_LIBRARY_PATH
15946 shlibpath_overrides_runpath=no
15947 hardcode_into_libs=yes
15950 irix5* | irix6* | nonstopux*)
15952 nonstopux*) version_type=nonstopux ;;
15954 if test "$lt_cv_prog_gnu_ld" = yes; then
15955 version_type=linux # correct to gnu/linux during the next big refactor
15962 soname_spec='${libname}${release}${shared_ext}$major'
15963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15965 irix5* | nonstopux*)
15966 libsuff= shlibsuff=
15969 case $LD in # libtool.m4 will add one of these switches to LD
15970 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15971 libsuff= shlibsuff= libmagic=32-bit;;
15972 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15973 libsuff=32 shlibsuff=N32 libmagic=N32;;
15974 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15975 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15976 *) libsuff= shlibsuff= libmagic=never-match;;
15980 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15981 shlibpath_overrides_runpath=no
15982 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15983 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15984 hardcode_into_libs=yes
15987 # No shared lib support for Linux oldld, aout, or coff.
15988 linux*oldld* | linux*aout* | linux*coff*)
15992 # This must be glibc/ELF.
15993 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15994 version_type=linux # correct to gnu/linux during the next big refactor
15997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15998 soname_spec='${libname}${release}${shared_ext}$major'
15999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16000 shlibpath_var=LD_LIBRARY_PATH
16001 shlibpath_overrides_runpath=no
16003 # Some binutils ld are patched to set DT_RUNPATH
16004 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16005 $as_echo_n "(cached) " >&6
16007 lt_cv_shlibpath_overrides_runpath=no
16008 save_LDFLAGS=$LDFLAGS
16009 save_libdir=$libdir
16010 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16011 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h. */
16023 if ac_fn_cxx_try_link "$LINENO"; then :
16024 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16025 lt_cv_shlibpath_overrides_runpath=yes
16028 rm -f core conftest.err conftest.$ac_objext \
16029 conftest$ac_exeext conftest.$ac_ext
16030 LDFLAGS=$save_LDFLAGS
16031 libdir=$save_libdir
16035 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16037 # This implies no fast_install, which is unacceptable.
16038 # Some rework will be needed to allow for fast_install
16039 # before this can be enabled.
16040 hardcode_into_libs=yes
16042 # Append ld.so.conf contents to the search path
16043 if test -f /etc/ld.so.conf; then
16044 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' ' '`
16045 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16048 # We used to test for /lib/ld.so.1 and disable shared libraries on
16049 # powerpc, because MkLinux only supported shared libraries with the
16050 # GNU dynamic linker. Since this was broken with cross compilers,
16051 # most powerpc-linux boxes support dynamic linking these days and
16052 # people can always --disable-shared, the test was removed, and we
16053 # assume the GNU/Linux dynamic linker is in use.
16054 dynamic_linker='GNU/Linux ld.so'
16061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16062 soname_spec='${libname}${release}${shared_ext}$major'
16063 shlibpath_var=LD_LIBRARY_PATH
16064 shlibpath_overrides_runpath=no
16065 hardcode_into_libs=yes
16066 dynamic_linker='NetBSD ld.elf_so'
16073 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16076 dynamic_linker='NetBSD (a.out) ld.so'
16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16079 soname_spec='${libname}${release}${shared_ext}$major'
16080 dynamic_linker='NetBSD ld.elf_so'
16082 shlibpath_var=LD_LIBRARY_PATH
16083 shlibpath_overrides_runpath=yes
16084 hardcode_into_libs=yes
16088 version_type=linux # correct to gnu/linux during the next big refactor
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090 shlibpath_var=LD_LIBRARY_PATH
16091 shlibpath_overrides_runpath=yes
16098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16099 soname_spec='${libname}${release}${shared_ext}$major'
16100 shlibpath_var=LD_LIBRARY_PATH
16101 shlibpath_overrides_runpath=no
16102 hardcode_into_libs=yes
16103 dynamic_linker='ldqnx.so'
16108 sys_lib_dlsearch_path_spec="/usr/lib"
16110 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16112 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16113 *) need_version=no ;;
16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16117 shlibpath_var=LD_LIBRARY_PATH
16118 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16120 openbsd2.[89] | openbsd2.[89].*)
16121 shlibpath_overrides_runpath=no
16124 shlibpath_overrides_runpath=yes
16128 shlibpath_overrides_runpath=yes
16133 libname_spec='$name'
16136 library_names_spec='$libname${shared_ext} $libname.a'
16137 dynamic_linker='OS/2 ld.exe'
16138 shlibpath_var=LIBPATH
16141 osf3* | osf4* | osf5*)
16145 soname_spec='${libname}${release}${shared_ext}$major'
16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147 shlibpath_var=LD_LIBRARY_PATH
16148 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16149 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16157 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 shlibpath_overrides_runpath=yes
16164 hardcode_into_libs=yes
16165 # ldd complains unless libraries are executable
16166 postinstall_cmds='chmod +x $lib'
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16172 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16173 shlibpath_var=LD_LIBRARY_PATH
16174 shlibpath_overrides_runpath=yes
16175 if test "$with_gnu_ld" = yes; then
16182 version_type=linux # correct to gnu/linux during the next big refactor
16183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16184 soname_spec='${libname}${release}${shared_ext}$major'
16185 shlibpath_var=LD_LIBRARY_PATH
16186 case $host_vendor in
16188 shlibpath_overrides_runpath=no
16190 runpath_var=LD_RUN_PATH
16198 shlibpath_overrides_runpath=no
16199 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16205 if test -d /usr/nec ;then
16206 version_type=linux # correct to gnu/linux during the next big refactor
16207 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16208 soname_spec='$libname${shared_ext}.$major'
16209 shlibpath_var=LD_LIBRARY_PATH
16213 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16214 version_type=freebsd-elf
16217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16218 soname_spec='${libname}${release}${shared_ext}$major'
16219 shlibpath_var=LD_LIBRARY_PATH
16220 shlibpath_overrides_runpath=yes
16221 hardcode_into_libs=yes
16222 if test "$with_gnu_ld" = yes; then
16223 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16225 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16228 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16232 sys_lib_dlsearch_path_spec='/usr/lib'
16236 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16237 version_type=linux # correct to gnu/linux during the next big refactor
16240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16241 shlibpath_var=LD_LIBRARY_PATH
16242 shlibpath_overrides_runpath=no
16243 hardcode_into_libs=yes
16247 version_type=linux # correct to gnu/linux during the next big refactor
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 shlibpath_var=LD_LIBRARY_PATH
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16258 $as_echo "$dynamic_linker" >&6; }
16259 test "$dynamic_linker" = no && can_build_shared=no
16261 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16262 if test "$GCC" = yes; then
16263 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16266 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16267 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16269 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16270 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16311 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16312 hardcode_action_CXX=
16313 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16314 test -n "$runpath_var_CXX" ||
16315 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16317 # We can hardcode non-existent directories.
16318 if test "$hardcode_direct_CXX" != no &&
16319 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16320 # have to relink, otherwise we might link with an installed library
16321 # when we should be linking with a yet-to-be-installed one
16322 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16323 test "$hardcode_minus_L_CXX" != no; then
16324 # Linking always hardcodes the temporary library directory.
16325 hardcode_action_CXX=relink
16327 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16328 hardcode_action_CXX=immediate
16331 # We cannot hardcode anything, or else we can only hardcode existing
16333 hardcode_action_CXX=unsupported
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16336 $as_echo "$hardcode_action_CXX" >&6; }
16338 if test "$hardcode_action_CXX" = relink ||
16339 test "$inherit_rpath_CXX" = yes; then
16340 # Fast installation is not supported
16341 enable_fast_install=no
16342 elif test "$shlibpath_overrides_runpath" = yes ||
16343 test "$enable_shared" = no; then
16344 # Fast installation is not necessary
16345 enable_fast_install=needless
16354 fi # test -n "$compiler"
16357 CFLAGS=$lt_save_CFLAGS
16361 with_gnu_ld=$lt_save_with_gnu_ld
16362 lt_cv_path_LDCXX=$lt_cv_path_LD
16363 lt_cv_path_LD=$lt_save_path_LD
16364 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16365 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16366 fi # test "$_lt_caught_CXX_error" != yes
16369 ac_cpp='$CPP $CPPFLAGS'
16370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16388 ac_config_commands="$ac_config_commands libtool"
16393 # Only expand once:
16401 ac_cpp='$CPP $CPPFLAGS'
16402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16409 $as_echo_n "checking for library containing dlopen... " >&6; }
16410 if ${ac_cv_search_dlopen+:} false; then :
16411 $as_echo_n "(cached) " >&6
16413 ac_func_search_save_LIBS=$LIBS
16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h. */
16417 /* Override any GCC internal prototype to avoid an error.
16418 Use char because int might match the return type of a GCC
16419 builtin and then its argument prototype would still apply. */
16432 for ac_lib in '' dl; do
16433 if test -z "$ac_lib"; then
16434 ac_res="none required"
16437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16439 if ac_fn_c_try_link "$LINENO"; then :
16440 ac_cv_search_dlopen=$ac_res
16442 rm -f core conftest.err conftest.$ac_objext \
16444 if ${ac_cv_search_dlopen+:} false; then :
16448 if ${ac_cv_search_dlopen+:} false; then :
16451 ac_cv_search_dlopen=no
16453 rm conftest.$ac_ext
16454 LIBS=$ac_func_search_save_LIBS
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16457 $as_echo "$ac_cv_search_dlopen" >&6; }
16458 ac_res=$ac_cv_search_dlopen
16459 if test "$ac_res" != no; then :
16460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16462 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16464 if test "$ac_cv_search_dlopen" != "none required" ; then
16465 LIBADD_DLOPEN="-ldl"
16467 libltdl_cv_lib_dl_dlopen="yes"
16468 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h. */
16473 # include <dlfcn.h>
16484 if ac_fn_c_try_link "$LINENO"; then :
16486 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16488 libltdl_cv_func_dlopen="yes"
16489 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16492 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16493 if ${ac_cv_lib_svld_dlopen+:} false; then :
16494 $as_echo_n "(cached) " >&6
16496 ac_check_lib_save_LIBS=$LIBS
16497 LIBS="-lsvld $LIBS"
16498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499 /* end confdefs.h. */
16501 /* Override any GCC internal prototype to avoid an error.
16502 Use char because int might match the return type of a GCC
16503 builtin and then its argument prototype would still apply. */
16516 if ac_fn_c_try_link "$LINENO"; then :
16517 ac_cv_lib_svld_dlopen=yes
16519 ac_cv_lib_svld_dlopen=no
16521 rm -f core conftest.err conftest.$ac_objext \
16522 conftest$ac_exeext conftest.$ac_ext
16523 LIBS=$ac_check_lib_save_LIBS
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16526 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16527 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16529 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16531 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16532 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16536 rm -f core conftest.err conftest.$ac_objext \
16537 conftest$ac_exeext conftest.$ac_ext
16540 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16542 lt_save_LIBS="$LIBS"
16543 LIBS="$LIBS $LIBADD_DLOPEN"
16544 for ac_func in dlerror
16546 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16547 if test "x$ac_cv_func_dlerror" = xyes; then :
16548 cat >>confdefs.h <<_ACEOF
16549 #define HAVE_DLERROR 1
16555 LIBS="$lt_save_LIBS"
16560 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16561 if test "x$ac_cv_func_shl_load" = xyes; then :
16563 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16565 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16568 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16569 if ${ac_cv_lib_dld_shl_load+:} false; then :
16570 $as_echo_n "(cached) " >&6
16572 ac_check_lib_save_LIBS=$LIBS
16574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16575 /* end confdefs.h. */
16577 /* Override any GCC internal prototype to avoid an error.
16578 Use char because int might match the return type of a GCC
16579 builtin and then its argument prototype would still apply. */
16587 return shl_load ();
16592 if ac_fn_c_try_link "$LINENO"; then :
16593 ac_cv_lib_dld_shl_load=yes
16595 ac_cv_lib_dld_shl_load=no
16597 rm -f core conftest.err conftest.$ac_objext \
16598 conftest$ac_exeext conftest.$ac_ext
16599 LIBS=$ac_check_lib_save_LIBS
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16602 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16603 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16605 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16607 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16608 LIBADD_SHL_LOAD="-ldld"
16617 # We only want this for pre-Mac OS X 10.4.
16618 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16619 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16621 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16623 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16628 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16630 cygwin* | mingw* | os2* | pw32*)
16631 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16633 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16639 cat >>confdefs.h <<_ACEOF
16640 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16643 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16648 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16649 if ${ac_cv_lib_dld_dld_link+:} false; then :
16650 $as_echo_n "(cached) " >&6
16652 ac_check_lib_save_LIBS=$LIBS
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655 /* end confdefs.h. */
16657 /* Override any GCC internal prototype to avoid an error.
16658 Use char because int might match the return type of a GCC
16659 builtin and then its argument prototype would still apply. */
16667 return dld_link ();
16672 if ac_fn_c_try_link "$LINENO"; then :
16673 ac_cv_lib_dld_dld_link=yes
16675 ac_cv_lib_dld_dld_link=no
16677 rm -f core conftest.err conftest.$ac_objext \
16678 conftest$ac_exeext conftest.$ac_ext
16679 LIBS=$ac_check_lib_save_LIBS
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16682 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16683 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16685 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16687 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16694 if test -n "$LT_DLLOADERS"
16696 for lt_loader in $LT_DLLOADERS; do
16697 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16700 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16705 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16709 ac_cpp='$CPP $CPPFLAGS'
16710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16717 if test x$use_libtool != xno; then
16718 DEFAULT_OBJECT_TYPE=".lo"
16719 DEFAULT_ARCHIVE_TYPE=".la"
16720 DEFAULT_SHARED_OBJECT_TYPE=".la"
16721 LIBTOOL="\$(LIBTOOL)"
16722 LIBTOOL_INSTALL_TARGET="libtool-install"
16723 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16724 LIBTOOL_CLEAN_TARGET="libtool-clean"
16725 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16726 FD_PLUGIN_DIR="src/plugins/fd"
16729 DEFAULT_OBJECT_TYPE=".o"
16730 DEFAULT_ARCHIVE_TYPE=".a"
16731 DEFAULT_SHARED_OBJECT_TYPE=".so"
16732 LIBTOOL="# \$(LIBTOOL)"
16733 LIBTOOL_INSTALL_TARGET=""
16734 LIBTOOL_UNINSTALL_TARGET=""
16735 LIBTOOL_CLEAN_TARGET=""
16736 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16751 # Check whether --enable-includes was given.
16752 if test "${enable_includes+set}" = set; then :
16753 enableval=$enable_includes;
16754 if test x$enableval = xyes; then
16755 install_includes=yes
16763 if test x$use_libtool != xno -a x$install_includes = xyes; then
16764 INCLUDE_INSTALL_TARGET="install-includes"
16765 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16767 INCLUDE_INSTALL_TARGET=""
16768 INCLUDE_UNINSTALL_TARGET=""
16776 *cygwin* ) CYGWIN=yes;;
16780 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16786 HAVE_SUN_OS_FALSE='#'
16788 HAVE_SUN_OS_TRUE='#'
16791 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16798 HAVE_SUN_OS_FALSE='#'
16800 HAVE_SUN_OS_TRUE='#'
16805 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16811 HAVE_HURD_OS_FALSE='#'
16813 HAVE_HURD_OS_TRUE='#'
16814 HAVE_HURD_OS_FALSE=
16816 $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16823 HAVE_HURD_OS_FALSE='#'
16825 HAVE_HURD_OS_TRUE='#'
16826 HAVE_HURD_OS_FALSE=
16830 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16836 HAVE_OSF1_OS_FALSE='#'
16838 HAVE_OSF1_OS_TRUE='#'
16839 HAVE_OSF1_OS_FALSE=
16841 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16848 HAVE_OSF1_OS_FALSE='#'
16850 HAVE_OSF1_OS_TRUE='#'
16851 HAVE_OSF1_OS_FALSE=
16855 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16861 HAVE_AIX_OS_FALSE='#'
16863 HAVE_AIX_OS_TRUE='#'
16866 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16873 HAVE_AIX_OS_FALSE='#'
16875 HAVE_AIX_OS_TRUE='#'
16880 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16886 HAVE_HPUX_OS_FALSE='#'
16888 HAVE_HPUX_OS_TRUE='#'
16889 HAVE_HPUX_OS_FALSE=
16891 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16898 HAVE_HPUX_OS_FALSE='#'
16900 HAVE_HPUX_OS_TRUE='#'
16901 HAVE_HPUX_OS_FALSE=
16905 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16910 HAVE_LINUX_OS_TRUE=
16911 HAVE_LINUX_OS_FALSE='#'
16913 HAVE_LINUX_OS_TRUE='#'
16914 HAVE_LINUX_OS_FALSE=
16916 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16922 HAVE_LINUX_OS_TRUE=
16923 HAVE_LINUX_OS_FALSE='#'
16925 HAVE_LINUX_OS_TRUE='#'
16926 HAVE_LINUX_OS_FALSE=
16930 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16935 HAVE_FREEBSD_OS_TRUE=
16936 HAVE_FREEBSD_OS_FALSE='#'
16938 HAVE_FREEBSD_OS_TRUE='#'
16939 HAVE_FREEBSD_OS_FALSE=
16941 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16947 HAVE_FREEBSD_OS_TRUE=
16948 HAVE_FREEBSD_OS_FALSE='#'
16950 HAVE_FREEBSD_OS_TRUE='#'
16951 HAVE_FREEBSD_OS_FALSE=
16955 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16960 HAVE_NETBSD_OS_TRUE=
16961 HAVE_NETBSD_OS_FALSE='#'
16963 HAVE_NETBSD_OS_TRUE='#'
16964 HAVE_NETBSD_OS_FALSE=
16966 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16972 HAVE_NETBSD_OS_TRUE=
16973 HAVE_NETBSD_OS_FALSE='#'
16975 HAVE_NETBSD_OS_TRUE='#'
16976 HAVE_NETBSD_OS_FALSE=
16980 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16985 HAVE_OPENBSD_OS_TRUE=
16986 HAVE_OPENBSD_OS_FALSE='#'
16988 HAVE_OPENBSD_OS_TRUE='#'
16989 HAVE_OPENBSD_OS_FALSE=
16991 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16997 HAVE_OPENBSD_OS_TRUE=
16998 HAVE_OPENBSD_OS_FALSE='#'
17000 HAVE_OPENBSD_OS_TRUE='#'
17001 HAVE_OPENBSD_OS_FALSE=
17005 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17011 HAVE_BSDI_OS_FALSE='#'
17013 HAVE_BSDI_OS_TRUE='#'
17014 HAVE_BSDI_OS_FALSE=
17016 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
17023 HAVE_BSDI_OS_FALSE='#'
17025 HAVE_BSDI_OS_TRUE='#'
17026 HAVE_BSDI_OS_FALSE=
17030 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17036 HAVE_SGI_OS_FALSE='#'
17038 HAVE_SGI_OS_TRUE='#'
17041 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17048 HAVE_SGI_OS_FALSE='#'
17050 HAVE_SGI_OS_TRUE='#'
17055 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17061 HAVE_IRIX_OS_FALSE='#'
17063 HAVE_IRIX_OS_TRUE='#'
17064 HAVE_IRIX_OS_FALSE=
17066 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17073 HAVE_IRIX_OS_FALSE='#'
17075 HAVE_IRIX_OS_TRUE='#'
17076 HAVE_IRIX_OS_FALSE=
17080 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17085 HAVE_DARWIN_OS_TRUE=
17086 HAVE_DARWIN_OS_FALSE='#'
17088 HAVE_DARWIN_OS_TRUE='#'
17089 HAVE_DARWIN_OS_FALSE=
17091 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17097 HAVE_DARWIN_OS_TRUE=
17098 HAVE_DARWIN_OS_FALSE='#'
17100 HAVE_DARWIN_OS_TRUE='#'
17101 HAVE_DARWIN_OS_FALSE=
17105 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU/kFreeBSD
17110 HAVE_KFREEBSD_OS_TRUE=
17111 HAVE_KFREEBSD_OS_FALSE='#'
17113 HAVE_KFREEBSD_OS_TRUE='#'
17114 HAVE_KFREEBSD_OS_FALSE=
17116 $as_echo "#define HAVE_KFREEBSD_OS 1" >>confdefs.h
17122 HAVE_KFREEBSD_OS_TRUE=
17123 HAVE_KFREEBSD_OS_FALSE='#'
17125 HAVE_KFREEBSD_OS_TRUE='#'
17126 HAVE_KFREEBSD_OS_FALSE=
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17132 $as_echo_n "checking for Operating System Distribution... " >&6; }
17133 if test "x$DISTNAME" != "x"
17135 echo "distname set to $DISTNAME"
17136 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17139 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17142 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17145 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17148 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17151 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17154 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17157 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17160 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17163 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17166 elif test -f /etc/SuSE-release
17169 elif test -d /etc/SuSEconfig
17172 elif test -f /etc/mandrake-release
17175 elif test -f /etc/whitebox-release
17178 elif test -f /etc/redhat-release
17181 elif test -f /etc/gentoo-release
17184 elif test -f /etc/debian_version
17187 elif test -f /etc/slackware-version
17190 elif test x$host_vendor = xapple
17193 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17196 elif test -f /etc/engarde-version
17199 elif test -f /etc/arch-release
17202 elif test "$CYGWIN" = yes
17205 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17211 $as_echo "done" >&6; }
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17215 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17217 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17218 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17219 $as_echo_n "(cached) " >&6
17221 cat >conftest.make <<\_ACEOF
17224 @echo '@@@%%%=$(MAKE)=@@@%%%'
17226 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17227 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17228 *@@@%%%=?*=@@@%%%*)
17229 eval ac_cv_prog_make_${ac_make}_set=yes;;
17231 eval ac_cv_prog_make_${ac_make}_set=no;;
17233 rm -f conftest.make
17235 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17237 $as_echo "yes" >&6; }
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17241 $as_echo "no" >&6; }
17242 SET_MAKE="MAKE=${MAKE-make}"
17248 if test -n "$ac_aux_dir"; then
17249 case "$ac_aux_dir" in
17250 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17251 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17254 if test -z "$MKINSTALLDIRS"; then
17255 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17261 $as_echo_n "checking whether NLS is requested... " >&6; }
17262 # Check whether --enable-nls was given.
17263 if test "${enable_nls+set}" = set; then :
17264 enableval=$enable_nls; USE_NLS=$enableval
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17270 $as_echo "$USE_NLS" >&6; }
17277 # Prepare PATH_SEPARATOR.
17278 # The user is always right.
17279 if test "${PATH_SEPARATOR+set}" != set; then
17280 echo "#! /bin/sh" >conf$$.sh
17281 echo "exit 0" >>conf$$.sh
17283 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17291 # Find out how to test for executable files. Don't use a zero-byte file,
17292 # as systems may use methods other than mode bits to determine executability.
17293 cat >conf$$.file <<_ASEOF
17297 chmod +x conf$$.file
17298 if test -x conf$$.file >/dev/null 2>&1; then
17299 ac_executable_p="test -x"
17301 ac_executable_p="test -f"
17305 # Extract the first word of "msgfmt", so it can be a program name with args.
17306 set dummy msgfmt; ac_word=$2
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17308 $as_echo_n "checking for $ac_word... " >&6; }
17309 if ${ac_cv_path_MSGFMT+:} false; then :
17310 $as_echo_n "(cached) " >&6
17314 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17317 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17318 for ac_dir in $PATH; do
17320 test -z "$ac_dir" && ac_dir=.
17321 for ac_exec_ext in '' $ac_executable_extensions; do
17322 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17323 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17324 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17325 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17326 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17333 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17337 MSGFMT="$ac_cv_path_MSGFMT"
17338 if test "$MSGFMT" != ":"; then
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17340 $as_echo "$MSGFMT" >&6; }
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17343 $as_echo "no" >&6; }
17346 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17347 set dummy gmsgfmt; ac_word=$2
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17349 $as_echo_n "checking for $ac_word... " >&6; }
17350 if ${ac_cv_path_GMSGFMT+:} false; then :
17351 $as_echo_n "(cached) " >&6
17355 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17359 for as_dir in $PATH
17362 test -z "$as_dir" && as_dir=.
17363 for ac_exec_ext in '' $ac_executable_extensions; do
17364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17365 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17373 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17377 GMSGFMT=$ac_cv_path_GMSGFMT
17378 if test -n "$GMSGFMT"; then
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17380 $as_echo "$GMSGFMT" >&6; }
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17383 $as_echo "no" >&6; }
17389 # Prepare PATH_SEPARATOR.
17390 # The user is always right.
17391 if test "${PATH_SEPARATOR+set}" != set; then
17392 echo "#! /bin/sh" >conf$$.sh
17393 echo "exit 0" >>conf$$.sh
17395 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17403 # Find out how to test for executable files. Don't use a zero-byte file,
17404 # as systems may use methods other than mode bits to determine executability.
17405 cat >conf$$.file <<_ASEOF
17409 chmod +x conf$$.file
17410 if test -x conf$$.file >/dev/null 2>&1; then
17411 ac_executable_p="test -x"
17413 ac_executable_p="test -f"
17417 # Extract the first word of "xgettext", so it can be a program name with args.
17418 set dummy xgettext; ac_word=$2
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17420 $as_echo_n "checking for $ac_word... " >&6; }
17421 if ${ac_cv_path_XGETTEXT+:} false; then :
17422 $as_echo_n "(cached) " >&6
17424 case "$XGETTEXT" in
17426 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17429 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17430 for ac_dir in $PATH; do
17432 test -z "$ac_dir" && ac_dir=.
17433 for ac_exec_ext in '' $ac_executable_extensions; do
17434 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17435 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17436 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17437 (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
17438 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17445 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17449 XGETTEXT="$ac_cv_path_XGETTEXT"
17450 if test "$XGETTEXT" != ":"; then
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17452 $as_echo "$XGETTEXT" >&6; }
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17455 $as_echo "no" >&6; }
17461 # Prepare PATH_SEPARATOR.
17462 # The user is always right.
17463 if test "${PATH_SEPARATOR+set}" != set; then
17464 echo "#! /bin/sh" >conf$$.sh
17465 echo "exit 0" >>conf$$.sh
17467 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17475 # Find out how to test for executable files. Don't use a zero-byte file,
17476 # as systems may use methods other than mode bits to determine executability.
17477 cat >conf$$.file <<_ASEOF
17481 chmod +x conf$$.file
17482 if test -x conf$$.file >/dev/null 2>&1; then
17483 ac_executable_p="test -x"
17485 ac_executable_p="test -f"
17489 # Extract the first word of "msgmerge", so it can be a program name with args.
17490 set dummy msgmerge; ac_word=$2
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17492 $as_echo_n "checking for $ac_word... " >&6; }
17493 if ${ac_cv_path_MSGMERGE+:} false; then :
17494 $as_echo_n "(cached) " >&6
17496 case "$MSGMERGE" in
17498 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17501 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17502 for ac_dir in $PATH; do
17504 test -z "$ac_dir" && ac_dir=.
17505 for ac_exec_ext in '' $ac_executable_extensions; do
17506 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17507 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17508 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17509 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17516 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17520 MSGMERGE="$ac_cv_path_MSGMERGE"
17521 if test "$MSGMERGE" != ":"; then
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17523 $as_echo "$MSGMERGE" >&6; }
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17526 $as_echo "no" >&6; }
17530 if test "$GMSGFMT" != ":"; then
17531 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17532 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17535 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17537 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17542 if test "$XGETTEXT" != ":"; then
17543 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17544 (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
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17548 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17554 ac_config_commands="$ac_config_commands default-1"
17558 if test "X$prefix" = "XNONE"; then
17559 acl_final_prefix="$ac_default_prefix"
17561 acl_final_prefix="$prefix"
17563 if test "X$exec_prefix" = "XNONE"; then
17564 acl_final_exec_prefix='${prefix}'
17566 acl_final_exec_prefix="$exec_prefix"
17568 acl_save_prefix="$prefix"
17569 prefix="$acl_final_prefix"
17570 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17571 prefix="$acl_save_prefix"
17574 # Check whether --with-gnu-ld was given.
17575 if test "${with_gnu_ld+set}" = set; then :
17576 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17581 # Prepare PATH_SEPARATOR.
17582 # The user is always right.
17583 if test "${PATH_SEPARATOR+set}" != set; then
17584 echo "#! /bin/sh" >conf$$.sh
17585 echo "exit 0" >>conf$$.sh
17587 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17595 if test "$GCC" = yes; then
17596 # Check if gcc -print-prog-name=ld gives a path.
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17598 $as_echo_n "checking for ld used by GCC... " >&6; }
17601 # gcc leaves a trailing carriage return which upsets mingw
17602 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17604 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17607 # Accept absolute paths.
17608 [\\/]* | [A-Za-z]:[\\/]*)
17609 re_direlt='/[^/][^/]*/\.\./'
17610 # Canonicalize the path of ld
17611 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17612 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17613 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17615 test -z "$LD" && LD="$ac_prog"
17618 # If it fails, then pretend we aren't using GCC.
17622 # If it is relative, then search for the first ld in PATH.
17623 with_gnu_ld=unknown
17626 elif test "$with_gnu_ld" = yes; then
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17628 $as_echo_n "checking for GNU ld... " >&6; }
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17631 $as_echo_n "checking for non-GNU ld... " >&6; }
17633 if ${acl_cv_path_LD+:} false; then :
17634 $as_echo_n "(cached) " >&6
17636 if test -z "$LD"; then
17637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17638 for ac_dir in $PATH; do
17639 test -z "$ac_dir" && ac_dir=.
17640 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17641 acl_cv_path_LD="$ac_dir/$ac_prog"
17642 # Check to see if the program is GNU ld. I'd rather use --version,
17643 # but apparently some GNU ld's only accept -v.
17644 # Break only if it was the GNU/non-GNU ld that we prefer.
17645 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17646 *GNU* | *'with BFD'*)
17647 test "$with_gnu_ld" != no && break ;;
17649 test "$with_gnu_ld" != yes && break ;;
17655 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17659 LD="$acl_cv_path_LD"
17660 if test -n "$LD"; then
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17662 $as_echo "$LD" >&6; }
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17665 $as_echo "no" >&6; }
17667 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17669 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17670 if ${acl_cv_prog_gnu_ld+:} false; then :
17671 $as_echo_n "(cached) " >&6
17673 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17674 case `$LD -v 2>&1 </dev/null` in
17675 *GNU* | *'with BFD'*)
17676 acl_cv_prog_gnu_ld=yes ;;
17678 acl_cv_prog_gnu_ld=no ;;
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17682 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17683 with_gnu_ld=$acl_cv_prog_gnu_ld
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17689 $as_echo_n "checking for shared library run path origin... " >&6; }
17690 if ${acl_cv_rpath+:} false; then :
17691 $as_echo_n "(cached) " >&6
17694 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17695 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17697 rm -f ./conftest.sh
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17702 $as_echo "$acl_cv_rpath" >&6; }
17704 libext="$acl_cv_libext"
17705 shlibext="$acl_cv_shlibext"
17706 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17707 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17708 hardcode_direct="$acl_cv_hardcode_direct"
17709 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17710 # Check whether --enable-rpath was given.
17711 if test "${enable_rpath+set}" = set; then :
17712 enableval=$enable_rpath; :
17726 acl_save_prefix="$prefix"
17727 prefix="$acl_final_prefix"
17728 acl_save_exec_prefix="$exec_prefix"
17729 exec_prefix="$acl_final_exec_prefix"
17731 eval additional_includedir=\"$includedir\"
17732 eval additional_libdir=\"$libdir\"
17734 exec_prefix="$acl_save_exec_prefix"
17735 prefix="$acl_save_prefix"
17738 # Check whether --with-libiconv-prefix was given.
17739 if test "${with_libiconv_prefix+set}" = set; then :
17740 withval=$with_libiconv_prefix;
17741 if test "X$withval" = "Xno"; then
17744 if test "X$withval" = "X"; then
17746 acl_save_prefix="$prefix"
17747 prefix="$acl_final_prefix"
17748 acl_save_exec_prefix="$exec_prefix"
17749 exec_prefix="$acl_final_exec_prefix"
17751 eval additional_includedir=\"$includedir\"
17752 eval additional_libdir=\"$libdir\"
17754 exec_prefix="$acl_save_exec_prefix"
17755 prefix="$acl_save_prefix"
17758 additional_includedir="$withval/include"
17759 additional_libdir="$withval/lib"
17770 names_already_handled=
17771 names_next_round='iconv '
17772 while test -n "$names_next_round"; do
17773 names_this_round="$names_next_round"
17775 for name in $names_this_round; do
17777 for n in $names_already_handled; do
17778 if test "$n" = "$name"; then
17779 already_handled=yes
17783 if test -z "$already_handled"; then
17784 names_already_handled="$names_already_handled $name"
17785 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17786 eval value=\"\$HAVE_LIB$uppername\"
17787 if test -n "$value"; then
17788 if test "$value" = yes; then
17789 eval value=\"\$LIB$uppername\"
17790 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17791 eval value=\"\$LTLIB$uppername\"
17792 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17801 if test $use_additional = yes; then
17802 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17803 found_dir="$additional_libdir"
17804 found_so="$additional_libdir/lib$name.$shlibext"
17805 if test -f "$additional_libdir/lib$name.la"; then
17806 found_la="$additional_libdir/lib$name.la"
17809 if test -f "$additional_libdir/lib$name.$libext"; then
17810 found_dir="$additional_libdir"
17811 found_a="$additional_libdir/lib$name.$libext"
17812 if test -f "$additional_libdir/lib$name.la"; then
17813 found_la="$additional_libdir/lib$name.la"
17818 if test "X$found_dir" = "X"; then
17819 for x in $LDFLAGS $LTLIBICONV; do
17821 acl_save_prefix="$prefix"
17822 prefix="$acl_final_prefix"
17823 acl_save_exec_prefix="$exec_prefix"
17824 exec_prefix="$acl_final_exec_prefix"
17826 exec_prefix="$acl_save_exec_prefix"
17827 prefix="$acl_save_prefix"
17831 dir=`echo "X$x" | sed -e 's/^X-L//'`
17832 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17834 found_so="$dir/lib$name.$shlibext"
17835 if test -f "$dir/lib$name.la"; then
17836 found_la="$dir/lib$name.la"
17839 if test -f "$dir/lib$name.$libext"; then
17841 found_a="$dir/lib$name.$libext"
17842 if test -f "$dir/lib$name.la"; then
17843 found_la="$dir/lib$name.la"
17849 if test "X$found_dir" != "X"; then
17854 if test "X$found_dir" != "X"; then
17855 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17856 if test "X$found_so" != "X"; then
17857 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17858 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17861 for x in $ltrpathdirs; do
17862 if test "X$x" = "X$found_dir"; then
17867 if test -z "$haveit"; then
17868 ltrpathdirs="$ltrpathdirs $found_dir"
17870 if test "$hardcode_direct" = yes; then
17871 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17873 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17874 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17876 for x in $rpathdirs; do
17877 if test "X$x" = "X$found_dir"; then
17882 if test -z "$haveit"; then
17883 rpathdirs="$rpathdirs $found_dir"
17887 for x in $LDFLAGS $LIBICONV; do
17889 acl_save_prefix="$prefix"
17890 prefix="$acl_final_prefix"
17891 acl_save_exec_prefix="$exec_prefix"
17892 exec_prefix="$acl_final_exec_prefix"
17894 exec_prefix="$acl_save_exec_prefix"
17895 prefix="$acl_save_prefix"
17897 if test "X$x" = "X-L$found_dir"; then
17902 if test -z "$haveit"; then
17903 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17905 if test "$hardcode_minus_L" != no; then
17906 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17908 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17914 if test "X$found_a" != "X"; then
17915 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17917 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17920 additional_includedir=
17921 case "$found_dir" in
17923 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17924 additional_includedir="$basedir/include"
17927 if test "X$additional_includedir" != "X"; then
17928 if test "X$additional_includedir" != "X/usr/include"; then
17930 if test "X$additional_includedir" = "X/usr/local/include"; then
17931 if test -n "$GCC"; then
17933 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17937 if test -z "$haveit"; then
17938 for x in $CPPFLAGS $INCICONV; do
17940 acl_save_prefix="$prefix"
17941 prefix="$acl_final_prefix"
17942 acl_save_exec_prefix="$exec_prefix"
17943 exec_prefix="$acl_final_exec_prefix"
17945 exec_prefix="$acl_save_exec_prefix"
17946 prefix="$acl_save_prefix"
17948 if test "X$x" = "X-I$additional_includedir"; then
17953 if test -z "$haveit"; then
17954 if test -d "$additional_includedir"; then
17955 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17961 if test -n "$found_la"; then
17962 save_libdir="$libdir"
17963 case "$found_la" in
17964 */* | *\\*) . "$found_la" ;;
17965 *) . "./$found_la" ;;
17967 libdir="$save_libdir"
17968 for dep in $dependency_libs; do
17971 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17972 if test "X$additional_libdir" != "X/usr/lib"; then
17974 if test "X$additional_libdir" = "X/usr/local/lib"; then
17975 if test -n "$GCC"; then
17977 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17981 if test -z "$haveit"; then
17983 for x in $LDFLAGS $LIBICONV; do
17985 acl_save_prefix="$prefix"
17986 prefix="$acl_final_prefix"
17987 acl_save_exec_prefix="$exec_prefix"
17988 exec_prefix="$acl_final_exec_prefix"
17990 exec_prefix="$acl_save_exec_prefix"
17991 prefix="$acl_save_prefix"
17993 if test "X$x" = "X-L$additional_libdir"; then
17998 if test -z "$haveit"; then
17999 if test -d "$additional_libdir"; then
18000 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18004 for x in $LDFLAGS $LTLIBICONV; do
18006 acl_save_prefix="$prefix"
18007 prefix="$acl_final_prefix"
18008 acl_save_exec_prefix="$exec_prefix"
18009 exec_prefix="$acl_final_exec_prefix"
18011 exec_prefix="$acl_save_exec_prefix"
18012 prefix="$acl_save_prefix"
18014 if test "X$x" = "X-L$additional_libdir"; then
18019 if test -z "$haveit"; then
18020 if test -d "$additional_libdir"; then
18021 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18028 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18029 if test "$enable_rpath" != no; then
18031 for x in $rpathdirs; do
18032 if test "X$x" = "X$dir"; then
18037 if test -z "$haveit"; then
18038 rpathdirs="$rpathdirs $dir"
18041 for x in $ltrpathdirs; do
18042 if test "X$x" = "X$dir"; then
18047 if test -z "$haveit"; then
18048 ltrpathdirs="$ltrpathdirs $dir"
18053 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18056 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18059 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18060 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18066 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18067 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18073 if test "X$rpathdirs" != "X"; then
18074 if test -n "$hardcode_libdir_separator"; then
18076 for found_dir in $rpathdirs; do
18077 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18079 acl_save_libdir="$libdir"
18081 eval flag=\"$hardcode_libdir_flag_spec\"
18082 libdir="$acl_save_libdir"
18083 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18085 for found_dir in $rpathdirs; do
18086 acl_save_libdir="$libdir"
18087 libdir="$found_dir"
18088 eval flag=\"$hardcode_libdir_flag_spec\"
18089 libdir="$acl_save_libdir"
18090 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18094 if test "X$ltrpathdirs" != "X"; then
18095 for found_dir in $ltrpathdirs; do
18096 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18118 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18119 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18120 $as_echo_n "(cached) " >&6
18122 gt_save_CPPFLAGS="$CPPFLAGS"
18123 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18124 gt_save_LIBS="$LIBS"
18125 LIBS="$LIBS -framework CoreFoundation"
18126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18127 /* end confdefs.h. */
18128 #include <CFPreferences.h>
18132 CFPreferencesCopyAppValue(NULL, NULL)
18137 if ac_fn_c_try_link "$LINENO"; then :
18138 gt_cv_func_CFPreferencesCopyAppValue=yes
18140 gt_cv_func_CFPreferencesCopyAppValue=no
18142 rm -f core conftest.err conftest.$ac_objext \
18143 conftest$ac_exeext conftest.$ac_ext
18144 CPPFLAGS="$gt_save_CPPFLAGS"
18145 LIBS="$gt_save_LIBS"
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18148 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18149 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18151 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18155 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18156 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18157 $as_echo_n "(cached) " >&6
18159 gt_save_CPPFLAGS="$CPPFLAGS"
18160 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18161 gt_save_LIBS="$LIBS"
18162 LIBS="$LIBS -framework CoreFoundation"
18163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18164 /* end confdefs.h. */
18165 #include <CFLocale.h>
18169 CFLocaleCopyCurrent();
18174 if ac_fn_c_try_link "$LINENO"; then :
18175 gt_cv_func_CFLocaleCopyCurrent=yes
18177 gt_cv_func_CFLocaleCopyCurrent=no
18179 rm -f core conftest.err conftest.$ac_objext \
18180 conftest$ac_exeext conftest.$ac_ext
18181 CPPFLAGS="$gt_save_CPPFLAGS"
18182 LIBS="$gt_save_LIBS"
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18185 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18186 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18188 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18192 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18193 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18200 $as_echo_n "checking whether NLS is requested... " >&6; }
18201 # Check whether --enable-nls was given.
18202 if test "${enable_nls+set}" = set; then :
18203 enableval=$enable_nls; USE_NLS=$enableval
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18209 $as_echo "$USE_NLS" >&6; }
18218 if test "$USE_NLS" = "yes"; then
18219 gt_use_preinstalled_gnugettext=no
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18227 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18228 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18229 $as_echo_n "(cached) " >&6
18231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232 /* end confdefs.h. */
18233 #include <libintl.h>
18234 extern int _nl_msg_cat_cntr;
18235 extern int *_nl_domain_bindings;
18239 bindtextdomain ("", "");
18240 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18245 if ac_fn_c_try_link "$LINENO"; then :
18246 gt_cv_func_gnugettext1_libc=yes
18248 gt_cv_func_gnugettext1_libc=no
18250 rm -f core conftest.err conftest.$ac_objext \
18251 conftest$ac_exeext conftest.$ac_ext
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18254 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18256 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18262 am_save_CPPFLAGS="$CPPFLAGS"
18264 for element in $INCICONV; do
18266 for x in $CPPFLAGS; do
18268 acl_save_prefix="$prefix"
18269 prefix="$acl_final_prefix"
18270 acl_save_exec_prefix="$exec_prefix"
18271 exec_prefix="$acl_final_exec_prefix"
18273 exec_prefix="$acl_save_exec_prefix"
18274 prefix="$acl_save_prefix"
18276 if test "X$x" = "X$element"; then
18281 if test -z "$haveit"; then
18282 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18288 $as_echo_n "checking for iconv... " >&6; }
18289 if ${am_cv_func_iconv+:} false; then :
18290 $as_echo_n "(cached) " >&6
18293 am_cv_func_iconv="no, consider installing GNU libiconv"
18295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h. */
18297 #include <stdlib.h>
18302 iconv_t cd = iconv_open("","");
18303 iconv(cd,NULL,NULL,NULL,NULL);
18309 if ac_fn_c_try_link "$LINENO"; then :
18310 am_cv_func_iconv=yes
18312 rm -f core conftest.err conftest.$ac_objext \
18313 conftest$ac_exeext conftest.$ac_ext
18314 if test "$am_cv_func_iconv" != yes; then
18315 am_save_LIBS="$LIBS"
18316 LIBS="$LIBS $LIBICONV"
18317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18318 /* end confdefs.h. */
18319 #include <stdlib.h>
18324 iconv_t cd = iconv_open("","");
18325 iconv(cd,NULL,NULL,NULL,NULL);
18331 if ac_fn_c_try_link "$LINENO"; then :
18332 am_cv_lib_iconv=yes
18333 am_cv_func_iconv=yes
18335 rm -f core conftest.err conftest.$ac_objext \
18336 conftest$ac_exeext conftest.$ac_ext
18337 LIBS="$am_save_LIBS"
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18342 $as_echo "$am_cv_func_iconv" >&6; }
18343 if test "$am_cv_func_iconv" = yes; then
18345 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18348 if test "$am_cv_lib_iconv" = yes; then
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18350 $as_echo_n "checking how to link with libiconv... " >&6; }
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18352 $as_echo "$LIBICONV" >&6; }
18354 CPPFLAGS="$am_save_CPPFLAGS"
18366 acl_save_prefix="$prefix"
18367 prefix="$acl_final_prefix"
18368 acl_save_exec_prefix="$exec_prefix"
18369 exec_prefix="$acl_final_exec_prefix"
18371 eval additional_includedir=\"$includedir\"
18372 eval additional_libdir=\"$libdir\"
18374 exec_prefix="$acl_save_exec_prefix"
18375 prefix="$acl_save_prefix"
18378 # Check whether --with-libintl-prefix was given.
18379 if test "${with_libintl_prefix+set}" = set; then :
18380 withval=$with_libintl_prefix;
18381 if test "X$withval" = "Xno"; then
18384 if test "X$withval" = "X"; then
18386 acl_save_prefix="$prefix"
18387 prefix="$acl_final_prefix"
18388 acl_save_exec_prefix="$exec_prefix"
18389 exec_prefix="$acl_final_exec_prefix"
18391 eval additional_includedir=\"$includedir\"
18392 eval additional_libdir=\"$libdir\"
18394 exec_prefix="$acl_save_exec_prefix"
18395 prefix="$acl_save_prefix"
18398 additional_includedir="$withval/include"
18399 additional_libdir="$withval/lib"
18410 names_already_handled=
18411 names_next_round='intl '
18412 while test -n "$names_next_round"; do
18413 names_this_round="$names_next_round"
18415 for name in $names_this_round; do
18417 for n in $names_already_handled; do
18418 if test "$n" = "$name"; then
18419 already_handled=yes
18423 if test -z "$already_handled"; then
18424 names_already_handled="$names_already_handled $name"
18425 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18426 eval value=\"\$HAVE_LIB$uppername\"
18427 if test -n "$value"; then
18428 if test "$value" = yes; then
18429 eval value=\"\$LIB$uppername\"
18430 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18431 eval value=\"\$LTLIB$uppername\"
18432 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18441 if test $use_additional = yes; then
18442 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18443 found_dir="$additional_libdir"
18444 found_so="$additional_libdir/lib$name.$shlibext"
18445 if test -f "$additional_libdir/lib$name.la"; then
18446 found_la="$additional_libdir/lib$name.la"
18449 if test -f "$additional_libdir/lib$name.$libext"; then
18450 found_dir="$additional_libdir"
18451 found_a="$additional_libdir/lib$name.$libext"
18452 if test -f "$additional_libdir/lib$name.la"; then
18453 found_la="$additional_libdir/lib$name.la"
18458 if test "X$found_dir" = "X"; then
18459 for x in $LDFLAGS $LTLIBINTL; do
18461 acl_save_prefix="$prefix"
18462 prefix="$acl_final_prefix"
18463 acl_save_exec_prefix="$exec_prefix"
18464 exec_prefix="$acl_final_exec_prefix"
18466 exec_prefix="$acl_save_exec_prefix"
18467 prefix="$acl_save_prefix"
18471 dir=`echo "X$x" | sed -e 's/^X-L//'`
18472 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18474 found_so="$dir/lib$name.$shlibext"
18475 if test -f "$dir/lib$name.la"; then
18476 found_la="$dir/lib$name.la"
18479 if test -f "$dir/lib$name.$libext"; then
18481 found_a="$dir/lib$name.$libext"
18482 if test -f "$dir/lib$name.la"; then
18483 found_la="$dir/lib$name.la"
18489 if test "X$found_dir" != "X"; then
18494 if test "X$found_dir" != "X"; then
18495 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18496 if test "X$found_so" != "X"; then
18497 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18498 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18501 for x in $ltrpathdirs; do
18502 if test "X$x" = "X$found_dir"; then
18507 if test -z "$haveit"; then
18508 ltrpathdirs="$ltrpathdirs $found_dir"
18510 if test "$hardcode_direct" = yes; then
18511 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18513 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18514 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18516 for x in $rpathdirs; do
18517 if test "X$x" = "X$found_dir"; then
18522 if test -z "$haveit"; then
18523 rpathdirs="$rpathdirs $found_dir"
18527 for x in $LDFLAGS $LIBINTL; do
18529 acl_save_prefix="$prefix"
18530 prefix="$acl_final_prefix"
18531 acl_save_exec_prefix="$exec_prefix"
18532 exec_prefix="$acl_final_exec_prefix"
18534 exec_prefix="$acl_save_exec_prefix"
18535 prefix="$acl_save_prefix"
18537 if test "X$x" = "X-L$found_dir"; then
18542 if test -z "$haveit"; then
18543 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18545 if test "$hardcode_minus_L" != no; then
18546 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18548 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18554 if test "X$found_a" != "X"; then
18555 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18557 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18560 additional_includedir=
18561 case "$found_dir" in
18563 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18564 additional_includedir="$basedir/include"
18567 if test "X$additional_includedir" != "X"; then
18568 if test "X$additional_includedir" != "X/usr/include"; then
18570 if test "X$additional_includedir" = "X/usr/local/include"; then
18571 if test -n "$GCC"; then
18573 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18577 if test -z "$haveit"; then
18578 for x in $CPPFLAGS $INCINTL; do
18580 acl_save_prefix="$prefix"
18581 prefix="$acl_final_prefix"
18582 acl_save_exec_prefix="$exec_prefix"
18583 exec_prefix="$acl_final_exec_prefix"
18585 exec_prefix="$acl_save_exec_prefix"
18586 prefix="$acl_save_prefix"
18588 if test "X$x" = "X-I$additional_includedir"; then
18593 if test -z "$haveit"; then
18594 if test -d "$additional_includedir"; then
18595 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18601 if test -n "$found_la"; then
18602 save_libdir="$libdir"
18603 case "$found_la" in
18604 */* | *\\*) . "$found_la" ;;
18605 *) . "./$found_la" ;;
18607 libdir="$save_libdir"
18608 for dep in $dependency_libs; do
18611 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18612 if test "X$additional_libdir" != "X/usr/lib"; then
18614 if test "X$additional_libdir" = "X/usr/local/lib"; then
18615 if test -n "$GCC"; then
18617 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18621 if test -z "$haveit"; then
18623 for x in $LDFLAGS $LIBINTL; do
18625 acl_save_prefix="$prefix"
18626 prefix="$acl_final_prefix"
18627 acl_save_exec_prefix="$exec_prefix"
18628 exec_prefix="$acl_final_exec_prefix"
18630 exec_prefix="$acl_save_exec_prefix"
18631 prefix="$acl_save_prefix"
18633 if test "X$x" = "X-L$additional_libdir"; then
18638 if test -z "$haveit"; then
18639 if test -d "$additional_libdir"; then
18640 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18644 for x in $LDFLAGS $LTLIBINTL; do
18646 acl_save_prefix="$prefix"
18647 prefix="$acl_final_prefix"
18648 acl_save_exec_prefix="$exec_prefix"
18649 exec_prefix="$acl_final_exec_prefix"
18651 exec_prefix="$acl_save_exec_prefix"
18652 prefix="$acl_save_prefix"
18654 if test "X$x" = "X-L$additional_libdir"; then
18659 if test -z "$haveit"; then
18660 if test -d "$additional_libdir"; then
18661 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18668 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18669 if test "$enable_rpath" != no; then
18671 for x in $rpathdirs; do
18672 if test "X$x" = "X$dir"; then
18677 if test -z "$haveit"; then
18678 rpathdirs="$rpathdirs $dir"
18681 for x in $ltrpathdirs; do
18682 if test "X$x" = "X$dir"; then
18687 if test -z "$haveit"; then
18688 ltrpathdirs="$ltrpathdirs $dir"
18693 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18696 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18699 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18700 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18706 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18707 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18713 if test "X$rpathdirs" != "X"; then
18714 if test -n "$hardcode_libdir_separator"; then
18716 for found_dir in $rpathdirs; do
18717 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18719 acl_save_libdir="$libdir"
18721 eval flag=\"$hardcode_libdir_flag_spec\"
18722 libdir="$acl_save_libdir"
18723 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18725 for found_dir in $rpathdirs; do
18726 acl_save_libdir="$libdir"
18727 libdir="$found_dir"
18728 eval flag=\"$hardcode_libdir_flag_spec\"
18729 libdir="$acl_save_libdir"
18730 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18734 if test "X$ltrpathdirs" != "X"; then
18735 for found_dir in $ltrpathdirs; do
18736 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18741 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18742 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18743 $as_echo_n "(cached) " >&6
18745 gt_save_CPPFLAGS="$CPPFLAGS"
18746 CPPFLAGS="$CPPFLAGS $INCINTL"
18747 gt_save_LIBS="$LIBS"
18748 LIBS="$LIBS $LIBINTL"
18749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18750 /* end confdefs.h. */
18751 #include <libintl.h>
18752 extern int _nl_msg_cat_cntr;
18757 const char *_nl_expand_alias (const char *);
18761 bindtextdomain ("", "");
18762 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18767 if ac_fn_c_try_link "$LINENO"; then :
18768 gt_cv_func_gnugettext1_libintl=yes
18770 gt_cv_func_gnugettext1_libintl=no
18772 rm -f core conftest.err conftest.$ac_objext \
18773 conftest$ac_exeext conftest.$ac_ext
18774 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18775 LIBS="$LIBS $LIBICONV"
18776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18777 /* end confdefs.h. */
18778 #include <libintl.h>
18779 extern int _nl_msg_cat_cntr;
18784 const char *_nl_expand_alias (const char *);
18788 bindtextdomain ("", "");
18789 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18794 if ac_fn_c_try_link "$LINENO"; then :
18795 LIBINTL="$LIBINTL $LIBICONV"
18796 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18797 gt_cv_func_gnugettext1_libintl=yes
18800 rm -f core conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext conftest.$ac_ext
18803 CPPFLAGS="$gt_save_CPPFLAGS"
18804 LIBS="$gt_save_LIBS"
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18807 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18810 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18811 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18812 && test "$PACKAGE" != gettext-runtime \
18813 && test "$PACKAGE" != gettext-tools; }; then
18814 gt_use_preinstalled_gnugettext=yes
18823 if test -n "$INTL_MACOSX_LIBS"; then
18824 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18825 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18826 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18827 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18831 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18832 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18834 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18842 $as_echo_n "checking whether to use NLS... " >&6; }
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18844 $as_echo "$USE_NLS" >&6; }
18845 if test "$USE_NLS" = "yes"; then
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18847 $as_echo_n "checking where the gettext function comes from... " >&6; }
18848 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18849 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18850 gt_source="external libintl"
18855 gt_source="included intl directory"
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18858 $as_echo "$gt_source" >&6; }
18861 if test "$USE_NLS" = "yes"; then
18863 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18864 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18866 $as_echo_n "checking how to link with libintl... " >&6; }
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18868 $as_echo "$LIBINTL" >&6; }
18870 for element in $INCINTL; do
18872 for x in $CPPFLAGS; do
18874 acl_save_prefix="$prefix"
18875 prefix="$acl_final_prefix"
18876 acl_save_exec_prefix="$exec_prefix"
18877 exec_prefix="$acl_final_exec_prefix"
18879 exec_prefix="$acl_save_exec_prefix"
18880 prefix="$acl_save_prefix"
18882 if test "X$x" = "X$element"; then
18887 if test -z "$haveit"; then
18888 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18895 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18898 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18907 INTLLIBS="$LIBINTL"
18915 os_name=`uname -s 2>/dev/null`
18916 if test x${prefix} = xNONE ; then
18917 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18918 sysconfdir=/etc/bacula
18921 if test `eval echo ${libdir}` = NONE/lib ; then
18924 os_processor=`uname -p 2>/dev/null`
18925 case ${os_processor} in
18940 if test `eval echo ${includedir}` = NONE/include ; then
18941 includedir=/usr/include
18944 if test `eval echo ${datarootdir}` = NONE/share ; then
18945 datarootdir=/usr/share
18950 if test x${exec_prefix} = xNONE ; then
18951 exec_prefix=${prefix}
18954 sysconfdir=`eval echo ${sysconfdir}`
18955 datarootdir=`eval echo ${datarootdir}`
18956 docdir=`eval echo ${docdir}`
18957 htmldir=`eval echo ${htmldir}`
18958 libdir=`eval echo ${libdir}`
18959 includedir=`eval echo ${includedir}`
18960 localedir=`eval echo ${datarootdir}/locale`
18961 cat >>confdefs.h <<_ACEOF
18962 #define SYSCONFDIR "$sysconfdir"
18965 cat >>confdefs.h <<_ACEOF
18966 #define LOCALEDIR "$localedir"
18970 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18971 sbindir=${exec_prefix}/sbin
18973 sbindir=`eval echo ${sbindir}`
18975 if test x$mandir = x'${prefix}/man' ; then
18976 mandir=/usr/share/man
18979 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18980 htmldir=`eval echo ${docdir}html`
18983 if test x$docdir = x'/usr/share/doc/' ; then
18984 docdir=`eval echo ${docdir}bacula`
18988 for ac_prog in msgfmt
18990 # Extract the first word of "$ac_prog", so it can be a program name with args.
18991 set dummy $ac_prog; ac_word=$2
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18993 $as_echo_n "checking for $ac_word... " >&6; }
18994 if ${ac_cv_path_MSGFMT+:} false; then :
18995 $as_echo_n "(cached) " >&6
18999 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19003 for as_dir in $PATH
19006 test -z "$as_dir" && as_dir=.
19007 for ac_exec_ext in '' $ac_executable_extensions; do
19008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19009 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19020 MSGFMT=$ac_cv_path_MSGFMT
19021 if test -n "$MSGFMT"; then
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19023 $as_echo "$MSGFMT" >&6; }
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19026 $as_echo "no" >&6; }
19030 test -n "$MSGFMT" && break
19032 test -n "$MSGFMT" || MSGFMT="no"
19034 if test "$MSGFMT" = "no"
19036 echo 'msgfmt program not found, disabling NLS !'
19038 USE_INCLUDED_LIBINTL=no
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19042 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19043 if ${ac_cv_gnu_library_2+:} false; then :
19044 $as_echo_n "(cached) " >&6
19046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19049 #include <features.h>
19050 #ifdef __GNU_LIBRARY__
19051 #if (__GLIBC__ >= 2)
19057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19058 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19059 ac_cv_gnu_library_2=yes
19061 ac_cv_gnu_library_2=no
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19069 $as_echo "$ac_cv_gnu_library_2" >&6; }
19071 GLIBC2="$ac_cv_gnu_library_2"
19074 if test -n "$ac_tool_prefix"; then
19075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19078 $as_echo_n "checking for $ac_word... " >&6; }
19079 if ${ac_cv_prog_RANLIB+:} false; then :
19080 $as_echo_n "(cached) " >&6
19082 if test -n "$RANLIB"; then
19083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19086 for as_dir in $PATH
19089 test -z "$as_dir" && as_dir=.
19090 for ac_exec_ext in '' $ac_executable_extensions; do
19091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19092 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19102 RANLIB=$ac_cv_prog_RANLIB
19103 if test -n "$RANLIB"; then
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19105 $as_echo "$RANLIB" >&6; }
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19108 $as_echo "no" >&6; }
19113 if test -z "$ac_cv_prog_RANLIB"; then
19114 ac_ct_RANLIB=$RANLIB
19115 # Extract the first word of "ranlib", so it can be a program name with args.
19116 set dummy ranlib; ac_word=$2
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19118 $as_echo_n "checking for $ac_word... " >&6; }
19119 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19120 $as_echo_n "(cached) " >&6
19122 if test -n "$ac_ct_RANLIB"; then
19123 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19126 for as_dir in $PATH
19129 test -z "$as_dir" && as_dir=.
19130 for ac_exec_ext in '' $ac_executable_extensions; do
19131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19132 ac_cv_prog_ac_ct_RANLIB="ranlib"
19133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19142 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19143 if test -n "$ac_ct_RANLIB"; then
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19145 $as_echo "$ac_ct_RANLIB" >&6; }
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19148 $as_echo "no" >&6; }
19151 if test "x$ac_ct_RANLIB" = x; then
19154 case $cross_compiling:$ac_tool_warned in
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19158 ac_tool_warned=yes ;;
19160 RANLIB=$ac_ct_RANLIB
19163 RANLIB="$ac_cv_prog_RANLIB"
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19168 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19169 if ${ac_cv_lib_cposix_strerror+:} false; then :
19170 $as_echo_n "(cached) " >&6
19172 ac_check_lib_save_LIBS=$LIBS
19173 LIBS="-lcposix $LIBS"
19174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19175 /* end confdefs.h. */
19177 /* Override any GCC internal prototype to avoid an error.
19178 Use char because int might match the return type of a GCC
19179 builtin and then its argument prototype would still apply. */
19187 return strerror ();
19192 if ac_fn_c_try_link "$LINENO"; then :
19193 ac_cv_lib_cposix_strerror=yes
19195 ac_cv_lib_cposix_strerror=no
19197 rm -f core conftest.err conftest.$ac_objext \
19198 conftest$ac_exeext conftest.$ac_ext
19199 LIBS=$ac_check_lib_save_LIBS
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19202 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19203 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19204 LIBS="$LIBS -lcposix"
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19210 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19211 if ${ac_cv_c_const+:} false; then :
19212 $as_echo_n "(cached) " >&6
19214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19215 /* end confdefs.h. */
19221 #ifndef __cplusplus
19222 /* Ultrix mips cc rejects this sort of thing. */
19223 typedef int charset[2];
19224 const charset cs = { 0, 0 };
19225 /* SunOS 4.1.1 cc rejects this. */
19226 char const *const *pcpcc;
19228 /* NEC SVR4.0.2 mips cc rejects this. */
19229 struct point {int x, y;};
19230 static struct point const zero = {0,0};
19231 /* AIX XL C 1.02.0.0 rejects this.
19232 It does not let you subtract one const X* pointer from another in
19233 an arm of an if-expression whose if-part is not a constant
19235 const char *g = "string";
19236 pcpcc = &g + (g ? g-g : 0);
19237 /* HPUX 7.0 cc rejects these. */
19239 ppc = (char**) pcpcc;
19240 pcpcc = (char const *const *) ppc;
19241 { /* SCO 3.2v4 cc rejects this sort of thing. */
19244 char const *s = 0 ? (char *) 0 : (char const *) 0;
19249 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19250 int x[] = {25, 17};
19251 const int *foo = &x[0];
19254 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19255 typedef const int *iptr;
19259 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19260 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19261 struct s { int j; const int *ap[3]; } bx;
19262 struct s *b = &bx; b->j = 5;
19264 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19265 const int foo = 10;
19266 if (!foo) return 0;
19268 return !cs[0] && !zero.x;
19275 if ac_fn_c_try_compile "$LINENO"; then :
19280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19283 $as_echo "$ac_cv_c_const" >&6; }
19284 if test $ac_cv_c_const = no; then
19286 $as_echo "#define const /**/" >>confdefs.h
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19292 $as_echo_n "checking for signed... " >&6; }
19293 if ${bh_cv_c_signed+:} false; then :
19294 $as_echo_n "(cached) " >&6
19296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19297 /* end confdefs.h. */
19307 if ac_fn_c_try_compile "$LINENO"; then :
19312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19315 $as_echo "$bh_cv_c_signed" >&6; }
19316 if test $bh_cv_c_signed = no; then
19318 $as_echo "#define signed /**/" >>confdefs.h
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19323 $as_echo_n "checking for inline... " >&6; }
19324 if ${ac_cv_c_inline+:} false; then :
19325 $as_echo_n "(cached) " >&6
19328 for ac_kw in inline __inline__ __inline; do
19329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19330 /* end confdefs.h. */
19331 #ifndef __cplusplus
19333 static $ac_kw foo_t static_foo () {return 0; }
19334 $ac_kw foo_t foo () {return 0; }
19338 if ac_fn_c_try_compile "$LINENO"; then :
19339 ac_cv_c_inline=$ac_kw
19341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19342 test "$ac_cv_c_inline" != no && break
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19347 $as_echo "$ac_cv_c_inline" >&6; }
19349 case $ac_cv_c_inline in
19352 case $ac_cv_c_inline in
19354 *) ac_val=$ac_cv_c_inline;;
19356 cat >>confdefs.h <<_ACEOF
19357 #ifndef __cplusplus
19358 #define inline $ac_val
19364 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19365 if test "x$ac_cv_type_off_t" = xyes; then :
19369 cat >>confdefs.h <<_ACEOF
19370 #define off_t long int
19375 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19376 if test "x$ac_cv_type_size_t" = xyes; then :
19380 cat >>confdefs.h <<_ACEOF
19381 #define size_t unsigned int
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19388 $as_echo_n "checking for long long... " >&6; }
19389 if ${ac_cv_type_long_long+:} false; then :
19390 $as_echo_n "(cached) " >&6
19392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19393 /* end confdefs.h. */
19394 long long ll = 1LL; int i = 63;
19398 long long llmax = (long long) -1;
19399 return ll << i | ll >> i | llmax / ll | llmax % ll;
19404 if ac_fn_c_try_link "$LINENO"; then :
19405 ac_cv_type_long_long=yes
19407 ac_cv_type_long_long=no
19409 rm -f core conftest.err conftest.$ac_objext \
19410 conftest$ac_exeext conftest.$ac_ext
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19413 $as_echo "$ac_cv_type_long_long" >&6; }
19414 if test $ac_cv_type_long_long = yes; then
19416 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19422 $as_echo_n "checking for long double... " >&6; }
19423 if ${gt_cv_c_long_double+:} false; then :
19424 $as_echo_n "(cached) " >&6
19426 if test "$GCC" = yes; then
19427 gt_cv_c_long_double=yes
19429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19430 /* end confdefs.h. */
19432 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19433 long double foo = 0.0;
19434 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19435 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19445 if ac_fn_c_try_compile "$LINENO"; then :
19446 gt_cv_c_long_double=yes
19448 gt_cv_c_long_double=no
19450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19454 $as_echo "$gt_cv_c_long_double" >&6; }
19455 if test $gt_cv_c_long_double = yes; then
19457 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19463 $as_echo_n "checking for wchar_t... " >&6; }
19464 if ${gt_cv_c_wchar_t+:} false; then :
19465 $as_echo_n "(cached) " >&6
19467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19468 /* end confdefs.h. */
19469 #include <stddef.h>
19470 wchar_t foo = (wchar_t)'\0';
19479 if ac_fn_c_try_compile "$LINENO"; then :
19480 gt_cv_c_wchar_t=yes
19484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19487 $as_echo "$gt_cv_c_wchar_t" >&6; }
19488 if test $gt_cv_c_wchar_t = yes; then
19490 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19496 $as_echo_n "checking for wint_t... " >&6; }
19497 if ${gt_cv_c_wint_t+:} false; then :
19498 $as_echo_n "(cached) " >&6
19500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19501 /* end confdefs.h. */
19503 wint_t foo = (wchar_t)'\0';
19512 if ac_fn_c_try_compile "$LINENO"; then :
19517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19520 $as_echo "$gt_cv_c_wint_t" >&6; }
19521 if test $gt_cv_c_wint_t = yes; then
19523 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19529 $as_echo_n "checking for inttypes.h... " >&6; }
19530 if ${gl_cv_header_inttypes_h+:} false; then :
19531 $as_echo_n "(cached) " >&6
19533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19534 /* end confdefs.h. */
19535 #include <sys/types.h>
19536 #include <inttypes.h>
19540 uintmax_t i = (uintmax_t) -1;
19545 if ac_fn_c_try_compile "$LINENO"; then :
19546 gl_cv_header_inttypes_h=yes
19548 gl_cv_header_inttypes_h=no
19550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19553 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19554 if test $gl_cv_header_inttypes_h = yes; then
19556 cat >>confdefs.h <<_ACEOF
19557 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19564 $as_echo_n "checking for stdint.h... " >&6; }
19565 if ${gl_cv_header_stdint_h+:} false; then :
19566 $as_echo_n "(cached) " >&6
19568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19569 /* end confdefs.h. */
19570 #include <sys/types.h>
19571 #include <stdint.h>
19575 uintmax_t i = (uintmax_t) -1;
19580 if ac_fn_c_try_compile "$LINENO"; then :
19581 gl_cv_header_stdint_h=yes
19583 gl_cv_header_stdint_h=no
19585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19588 $as_echo "$gl_cv_header_stdint_h" >&6; }
19589 if test $gl_cv_header_stdint_h = yes; then
19591 cat >>confdefs.h <<_ACEOF
19592 #define HAVE_STDINT_H_WITH_UINTMAX 1
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19601 $as_echo_n "checking for intmax_t... " >&6; }
19602 if ${gt_cv_c_intmax_t+:} false; then :
19603 $as_echo_n "(cached) " >&6
19605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19606 /* end confdefs.h. */
19608 #include <stddef.h>
19609 #include <stdlib.h>
19610 #if HAVE_STDINT_H_WITH_UINTMAX
19611 #include <stdint.h>
19613 #if HAVE_INTTYPES_H_WITH_UINTMAX
19614 #include <inttypes.h>
19625 if ac_fn_c_try_compile "$LINENO"; then :
19626 gt_cv_c_intmax_t=yes
19628 gt_cv_c_intmax_t=no
19630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19633 $as_echo "$gt_cv_c_intmax_t" >&6; }
19634 if test $gt_cv_c_intmax_t = yes; then
19636 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19643 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19644 if ${gt_cv_func_printf_posix+:} false; then :
19645 $as_echo_n "(cached) " >&6
19648 if test "$cross_compiling" = yes; then :
19650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19651 /* end confdefs.h. */
19653 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19659 $EGREP "notposix" >/dev/null 2>&1; then :
19660 gt_cv_func_printf_posix="guessing no"
19662 gt_cv_func_printf_posix="guessing yes"
19668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19669 /* end confdefs.h. */
19672 #include <string.h>
19673 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19674 dollar expansion (possibly an autoconf bug). */
19675 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19676 static char buf[100];
19679 sprintf (buf, format, 33, 55);
19680 return (strcmp (buf, "55 33") != 0);
19683 if ac_fn_c_try_run "$LINENO"; then :
19684 gt_cv_func_printf_posix=yes
19686 gt_cv_func_printf_posix=no
19688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19689 conftest.$ac_objext conftest.beam conftest.$ac_ext
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19695 $as_echo "$gt_cv_func_printf_posix" >&6; }
19696 case $gt_cv_func_printf_posix in
19699 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19704 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19705 # for constant arguments. Useless!
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19707 $as_echo_n "checking for working alloca.h... " >&6; }
19708 if ${ac_cv_working_alloca_h+:} false; then :
19709 $as_echo_n "(cached) " >&6
19711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h. */
19713 #include <alloca.h>
19717 char *p = (char *) alloca (2 * sizeof (int));
19723 if ac_fn_c_try_link "$LINENO"; then :
19724 ac_cv_working_alloca_h=yes
19726 ac_cv_working_alloca_h=no
19728 rm -f core conftest.err conftest.$ac_objext \
19729 conftest$ac_exeext conftest.$ac_ext
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19732 $as_echo "$ac_cv_working_alloca_h" >&6; }
19733 if test $ac_cv_working_alloca_h = yes; then
19735 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19740 $as_echo_n "checking for alloca... " >&6; }
19741 if ${ac_cv_func_alloca_works+:} false; then :
19742 $as_echo_n "(cached) " >&6
19744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19745 /* end confdefs.h. */
19747 # define alloca __builtin_alloca
19750 # include <malloc.h>
19751 # define alloca _alloca
19753 # ifdef HAVE_ALLOCA_H
19754 # include <alloca.h>
19759 # ifndef alloca /* predefined by HP cc +Olibcalls */
19760 void *alloca (size_t);
19770 char *p = (char *) alloca (1);
19776 if ac_fn_c_try_link "$LINENO"; then :
19777 ac_cv_func_alloca_works=yes
19779 ac_cv_func_alloca_works=no
19781 rm -f core conftest.err conftest.$ac_objext \
19782 conftest$ac_exeext conftest.$ac_ext
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19785 $as_echo "$ac_cv_func_alloca_works" >&6; }
19787 if test $ac_cv_func_alloca_works = yes; then
19789 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19792 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19793 # that cause trouble. Some versions do not even contain alloca or
19794 # contain a buggy version. If you still want to use their alloca,
19795 # use ar to extract alloca.o from them instead of compiling alloca.c.
19797 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19799 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19803 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19804 if ${ac_cv_os_cray+:} false; then :
19805 $as_echo_n "(cached) " >&6
19807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19808 /* end confdefs.h. */
19809 #if defined CRAY && ! defined CRAY2
19816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19817 $EGREP "webecray" >/dev/null 2>&1; then :
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19826 $as_echo "$ac_cv_os_cray" >&6; }
19827 if test $ac_cv_os_cray = yes; then
19828 for ac_func in _getb67 GETB67 getb67; do
19829 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19830 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19831 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19833 cat >>confdefs.h <<_ACEOF
19834 #define CRAY_STACKSEG_END $ac_func
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19844 $as_echo_n "checking stack direction for C alloca... " >&6; }
19845 if ${ac_cv_c_stack_direction+:} false; then :
19846 $as_echo_n "(cached) " >&6
19848 if test "$cross_compiling" = yes; then :
19849 ac_cv_c_stack_direction=0
19851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19852 /* end confdefs.h. */
19853 $ac_includes_default
19855 find_stack_direction (int *addr, int depth)
19857 int dir, dummy = 0;
19860 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19861 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19862 return dir + dummy;
19866 main (int argc, char **argv)
19868 return find_stack_direction (0, argc + !argv + 20) < 0;
19871 if ac_fn_c_try_run "$LINENO"; then :
19872 ac_cv_c_stack_direction=1
19874 ac_cv_c_stack_direction=-1
19876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19877 conftest.$ac_objext conftest.beam conftest.$ac_ext
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19882 $as_echo "$ac_cv_c_stack_direction" >&6; }
19883 cat >>confdefs.h <<_ACEOF
19884 #define STACK_DIRECTION $ac_cv_c_stack_direction
19893 for ac_header in $ac_header_list
19895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19896 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19898 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19899 cat >>confdefs.h <<_ACEOF
19900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19914 for ac_func in getpagesize
19916 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19917 if test "x$ac_cv_func_getpagesize" = xyes; then :
19918 cat >>confdefs.h <<_ACEOF
19919 #define HAVE_GETPAGESIZE 1
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19926 $as_echo_n "checking for working mmap... " >&6; }
19927 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19928 $as_echo_n "(cached) " >&6
19930 if test "$cross_compiling" = yes; then :
19931 ac_cv_func_mmap_fixed_mapped=no
19933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19934 /* end confdefs.h. */
19935 $ac_includes_default
19936 /* malloc might have been renamed as rpl_malloc. */
19939 /* Thanks to Mike Haertel and Jim Avera for this test.
19940 Here is a matrix of mmap possibilities:
19941 mmap private not fixed
19942 mmap private fixed at somewhere currently unmapped
19943 mmap private fixed at somewhere already mapped
19944 mmap shared not fixed
19945 mmap shared fixed at somewhere currently unmapped
19946 mmap shared fixed at somewhere already mapped
19947 For private mappings, we should verify that changes cannot be read()
19948 back from the file, nor mmap's back from the file at a different
19949 address. (There have been systems where private was not correctly
19950 implemented like the infamous i386 svr4.0, and systems where the
19951 VM page cache was not coherent with the file system buffer cache
19952 like early versions of FreeBSD and possibly contemporary NetBSD.)
19953 For shared mappings, we should conversely verify that changes get
19954 propagated back to all the places they're supposed to be.
19956 Grep wants private fixed already mapped.
19957 The main things grep needs to know about mmap are:
19958 * does it exist and is it safe to write into the mmap'd area
19959 * how to use it (BSD variants) */
19962 #include <sys/mman.h>
19964 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19968 /* This mess was copied from the GNU getpagesize.h. */
19969 #ifndef HAVE_GETPAGESIZE
19970 # ifdef _SC_PAGESIZE
19971 # define getpagesize() sysconf(_SC_PAGESIZE)
19972 # else /* no _SC_PAGESIZE */
19973 # ifdef HAVE_SYS_PARAM_H
19974 # include <sys/param.h>
19975 # ifdef EXEC_PAGESIZE
19976 # define getpagesize() EXEC_PAGESIZE
19977 # else /* no EXEC_PAGESIZE */
19979 # define getpagesize() NBPG * CLSIZE
19982 # endif /* no CLSIZE */
19983 # else /* no NBPG */
19985 # define getpagesize() NBPC
19986 # else /* no NBPC */
19988 # define getpagesize() PAGESIZE
19989 # endif /* PAGESIZE */
19990 # endif /* no NBPC */
19991 # endif /* no NBPG */
19992 # endif /* no EXEC_PAGESIZE */
19993 # else /* no HAVE_SYS_PARAM_H */
19994 # define getpagesize() 8192 /* punt totally */
19995 # endif /* no HAVE_SYS_PARAM_H */
19996 # endif /* no _SC_PAGESIZE */
19998 #endif /* no HAVE_GETPAGESIZE */
20003 char *data, *data2, *data3;
20004 const char *cdata2;
20008 pagesize = getpagesize ();
20010 /* First, make a file with some known garbage in it. */
20011 data = (char *) malloc (pagesize);
20014 for (i = 0; i < pagesize; ++i)
20015 *(data + i) = rand ();
20017 fd = creat ("conftest.mmap", 0600);
20020 if (write (fd, data, pagesize) != pagesize)
20024 /* Next, check that the tail of a page is zero-filled. File must have
20025 non-zero length, otherwise we risk SIGBUS for entire page. */
20026 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20030 if (write (fd2, cdata2, 1) != 1)
20032 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20033 if (data2 == MAP_FAILED)
20035 for (i = 0; i < pagesize; ++i)
20039 if (munmap (data2, pagesize))
20042 /* Next, try to mmap the file at a fixed address which already has
20043 something else allocated at it. If we can, also make sure that
20044 we see the same garbage. */
20045 fd = open ("conftest.mmap", O_RDWR);
20048 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20049 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20051 for (i = 0; i < pagesize; ++i)
20052 if (*(data + i) != *(data2 + i))
20055 /* Finally, make sure that changes to the mapped area do not
20056 percolate back to the file as seen by read(). (This is a bug on
20057 some variants of i386 svr4.0.) */
20058 for (i = 0; i < pagesize; ++i)
20059 *(data2 + i) = *(data2 + i) + 1;
20060 data3 = (char *) malloc (pagesize);
20063 if (read (fd, data3, pagesize) != pagesize)
20065 for (i = 0; i < pagesize; ++i)
20066 if (*(data + i) != *(data3 + i))
20072 if ac_fn_c_try_run "$LINENO"; then :
20073 ac_cv_func_mmap_fixed_mapped=yes
20075 ac_cv_func_mmap_fixed_mapped=no
20077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20078 conftest.$ac_objext conftest.beam conftest.$ac_ext
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20083 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20084 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20086 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20089 rm -f conftest.mmap conftest.txt
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20093 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20094 if ${ac_cv_gnu_library_2_1+:} false; then :
20095 $as_echo_n "(cached) " >&6
20097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098 /* end confdefs.h. */
20100 #include <features.h>
20101 #ifdef __GNU_LIBRARY__
20102 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20109 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20110 ac_cv_gnu_library_2_1=yes
20112 ac_cv_gnu_library_2_1=no
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20120 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20122 GLIBC21="$ac_cv_gnu_library_2_1"
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20128 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20129 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20130 $as_echo_n "(cached) " >&6
20133 if test "$cross_compiling" = yes; then :
20135 # Guess based on the CPU.
20136 case "$host_cpu" in
20137 alpha* | i3456786 | m68k | s390*)
20138 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20140 gt_cv_int_divbyzero_sigfpe="guessing no";;
20144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20145 /* end confdefs.h. */
20147 #include <stdlib.h>
20148 #include <signal.h>
20152 sigfpe_handler (int sig)
20154 sigfpe_handler (sig) int sig;
20157 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20158 exit (sig != SIGFPE);
20168 signal (SIGFPE, sigfpe_handler);
20169 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20170 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20171 signal (SIGTRAP, sigfpe_handler);
20173 /* Linux/SPARC yields signal SIGILL. */
20174 #if defined (__sparc__) && defined (__linux__)
20175 signal (SIGILL, sigfpe_handler);
20184 if ac_fn_c_try_run "$LINENO"; then :
20185 gt_cv_int_divbyzero_sigfpe=yes
20187 gt_cv_int_divbyzero_sigfpe=no
20189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20190 conftest.$ac_objext conftest.beam conftest.$ac_ext
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20196 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20197 case "$gt_cv_int_divbyzero_sigfpe" in
20202 cat >>confdefs.h <<_ACEOF
20203 #define INTDIV0_RAISES_SIGFPE $value
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20209 $as_echo_n "checking for unsigned long long... " >&6; }
20210 if ${ac_cv_type_unsigned_long_long+:} false; then :
20211 $as_echo_n "(cached) " >&6
20213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20214 /* end confdefs.h. */
20215 unsigned long long ull = 1ULL; int i = 63;
20219 unsigned long long ullmax = (unsigned long long) -1;
20220 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20225 if ac_fn_c_try_link "$LINENO"; then :
20226 ac_cv_type_unsigned_long_long=yes
20228 ac_cv_type_unsigned_long_long=no
20230 rm -f core conftest.err conftest.$ac_objext \
20231 conftest$ac_exeext conftest.$ac_ext
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20234 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20235 if test $ac_cv_type_unsigned_long_long = yes; then
20237 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20244 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20246 test $ac_cv_type_unsigned_long_long = yes \
20247 && ac_type='unsigned long long' \
20248 || ac_type='unsigned long'
20250 cat >>confdefs.h <<_ACEOF
20251 #define uintmax_t $ac_type
20256 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20262 $as_echo_n "checking for inttypes.h... " >&6; }
20263 if ${gt_cv_header_inttypes_h+:} false; then :
20264 $as_echo_n "(cached) " >&6
20267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20268 /* end confdefs.h. */
20269 #include <sys/types.h>
20270 #include <inttypes.h>
20279 if ac_fn_c_try_compile "$LINENO"; then :
20280 gt_cv_header_inttypes_h=yes
20282 gt_cv_header_inttypes_h=no
20284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20288 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20289 if test $gt_cv_header_inttypes_h = yes; then
20291 cat >>confdefs.h <<_ACEOF
20292 #define HAVE_INTTYPES_H 1
20299 if test $gt_cv_header_inttypes_h = yes; then
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20301 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20302 if ${gt_cv_inttypes_pri_broken+:} false; then :
20303 $as_echo_n "(cached) " >&6
20306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20307 /* end confdefs.h. */
20308 #include <inttypes.h>
20321 if ac_fn_c_try_compile "$LINENO"; then :
20322 gt_cv_inttypes_pri_broken=no
20324 gt_cv_inttypes_pri_broken=yes
20326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20330 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20332 if test "$gt_cv_inttypes_pri_broken" = yes; then
20334 cat >>confdefs.h <<_ACEOF
20335 #define PRI_MACROS_BROKEN 1
20341 for ac_header in stdint.h
20343 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20344 if test "x$ac_cv_header_stdint_h" = xyes; then :
20345 cat >>confdefs.h <<_ACEOF
20346 #define HAVE_STDINT_H 1
20353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20354 $as_echo_n "checking for SIZE_MAX... " >&6; }
20356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20357 /* end confdefs.h. */
20359 #include <limits.h>
20361 #include <stdint.h>
20368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20369 $EGREP "Found it" >/dev/null 2>&1; then :
20374 if test -z "$result"; then
20375 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20382 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20389 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20396 if test "$fits_in_uint" = 1; then
20397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20398 /* end confdefs.h. */
20399 #include <stddef.h>
20401 extern unsigned long foo;
20411 if ac_fn_c_try_compile "$LINENO"; then :
20414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20416 if test -z "$result"; then
20417 if test "$fits_in_uint" = 1; then
20418 result="$res_hi$res_lo"U
20420 result="$res_hi$res_lo"UL
20423 result='~(size_t)0'
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20427 $as_echo "$result" >&6; }
20428 if test "$result" != yes; then
20430 cat >>confdefs.h <<_ACEOF
20431 #define SIZE_MAX $result
20439 for ac_header in stdint.h
20441 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20442 if test "x$ac_cv_header_stdint_h" = xyes; then :
20443 cat >>confdefs.h <<_ACEOF
20444 #define HAVE_STDINT_H 1
20458 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20459 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20463 $as_echo "#define ptrdiff_t long" >>confdefs.h
20468 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20469 stdlib.h string.h unistd.h sys/param.h
20471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20472 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20473 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20474 cat >>confdefs.h <<_ACEOF
20475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20482 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20483 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20484 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20487 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20488 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20489 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20490 cat >>confdefs.h <<_ACEOF
20491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20500 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20501 if ${ac_cv_have_decl__snprintf+:} false; then :
20502 $as_echo_n "(cached) " >&6
20504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20505 /* end confdefs.h. */
20512 char *p = (char *) _snprintf;
20519 if ac_fn_c_try_compile "$LINENO"; then :
20520 ac_cv_have_decl__snprintf=yes
20522 ac_cv_have_decl__snprintf=no
20524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20527 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20528 if test $ac_cv_have_decl__snprintf = yes; then
20534 cat >>confdefs.h <<_ACEOF
20535 #define HAVE_DECL__SNPRINTF $gt_value
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20541 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20542 if ${ac_cv_have_decl__snwprintf+:} false; then :
20543 $as_echo_n "(cached) " >&6
20545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20546 /* end confdefs.h. */
20553 char *p = (char *) _snwprintf;
20560 if ac_fn_c_try_compile "$LINENO"; then :
20561 ac_cv_have_decl__snwprintf=yes
20563 ac_cv_have_decl__snwprintf=no
20565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20568 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20569 if test $ac_cv_have_decl__snwprintf = yes; then
20575 cat >>confdefs.h <<_ACEOF
20576 #define HAVE_DECL__SNWPRINTF $gt_value
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20583 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20584 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20585 $as_echo_n "(cached) " >&6
20587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20588 /* end confdefs.h. */
20594 #ifndef feof_unlocked
20595 char *p = (char *) feof_unlocked;
20602 if ac_fn_c_try_compile "$LINENO"; then :
20603 ac_cv_have_decl_feof_unlocked=yes
20605 ac_cv_have_decl_feof_unlocked=no
20607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20610 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20611 if test $ac_cv_have_decl_feof_unlocked = yes; then
20617 cat >>confdefs.h <<_ACEOF
20618 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20624 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20625 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20626 $as_echo_n "(cached) " >&6
20628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20629 /* end confdefs.h. */
20635 #ifndef fgets_unlocked
20636 char *p = (char *) fgets_unlocked;
20643 if ac_fn_c_try_compile "$LINENO"; then :
20644 ac_cv_have_decl_fgets_unlocked=yes
20646 ac_cv_have_decl_fgets_unlocked=no
20648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20651 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20652 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20658 cat >>confdefs.h <<_ACEOF
20659 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20665 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20666 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20667 $as_echo_n "(cached) " >&6
20669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20670 /* end confdefs.h. */
20676 #ifndef getc_unlocked
20677 char *p = (char *) getc_unlocked;
20684 if ac_fn_c_try_compile "$LINENO"; then :
20685 ac_cv_have_decl_getc_unlocked=yes
20687 ac_cv_have_decl_getc_unlocked=no
20689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20692 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20693 if test $ac_cv_have_decl_getc_unlocked = yes; then
20699 cat >>confdefs.h <<_ACEOF
20700 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20705 case $gt_cv_func_printf_posix in
20706 *yes) HAVE_POSIX_PRINTF=1 ;;
20707 *) HAVE_POSIX_PRINTF=0 ;;
20710 if test "$ac_cv_func_asprintf" = yes; then
20716 if test "$ac_cv_func_snprintf" = yes; then
20722 if test "$ac_cv_func_wprintf" = yes; then
20734 am_save_CPPFLAGS="$CPPFLAGS"
20736 for element in $INCICONV; do
20738 for x in $CPPFLAGS; do
20740 acl_save_prefix="$prefix"
20741 prefix="$acl_final_prefix"
20742 acl_save_exec_prefix="$exec_prefix"
20743 exec_prefix="$acl_final_exec_prefix"
20745 exec_prefix="$acl_save_exec_prefix"
20746 prefix="$acl_save_prefix"
20748 if test "X$x" = "X$element"; then
20753 if test -z "$haveit"; then
20754 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20760 $as_echo_n "checking for iconv... " >&6; }
20761 if ${am_cv_func_iconv+:} false; then :
20762 $as_echo_n "(cached) " >&6
20765 am_cv_func_iconv="no, consider installing GNU libiconv"
20767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20768 /* end confdefs.h. */
20769 #include <stdlib.h>
20774 iconv_t cd = iconv_open("","");
20775 iconv(cd,NULL,NULL,NULL,NULL);
20781 if ac_fn_c_try_link "$LINENO"; then :
20782 am_cv_func_iconv=yes
20784 rm -f core conftest.err conftest.$ac_objext \
20785 conftest$ac_exeext conftest.$ac_ext
20786 if test "$am_cv_func_iconv" != yes; then
20787 am_save_LIBS="$LIBS"
20788 LIBS="$LIBS $LIBICONV"
20789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20790 /* end confdefs.h. */
20791 #include <stdlib.h>
20796 iconv_t cd = iconv_open("","");
20797 iconv(cd,NULL,NULL,NULL,NULL);
20803 if ac_fn_c_try_link "$LINENO"; then :
20804 am_cv_lib_iconv=yes
20805 am_cv_func_iconv=yes
20807 rm -f core conftest.err conftest.$ac_objext \
20808 conftest$ac_exeext conftest.$ac_ext
20809 LIBS="$am_save_LIBS"
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20814 $as_echo "$am_cv_func_iconv" >&6; }
20815 if test "$am_cv_func_iconv" = yes; then
20817 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20820 if test "$am_cv_lib_iconv" = yes; then
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20822 $as_echo_n "checking how to link with libiconv... " >&6; }
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20824 $as_echo "$LIBICONV" >&6; }
20826 CPPFLAGS="$am_save_CPPFLAGS"
20833 if test "$am_cv_func_iconv" = yes; then
20834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20835 $as_echo_n "checking for iconv declaration... " >&6; }
20836 if ${am_cv_proto_iconv+:} false; then :
20837 $as_echo_n "(cached) " >&6
20840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20841 /* end confdefs.h. */
20843 #include <stdlib.h>
20849 #if defined(__STDC__) || defined(__cplusplus)
20850 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20863 if ac_fn_c_try_compile "$LINENO"; then :
20864 am_cv_proto_iconv_arg1=""
20866 am_cv_proto_iconv_arg1="const"
20868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20869 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);"
20872 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20874 }$am_cv_proto_iconv" >&5
20876 }$am_cv_proto_iconv" >&6; }
20878 cat >>confdefs.h <<_ACEOF
20879 #define ICONV_CONST $am_cv_proto_iconv_arg1
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20886 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20887 if ${am_cv_langinfo_codeset+:} false; then :
20888 $as_echo_n "(cached) " >&6
20890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20891 /* end confdefs.h. */
20892 #include <langinfo.h>
20896 char* cs = nl_langinfo(CODESET);
20901 if ac_fn_c_try_link "$LINENO"; then :
20902 am_cv_langinfo_codeset=yes
20904 am_cv_langinfo_codeset=no
20906 rm -f core conftest.err conftest.$ac_objext \
20907 conftest$ac_exeext conftest.$ac_ext
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20911 $as_echo "$am_cv_langinfo_codeset" >&6; }
20912 if test $am_cv_langinfo_codeset = yes; then
20914 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20918 if test $ac_cv_header_locale_h = yes; then
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20921 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20922 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20923 $as_echo_n "(cached) " >&6
20925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20926 /* end confdefs.h. */
20927 #include <locale.h>
20936 if ac_fn_c_try_link "$LINENO"; then :
20937 gt_cv_val_LC_MESSAGES=yes
20939 gt_cv_val_LC_MESSAGES=no
20941 rm -f core conftest.err conftest.$ac_objext \
20942 conftest$ac_exeext conftest.$ac_ext
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20945 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20946 if test $gt_cv_val_LC_MESSAGES = yes; then
20948 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20954 if test -n "$INTL_MACOSX_LIBS"; then
20955 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20958 for ac_prog in bison
20960 # Extract the first word of "$ac_prog", so it can be a program name with args.
20961 set dummy $ac_prog; ac_word=$2
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20963 $as_echo_n "checking for $ac_word... " >&6; }
20964 if ${ac_cv_prog_INTLBISON+:} false; then :
20965 $as_echo_n "(cached) " >&6
20967 if test -n "$INTLBISON"; then
20968 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20971 for as_dir in $PATH
20974 test -z "$as_dir" && as_dir=.
20975 for ac_exec_ext in '' $ac_executable_extensions; do
20976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20977 ac_cv_prog_INTLBISON="$ac_prog"
20978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20987 INTLBISON=$ac_cv_prog_INTLBISON
20988 if test -n "$INTLBISON"; then
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20990 $as_echo "$INTLBISON" >&6; }
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20993 $as_echo "no" >&6; }
20997 test -n "$INTLBISON" && break
21000 if test -z "$INTLBISON"; then
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
21004 $as_echo_n "checking version of bison... " >&6; }
21005 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
21006 case $ac_prog_version in
21007 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
21008 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
21009 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
21010 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
21013 $as_echo "$ac_prog_version" >&6; }
21015 if test $ac_verc_fail = yes; then
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21035 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21036 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21037 $as_echo_n "(cached) " >&6
21039 gt_save_CPPFLAGS="$CPPFLAGS"
21040 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21041 gt_save_LIBS="$LIBS"
21042 LIBS="$LIBS -framework CoreFoundation"
21043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21044 /* end confdefs.h. */
21045 #include <CFPreferences.h>
21049 CFPreferencesCopyAppValue(NULL, NULL)
21054 if ac_fn_c_try_link "$LINENO"; then :
21055 gt_cv_func_CFPreferencesCopyAppValue=yes
21057 gt_cv_func_CFPreferencesCopyAppValue=no
21059 rm -f core conftest.err conftest.$ac_objext \
21060 conftest$ac_exeext conftest.$ac_ext
21061 CPPFLAGS="$gt_save_CPPFLAGS"
21062 LIBS="$gt_save_LIBS"
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21065 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21066 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21068 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21072 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21073 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21074 $as_echo_n "(cached) " >&6
21076 gt_save_CPPFLAGS="$CPPFLAGS"
21077 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21078 gt_save_LIBS="$LIBS"
21079 LIBS="$LIBS -framework CoreFoundation"
21080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21081 /* end confdefs.h. */
21082 #include <CFLocale.h>
21086 CFLocaleCopyCurrent();
21091 if ac_fn_c_try_link "$LINENO"; then :
21092 gt_cv_func_CFLocaleCopyCurrent=yes
21094 gt_cv_func_CFLocaleCopyCurrent=no
21096 rm -f core conftest.err conftest.$ac_objext \
21097 conftest$ac_exeext conftest.$ac_ext
21098 CPPFLAGS="$gt_save_CPPFLAGS"
21099 LIBS="$gt_save_LIBS"
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21102 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21103 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21105 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21109 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21110 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21117 $as_echo_n "checking whether NLS is requested... " >&6; }
21118 # Check whether --enable-nls was given.
21119 if test "${enable_nls+set}" = set; then :
21120 enableval=$enable_nls; USE_NLS=$enableval
21125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21126 $as_echo "$USE_NLS" >&6; }
21131 BUILD_INCLUDED_LIBINTL=no
21132 USE_INCLUDED_LIBINTL=no
21138 if test "$USE_NLS" = "yes"; then
21139 gt_use_preinstalled_gnugettext=no
21141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21142 $as_echo_n "checking whether included gettext is requested... " >&6; }
21144 # Check whether --with-included-gettext was given.
21145 if test "${with_included_gettext+set}" = set; then :
21146 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21148 nls_cv_force_use_gnu_gettext=no
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21152 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21154 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21155 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21163 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21164 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21165 $as_echo_n "(cached) " >&6
21167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21168 /* end confdefs.h. */
21169 #include <libintl.h>
21170 extern int _nl_msg_cat_cntr;
21171 extern int *_nl_domain_bindings;
21175 bindtextdomain ("", "");
21176 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21181 if ac_fn_c_try_link "$LINENO"; then :
21182 gt_cv_func_gnugettext1_libc=yes
21184 gt_cv_func_gnugettext1_libc=no
21186 rm -f core conftest.err conftest.$ac_objext \
21187 conftest$ac_exeext conftest.$ac_ext
21189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21190 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21192 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21198 acl_save_prefix="$prefix"
21199 prefix="$acl_final_prefix"
21200 acl_save_exec_prefix="$exec_prefix"
21201 exec_prefix="$acl_final_exec_prefix"
21203 eval additional_includedir=\"$includedir\"
21204 eval additional_libdir=\"$libdir\"
21206 exec_prefix="$acl_save_exec_prefix"
21207 prefix="$acl_save_prefix"
21210 # Check whether --with-libintl-prefix was given.
21211 if test "${with_libintl_prefix+set}" = set; then :
21212 withval=$with_libintl_prefix;
21213 if test "X$withval" = "Xno"; then
21216 if test "X$withval" = "X"; then
21218 acl_save_prefix="$prefix"
21219 prefix="$acl_final_prefix"
21220 acl_save_exec_prefix="$exec_prefix"
21221 exec_prefix="$acl_final_exec_prefix"
21223 eval additional_includedir=\"$includedir\"
21224 eval additional_libdir=\"$libdir\"
21226 exec_prefix="$acl_save_exec_prefix"
21227 prefix="$acl_save_prefix"
21230 additional_includedir="$withval/include"
21231 additional_libdir="$withval/lib"
21242 names_already_handled=
21243 names_next_round='intl '
21244 while test -n "$names_next_round"; do
21245 names_this_round="$names_next_round"
21247 for name in $names_this_round; do
21249 for n in $names_already_handled; do
21250 if test "$n" = "$name"; then
21251 already_handled=yes
21255 if test -z "$already_handled"; then
21256 names_already_handled="$names_already_handled $name"
21257 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21258 eval value=\"\$HAVE_LIB$uppername\"
21259 if test -n "$value"; then
21260 if test "$value" = yes; then
21261 eval value=\"\$LIB$uppername\"
21262 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21263 eval value=\"\$LTLIB$uppername\"
21264 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21273 if test $use_additional = yes; then
21274 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21275 found_dir="$additional_libdir"
21276 found_so="$additional_libdir/lib$name.$shlibext"
21277 if test -f "$additional_libdir/lib$name.la"; then
21278 found_la="$additional_libdir/lib$name.la"
21281 if test -f "$additional_libdir/lib$name.$libext"; then
21282 found_dir="$additional_libdir"
21283 found_a="$additional_libdir/lib$name.$libext"
21284 if test -f "$additional_libdir/lib$name.la"; then
21285 found_la="$additional_libdir/lib$name.la"
21290 if test "X$found_dir" = "X"; then
21291 for x in $LDFLAGS $LTLIBINTL; do
21293 acl_save_prefix="$prefix"
21294 prefix="$acl_final_prefix"
21295 acl_save_exec_prefix="$exec_prefix"
21296 exec_prefix="$acl_final_exec_prefix"
21298 exec_prefix="$acl_save_exec_prefix"
21299 prefix="$acl_save_prefix"
21303 dir=`echo "X$x" | sed -e 's/^X-L//'`
21304 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21306 found_so="$dir/lib$name.$shlibext"
21307 if test -f "$dir/lib$name.la"; then
21308 found_la="$dir/lib$name.la"
21311 if test -f "$dir/lib$name.$libext"; then
21313 found_a="$dir/lib$name.$libext"
21314 if test -f "$dir/lib$name.la"; then
21315 found_la="$dir/lib$name.la"
21321 if test "X$found_dir" != "X"; then
21326 if test "X$found_dir" != "X"; then
21327 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21328 if test "X$found_so" != "X"; then
21329 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21330 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21333 for x in $ltrpathdirs; do
21334 if test "X$x" = "X$found_dir"; then
21339 if test -z "$haveit"; then
21340 ltrpathdirs="$ltrpathdirs $found_dir"
21342 if test "$hardcode_direct" = yes; then
21343 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21345 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21346 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21348 for x in $rpathdirs; do
21349 if test "X$x" = "X$found_dir"; then
21354 if test -z "$haveit"; then
21355 rpathdirs="$rpathdirs $found_dir"
21359 for x in $LDFLAGS $LIBINTL; do
21361 acl_save_prefix="$prefix"
21362 prefix="$acl_final_prefix"
21363 acl_save_exec_prefix="$exec_prefix"
21364 exec_prefix="$acl_final_exec_prefix"
21366 exec_prefix="$acl_save_exec_prefix"
21367 prefix="$acl_save_prefix"
21369 if test "X$x" = "X-L$found_dir"; then
21374 if test -z "$haveit"; then
21375 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21377 if test "$hardcode_minus_L" != no; then
21378 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21380 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21386 if test "X$found_a" != "X"; then
21387 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21389 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21392 additional_includedir=
21393 case "$found_dir" in
21395 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21396 additional_includedir="$basedir/include"
21399 if test "X$additional_includedir" != "X"; then
21400 if test "X$additional_includedir" != "X/usr/include"; then
21402 if test "X$additional_includedir" = "X/usr/local/include"; then
21403 if test -n "$GCC"; then
21405 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21409 if test -z "$haveit"; then
21410 for x in $CPPFLAGS $INCINTL; do
21412 acl_save_prefix="$prefix"
21413 prefix="$acl_final_prefix"
21414 acl_save_exec_prefix="$exec_prefix"
21415 exec_prefix="$acl_final_exec_prefix"
21417 exec_prefix="$acl_save_exec_prefix"
21418 prefix="$acl_save_prefix"
21420 if test "X$x" = "X-I$additional_includedir"; then
21425 if test -z "$haveit"; then
21426 if test -d "$additional_includedir"; then
21427 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21433 if test -n "$found_la"; then
21434 save_libdir="$libdir"
21435 case "$found_la" in
21436 */* | *\\*) . "$found_la" ;;
21437 *) . "./$found_la" ;;
21439 libdir="$save_libdir"
21440 for dep in $dependency_libs; do
21443 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21444 if test "X$additional_libdir" != "X/usr/lib"; then
21446 if test "X$additional_libdir" = "X/usr/local/lib"; then
21447 if test -n "$GCC"; then
21449 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21453 if test -z "$haveit"; then
21455 for x in $LDFLAGS $LIBINTL; do
21457 acl_save_prefix="$prefix"
21458 prefix="$acl_final_prefix"
21459 acl_save_exec_prefix="$exec_prefix"
21460 exec_prefix="$acl_final_exec_prefix"
21462 exec_prefix="$acl_save_exec_prefix"
21463 prefix="$acl_save_prefix"
21465 if test "X$x" = "X-L$additional_libdir"; then
21470 if test -z "$haveit"; then
21471 if test -d "$additional_libdir"; then
21472 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21476 for x in $LDFLAGS $LTLIBINTL; do
21478 acl_save_prefix="$prefix"
21479 prefix="$acl_final_prefix"
21480 acl_save_exec_prefix="$exec_prefix"
21481 exec_prefix="$acl_final_exec_prefix"
21483 exec_prefix="$acl_save_exec_prefix"
21484 prefix="$acl_save_prefix"
21486 if test "X$x" = "X-L$additional_libdir"; then
21491 if test -z "$haveit"; then
21492 if test -d "$additional_libdir"; then
21493 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21500 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21501 if test "$enable_rpath" != no; then
21503 for x in $rpathdirs; do
21504 if test "X$x" = "X$dir"; then
21509 if test -z "$haveit"; then
21510 rpathdirs="$rpathdirs $dir"
21513 for x in $ltrpathdirs; do
21514 if test "X$x" = "X$dir"; then
21519 if test -z "$haveit"; then
21520 ltrpathdirs="$ltrpathdirs $dir"
21525 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21528 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21531 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21532 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21538 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21539 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21545 if test "X$rpathdirs" != "X"; then
21546 if test -n "$hardcode_libdir_separator"; then
21548 for found_dir in $rpathdirs; do
21549 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21551 acl_save_libdir="$libdir"
21553 eval flag=\"$hardcode_libdir_flag_spec\"
21554 libdir="$acl_save_libdir"
21555 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21557 for found_dir in $rpathdirs; do
21558 acl_save_libdir="$libdir"
21559 libdir="$found_dir"
21560 eval flag=\"$hardcode_libdir_flag_spec\"
21561 libdir="$acl_save_libdir"
21562 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21566 if test "X$ltrpathdirs" != "X"; then
21567 for found_dir in $ltrpathdirs; do
21568 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21573 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21574 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21575 $as_echo_n "(cached) " >&6
21577 gt_save_CPPFLAGS="$CPPFLAGS"
21578 CPPFLAGS="$CPPFLAGS $INCINTL"
21579 gt_save_LIBS="$LIBS"
21580 LIBS="$LIBS $LIBINTL"
21581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21582 /* end confdefs.h. */
21583 #include <libintl.h>
21584 extern int _nl_msg_cat_cntr;
21589 const char *_nl_expand_alias (const char *);
21593 bindtextdomain ("", "");
21594 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21599 if ac_fn_c_try_link "$LINENO"; then :
21600 gt_cv_func_gnugettext1_libintl=yes
21602 gt_cv_func_gnugettext1_libintl=no
21604 rm -f core conftest.err conftest.$ac_objext \
21605 conftest$ac_exeext conftest.$ac_ext
21606 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21607 LIBS="$LIBS $LIBICONV"
21608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21609 /* end confdefs.h. */
21610 #include <libintl.h>
21611 extern int _nl_msg_cat_cntr;
21616 const char *_nl_expand_alias (const char *);
21620 bindtextdomain ("", "");
21621 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21626 if ac_fn_c_try_link "$LINENO"; then :
21627 LIBINTL="$LIBINTL $LIBICONV"
21628 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21629 gt_cv_func_gnugettext1_libintl=yes
21632 rm -f core conftest.err conftest.$ac_objext \
21633 conftest$ac_exeext conftest.$ac_ext
21635 CPPFLAGS="$gt_save_CPPFLAGS"
21636 LIBS="$gt_save_LIBS"
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21639 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21642 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21643 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21644 && test "$PACKAGE" != gettext-runtime \
21645 && test "$PACKAGE" != gettext-tools; }; then
21646 gt_use_preinstalled_gnugettext=yes
21654 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21655 nls_cv_use_gnu_gettext=yes
21659 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21660 BUILD_INCLUDED_LIBINTL=yes
21661 USE_INCLUDED_LIBINTL=yes
21662 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21663 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21664 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21668 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21669 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21674 if test -n "$INTL_MACOSX_LIBS"; then
21675 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21676 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21677 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21678 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21682 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21683 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21685 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21693 $as_echo_n "checking whether to use NLS... " >&6; }
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21695 $as_echo "$USE_NLS" >&6; }
21696 if test "$USE_NLS" = "yes"; then
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21698 $as_echo_n "checking where the gettext function comes from... " >&6; }
21699 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21700 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21701 gt_source="external libintl"
21706 gt_source="included intl directory"
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21709 $as_echo "$gt_source" >&6; }
21712 if test "$USE_NLS" = "yes"; then
21714 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21715 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21717 $as_echo_n "checking how to link with libintl... " >&6; }
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21719 $as_echo "$LIBINTL" >&6; }
21721 for element in $INCINTL; do
21723 for x in $CPPFLAGS; do
21725 acl_save_prefix="$prefix"
21726 prefix="$acl_final_prefix"
21727 acl_save_exec_prefix="$exec_prefix"
21728 exec_prefix="$acl_final_exec_prefix"
21730 exec_prefix="$acl_save_exec_prefix"
21731 prefix="$acl_save_prefix"
21733 if test "X$x" = "X$element"; then
21738 if test -z "$haveit"; then
21739 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21746 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21749 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21757 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21758 BUILD_INCLUDED_LIBINTL=yes
21765 nls_cv_header_intl=
21766 nls_cv_header_libgt=
21778 if test "$USE_INCLUDED_LIBINTL" = yes; then
21779 INTLOBJS="\$(GETTOBJS)"
21783 INTL_LIBTOOL_SUFFIX_PREFIX=
21787 INTLLIBS="$LIBINTL"
21796 support_smartalloc=yes
21797 support_readline=yes
21803 support_static_tools=no
21804 support_static_fd=no
21805 support_static_sd=no
21806 support_static_dir=no
21807 support_static_cons=no
21808 build_client_only=no
21812 batch_insert_db_backends=""
21816 # Check whether --enable-bat was given.
21817 if test "${enable_bat+set}" = set; then :
21818 enableval=$enable_bat;
21819 if test x$enableval = xyes; then
21821 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21831 if test x$support_bat = xyes; then
21832 abc=`$PKGCONFIG QtGui`
21834 if test $pkg = 0; then
21835 BAT_DIR=src/qt-console
21837 abc=`$PKGCONFIG Qt5Gui`
21839 if test $pkg = 0; then
21840 BAT_DIR=src/qt-console
21842 as_fn_error $? "Unable to find either Qt4 or Qt5 installation needed by bat" "$LINENO" 5
21853 # Check whether --enable-smartalloc was given.
21854 if test "${enable_smartalloc+set}" = set; then :
21855 enableval=$enable_smartalloc;
21856 if test x$enableval = xno; then
21857 support_smartalloc=no
21864 if test x$support_smartalloc = xyes; then
21866 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21870 # Check whether --enable-lockmgr was given.
21871 if test "${enable_lockmgr+set}" = set; then :
21872 enableval=$enable_lockmgr;
21873 if test x$enableval = xyes; then
21874 support_lockmgr=yes
21881 if test x$support_lockmgr = xyes; then
21883 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21888 # Check whether --enable-static-tools was given.
21889 if test "${enable_static_tools+set}" = set; then :
21890 enableval=$enable_static_tools;
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_tools=yes
21904 if test x$support_static_tools = xyes; then
21905 TTOOL_LDFLAGS="-static"
21909 # Check whether --enable-static-fd was given.
21910 if test "${enable_static_fd+set}" = set; then :
21911 enableval=$enable_static_fd;
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_fd=yes
21925 if test x$support_static_fd = xyes; then
21926 STATIC_FD="static-bacula-fd"
21930 # Check whether --enable-static-sd was given.
21931 if test "${enable_static_sd+set}" = set; then :
21932 enableval=$enable_static_sd;
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_sd=yes
21946 if test x$support_static_sd = xyes; then
21947 STATIC_SD="static-bacula-sd"
21951 # Check whether --enable-static-dir was given.
21952 if test "${enable_static_dir+set}" = set; then :
21953 enableval=$enable_static_dir;
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_dir=yes
21967 if test x$support_static_dir = xyes; then
21968 STATIC_DIR="static-bacula-dir"
21972 # Check whether --enable-static-cons was given.
21973 if test "${enable_static_cons+set}" = set; then :
21974 enableval=$enable_static_cons;
21975 if test x$enableval = xyes; then
21976 if test x$use_libtool = xyes; then
21977 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21978 please rerun configure with --disable-libtool" "$LINENO" 5
21980 support_static_cons=yes
21988 if test x$support_static_cons = xyes; then
21989 STATIC_CONS="static-bconsole"
21993 # Check whether --enable-client-only was given.
21994 if test "${enable_client_only+set}" = set; then :
21995 enableval=$enable_client_only;
21996 if test x$enableval = xyes; then
21997 build_client_only=yes
22005 if test x$build_client_only = xno; then
22012 # Check whether --enable-build-dird was given.
22013 if test "${enable_build_dird+set}" = set; then :
22014 enableval=$enable_build_dird;
22015 if test x$enableval = xno; then
22023 DIRD_DIR="src/dird"
22024 DIR_TOOLS="DIRTOOLS"
22029 # Check whether --enable-build-stored was given.
22030 if test "${enable_build_stored+set}" = set; then :
22031 enableval=$enable_build_stored;
22032 if test x$enableval = xno; then
22039 if test x$build_stored = xyes; then
22040 STORED_DIR="src/stored"
22046 # Check whether --enable-conio was given.
22047 if test "${enable_conio+set}" = set; then :
22048 enableval=$enable_conio;
22049 if test x$enableval = xno; then
22059 # Check whether --enable-ipv6 was given.
22060 if test "${enable_ipv6+set}" = set; then :
22061 enableval=$enable_ipv6;
22062 if test x$enableval = xno; then
22070 if test x$support_ipv6 = xyes; then
22071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22072 /* end confdefs.h. */
22073 #include <sys/types.h>
22074 #include <sys/socket.h>
22075 #include <netinet/in.h>
22079 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22084 if ac_fn_c_try_link "$LINENO"; then :
22085 support_in6addr_any=yes
22087 support_in6addr_any=no
22089 rm -f core conftest.err conftest.$ac_objext \
22090 conftest$ac_exeext conftest.$ac_ext
22092 if test x$support_in6addr_any = xno ; then
22093 in6addr_any="const struct in6_addr in6addr_any"
22098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22099 /* end confdefs.h. */
22100 #include <sys/types.h>
22101 #include <sys/socket.h>
22102 #include <netinet/in.h>
22106 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22111 if ac_fn_c_try_link "$LINENO"; then :
22116 rm -f core conftest.err conftest.$ac_objext \
22117 conftest$ac_exeext conftest.$ac_ext
22120 if test x$support_ipv6 = xyes; then
22122 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22125 if test x$support_in6addr_any = xno ; then
22127 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22133 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22134 if test "x$ac_cv_header_curses_h" = xyes; then :
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22137 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22138 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22139 $as_echo_n "(cached) " >&6
22141 ac_check_lib_save_LIBS=$LIBS
22142 LIBS="-ltinfo $LIBS"
22143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22144 /* end confdefs.h. */
22146 /* Override any GCC internal prototype to avoid an error.
22147 Use char because int might match the return type of a GCC
22148 builtin and then its argument prototype would still apply. */
22161 if ac_fn_c_try_link "$LINENO"; then :
22162 ac_cv_lib_tinfo_tgetent=yes
22164 ac_cv_lib_tinfo_tgetent=no
22166 rm -f core conftest.err conftest.$ac_objext \
22167 conftest$ac_exeext conftest.$ac_ext
22168 LIBS=$ac_check_lib_save_LIBS
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22171 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22172 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22177 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22178 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22179 $as_echo_n "(cached) " >&6
22181 ac_check_lib_save_LIBS=$LIBS
22182 LIBS="-lncurses $LIBS"
22183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22184 /* end confdefs.h. */
22186 /* Override any GCC internal prototype to avoid an error.
22187 Use char because int might match the return type of a GCC
22188 builtin and then its argument prototype would still apply. */
22201 if ac_fn_c_try_link "$LINENO"; then :
22202 ac_cv_lib_ncurses_tgetent=yes
22204 ac_cv_lib_ncurses_tgetent=no
22206 rm -f core conftest.err conftest.$ac_objext \
22207 conftest$ac_exeext conftest.$ac_ext
22208 LIBS=$ac_check_lib_save_LIBS
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22211 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22212 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22213 TERM_LIB="-lncurses"
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22217 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22218 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22219 $as_echo_n "(cached) " >&6
22221 ac_check_lib_save_LIBS=$LIBS
22222 LIBS="-ltermcap $LIBS"
22223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22224 /* end confdefs.h. */
22226 /* Override any GCC internal prototype to avoid an error.
22227 Use char because int might match the return type of a GCC
22228 builtin and then its argument prototype would still apply. */
22241 if ac_fn_c_try_link "$LINENO"; then :
22242 ac_cv_lib_termcap_tgetent=yes
22244 ac_cv_lib_termcap_tgetent=no
22246 rm -f core conftest.err conftest.$ac_objext \
22247 conftest$ac_exeext conftest.$ac_ext
22248 LIBS=$ac_check_lib_save_LIBS
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22251 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22252 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22253 TERM_LIB="-ltermcap"
22264 for ac_header in curses.h
22266 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22267 if test "x$ac_cv_header_curses_h" = xyes; then :
22268 cat >>confdefs.h <<_ACEOF
22269 #define HAVE_CURSES_H 1
22276 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22277 if test "x$ac_cv_header_term_h" = xyes; then :
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22279 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22280 if ${ac_cv_lib_curses_tgetent+:} false; then :
22281 $as_echo_n "(cached) " >&6
22283 ac_check_lib_save_LIBS=$LIBS
22284 LIBS="-lcurses $LIBS"
22285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22286 /* end confdefs.h. */
22288 /* Override any GCC internal prototype to avoid an error.
22289 Use char because int might match the return type of a GCC
22290 builtin and then its argument prototype would still apply. */
22303 if ac_fn_c_try_link "$LINENO"; then :
22304 ac_cv_lib_curses_tgetent=yes
22306 ac_cv_lib_curses_tgetent=no
22308 rm -f core conftest.err conftest.$ac_objext \
22309 conftest$ac_exeext conftest.$ac_ext
22310 LIBS=$ac_check_lib_save_LIBS
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22313 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22314 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22315 TERM_LIB="-lcurses"
22329 if test x$support_conio = xyes; then
22330 if test x$TERM_LIB != x; then
22331 CONS_LIBS=$TERM_LIB
22335 support_readline=no
22337 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22340 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22345 # Check whether --enable-readline was given.
22346 if test "${enable_readline+set}" = set; then :
22347 enableval=$enable_readline;
22348 if test x$enableval = xno; then
22349 support_readline=no
22358 if test x$support_readline = xyes; then
22360 # Check whether --with-readline was given.
22361 if test "${with_readline+set}" = set; then :
22362 withval=$with_readline;
22363 case "$with_readline" in
22368 if test -f ${with_readline}/readline.h; then
22369 CONS_INC="-I${with_readline}"
22370 CONS_LDFLAGS="-L$with_readline"
22371 elif test -f ${with_readline}/include/readline/readline.h; then
22372 CONS_INC="-I${with_readline}/include/readline"
22373 CONS_LDFLAGS="-L${with_readline}/lib"
22374 with_readline="${with_readline}/include/readline"
22376 with_readline="/usr/include/readline"
22379 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22380 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22381 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22384 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22386 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22392 echo "readline.h not found. readline turned off ..."
22404 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22405 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22408 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22411 CONS_INC="-I/usr/include/readline"
22412 CONS_LIBS="-lreadline ${TERM_LIB}"
22416 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22417 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22418 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22421 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22424 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22425 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22426 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22427 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22432 echo "readline.h not found. readline turned off ..."
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22460 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22461 if ${ac_cv_header_stat_broken+:} false; then :
22462 $as_echo_n "(cached) " >&6
22464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22465 /* end confdefs.h. */
22466 #include <sys/types.h>
22467 #include <sys/stat.h>
22469 #if defined S_ISBLK && defined S_IFDIR
22470 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22473 #if defined S_ISBLK && defined S_IFCHR
22474 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22477 #if defined S_ISLNK && defined S_IFREG
22478 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22481 #if defined S_ISSOCK && defined S_IFREG
22482 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22486 if ac_fn_c_try_compile "$LINENO"; then :
22487 ac_cv_header_stat_broken=no
22489 ac_cv_header_stat_broken=yes
22491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22494 $as_echo "$ac_cv_header_stat_broken" >&6; }
22495 if test $ac_cv_header_stat_broken = yes; then
22497 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22501 ac_header_dirent=no
22502 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22503 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22505 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22506 if eval \${$as_ac_Header+:} false; then :
22507 $as_echo_n "(cached) " >&6
22509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22510 /* end confdefs.h. */
22511 #include <sys/types.h>
22523 if ac_fn_c_try_compile "$LINENO"; then :
22524 eval "$as_ac_Header=yes"
22526 eval "$as_ac_Header=no"
22528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530 eval ac_res=\$$as_ac_Header
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22532 $as_echo "$ac_res" >&6; }
22533 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22534 cat >>confdefs.h <<_ACEOF
22535 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22538 ac_header_dirent=$ac_hdr; break
22542 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22543 if test $ac_header_dirent = dirent.h; then
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22545 $as_echo_n "checking for library containing opendir... " >&6; }
22546 if ${ac_cv_search_opendir+:} false; then :
22547 $as_echo_n "(cached) " >&6
22549 ac_func_search_save_LIBS=$LIBS
22550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22551 /* end confdefs.h. */
22553 /* Override any GCC internal prototype to avoid an error.
22554 Use char because int might match the return type of a GCC
22555 builtin and then its argument prototype would still apply. */
22568 for ac_lib in '' dir; do
22569 if test -z "$ac_lib"; then
22570 ac_res="none required"
22573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22575 if ac_fn_c_try_link "$LINENO"; then :
22576 ac_cv_search_opendir=$ac_res
22578 rm -f core conftest.err conftest.$ac_objext \
22580 if ${ac_cv_search_opendir+:} false; then :
22584 if ${ac_cv_search_opendir+:} false; then :
22587 ac_cv_search_opendir=no
22589 rm conftest.$ac_ext
22590 LIBS=$ac_func_search_save_LIBS
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22593 $as_echo "$ac_cv_search_opendir" >&6; }
22594 ac_res=$ac_cv_search_opendir
22595 if test "$ac_res" != no; then :
22596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22602 $as_echo_n "checking for library containing opendir... " >&6; }
22603 if ${ac_cv_search_opendir+:} false; then :
22604 $as_echo_n "(cached) " >&6
22606 ac_func_search_save_LIBS=$LIBS
22607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22608 /* end confdefs.h. */
22610 /* Override any GCC internal prototype to avoid an error.
22611 Use char because int might match the return type of a GCC
22612 builtin and then its argument prototype would still apply. */
22625 for ac_lib in '' x; do
22626 if test -z "$ac_lib"; then
22627 ac_res="none required"
22630 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22632 if ac_fn_c_try_link "$LINENO"; then :
22633 ac_cv_search_opendir=$ac_res
22635 rm -f core conftest.err conftest.$ac_objext \
22637 if ${ac_cv_search_opendir+:} false; then :
22641 if ${ac_cv_search_opendir+:} false; then :
22644 ac_cv_search_opendir=no
22646 rm conftest.$ac_ext
22647 LIBS=$ac_func_search_save_LIBS
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22650 $as_echo "$ac_cv_search_opendir" >&6; }
22651 ac_res=$ac_cv_search_opendir
22652 if test "$ac_res" != no; then :
22653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22659 for ac_func in strcasecmp select setenv putenv tcgetattr
22661 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22662 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22663 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22664 cat >>confdefs.h <<_ACEOF
22665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22671 for ac_func in lstat lchown lchmod futimes fchmod fchown lutimes
22673 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22674 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22675 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22676 cat >>confdefs.h <<_ACEOF
22677 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22683 for ac_func in nanosleep nl_langinfo
22685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22686 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22687 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22688 cat >>confdefs.h <<_ACEOF
22689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22695 for ac_func in be64toh htobe64
22697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22700 cat >>confdefs.h <<_ACEOF
22701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22707 for ac_header in varargs.h
22709 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22710 if test "x$ac_cv_header_varargs_h" = xyes; then :
22711 cat >>confdefs.h <<_ACEOF
22712 #define HAVE_VARARGS_H 1
22721 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22722 if test "x$ac_cv_func_socket" = xyes; then :
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22724 $as_echo "using libc's socket" >&6; }
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22727 $as_echo_n "checking for socket in -lxnet... " >&6; }
22728 if ${ac_cv_lib_xnet_socket+:} false; then :
22729 $as_echo_n "(cached) " >&6
22731 ac_check_lib_save_LIBS=$LIBS
22732 LIBS="-lxnet $LIBS"
22733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22734 /* end confdefs.h. */
22736 /* Override any GCC internal prototype to avoid an error.
22737 Use char because int might match the return type of a GCC
22738 builtin and then its argument prototype would still apply. */
22751 if ac_fn_c_try_link "$LINENO"; then :
22752 ac_cv_lib_xnet_socket=yes
22754 ac_cv_lib_xnet_socket=no
22756 rm -f core conftest.err conftest.$ac_objext \
22757 conftest$ac_exeext conftest.$ac_ext
22758 LIBS=$ac_check_lib_save_LIBS
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22761 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22762 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22763 cat >>confdefs.h <<_ACEOF
22764 #define HAVE_LIBXNET 1
22767 LIBS="-lxnet $LIBS"
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22772 $as_echo_n "checking for socket in -lsocket... " >&6; }
22773 if ${ac_cv_lib_socket_socket+:} false; then :
22774 $as_echo_n "(cached) " >&6
22776 ac_check_lib_save_LIBS=$LIBS
22777 LIBS="-lsocket $LIBS"
22778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22779 /* end confdefs.h. */
22781 /* Override any GCC internal prototype to avoid an error.
22782 Use char because int might match the return type of a GCC
22783 builtin and then its argument prototype would still apply. */
22796 if ac_fn_c_try_link "$LINENO"; then :
22797 ac_cv_lib_socket_socket=yes
22799 ac_cv_lib_socket_socket=no
22801 rm -f core conftest.err conftest.$ac_objext \
22802 conftest$ac_exeext conftest.$ac_ext
22803 LIBS=$ac_check_lib_save_LIBS
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22806 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22807 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22808 cat >>confdefs.h <<_ACEOF
22809 #define HAVE_LIBSOCKET 1
22812 LIBS="-lsocket $LIBS"
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22817 $as_echo_n "checking for socket in -linet... " >&6; }
22818 if ${ac_cv_lib_inet_socket+:} false; then :
22819 $as_echo_n "(cached) " >&6
22821 ac_check_lib_save_LIBS=$LIBS
22822 LIBS="-linet $LIBS"
22823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22824 /* end confdefs.h. */
22826 /* Override any GCC internal prototype to avoid an error.
22827 Use char because int might match the return type of a GCC
22828 builtin and then its argument prototype would still apply. */
22841 if ac_fn_c_try_link "$LINENO"; then :
22842 ac_cv_lib_inet_socket=yes
22844 ac_cv_lib_inet_socket=no
22846 rm -f core conftest.err conftest.$ac_objext \
22847 conftest$ac_exeext conftest.$ac_ext
22848 LIBS=$ac_check_lib_save_LIBS
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22851 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22852 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22853 cat >>confdefs.h <<_ACEOF
22854 #define HAVE_LIBINET 1
22857 LIBS="-linet $LIBS"
22867 # Check whether --with-tcp-wrappers was given.
22868 if test "${with_tcp_wrappers+set}" = set; then :
22869 withval=$with_tcp_wrappers;
22870 if test "x$withval" != "xno" ; then
22872 LIBS="$saved_LIBS -lwrap"
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22874 $as_echo_n "checking for library containing nanosleep... " >&6; }
22875 if ${ac_cv_search_nanosleep+:} false; then :
22876 $as_echo_n "(cached) " >&6
22878 ac_func_search_save_LIBS=$LIBS
22879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22880 /* end confdefs.h. */
22882 /* Override any GCC internal prototype to avoid an error.
22883 Use char because int might match the return type of a GCC
22884 builtin and then its argument prototype would still apply. */
22892 return nanosleep ();
22897 for ac_lib in '' rt; do
22898 if test -z "$ac_lib"; then
22899 ac_res="none required"
22902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22904 if ac_fn_c_try_link "$LINENO"; then :
22905 ac_cv_search_nanosleep=$ac_res
22907 rm -f core conftest.err conftest.$ac_objext \
22909 if ${ac_cv_search_nanosleep+:} false; then :
22913 if ${ac_cv_search_nanosleep+:} false; then :
22916 ac_cv_search_nanosleep=no
22918 rm conftest.$ac_ext
22919 LIBS=$ac_func_search_save_LIBS
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22922 $as_echo "$ac_cv_search_nanosleep" >&6; }
22923 ac_res=$ac_cv_search_nanosleep
22924 if test "$ac_res" != no; then :
22925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22930 $as_echo_n "checking for libwrap... " >&6; }
22931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22932 /* end confdefs.h. */
22934 #include <sys/types.h>
22936 int deny_severity = 0;
22937 int allow_severity = 0;
22938 struct request_info *req;
22950 if ac_fn_c_try_link "$LINENO"; then :
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22953 $as_echo "yes" >&6; }
22955 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22963 LIBS="$saved_LIBS -lwrap -lnsl"
22964 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22966 /* end confdefs.h. */
22968 #include <sys/types.h>
22970 int deny_severity = 0;
22971 int allow_severity = 0;
22972 struct request_info *req;
22984 if ac_fn_c_try_link "$LINENO"; then :
22986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22987 $as_echo "yes" >&6; }
22989 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22997 as_fn_error $? "*** libwrap missing" "$LINENO" 5
23001 rm -f core conftest.err conftest.$ac_objext \
23002 conftest$ac_exeext conftest.$ac_ext
23006 rm -f core conftest.err conftest.$ac_objext \
23007 conftest$ac_exeext conftest.$ac_ext
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23015 $as_echo_n "checking for OpenSSL... " >&6; }
23017 # Check whether --with-openssl was given.
23018 if test "${with_openssl+set}" = set; then :
23019 withval=$with_openssl;
23020 with_openssl_directory=${withval}
23026 if test "x$with_openssl_directory" != "xno"; then
23027 OPENSSL_LIBS="-lssl -lcrypto"
23030 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23032 # Make sure the $with_openssl_directory also makes sense
23034 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23035 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23036 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23040 saved_LIBS="${LIBS}"
23041 saved_CFLAGS="${CFLAGS}"
23042 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23043 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23046 /* end confdefs.h. */
23048 #include <openssl/ssl.h>
23054 CRYPTO_set_id_callback(NULL);
23060 if ac_fn_c_try_link "$LINENO"; then :
23063 support_crypto="yes"
23068 support_crypto="no"
23072 rm -f core conftest.err conftest.$ac_objext \
23073 conftest$ac_exeext conftest.$ac_ext
23075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23076 /* end confdefs.h. */
23078 #include <openssl/evp.h>
23090 if ac_fn_c_try_link "$LINENO"; then :
23092 ac_cv_openssl_sha2="yes"
23096 ac_cv_openssl_sha2="no"
23100 rm -f core conftest.err conftest.$ac_objext \
23101 conftest$ac_exeext conftest.$ac_ext
23103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23104 /* end confdefs.h. */
23106 #include <openssl/evp.h>
23118 if ac_fn_c_try_link "$LINENO"; then :
23120 ac_cv_openssl_export="no"
23124 ac_cv_openssl_export="yes"
23128 rm -f core conftest.err conftest.$ac_objext \
23129 conftest$ac_exeext conftest.$ac_ext
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23132 $as_echo "$support_tls" >&6; }
23133 if test "$support_tls" = "yes"; then
23135 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23138 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23141 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23145 if test "$ac_cv_openssl_sha2" = "yes"; then
23147 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23151 if test "$ac_cv_openssl_export" = "yes"; then
23153 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23157 if test "$support_crypto" = "yes"; then
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23159 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23160 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23161 $as_echo_n "(cached) " >&6
23163 ac_check_lib_save_LIBS=$LIBS
23164 LIBS="-lcrypto $LIBS"
23165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23166 /* end confdefs.h. */
23168 /* Override any GCC internal prototype to avoid an error.
23169 Use char because int might match the return type of a GCC
23170 builtin and then its argument prototype would still apply. */
23174 char EVP_PKEY_encrypt_old ();
23178 return EVP_PKEY_encrypt_old ();
23183 if ac_fn_c_try_link "$LINENO"; then :
23184 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23186 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23188 rm -f core conftest.err conftest.$ac_objext \
23189 conftest$ac_exeext conftest.$ac_ext
23190 LIBS=$ac_check_lib_save_LIBS
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23193 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23194 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23196 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23202 LIBS="${saved_LIBS}"
23203 CFLAGS="${saved_CFLAGS}"
23206 support_crypto="no"
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23208 $as_echo "$support_tls" >&6; }
23211 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23220 $as_echo_n "checking for library containing dlopen... " >&6; }
23221 if ${ac_cv_search_dlopen+:} false; then :
23222 $as_echo_n "(cached) " >&6
23224 ac_func_search_save_LIBS=$LIBS
23225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23226 /* end confdefs.h. */
23228 /* Override any GCC internal prototype to avoid an error.
23229 Use char because int might match the return type of a GCC
23230 builtin and then its argument prototype would still apply. */
23243 for ac_lib in '' dl; do
23244 if test -z "$ac_lib"; then
23245 ac_res="none required"
23248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23250 if ac_fn_c_try_link "$LINENO"; then :
23251 ac_cv_search_dlopen=$ac_res
23253 rm -f core conftest.err conftest.$ac_objext \
23255 if ${ac_cv_search_dlopen+:} false; then :
23259 if ${ac_cv_search_dlopen+:} false; then :
23262 ac_cv_search_dlopen=no
23264 rm conftest.$ac_ext
23265 LIBS=$ac_func_search_save_LIBS
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23268 $as_echo "$ac_cv_search_dlopen" >&6; }
23269 ac_res=$ac_cv_search_dlopen
23270 if test "$ac_res" != no; then :
23271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23276 working_dir=`eval echo /opt/bacula/working`
23278 # Check whether --with-working-dir was given.
23279 if test "${with_working_dir+set}" = set; then :
23280 withval=$with_working_dir;
23281 if test "x$withval" != "xno" ; then
23282 working_dir=$withval
23293 # Check whether --with-archivedir was given.
23294 if test "${with_archivedir+set}" = set; then :
23295 withval=$with_archivedir;
23296 if test "x$withval" != "xno" ; then
23297 archivedir=$withval
23306 basename=`hostname`
23308 # Check whether --with-basename was given.
23309 if test "${with_basename+set}" = set; then :
23310 withval=$with_basename;
23311 if test "x$withval" != "xno" ; then
23321 hostname=`uname -n | cut -d '.' -f 1`
23322 if test x${hostname} = x ; then
23323 hostname="localhost"
23325 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23326 if test ! $? = 0; then
23327 hostname="localhost"
23330 # Check whether --with-hostname was given.
23331 if test "${with_hostname+set}" = set; then :
23332 withval=$with_hostname;
23333 if test "x$withval" != "xno" ; then
23344 scriptdir=`eval echo ${sysconfdir}`
23346 # Check whether --with-scriptdir was given.
23347 if test "${with_scriptdir+set}" = set; then :
23348 withval=$with_scriptdir;
23349 if test "x$withval" != "xno" ; then
23360 bsrdir=`eval echo /opt/bacula/bsr`
23362 # Check whether --with-bsrdir was given.
23363 if test "${with_bsrdir+set}" = set; then :
23364 withval=$with_bsrdir;
23365 if test "x$withval" != "xno" ; then
23375 logdir=`eval echo /opt/bacula/log`
23377 # Check whether --with-logdir was given.
23378 if test "${with_logdir+set}" = set; then :
23379 withval=$with_logdir;
23380 if test "x$withval" != "xno" ; then
23391 # ------------------------------------------
23392 # Where to place plugindir (plugin files)
23393 # ------------------------------------------
23394 plugindir=`eval echo ${libdir}`
23396 # Check whether --with-plugindir was given.
23397 if test "${with_plugindir+set}" = set; then :
23398 withval=$with_plugindir;
23399 if test "x$withval" != "xno" ; then
23410 dump_email=root@localhost
23412 # Check whether --with-dump-email was given.
23413 if test "${with_dump_email+set}" = set; then :
23414 withval=$with_dump_email;
23415 if test "x$withval" != "xno" ; then
23416 dump_email=$withval
23425 job_email=root@localhost
23427 # Check whether --with-job-email was given.
23428 if test "${with_job_email+set}" = set; then :
23429 withval=$with_job_email;
23430 if test "x$withval" != "xno" ; then
23440 smtp_host=localhost
23442 # Check whether --with-smtp_host was given.
23443 if test "${with_smtp_host+set}" = set; then :
23444 withval=$with_smtp_host;
23445 if test "x$withval" != "xno" ; then
23457 # Check whether --with-pid-dir was given.
23458 if test "${with_pid_dir+set}" = set; then :
23459 withval=$with_pid_dir;
23460 if test "x$withval" != "xno" ; then
23468 cat >>confdefs.h <<_ACEOF
23469 #define _PATH_BACULA_PIDDIR "$piddir"
23474 subsysdir=/var/run/subsys
23475 if test -d /var/run/subsys; then
23476 subsysdir=/var/run/subsys
23477 elif test -d /var/lock/subsys; then
23478 subsysdir=/var/lock/subsys
23480 subsysdir=/var/run/subsys
23483 # Check whether --with-subsys-dir was given.
23484 if test "${with_subsys_dir+set}" = set; then :
23485 withval=$with_subsys_dir;
23486 if test "x$withval" != "xno" ; then
23498 # Check whether --with-baseport was given.
23499 if test "${with_baseport+set}" = set; then :
23500 withval=$with_baseport;
23501 if test "x$withval" != "xno" ; then
23510 dir_port=`expr $baseport`
23511 fd_port=`expr $baseport + 1`
23512 sd_port=`expr $fd_port + 1`
23520 # Check whether --with-dir-password was given.
23521 if test "${with_dir_password+set}" = set; then :
23522 withval=$with_dir_password;
23523 if test "x$withval" != "xno" ; then
23524 dir_password=$withval
23531 if test "x$dir_password" = "x" ; then
23532 if test "x$OPENSSL" = "xnone" ; then
23533 key=`autoconf/randpass 33`
23535 key=`openssl rand -base64 33`
23542 # Check whether --with-fd-password was given.
23543 if test "${with_fd_password+set}" = set; then :
23544 withval=$with_fd_password;
23545 if test "x$withval" != "xno" ; then
23546 fd_password=$withval
23553 if test "x$fd_password" = "x" ; then
23554 if test "x$OPENSSL" = "xnone" ; then
23555 key=`autoconf/randpass 37`
23557 key=`openssl rand -base64 33`
23564 # Check whether --with-sd-password was given.
23565 if test "${with_sd_password+set}" = set; then :
23566 withval=$with_sd_password;
23567 if test "x$withval" != "xno" ; then
23568 sd_password=$withval
23575 if test "x$sd_password" = "x" ; then
23576 if test "x$OPENSSL" = "xnone" ; then
23577 key=`autoconf/randpass 41`
23579 key=`openssl rand -base64 33`
23586 # Check whether --with-mon-dir-password was given.
23587 if test "${with_mon_dir_password+set}" = set; then :
23588 withval=$with_mon_dir_password;
23589 if test "x$withval" != "xno" ; then
23590 mon_dir_password=$withval
23597 if test "x$mon_dir_password" = "x" ; then
23598 if test "x$OPENSSL" = "xnone" ; then
23599 key=`autoconf/randpass 33`
23601 key=`openssl rand -base64 33`
23603 mon_dir_password=$key
23608 # Check whether --with-mon-fd-password was given.
23609 if test "${with_mon_fd_password+set}" = set; then :
23610 withval=$with_mon_fd_password;
23611 if test "x$withval" != "xno" ; then
23612 mon_fd_password=$withval
23619 if test "x$mon_fd_password" = "x" ; then
23620 if test "x$OPENSSL" = "xnone" ; then
23621 key=`autoconf/randpass 37`
23623 key=`openssl rand -base64 33`
23625 mon_fd_password=$key
23630 # Check whether --with-mon-sd-password was given.
23631 if test "${with_mon_sd_password+set}" = set; then :
23632 withval=$with_mon_sd_password;
23633 if test "x$withval" != "xno" ; then
23634 mon_sd_password=$withval
23641 if test "x$mon_sd_password" = "x" ; then
23642 if test "x$OPENSSL" = "xnone" ; then
23643 key=`autoconf/randpass 41`
23645 key=`openssl rand -base64 33`
23647 mon_sd_password=$key
23659 # Check whether --with-db_name was given.
23660 if test "${with_db_name+set}" = set; then :
23661 withval=$with_db_name;
23662 if test "x$withval" != "x" ; then
23673 # Check whether --with-db_user was given.
23674 if test "${with_db_user+set}" = set; then :
23675 withval=$with_db_user;
23676 if test "x$withval" != "x" ; then
23687 # Check whether --with-db_password was given.
23688 if test "${with_db_password+set}" = set; then :
23689 withval=$with_db_password;
23690 if test "x$withval" != "x" ; then
23691 db_password=$withval
23701 # Check whether --with-db_port was given.
23702 if test "${with_db_port+set}" = set; then :
23703 withval=$with_db_port;
23704 if test "x$withval" != "x" ; then
23715 # Check whether --with-db_ssl_options was given.
23716 if test "${with_db_ssl_options+set}" = set; then :
23717 withval=$with_db_ssl_options;
23718 if test "x$withval" != "x" ; then
23719 db_ssl_options=$withval
23728 # Handle users and groups for each daemon
23732 # Check whether --with-dir_user was given.
23733 if test "${with_dir_user+set}" = set; then :
23734 withval=$with_dir_user;
23735 if test "x$withval" != "x" ; then
23745 # Check whether --with-dir_group was given.
23746 if test "${with_dir_group+set}" = set; then :
23747 withval=$with_dir_group;
23748 if test "x$withval" != "x" ; then
23758 # Check whether --with-sd_user was given.
23759 if test "${with_sd_user+set}" = set; then :
23760 withval=$with_sd_user;
23761 if test "x$withval" != "x" ; then
23771 # Check whether --with-sd_group was given.
23772 if test "${with_sd_group+set}" = set; then :
23773 withval=$with_sd_group;
23774 if test "x$withval" != "x" ; then
23784 # Check whether --with-fd_user was given.
23785 if test "${with_fd_user+set}" = set; then :
23786 withval=$with_fd_user;
23787 if test "x$withval" != "x" ; then
23797 # Check whether --with-fd_group was given.
23798 if test "${with_fd_group+set}" = set; then :
23799 withval=$with_fd_group;
23800 if test "x$withval" != "x" ; then
23817 # Check whether --with-sbin-perm was given.
23818 if test "${with_sbin_perm+set}" = set; then :
23819 withval=$with_sbin_perm;
23820 if test "x$withval" != "x" ; then
23830 support_batch_insert=yes
23831 # Check whether --enable-batch-insert was given.
23832 if test "${enable_batch_insert+set}" = set; then :
23833 enableval=$enable_batch_insert;
23834 if test x$enableval = xno; then
23835 support_batch_insert=no
23842 if test x$support_batch_insert = xyes; then
23844 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23853 $as_echo_n "checking for PostgreSQL support... " >&6; }
23855 # Check whether --with-postgresql was given.
23856 if test "${with_postgresql+set}" = set; then :
23857 withval=$with_postgresql;
23858 if test "$withval" != "no"; then
23859 if test "$withval" = "yes"; then
23860 PG_CONFIG=`which pg_config 2>/dev/null`
23861 if test -n "$PG_CONFIG"; then
23862 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23863 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23864 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23865 elif test -f /usr/local/include/libpq-fe.h; then
23866 POSTGRESQL_INCDIR=/usr/local/include
23867 if test -d /usr/local/lib64; then
23868 POSTGRESQL_LIBDIR=/usr/local/lib64
23870 POSTGRESQL_LIBDIR=/usr/local/lib
23872 POSTGRESQL_BINDIR=/usr/local/bin
23873 elif test -f /usr/include/libpq-fe.h; then
23874 POSTGRESQL_INCDIR=/usr/include
23875 if test -d /usr/lib64; then
23876 POSTGRESQL_LIBDIR=/usr/lib64
23878 POSTGRESQL_LIBDIR=/usr/lib
23880 POSTGRESQL_BINDIR=/usr/bin
23881 elif test -f /usr/include/pgsql/libpq-fe.h; then
23882 POSTGRESQL_INCDIR=/usr/include/pgsql
23883 if test -d /usr/lib64/pgsql; then
23884 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23886 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23888 POSTGRESQL_BINDIR=/usr/bin
23889 elif test -f /usr/include/postgresql/libpq-fe.h; then
23890 POSTGRESQL_INCDIR=/usr/include/postgresql
23891 if test -d /usr/lib64/postgresql; then
23892 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23894 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23896 POSTGRESQL_BINDIR=/usr/bin
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23899 $as_echo "no" >&6; }
23900 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23902 elif test -f $withval/include/libpq-fe.h; then
23903 POSTGRESQL_INCDIR=$withval/include
23904 POSTGRESQL_LIBDIR=$withval/lib
23905 POSTGRESQL_BINDIR=$withval/bin
23906 elif test -f $withval/include/postgresql/libpq-fe.h; then
23907 POSTGRESQL_INCDIR=$withval/include/postgresql
23908 if test -d $withval/lib64; then
23909 POSTGRESQL_LIBDIR=$withval/lib64
23911 POSTGRESQL_LIBDIR=$withval/lib
23913 POSTGRESQL_BINDIR=$withval/bin
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23916 $as_echo "no" >&6; }
23917 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23920 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23923 $as_echo "yes" >&6; }
23925 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23926 if test x$use_libtool != xno; then
23927 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23929 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23931 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23932 if test "x$ac_cv_func_crypt" = xyes; then :
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23936 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23937 if ${ac_cv_lib_crypt_crypt+:} false; then :
23938 $as_echo_n "(cached) " >&6
23940 ac_check_lib_save_LIBS=$LIBS
23941 LIBS="-lcrypt $LIBS"
23942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23943 /* end confdefs.h. */
23945 /* Override any GCC internal prototype to avoid an error.
23946 Use char because int might match the return type of a GCC
23947 builtin and then its argument prototype would still apply. */
23960 if ac_fn_c_try_link "$LINENO"; then :
23961 ac_cv_lib_crypt_crypt=yes
23963 ac_cv_lib_crypt_crypt=no
23965 rm -f core conftest.err conftest.$ac_objext \
23966 conftest$ac_exeext conftest.$ac_ext
23967 LIBS=$ac_check_lib_save_LIBS
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23970 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23971 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23972 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23977 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23978 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23980 if test -z "${db_backends}"; then
23981 db_backends="PostgreSQL"
23983 db_backends="${db_backends} PostgreSQL"
23985 if test -z "${DB_BACKENDS}"; then
23986 DB_BACKENDS="postgresql"
23988 DB_BACKENDS="${DB_BACKENDS} postgresql"
23991 if test "x$support_batch_insert" = "xyes"; then
23992 saved_LDFLAGS="${LDFLAGS}"
23993 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23994 saved_LIBS="${LIBS}"
23995 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23996 LIBS="${saved_LIBS} -lcrypt"
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24000 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24001 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24002 $as_echo_n "(cached) " >&6
24004 ac_check_lib_save_LIBS=$LIBS
24006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24007 /* end confdefs.h. */
24009 /* Override any GCC internal prototype to avoid an error.
24010 Use char because int might match the return type of a GCC
24011 builtin and then its argument prototype would still apply. */
24015 char PQisthreadsafe ();
24019 return PQisthreadsafe ();
24024 if ac_fn_c_try_link "$LINENO"; then :
24025 ac_cv_lib_pq_PQisthreadsafe=yes
24027 ac_cv_lib_pq_PQisthreadsafe=no
24029 rm -f core conftest.err conftest.$ac_objext \
24030 conftest$ac_exeext conftest.$ac_ext
24031 LIBS=$ac_check_lib_save_LIBS
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24034 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24035 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24037 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24042 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24043 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24044 $as_echo_n "(cached) " >&6
24046 ac_check_lib_save_LIBS=$LIBS
24048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24049 /* end confdefs.h. */
24051 /* Override any GCC internal prototype to avoid an error.
24052 Use char because int might match the return type of a GCC
24053 builtin and then its argument prototype would still apply. */
24057 char PQputCopyData ();
24061 return PQputCopyData ();
24066 if ac_fn_c_try_link "$LINENO"; then :
24067 ac_cv_lib_pq_PQputCopyData=yes
24069 ac_cv_lib_pq_PQputCopyData=no
24071 rm -f core conftest.err conftest.$ac_objext \
24072 conftest$ac_exeext conftest.$ac_ext
24073 LIBS=$ac_check_lib_save_LIBS
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24076 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24077 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24079 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24083 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24084 if test $support_batch_insert = yes ; then
24086 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24088 if test -z "${batch_insert_db_backends}"; then
24089 batch_insert_db_backends="PostgreSQL"
24091 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24096 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24098 echo "WARNING: Your PostgreSQL client library is too old to detect "
24099 echo "if it was compiled with --enable-thread-safety, consider to "
24100 echo "upgrade it in order to avoid problems with Batch insert mode"
24103 LDFLAGS="${saved_LDFLAGS}"
24104 LIBS="${saved_LIBS}"
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24108 $as_echo "no" >&6; }
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24114 $as_echo "no" >&6; }
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24126 $as_echo_n "checking for MySQL support... " >&6; }
24128 # Check whether --with-mysql was given.
24129 if test "${with_mysql+set}" = set; then :
24130 withval=$with_mysql;
24132 if test "$withval" != "no"; then
24133 if test "$withval" = "yes"; then
24134 MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24135 if test "x${MYSQL_CONFIG}" != x; then
24136 MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24137 ${MYSQL_CONFIG} --libs_r >/dev/null 2>&1
24138 if test $? = 0; then
24139 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r`
24140 MYSQL_INCDIR=`${MYSQL_CONFIG} --include`
24143 ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24144 if test $? = 0 ; then
24145 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24146 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24150 # if something wrong fall back to old method
24151 if test "x${MYSQL_LIBDIR}" = x -o "x${MYSQL_INCDIR}" = x ; then
24152 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24153 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24154 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24155 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24156 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24158 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24160 MYSQL_BINDIR=/usr/local/mysql/bin
24161 elif test -f /usr/include/mysql/mysql.h; then
24162 MYSQL_INCDIR=/usr/include/mysql
24163 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24164 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24165 MYSQL_LIBDIR=/usr/lib64/mysql
24166 elif test -f /usr/lib64/libmysqlclient_r.a \
24167 -o -f /usr/lib64/libmysqlclient_r.so; then
24168 MYSQL_LIBDIR=/usr/lib64
24169 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24170 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24171 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24172 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24173 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24174 MYSQL_LIBDIR=/usr/lib/mysql
24176 MYSQL_LIBDIR=/usr/lib
24178 MYSQL_BINDIR=/usr/bin
24179 elif test -f /usr/include/mysql.h; then
24180 MYSQL_INCDIR=/usr/include
24181 if test -f /usr/lib64/libmysqlclient_r.a \
24182 -o -f /usr/lib64/libmysqlclient_r.so; then
24183 MYSQL_LIBDIR=/usr/lib64
24185 MYSQL_LIBDIR=/usr/lib
24187 MYSQL_BINDIR=/usr/bin
24188 elif test -f /usr/local/include/mysql/mysql.h; then
24189 MYSQL_INCDIR=/usr/local/include/mysql
24190 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24191 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24192 MYSQL_LIBDIR=/usr/local/lib64/mysql
24194 MYSQL_LIBDIR=/usr/local/lib/mysql
24196 MYSQL_BINDIR=/usr/local/bin
24197 elif test -f /usr/local/include/mysql.h; then
24198 MYSQL_INCDIR=/usr/local/include
24199 if test -f /usr/local/lib64/libmysqlclient_r.a \
24200 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24201 MYSQL_LIBDIR=/usr/local/lib64
24203 MYSQL_LIBDIR=/usr/local/lib
24205 MYSQL_BINDIR=/usr/local/bin
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24208 $as_echo "no" >&6; }
24209 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24213 if test -f $withval/include/mysql/mysql.h; then
24214 MYSQL_INCDIR=$withval/include/mysql
24215 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24216 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24217 MYSQL_LIBDIR=$withval/lib64/mysql
24218 elif test -f $withval/lib64/libmysqlclient_r.a \
24219 -o -f $withval/lib64/libmysqlclient_r.so; then
24220 MYSQL_LIBDIR=$withval/lib64
24221 elif test -f $withval/lib/libmysqlclient_r.a \
24222 -o -f $withval/lib/libmysqlclient_r.so; then
24223 MYSQL_LIBDIR=$withval/lib
24225 MYSQL_LIBDIR=$withval/lib/mysql
24227 MYSQL_BINDIR=$withval/bin
24228 elif test -f $withval/include/mysql.h; then
24229 MYSQL_INCDIR=$withval/include
24230 if test -f $withval/lib64/libmysqlclient_r.a \
24231 -o -f $withval/lib64/libmysqlclient_r.so; then
24232 MYSQL_LIBDIR=$withval/lib64
24234 MYSQL_LIBDIR=$withval/lib
24236 MYSQL_BINDIR=$withval/bin
24237 elif test -f $withval/mysql.h; then
24238 MYSQL_INCDIR=$withval
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24240 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24241 case $MYSQL_INCDIR in
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24244 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24245 if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24246 -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24248 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24249 MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24251 MYSQL_BINDIR=$prefix/lib/mysql55/bin
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24255 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24256 if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24257 -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24259 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24260 MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24262 MYSQL_BINDIR=$prefix/lib/mysql51/bin
24265 if test -z "${MYSQL_LIBDIR}" ; then
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24267 $as_echo "no" >&6; }
24268 as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24272 $as_echo "no" >&6; }
24273 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24276 if test "x${MYSQL_LIBDIR}" != x; then
24277 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24278 if test "x$HAVE_LIBSR" = "xyes"; then
24279 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24280 MYSQL_LIBS="$MYSQL_LIBDIR"
24281 MYSQL_INCLUDE="$MYSQL_INCDIR"
24283 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24285 if test -z "${batch_insert_db_backends}"; then
24286 batch_insert_db_backends="MySQL"
24288 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24290 elif test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24291 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24292 if test x$use_libtool != xno; then
24293 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24295 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24297 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24299 if test "x${MYSQL_LIBS}" = x; then
24300 MYSQL_LIBS=$MYSQL_LIBDIR/libmysqlclient_r.a
24304 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24307 $as_echo "yes" >&6; }
24309 if test -z "${db_backends}" ; then
24310 db_backends="MySQL"
24312 db_backends="${db_backends} MySQL"
24314 if test -z "${DB_BACKENDS}" ; then
24315 DB_BACKENDS="mysql"
24317 DB_BACKENDS="${DB_BACKENDS} mysql"
24320 if test "x$HAVE_LIBSR" = "xno"; then
24321 if test "x$support_batch_insert" = "xyes"; then
24322 saved_LDFLAGS="${LDFLAGS}"
24323 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24324 saved_LIBS="${LIBS}"
24325 LIBS="${saved_LIBS} -lz"
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24328 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24329 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24330 $as_echo_n "(cached) " >&6
24332 ac_check_lib_save_LIBS=$LIBS
24333 LIBS="-lmysqlclient_r $LIBS"
24334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24335 /* end confdefs.h. */
24337 /* Override any GCC internal prototype to avoid an error.
24338 Use char because int might match the return type of a GCC
24339 builtin and then its argument prototype would still apply. */
24343 char mysql_thread_safe ();
24347 return mysql_thread_safe ();
24352 if ac_fn_c_try_link "$LINENO"; then :
24353 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24355 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24357 rm -f core conftest.err conftest.$ac_objext \
24358 conftest$ac_exeext conftest.$ac_ext
24359 LIBS=$ac_check_lib_save_LIBS
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24362 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24363 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24365 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24369 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24370 if test -z "${batch_insert_db_backends}"; then
24371 batch_insert_db_backends="MySQL"
24373 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24377 LDFLAGS="${saved_LDFLAGS}"
24378 LIBS="${saved_LIBS}"
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24383 $as_echo "no" >&6; }
24389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24390 $as_echo "no" >&6; }
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24396 $as_echo_n "checking for MySQL embedded support... " >&6; }
24398 # Check whether --with-embedded-mysql was given.
24399 if test "${with_embedded_mysql+set}" = set; then :
24400 withval=$with_embedded_mysql;
24401 if test "$withval" != "no"; then
24402 if test "$withval" = "yes"; then
24403 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24404 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24405 if test -d /usr/local/mysql/lib64/mysql; then
24406 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24408 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24410 MYSQL_BINDIR=/usr/local/mysql/bin
24411 elif test -f /usr/include/mysql/mysql.h; then
24412 MYSQL_INCDIR=/usr/include/mysql
24413 if test -d /usr/lib64/mysql; then
24414 MYSQL_LIBDIR=/usr/lib64/mysql
24416 MYSQL_LIBDIR=/usr/lib/mysql
24418 MYSQL_BINDIR=/usr/bin
24419 elif test -f /usr/include/mysql.h; then
24420 MYSQL_INCDIR=/usr/include
24421 if test -d /usr/lib64; then
24422 MYSQL_LIBDIR=/usr/lib64
24424 MYSQL_LIBDIR=/usr/lib
24426 MYSQL_BINDIR=/usr/bin
24427 elif test -f /usr/local/include/mysql/mysql.h; then
24428 MYSQL_INCDIR=/usr/local/include/mysql
24429 if test -d /usr/local/lib64/mysql; then
24430 MYSQL_LIBDIR=/usr/local/lib64/mysql
24432 MYSQL_LIBDIR=/usr/local/lib/mysql
24434 MYSQL_BINDIR=/usr/local/bin
24435 elif test -f /usr/local/include/mysql.h; then
24436 MYSQL_INCDIR=/usr/local/include
24437 if test -d /usr/local/lib64; then
24438 MYSQL_LIBDIR=/usr/local/lib64
24440 MYSQL_LIBDIR=/usr/local/lib
24442 MYSQL_BINDIR=/usr/local/bin
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24445 $as_echo "no" >&6; }
24446 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24449 if test -f $withval/include/mysql/mysql.h; then
24450 MYSQL_INCDIR=$withval/include/mysql
24451 if test -d $withval/lib64/mysql; then
24452 MYSQL_LIBDIR=$withval/lib64/mysql
24454 MYSQL_LIBDIR=$withval/lib/mysql
24456 MYSQL_BINDIR=$withval/bin
24457 elif test -f $withval/include/mysql.h; then
24458 MYSQL_INCDIR=$withval/include
24459 if test -d $withval/lib64; then
24460 MYSQL_LIBDIR=$withval/lib64
24462 MYSQL_LIBDIR=$withval/lib
24464 MYSQL_BINDIR=$withval/bin
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24467 $as_echo "no" >&6; }
24468 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24471 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24472 if test x$use_libtool != xno; then
24473 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24475 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24477 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24478 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24481 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24484 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24487 $as_echo "yes" >&6; }
24489 if test -z "${db_backends}"; then
24490 db_backends="MySQL"
24492 db_backends="${db_backends} MySQL"
24494 if test -z "${DB_BACKENDS}"; then
24495 DB_BACKENDS="mysql"
24497 DB_BACKENDS="${DB_BACKENDS} mysql"
24500 if test "x$support_batch_insert" = "xyes"; then
24501 saved_LDFLAGS="${LDFLAGS}"
24502 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24503 saved_LIBS="${LIBS}"
24504 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24507 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24508 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24509 $as_echo_n "(cached) " >&6
24511 ac_check_lib_save_LIBS=$LIBS
24512 LIBS="-lmysqlclient_r $LIBS"
24513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24514 /* end confdefs.h. */
24516 /* Override any GCC internal prototype to avoid an error.
24517 Use char because int might match the return type of a GCC
24518 builtin and then its argument prototype would still apply. */
24522 char mysql_thread_safe ();
24526 return mysql_thread_safe ();
24531 if ac_fn_c_try_link "$LINENO"; then :
24532 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24534 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24536 rm -f core conftest.err conftest.$ac_objext \
24537 conftest$ac_exeext conftest.$ac_ext
24538 LIBS=$ac_check_lib_save_LIBS
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24541 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24542 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24544 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24548 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24549 if test -z "${batch_insert_db_backends}"; then
24550 batch_insert_db_backends="MySQL"
24552 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24556 LDFLAGS="${saved_LDFLAGS}"
24557 LIBS="${saved_LIBS}"
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24561 $as_echo "no" >&6; }
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24567 $as_echo "no" >&6; }
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24580 $as_echo_n "checking for SQLite3 support... " >&6; }
24582 # Check whether --with-sqlite3 was given.
24583 if test "${with_sqlite3+set}" = set; then :
24584 withval=$with_sqlite3;
24585 if test "$withval" != "no"; then
24586 if test "$withval" = "yes"; then
24587 if test -f /usr/local/include/sqlite3.h; then
24588 SQLITE_INCDIR=/usr/local/include
24589 if test -d /usr/local/lib64; then
24590 SQLITE_LIBDIR=/usr/local/lib64
24592 SQLITE_LIBDIR=/usr/local/lib
24594 SQLITE_BINDIR=/usr/local/bin
24595 elif test -f /usr/include/sqlite3.h; then
24596 SQLITE_INCDIR=/usr/include
24597 if test -d /usr/lib64; then
24598 SQLITE_LIBDIR=/usr/lib64
24600 SQLITE_LIBDIR=/usr/lib
24602 SQLITE_BINDIR=/usr/bin
24603 elif test -f $prefix/include/sqlite3.h; then
24604 SQLITE_INCDIR=$prefix/include
24605 if test -d $prefix/lib64; then
24606 SQLITE_LIBDIR=$prefix/lib64
24608 SQLITE_LIBDIR=$prefix/lib
24610 SQLITE_BINDIR=$prefix/bin
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24613 $as_echo "no" >&6; }
24614 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24617 if test -f $withval/sqlite3.h; then
24618 SQLITE_INCDIR=$withval
24619 SQLITE_LIBDIR=$withval
24620 SQLITE_BINDIR=$withval
24621 elif test -f $withval/include/sqlite3.h; then
24622 SQLITE_INCDIR=$withval/include
24623 if test -d $withval/lib64; then
24624 SQLITE_LIBDIR=$withval/lib64
24626 SQLITE_LIBDIR=$withval/lib
24628 SQLITE_BINDIR=$withval/bin
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24631 $as_echo "no" >&6; }
24632 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24635 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24636 if test x$use_libtool != xno; then
24637 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24639 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24641 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24642 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24645 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24648 $as_echo "yes" >&6; }
24650 if test -z "${db_backends}"; then
24651 db_backends="SQLite3"
24653 db_backends="${db_backends} SQLite3"
24655 if test -z "${DB_BACKENDS}"; then
24656 DB_BACKENDS="sqlite3"
24658 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24661 if test "x$support_batch_insert" = "xyes"; then
24662 saved_LDFLAGS="${LDFLAGS}"
24663 LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24666 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24667 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24668 $as_echo_n "(cached) " >&6
24670 ac_check_lib_save_LIBS=$LIBS
24671 LIBS="-lsqlite3 $LIBS"
24672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24673 /* end confdefs.h. */
24675 /* Override any GCC internal prototype to avoid an error.
24676 Use char because int might match the return type of a GCC
24677 builtin and then its argument prototype would still apply. */
24681 char sqlite3_threadsafe ();
24685 return sqlite3_threadsafe ();
24690 if ac_fn_c_try_link "$LINENO"; then :
24691 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24693 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24695 rm -f core conftest.err conftest.$ac_objext \
24696 conftest$ac_exeext conftest.$ac_ext
24697 LIBS=$ac_check_lib_save_LIBS
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24700 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24701 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24703 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24707 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24708 if test -z "${batch_insert_db_backends}"; then
24709 batch_insert_db_backends="SQLite3"
24711 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24715 LDFLAGS="${saved_LDFLAGS}"
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24719 $as_echo "no" >&6; }
24724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24725 $as_echo "no" >&6; }
24735 if test -z "${batch_insert_db_backends}"; then
24736 batch_insert_db_backends="None"
24739 if test "x${db_backends}" = "x" ; then
24742 echo "You have not specified either --enable-client-only or one of the"
24743 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24744 echo "This is not permitted. Please reconfigure."
24746 echo "Aborting the configuration ..."
24752 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24754 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24755 if test x$use_libtool = xno; then
24756 SHARED_CATALOG_TARGETS=""
24758 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24762 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24764 if test x$use_libtool = xno; then
24767 echo "You have specified two or more of the"
24768 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24769 echo "This is not permitted when not using libtool Please reconfigure."
24771 echo "Aborting the configuration ..."
24777 SHARED_CATALOG_TARGETS=""
24778 for db_type in ${DB_BACKENDS}
24780 if test -z "${SHARED_CATALOG_TARGETS}"; then
24781 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24783 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24789 if test x$use_libtool = xyes; then
24799 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24802 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24803 if test -z "$CCOPTS"; then
24804 CCOPTS='-g -O2 -Wall'
24811 largefile_support="no"
24813 # Check whether --enable-largefile was given.
24814 if test "${enable_largefile+set}" = set; then :
24815 enableval=$enable_largefile;
24818 if test "$enable_largefile" != no; then
24819 if test -n "$ac_tool_prefix"; then
24820 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24821 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24823 $as_echo_n "checking for $ac_word... " >&6; }
24824 if ${ac_cv_prog_GETCONF+:} false; then :
24825 $as_echo_n "(cached) " >&6
24827 if test -n "$GETCONF"; then
24828 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24831 for as_dir in $PATH
24834 test -z "$as_dir" && as_dir=.
24835 for ac_exec_ext in '' $ac_executable_extensions; do
24836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24837 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24847 GETCONF=$ac_cv_prog_GETCONF
24848 if test -n "$GETCONF"; then
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24850 $as_echo "$GETCONF" >&6; }
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24853 $as_echo "no" >&6; }
24858 if test -z "$ac_cv_prog_GETCONF"; then
24859 ac_ct_GETCONF=$GETCONF
24860 # Extract the first word of "getconf", so it can be a program name with args.
24861 set dummy getconf; ac_word=$2
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24863 $as_echo_n "checking for $ac_word... " >&6; }
24864 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24865 $as_echo_n "(cached) " >&6
24867 if test -n "$ac_ct_GETCONF"; then
24868 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24871 for as_dir in $PATH
24874 test -z "$as_dir" && as_dir=.
24875 for ac_exec_ext in '' $ac_executable_extensions; do
24876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24877 ac_cv_prog_ac_ct_GETCONF="getconf"
24878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24887 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24888 if test -n "$ac_ct_GETCONF"; then
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24890 $as_echo "$ac_ct_GETCONF" >&6; }
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24893 $as_echo "no" >&6; }
24896 if test "x$ac_ct_GETCONF" = x; then
24899 case $cross_compiling:$ac_tool_warned in
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24903 ac_tool_warned=yes ;;
24905 GETCONF=$ac_ct_GETCONF
24908 GETCONF="$ac_cv_prog_GETCONF"
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24912 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24913 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24914 $as_echo_n "(cached) " >&6
24916 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24917 ac_cv_sys_largefile_CFLAGS=no
24919 # IRIX 6.2 and later require cc -n32.
24920 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24921 if test "$GCC" != yes; then
24922 ac_cv_sys_largefile_CFLAGS=-n32
24925 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24927 /* end confdefs.h. */
24937 if ac_fn_c_try_link "$LINENO"; then :
24940 ac_cv_sys_largefile_CFLAGS=no
24942 rm -f core conftest.err conftest.$ac_objext \
24943 conftest$ac_exeext conftest.$ac_ext
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24949 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24951 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24952 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24953 $as_echo_n "(cached) " >&6
24955 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24956 ac_cv_sys_largefile_LDFLAGS=no
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24961 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24963 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24964 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24965 $as_echo_n "(cached) " >&6
24967 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24968 ac_cv_sys_largefile_LIBS=no
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24973 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24975 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24978 -D_FILE_OFFSET_BITS=*) ;;
24979 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24980 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24985 case "$CPPFLAGS" in
24986 '') CPPFLAGS="$ac_flag" ;;
24987 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24995 '') CFLAGS="$ac_flag" ;;
24996 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
25001 case "$ac_cv_sys_largefile_LDFLAGS" in
25005 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
25006 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
25009 case "$ac_cv_sys_largefile_LIBS" in
25013 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
25014 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
25018 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
25019 if ${ac_cv_sys_file_offset_bits+:} false; then :
25020 $as_echo_n "(cached) " >&6
25022 ac_cv_sys_file_offset_bits=no
25023 ac_cv_sys_file_offset_bits=64
25024 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25026 -D_FILE_OFFSET_BITS)
25027 ac_cv_sys_file_offset_bits=1 ;;
25028 -D_FILE_OFFSET_BITS=*)
25029 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25035 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25036 if test "$ac_cv_sys_file_offset_bits" != no; then
25038 cat >>confdefs.h <<_ACEOF
25039 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25044 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25045 if ${ac_cv_sys_largefile_source+:} false; then :
25046 $as_echo_n "(cached) " >&6
25048 ac_cv_sys_largefile_source=no
25049 ac_cv_sys_largefile_source=1
25050 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25052 -D_LARGEFILE_SOURCE)
25053 ac_cv_sys_largefile_source=1 ;;
25054 -D_LARGEFILE_SOURCE=*)
25055 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25061 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25062 if test "$ac_cv_sys_largefile_source" != no; then
25064 cat >>confdefs.h <<_ACEOF
25065 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25070 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25071 if ${ac_cv_sys_large_files+:} false; then :
25072 $as_echo_n "(cached) " >&6
25074 ac_cv_sys_large_files=no
25075 ac_cv_sys_large_files=1
25076 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25079 ac_cv_sys_large_files=1 ;;
25081 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25087 $as_echo "$ac_cv_sys_large_files" >&6; }
25088 if test "$ac_cv_sys_large_files" != no; then
25090 cat >>confdefs.h <<_ACEOF
25091 #define _LARGE_FILES $ac_cv_sys_large_files
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25099 $as_echo_n "checking for X... " >&6; }
25102 # Check whether --with-x was given.
25103 if test "${with_x+set}" = set; then :
25107 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25108 if test "x$with_x" = xno; then
25109 # The user explicitly disabled X.
25112 case $x_includes,$x_libraries in #(
25113 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25114 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25115 $as_echo_n "(cached) " >&6
25117 # One or both of the vars are not set, and there is no cached value.
25118 ac_x_includes=no ac_x_libraries=no
25119 rm -f -r conftest.dir
25120 if mkdir conftest.dir; then
25122 cat >Imakefile <<'_ACEOF'
25124 @echo incroot='${INCROOT}'
25126 @echo usrlibdir='${USRLIBDIR}'
25128 @echo libdir='${LIBDIR}'
25130 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25131 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25132 for ac_var in incroot usrlibdir libdir; do
25133 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25135 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25136 for ac_extension in a so sl dylib la dll; do
25137 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25138 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25139 ac_im_usrlibdir=$ac_im_libdir; break
25142 # Screen out bogus values from the imake configuration. They are
25143 # bogus both because they are the default anyway, and because
25144 # using them would break gcc on systems where it needs fixed includes.
25145 case $ac_im_incroot in
25146 /usr/include) ac_x_includes= ;;
25147 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25149 case $ac_im_usrlibdir in
25150 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25151 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25155 rm -f -r conftest.dir
25158 # Standard set of common directories for X headers.
25159 # Check X11 before X11Rn because it is often a symlink to the current release.
25173 /usr/local/X11/include
25174 /usr/local/X11R7/include
25175 /usr/local/X11R6/include
25176 /usr/local/X11R5/include
25177 /usr/local/X11R4/include
25179 /usr/local/include/X11
25180 /usr/local/include/X11R7
25181 /usr/local/include/X11R6
25182 /usr/local/include/X11R5
25183 /usr/local/include/X11R4
25187 /usr/XFree86/include/X11
25191 /usr/unsupported/include
25192 /usr/athena/include
25193 /usr/local/x11r5/include
25194 /usr/lpp/Xamples/include
25196 /usr/openwin/include
25197 /usr/openwin/share/include'
25199 if test "$ac_x_includes" = no; then
25200 # Guess where to find include files, by looking for Xlib.h.
25201 # First, try using that file with no special directory specified.
25202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25203 /* end confdefs.h. */
25204 #include <X11/Xlib.h>
25206 if ac_fn_c_try_cpp "$LINENO"; then :
25207 # We can compile using X headers with no special include directory.
25210 for ac_dir in $ac_x_header_dirs; do
25211 if test -r "$ac_dir/X11/Xlib.h"; then
25212 ac_x_includes=$ac_dir
25217 rm -f conftest.err conftest.i conftest.$ac_ext
25218 fi # $ac_x_includes = no
25220 if test "$ac_x_libraries" = no; then
25221 # Check for the libraries.
25222 # See if we find them without any special options.
25223 # Don't add to $LIBS permanently.
25226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25227 /* end confdefs.h. */
25228 #include <X11/Xlib.h>
25237 if ac_fn_c_try_link "$LINENO"; then :
25239 # We can link X programs with no special library path.
25243 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25245 # Don't even attempt the hair of trying to link an X program!
25246 for ac_extension in a so sl dylib la dll; do
25247 if test -r "$ac_dir/libX11.$ac_extension"; then
25248 ac_x_libraries=$ac_dir
25254 rm -f core conftest.err conftest.$ac_objext \
25255 conftest$ac_exeext conftest.$ac_ext
25256 fi # $ac_x_libraries = no
25258 case $ac_x_includes,$ac_x_libraries in #(
25259 no,* | *,no | *\'*)
25260 # Didn't find X, or a directory has "'" in its name.
25261 ac_cv_have_x="have_x=no";; #(
25263 # Record where we found X for the cache.
25264 ac_cv_have_x="have_x=yes\
25265 ac_x_includes='$ac_x_includes'\
25266 ac_x_libraries='$ac_x_libraries'"
25272 eval "$ac_cv_have_x"
25275 if test "$have_x" != yes; then
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25277 $as_echo "$have_x" >&6; }
25280 # If each of the values was on the command line, it overrides each guess.
25281 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25282 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25283 # Update the cache value to reflect the command line values.
25284 ac_cv_have_x="have_x=yes\
25285 ac_x_includes='$x_includes'\
25286 ac_x_libraries='$x_libraries'"
25287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25288 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25291 if test "$no_x" = yes; then
25292 # Not all programs may use this symbol, but it does not hurt to define it.
25294 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25296 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25298 if test -n "$x_includes"; then
25299 X_CFLAGS="$X_CFLAGS -I$x_includes"
25302 # It would also be nice to do this for all -L options, not just this one.
25303 if test -n "$x_libraries"; then
25304 X_LIBS="$X_LIBS -L$x_libraries"
25305 # For Solaris; some versions of Sun CC require a space after -R and
25306 # others require no space. Words are not sufficient . . . .
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25308 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25309 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25310 ac_xsave_c_werror_flag=$ac_c_werror_flag
25311 ac_c_werror_flag=yes
25312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25313 /* end confdefs.h. */
25323 if ac_fn_c_try_link "$LINENO"; then :
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25325 $as_echo "no" >&6; }
25326 X_LIBS="$X_LIBS -R$x_libraries"
25328 LIBS="$ac_xsave_LIBS -R $x_libraries"
25329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25330 /* end confdefs.h. */
25340 if ac_fn_c_try_link "$LINENO"; then :
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25342 $as_echo "yes" >&6; }
25343 X_LIBS="$X_LIBS -R $x_libraries"
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25346 $as_echo "neither works" >&6; }
25348 rm -f core conftest.err conftest.$ac_objext \
25349 conftest$ac_exeext conftest.$ac_ext
25351 rm -f core conftest.err conftest.$ac_objext \
25352 conftest$ac_exeext conftest.$ac_ext
25353 ac_c_werror_flag=$ac_xsave_c_werror_flag
25354 LIBS=$ac_xsave_LIBS
25357 # Check for system-dependent libraries X programs must link with.
25358 # Do this before checking for the system-independent R6 libraries
25359 # (-lICE), since we may need -lsocket or whatever for X linking.
25361 if test "$ISC" = yes; then
25362 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25364 # Martyn Johnson says this is needed for Ultrix, if the X
25365 # libraries were built with DECnet support. And Karl Berry says
25366 # the Alpha needs dnet_stub (dnet does not exist).
25367 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25369 /* end confdefs.h. */
25371 /* Override any GCC internal prototype to avoid an error.
25372 Use char because int might match the return type of a GCC
25373 builtin and then its argument prototype would still apply. */
25377 char XOpenDisplay ();
25381 return XOpenDisplay ();
25386 if ac_fn_c_try_link "$LINENO"; then :
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25390 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25391 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25392 $as_echo_n "(cached) " >&6
25394 ac_check_lib_save_LIBS=$LIBS
25395 LIBS="-ldnet $LIBS"
25396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25397 /* end confdefs.h. */
25399 /* Override any GCC internal prototype to avoid an error.
25400 Use char because int might match the return type of a GCC
25401 builtin and then its argument prototype would still apply. */
25409 return dnet_ntoa ();
25414 if ac_fn_c_try_link "$LINENO"; then :
25415 ac_cv_lib_dnet_dnet_ntoa=yes
25417 ac_cv_lib_dnet_dnet_ntoa=no
25419 rm -f core conftest.err conftest.$ac_objext \
25420 conftest$ac_exeext conftest.$ac_ext
25421 LIBS=$ac_check_lib_save_LIBS
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25424 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25425 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25426 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25429 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25431 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25432 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25433 $as_echo_n "(cached) " >&6
25435 ac_check_lib_save_LIBS=$LIBS
25436 LIBS="-ldnet_stub $LIBS"
25437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25438 /* end confdefs.h. */
25440 /* Override any GCC internal prototype to avoid an error.
25441 Use char because int might match the return type of a GCC
25442 builtin and then its argument prototype would still apply. */
25450 return dnet_ntoa ();
25455 if ac_fn_c_try_link "$LINENO"; then :
25456 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25458 ac_cv_lib_dnet_stub_dnet_ntoa=no
25460 rm -f core conftest.err conftest.$ac_objext \
25461 conftest$ac_exeext conftest.$ac_ext
25462 LIBS=$ac_check_lib_save_LIBS
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25465 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25466 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25467 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25472 rm -f core conftest.err conftest.$ac_objext \
25473 conftest$ac_exeext conftest.$ac_ext
25474 LIBS="$ac_xsave_LIBS"
25476 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25477 # to get the SysV transport functions.
25478 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25480 # The nsl library prevents programs from opening the X display
25481 # on Irix 5.2, according to T.E. Dickey.
25482 # The functions gethostbyname, getservbyname, and inet_addr are
25483 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25484 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25485 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25489 if test $ac_cv_func_gethostbyname = no; then
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25491 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25492 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25493 $as_echo_n "(cached) " >&6
25495 ac_check_lib_save_LIBS=$LIBS
25497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25498 /* end confdefs.h. */
25500 /* Override any GCC internal prototype to avoid an error.
25501 Use char because int might match the return type of a GCC
25502 builtin and then its argument prototype would still apply. */
25506 char gethostbyname ();
25510 return gethostbyname ();
25515 if ac_fn_c_try_link "$LINENO"; then :
25516 ac_cv_lib_nsl_gethostbyname=yes
25518 ac_cv_lib_nsl_gethostbyname=no
25520 rm -f core conftest.err conftest.$ac_objext \
25521 conftest$ac_exeext conftest.$ac_ext
25522 LIBS=$ac_check_lib_save_LIBS
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25525 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25526 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25527 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25530 if test $ac_cv_lib_nsl_gethostbyname = no; then
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25532 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25533 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25534 $as_echo_n "(cached) " >&6
25536 ac_check_lib_save_LIBS=$LIBS
25538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25539 /* end confdefs.h. */
25541 /* Override any GCC internal prototype to avoid an error.
25542 Use char because int might match the return type of a GCC
25543 builtin and then its argument prototype would still apply. */
25547 char gethostbyname ();
25551 return gethostbyname ();
25556 if ac_fn_c_try_link "$LINENO"; then :
25557 ac_cv_lib_bsd_gethostbyname=yes
25559 ac_cv_lib_bsd_gethostbyname=no
25561 rm -f core conftest.err conftest.$ac_objext \
25562 conftest$ac_exeext conftest.$ac_ext
25563 LIBS=$ac_check_lib_save_LIBS
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25566 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25567 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25574 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25575 # socket/setsockopt and other routines are undefined under SCO ODT
25576 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25577 # on later versions), says Simon Leinen: it contains gethostby*
25578 # variants that don't use the name server (or something). -lsocket
25579 # must be given before -lnsl if both are needed. We assume that
25580 # if connect needs -lnsl, so does gethostbyname.
25581 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25582 if test "x$ac_cv_func_connect" = xyes; then :
25586 if test $ac_cv_func_connect = no; then
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25588 $as_echo_n "checking for connect in -lsocket... " >&6; }
25589 if ${ac_cv_lib_socket_connect+:} false; then :
25590 $as_echo_n "(cached) " >&6
25592 ac_check_lib_save_LIBS=$LIBS
25593 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25595 /* end confdefs.h. */
25597 /* Override any GCC internal prototype to avoid an error.
25598 Use char because int might match the return type of a GCC
25599 builtin and then its argument prototype would still apply. */
25612 if ac_fn_c_try_link "$LINENO"; then :
25613 ac_cv_lib_socket_connect=yes
25615 ac_cv_lib_socket_connect=no
25617 rm -f core conftest.err conftest.$ac_objext \
25618 conftest$ac_exeext conftest.$ac_ext
25619 LIBS=$ac_check_lib_save_LIBS
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25622 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25623 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25624 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25629 # Guillermo Gomez says -lposix is necessary on A/UX.
25630 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25631 if test "x$ac_cv_func_remove" = xyes; then :
25635 if test $ac_cv_func_remove = no; then
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25637 $as_echo_n "checking for remove in -lposix... " >&6; }
25638 if ${ac_cv_lib_posix_remove+:} false; then :
25639 $as_echo_n "(cached) " >&6
25641 ac_check_lib_save_LIBS=$LIBS
25642 LIBS="-lposix $LIBS"
25643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25644 /* end confdefs.h. */
25646 /* Override any GCC internal prototype to avoid an error.
25647 Use char because int might match the return type of a GCC
25648 builtin and then its argument prototype would still apply. */
25661 if ac_fn_c_try_link "$LINENO"; then :
25662 ac_cv_lib_posix_remove=yes
25664 ac_cv_lib_posix_remove=no
25666 rm -f core conftest.err conftest.$ac_objext \
25667 conftest$ac_exeext conftest.$ac_ext
25668 LIBS=$ac_check_lib_save_LIBS
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25671 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25672 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25673 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25678 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25679 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25680 if test "x$ac_cv_func_shmat" = xyes; then :
25684 if test $ac_cv_func_shmat = no; then
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25686 $as_echo_n "checking for shmat in -lipc... " >&6; }
25687 if ${ac_cv_lib_ipc_shmat+:} false; then :
25688 $as_echo_n "(cached) " >&6
25690 ac_check_lib_save_LIBS=$LIBS
25692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25693 /* end confdefs.h. */
25695 /* Override any GCC internal prototype to avoid an error.
25696 Use char because int might match the return type of a GCC
25697 builtin and then its argument prototype would still apply. */
25710 if ac_fn_c_try_link "$LINENO"; then :
25711 ac_cv_lib_ipc_shmat=yes
25713 ac_cv_lib_ipc_shmat=no
25715 rm -f core conftest.err conftest.$ac_objext \
25716 conftest$ac_exeext conftest.$ac_ext
25717 LIBS=$ac_check_lib_save_LIBS
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25720 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25721 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25722 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25728 # Check for libraries that X11R6 Xt/Xaw programs need.
25729 ac_save_LDFLAGS=$LDFLAGS
25730 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25731 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25732 # check for ICE first), but we must link in the order -lSM -lICE or
25733 # we get undefined symbols. So assume we have SM if we have ICE.
25734 # These have to be linked with before -lX11, unlike the other
25735 # libraries we check for below, so use a different variable.
25736 # John Interrante, Karl Berry
25737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25738 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25739 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25740 $as_echo_n "(cached) " >&6
25742 ac_check_lib_save_LIBS=$LIBS
25743 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25745 /* end confdefs.h. */
25747 /* Override any GCC internal prototype to avoid an error.
25748 Use char because int might match the return type of a GCC
25749 builtin and then its argument prototype would still apply. */
25753 char IceConnectionNumber ();
25757 return IceConnectionNumber ();
25762 if ac_fn_c_try_link "$LINENO"; then :
25763 ac_cv_lib_ICE_IceConnectionNumber=yes
25765 ac_cv_lib_ICE_IceConnectionNumber=no
25767 rm -f core conftest.err conftest.$ac_objext \
25768 conftest$ac_exeext conftest.$ac_ext
25769 LIBS=$ac_check_lib_save_LIBS
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25772 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25773 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25774 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25777 LDFLAGS=$ac_save_LDFLAGS
25815 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25816 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25817 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25818 cat >>confdefs.h <<_ACEOF
25819 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25827 $as_echo_n "checking for ANSI C header files... " >&6; }
25828 if ${ac_cv_header_stdc+:} false; then :
25829 $as_echo_n "(cached) " >&6
25831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25832 /* end confdefs.h. */
25833 #include <stdlib.h>
25834 #include <stdarg.h>
25835 #include <string.h>
25846 if ac_fn_c_try_compile "$LINENO"; then :
25847 ac_cv_header_stdc=yes
25849 ac_cv_header_stdc=no
25851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25853 if test $ac_cv_header_stdc = yes; then
25854 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25856 /* end confdefs.h. */
25857 #include <string.h>
25860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25861 $EGREP "memchr" >/dev/null 2>&1; then :
25864 ac_cv_header_stdc=no
25870 if test $ac_cv_header_stdc = yes; then
25871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25873 /* end confdefs.h. */
25874 #include <stdlib.h>
25877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25878 $EGREP "free" >/dev/null 2>&1; then :
25881 ac_cv_header_stdc=no
25887 if test $ac_cv_header_stdc = yes; then
25888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25889 if test "$cross_compiling" = yes; then :
25892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25893 /* end confdefs.h. */
25895 #include <stdlib.h>
25896 #if ((' ' & 0x0FF) == 0x020)
25897 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25898 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25900 # define ISLOWER(c) \
25901 (('a' <= (c) && (c) <= 'i') \
25902 || ('j' <= (c) && (c) <= 'r') \
25903 || ('s' <= (c) && (c) <= 'z'))
25904 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25907 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25912 for (i = 0; i < 256; i++)
25913 if (XOR (islower (i), ISLOWER (i))
25914 || toupper (i) != TOUPPER (i))
25919 if ac_fn_c_try_run "$LINENO"; then :
25922 ac_cv_header_stdc=no
25924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25925 conftest.$ac_objext conftest.beam conftest.$ac_ext
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25931 $as_echo "$ac_cv_header_stdc" >&6; }
25932 if test $ac_cv_header_stdc = yes; then
25934 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25939 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25940 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25941 $as_echo_n "(cached) " >&6
25943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25944 /* end confdefs.h. */
25945 #include <sys/types.h>
25949 return makedev(0, 0);
25954 if ac_fn_c_try_link "$LINENO"; then :
25955 ac_cv_header_sys_types_h_makedev=yes
25957 ac_cv_header_sys_types_h_makedev=no
25959 rm -f core conftest.err conftest.$ac_objext \
25960 conftest$ac_exeext conftest.$ac_ext
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25964 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25966 if test $ac_cv_header_sys_types_h_makedev = no; then
25967 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25968 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25970 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25976 if test $ac_cv_header_sys_mkdev_h = no; then
25977 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25978 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25980 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25988 ac_header_dirent=no
25989 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25990 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25992 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25993 if eval \${$as_ac_Header+:} false; then :
25994 $as_echo_n "(cached) " >&6
25996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25997 /* end confdefs.h. */
25998 #include <sys/types.h>
26010 if ac_fn_c_try_compile "$LINENO"; then :
26011 eval "$as_ac_Header=yes"
26013 eval "$as_ac_Header=no"
26015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26017 eval ac_res=\$$as_ac_Header
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26019 $as_echo "$ac_res" >&6; }
26020 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26021 cat >>confdefs.h <<_ACEOF
26022 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26025 ac_header_dirent=$ac_hdr; break
26029 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26030 if test $ac_header_dirent = dirent.h; then
26031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26032 $as_echo_n "checking for library containing opendir... " >&6; }
26033 if ${ac_cv_search_opendir+:} false; then :
26034 $as_echo_n "(cached) " >&6
26036 ac_func_search_save_LIBS=$LIBS
26037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26038 /* end confdefs.h. */
26040 /* Override any GCC internal prototype to avoid an error.
26041 Use char because int might match the return type of a GCC
26042 builtin and then its argument prototype would still apply. */
26055 for ac_lib in '' dir; do
26056 if test -z "$ac_lib"; then
26057 ac_res="none required"
26060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26062 if ac_fn_c_try_link "$LINENO"; then :
26063 ac_cv_search_opendir=$ac_res
26065 rm -f core conftest.err conftest.$ac_objext \
26067 if ${ac_cv_search_opendir+:} false; then :
26071 if ${ac_cv_search_opendir+:} false; then :
26074 ac_cv_search_opendir=no
26076 rm conftest.$ac_ext
26077 LIBS=$ac_func_search_save_LIBS
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26080 $as_echo "$ac_cv_search_opendir" >&6; }
26081 ac_res=$ac_cv_search_opendir
26082 if test "$ac_res" != no; then :
26083 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26089 $as_echo_n "checking for library containing opendir... " >&6; }
26090 if ${ac_cv_search_opendir+:} false; then :
26091 $as_echo_n "(cached) " >&6
26093 ac_func_search_save_LIBS=$LIBS
26094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26095 /* end confdefs.h. */
26097 /* Override any GCC internal prototype to avoid an error.
26098 Use char because int might match the return type of a GCC
26099 builtin and then its argument prototype would still apply. */
26112 for ac_lib in '' x; do
26113 if test -z "$ac_lib"; then
26114 ac_res="none required"
26117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26119 if ac_fn_c_try_link "$LINENO"; then :
26120 ac_cv_search_opendir=$ac_res
26122 rm -f core conftest.err conftest.$ac_objext \
26124 if ${ac_cv_search_opendir+:} false; then :
26128 if ${ac_cv_search_opendir+:} false; then :
26131 ac_cv_search_opendir=no
26133 rm conftest.$ac_ext
26134 LIBS=$ac_func_search_save_LIBS
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26137 $as_echo "$ac_cv_search_opendir" >&6; }
26138 ac_res=$ac_cv_search_opendir
26139 if test "$ac_res" != no; then :
26140 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26147 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26148 if ${ac_cv_header_stat_broken+:} false; then :
26149 $as_echo_n "(cached) " >&6
26151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26152 /* end confdefs.h. */
26153 #include <sys/types.h>
26154 #include <sys/stat.h>
26156 #if defined S_ISBLK && defined S_IFDIR
26157 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26160 #if defined S_ISBLK && defined S_IFCHR
26161 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26164 #if defined S_ISLNK && defined S_IFREG
26165 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26168 #if defined S_ISSOCK && defined S_IFREG
26169 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26173 if ac_fn_c_try_compile "$LINENO"; then :
26174 ac_cv_header_stat_broken=no
26176 ac_cv_header_stat_broken=yes
26178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26181 $as_echo "$ac_cv_header_stat_broken" >&6; }
26182 if test $ac_cv_header_stat_broken = yes; then
26184 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26189 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26190 if ${ac_cv_header_sys_wait_h+:} false; then :
26191 $as_echo_n "(cached) " >&6
26193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26194 /* end confdefs.h. */
26195 #include <sys/types.h>
26196 #include <sys/wait.h>
26197 #ifndef WEXITSTATUS
26198 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26201 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26209 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26214 if ac_fn_c_try_compile "$LINENO"; then :
26215 ac_cv_header_sys_wait_h=yes
26217 ac_cv_header_sys_wait_h=no
26219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26222 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26223 if test $ac_cv_header_sys_wait_h = yes; then
26225 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26230 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26231 if ${ac_cv_header_time+:} false; then :
26232 $as_echo_n "(cached) " >&6
26234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26235 /* end confdefs.h. */
26236 #include <sys/types.h>
26237 #include <sys/time.h>
26243 if ((struct tm *) 0)
26249 if ac_fn_c_try_compile "$LINENO"; then :
26250 ac_cv_header_time=yes
26252 ac_cv_header_time=no
26254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26257 $as_echo "$ac_cv_header_time" >&6; }
26258 if test $ac_cv_header_time = yes; then
26260 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26264 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26265 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26267 cat >>confdefs.h <<_ACEOF
26268 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26272 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26277 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26278 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26280 cat >>confdefs.h <<_ACEOF
26281 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26285 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26288 case " $LIBOBJS " in
26289 *" fileblocks.$ac_objext "* ) ;;
26290 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26298 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26299 if ${ac_cv_struct_tm+:} false; then :
26300 $as_echo_n "(cached) " >&6
26302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26303 /* end confdefs.h. */
26304 #include <sys/types.h>
26311 int *p = &tm.tm_sec;
26317 if ac_fn_c_try_compile "$LINENO"; then :
26318 ac_cv_struct_tm=time.h
26320 ac_cv_struct_tm=sys/time.h
26322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26325 $as_echo "$ac_cv_struct_tm" >&6; }
26326 if test $ac_cv_struct_tm = sys/time.h; then
26328 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26332 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26333 #include <$ac_cv_struct_tm>
26336 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26338 cat >>confdefs.h <<_ACEOF
26339 #define HAVE_STRUCT_TM_TM_ZONE 1
26345 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26347 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26350 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26352 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26358 cat >>confdefs.h <<_ACEOF
26359 #define HAVE_DECL_TZNAME $ac_have_decl
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26363 $as_echo_n "checking for tzname... " >&6; }
26364 if ${ac_cv_var_tzname+:} false; then :
26365 $as_echo_n "(cached) " >&6
26367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26368 /* end confdefs.h. */
26370 #if !HAVE_DECL_TZNAME
26371 extern char *tzname[];
26377 return tzname[0][0];
26382 if ac_fn_c_try_link "$LINENO"; then :
26383 ac_cv_var_tzname=yes
26385 ac_cv_var_tzname=no
26387 rm -f core conftest.err conftest.$ac_objext \
26388 conftest$ac_exeext conftest.$ac_ext
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26391 $as_echo "$ac_cv_var_tzname" >&6; }
26392 if test $ac_cv_var_tzname = yes; then
26394 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26401 $as_echo_n "checking for utime.h... " >&6; }
26402 if ${ba_cv_header_utime_h+:} false; then :
26403 $as_echo_n "(cached) " >&6
26406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26407 /* end confdefs.h. */
26409 #include <sys/types.h>
26422 if ac_fn_c_try_compile "$LINENO"; then :
26424 ba_cv_header_utime_h=yes
26428 ba_cv_header_utime_h=no
26432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26437 $as_echo "$ba_cv_header_utime_h" >&6; }
26438 test $ba_cv_header_utime_h = yes &&
26439 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26443 $as_echo_n "checking for socklen_t... " >&6; }
26444 if ${ba_cv_header_socklen_t+:} false; then :
26445 $as_echo_n "(cached) " >&6
26448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26449 /* end confdefs.h. */
26451 #include <sys/types.h>
26452 #include <sys/socket.h>
26464 if ac_fn_c_try_compile "$LINENO"; then :
26466 ba_cv_header_socklen_t=yes
26470 ba_cv_header_socklen_t=no
26474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26479 $as_echo "$ba_cv_header_socklen_t" >&6; }
26480 test $ba_cv_header_socklen_t = yes &&
26481 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26485 ac_cpp='$CXXCPP $CPPFLAGS'
26486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26491 $as_echo_n "checking for ioctl_req_t... " >&6; }
26492 if ${ba_cv_header_ioctl_req_t+:} false; then :
26493 $as_echo_n "(cached) " >&6
26496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26497 /* end confdefs.h. */
26499 #include <unistd.h>
26500 #include <sys/types.h>
26501 #include <sys/ioctl.h>
26507 int (*d_ioctl)(int fd, unsigned long int request, ...);
26514 if ac_fn_cxx_try_compile "$LINENO"; then :
26516 ba_cv_header_ioctl_req_t=yes
26520 ba_cv_header_ioctl_req_t=no
26524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26529 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26530 test $ba_cv_header_ioctl_req_t = yes &&
26531 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26535 ac_cpp='$CPP $CPPFLAGS'
26536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26542 ac_cpp='$CXXCPP $CPPFLAGS'
26543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26548 $as_echo_n "checking for typeof... " >&6; }
26549 if ${ba_cv_have_typeof+:} false; then :
26550 $as_echo_n "(cached) " >&6
26553 if test "$cross_compiling" = yes; then :
26555 ba_cv_have_typeof=no
26559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26560 /* end confdefs.h. */
26562 main(){char *a = 0; a = (typeof a)a;}
26565 if ac_fn_cxx_try_run "$LINENO"; then :
26567 ba_cv_have_typeof=yes
26571 ba_cv_have_typeof=no
26574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26575 conftest.$ac_objext conftest.beam conftest.$ac_ext
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26582 $as_echo "$ba_cv_have_typeof" >&6; }
26583 test $ba_cv_have_typeof = yes &&
26584 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26587 ac_cpp='$CPP $CPPFLAGS'
26588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26594 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26595 if ${ac_cv_c_const+:} false; then :
26596 $as_echo_n "(cached) " >&6
26598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26599 /* end confdefs.h. */
26605 #ifndef __cplusplus
26606 /* Ultrix mips cc rejects this sort of thing. */
26607 typedef int charset[2];
26608 const charset cs = { 0, 0 };
26609 /* SunOS 4.1.1 cc rejects this. */
26610 char const *const *pcpcc;
26612 /* NEC SVR4.0.2 mips cc rejects this. */
26613 struct point {int x, y;};
26614 static struct point const zero = {0,0};
26615 /* AIX XL C 1.02.0.0 rejects this.
26616 It does not let you subtract one const X* pointer from another in
26617 an arm of an if-expression whose if-part is not a constant
26619 const char *g = "string";
26620 pcpcc = &g + (g ? g-g : 0);
26621 /* HPUX 7.0 cc rejects these. */
26623 ppc = (char**) pcpcc;
26624 pcpcc = (char const *const *) ppc;
26625 { /* SCO 3.2v4 cc rejects this sort of thing. */
26628 char const *s = 0 ? (char *) 0 : (char const *) 0;
26633 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26634 int x[] = {25, 17};
26635 const int *foo = &x[0];
26638 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26639 typedef const int *iptr;
26643 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26644 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26645 struct s { int j; const int *ap[3]; } bx;
26646 struct s *b = &bx; b->j = 5;
26648 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26649 const int foo = 10;
26650 if (!foo) return 0;
26652 return !cs[0] && !zero.x;
26659 if ac_fn_c_try_compile "$LINENO"; then :
26664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26667 $as_echo "$ac_cv_c_const" >&6; }
26668 if test $ac_cv_c_const = no; then
26670 $as_echo "#define const /**/" >>confdefs.h
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26676 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26677 if ${ac_cv_c_bigendian+:} false; then :
26678 $as_echo_n "(cached) " >&6
26680 ac_cv_c_bigendian=unknown
26681 # See if we're dealing with a universal compiler.
26682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26683 /* end confdefs.h. */
26684 #ifndef __APPLE_CC__
26685 not a universal capable compiler
26690 if ac_fn_c_try_compile "$LINENO"; then :
26692 # Check for potential -arch flags. It is not universal unless
26693 # there are at least two -arch flags with different values.
26696 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26697 if test -n "$ac_prev"; then
26699 i?86 | x86_64 | ppc | ppc64)
26700 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26703 ac_cv_c_bigendian=universal
26709 elif test "x$ac_word" = "x-arch"; then
26714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26715 if test $ac_cv_c_bigendian = unknown; then
26716 # See if sys/param.h defines the BYTE_ORDER macro.
26717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26718 /* end confdefs.h. */
26719 #include <sys/types.h>
26720 #include <sys/param.h>
26725 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26726 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26728 bogus endian macros
26735 if ac_fn_c_try_compile "$LINENO"; then :
26736 # It does; now see whether it defined to BIG_ENDIAN or not.
26737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26738 /* end confdefs.h. */
26739 #include <sys/types.h>
26740 #include <sys/param.h>
26745 #if BYTE_ORDER != 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 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26765 /* end confdefs.h. */
26766 #include <limits.h>
26771 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26772 bogus endian macros
26779 if ac_fn_c_try_compile "$LINENO"; then :
26780 # It does; now see whether it defined to _BIG_ENDIAN or not.
26781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26782 /* end confdefs.h. */
26783 #include <limits.h>
26788 #ifndef _BIG_ENDIAN
26796 if ac_fn_c_try_compile "$LINENO"; then :
26797 ac_cv_c_bigendian=yes
26799 ac_cv_c_bigendian=no
26801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26805 if test $ac_cv_c_bigendian = unknown; then
26806 # Compile a test program.
26807 if test "$cross_compiling" = yes; then :
26808 # Try to guess by grepping values from an object file.
26809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26810 /* end confdefs.h. */
26811 short int ascii_mm[] =
26812 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26813 short int ascii_ii[] =
26814 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26815 int use_ascii (int i) {
26816 return ascii_mm[i] + ascii_ii[i];
26818 short int ebcdic_ii[] =
26819 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26820 short int ebcdic_mm[] =
26821 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26822 int use_ebcdic (int i) {
26823 return ebcdic_mm[i] + ebcdic_ii[i];
26830 return use_ascii (foo) == use_ebcdic (foo);
26835 if ac_fn_c_try_compile "$LINENO"; then :
26836 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26837 ac_cv_c_bigendian=yes
26839 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26840 if test "$ac_cv_c_bigendian" = unknown; then
26841 ac_cv_c_bigendian=no
26843 # finding both strings is unlikely to happen, but who knows?
26844 ac_cv_c_bigendian=unknown
26848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26851 /* end confdefs.h. */
26852 $ac_includes_default
26857 /* Are we little or big endian? From Harbison&Steele. */
26861 char c[sizeof (long int)];
26864 return u.c[sizeof (long int) - 1] == 1;
26870 if ac_fn_c_try_run "$LINENO"; then :
26871 ac_cv_c_bigendian=no
26873 ac_cv_c_bigendian=yes
26875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26876 conftest.$ac_objext conftest.beam conftest.$ac_ext
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26882 $as_echo "$ac_cv_c_bigendian" >&6; }
26883 case $ac_cv_c_bigendian in #(
26886 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26890 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26894 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26898 as_fn_error $? "unknown endianness
26899 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26904 $as_echo_n "checking how to get filesystem type... " >&6; }
26906 # The order of these tests is important.
26907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26908 /* end confdefs.h. */
26910 #include <sys/statvfs.h>
26911 #include <sys/fstyp.h>
26914 if ac_fn_c_try_cpp "$LINENO"; then :
26915 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26919 rm -f conftest.err conftest.i conftest.$ac_ext
26920 if test $fstype = no; then
26921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26922 /* end confdefs.h. */
26924 #include <sys/statfs.h>
26925 #include <sys/fstyp.h>
26928 if ac_fn_c_try_cpp "$LINENO"; then :
26929 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26933 rm -f conftest.err conftest.i conftest.$ac_ext
26935 if test $fstype = no; then
26936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26937 /* end confdefs.h. */
26939 #include <sys/statfs.h>
26940 #include <sys/vmount.h>
26943 if ac_fn_c_try_cpp "$LINENO"; then :
26944 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26948 rm -f conftest.err conftest.i conftest.$ac_ext
26950 if test $fstype = no; then
26951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26952 /* end confdefs.h. */
26954 #include <mntent.h>
26957 if ac_fn_c_try_cpp "$LINENO"; then :
26958 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26962 rm -f conftest.err conftest.i conftest.$ac_ext
26964 if test $fstype = no; then
26965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26966 /* end confdefs.h. */
26967 #include <sys/mount.h>
26970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26971 $EGREP "f_type;" >/dev/null 2>&1; then :
26972 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26978 if test $fstype = no; then
26979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26980 /* end confdefs.h. */
26982 #include <sys/mount.h>
26983 #include <sys/fs_types.h>
26986 if ac_fn_c_try_cpp "$LINENO"; then :
26987 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26991 rm -f conftest.err conftest.i conftest.$ac_ext
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26994 $as_echo "$fstype" >&6; }
26996 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26997 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26999 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
27005 ac_fn_c_check_decl "$LINENO" "O_CLOEXEC" "ac_cv_have_decl_O_CLOEXEC" "
27006 #ifdef HAVE_FCNTL_H
27007 # include <fcntl.h>
27011 if test "x$ac_cv_have_decl_O_CLOEXEC" = xyes; then :
27017 cat >>confdefs.h <<_ACEOF
27018 #define HAVE_DECL_O_CLOEXEC $ac_have_decl
27020 if test $ac_have_decl = 1; then :
27024 $as_echo "#define O_CLOEXEC 0" >>confdefs.h
27029 ac_fn_c_check_decl "$LINENO" "FD_CLOEXEC" "ac_cv_have_decl_FD_CLOEXEC" "
27030 #ifdef HAVE_FCNTL_H
27031 # include <fcntl.h>
27035 if test "x$ac_cv_have_decl_FD_CLOEXEC" = xyes; then :
27041 cat >>confdefs.h <<_ACEOF
27042 #define HAVE_DECL_FD_CLOEXEC $ac_have_decl
27044 if test $ac_have_decl = 1; then :
27048 $as_echo "#define FD_CLOEXEC 0" >>confdefs.h
27053 ac_fn_c_check_decl "$LINENO" "SOCK_CLOEXEC" "ac_cv_have_decl_SOCK_CLOEXEC" "
27054 #ifdef HAVE_SYS_SOCKET_H
27055 # include <sys/socket.h>
27059 if test "x$ac_cv_have_decl_SOCK_CLOEXEC" = xyes; then :
27065 cat >>confdefs.h <<_ACEOF
27066 #define HAVE_DECL_SOCK_CLOEXEC $ac_have_decl
27068 if test $ac_have_decl = 1; then :
27072 $as_echo "#define SOCK_CLOEXEC 0" >>confdefs.h
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close on exec modifier for fopen()" >&5
27078 $as_echo_n "checking for close on exec modifier for fopen()... " >&6; }
27079 if ${ac_cv_feature_stream_cloexec_flag+:} false; then :
27080 $as_echo_n "(cached) " >&6
27082 if test $ac_cv_have_decl_O_CLOEXEC = yes ; then
27083 if test $ac_cv_have_decl_SOCK_CLOEXEC = yes ; then
27084 ac_cv_feature_stream_cloexec_flag="e"
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_feature_stream_cloexec_flag" >&5
27089 $as_echo "$ac_cv_feature_stream_cloexec_flag" >&6; }
27091 if test "x$ac_cv_feature_stream_cloexec_flag" = "xe" ; then
27093 $as_echo "#define HAVE_STREAM_CLOEXEC 0" >>confdefs.h
27098 cat >>confdefs.h <<_ACEOF
27099 #define STREAM_CLOEXEC "$ac_cv_feature_stream_cloexec_flag"
27103 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
27104 if test "x$ac_cv_func_accept4" = xyes; then :
27106 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
27116 if test x$support_s3 = xyes; then
27118 # Check whether --with-s3 was given.
27119 if test "${with_s3+set}" = set; then :
27126 if test -f ${with_s3}/include/libs3.h; then
27127 S3_INC="-I${with_s3}/include"
27128 S3_LDFLAGS="-L${with_s3}/lib"
27129 with_s3="${with_s3}/include"
27131 with_s3="/usr/include"
27134 as_ac_Header=`$as_echo "ac_cv_header_${with_s3}/libs3.h" | $as_tr_sh`
27135 ac_fn_c_check_header_mongrel "$LINENO" "${with_s3}/libs3.h" "$as_ac_Header" "$ac_includes_default"
27136 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27139 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27141 S3_LIBS="${S3_LDFLAGS} -ls3"
27147 echo "libs3.h not found. s3 turned off ..."
27159 ac_fn_c_check_header_mongrel "$LINENO" "libs3.h" "ac_cv_header_libs3_h" "$ac_includes_default"
27160 if test "x$ac_cv_header_libs3_h" = xyes; then :
27162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S3_initialize in -ls3" >&5
27163 $as_echo_n "checking for S3_initialize in -ls3... " >&6; }
27164 if ${ac_cv_lib_s3_S3_initialize+:} false; then :
27165 $as_echo_n "(cached) " >&6
27167 ac_check_lib_save_LIBS=$LIBS
27169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27170 /* end confdefs.h. */
27172 /* Override any GCC internal prototype to avoid an error.
27173 Use char because int might match the return type of a GCC
27174 builtin and then its argument prototype would still apply. */
27178 char S3_initialize ();
27182 return S3_initialize ();
27187 if ac_fn_c_try_link "$LINENO"; then :
27188 ac_cv_lib_s3_S3_initialize=yes
27190 ac_cv_lib_s3_S3_initialize=no
27192 rm -f core conftest.err conftest.$ac_objext \
27193 conftest$ac_exeext conftest.$ac_ext
27194 LIBS=$ac_check_lib_save_LIBS
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s3_S3_initialize" >&5
27197 $as_echo "$ac_cv_lib_s3_S3_initialize" >&6; }
27198 if test "x$ac_cv_lib_s3_S3_initialize" = xyes; then :
27202 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27221 ac_cpp='$CXXCPP $CPPFLAGS'
27222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27226 for ac_func in backtrace
27228 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27229 if test "x$ac_cv_func_backtrace" = xyes; then :
27230 cat >>confdefs.h <<_ACEOF
27231 #define HAVE_BACKTRACE 1
27238 ac_cpp='$CPP $CPPFLAGS'
27239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27245 $as_echo_n "checking return type of signal handlers... " >&6; }
27246 if ${ac_cv_type_signal+:} false; then :
27247 $as_echo_n "(cached) " >&6
27249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27250 /* end confdefs.h. */
27251 #include <sys/types.h>
27252 #include <signal.h>
27257 return *(signal (0, 0)) (0) == 1;
27262 if ac_fn_c_try_compile "$LINENO"; then :
27263 ac_cv_type_signal=int
27265 ac_cv_type_signal=void
27267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27270 $as_echo "$ac_cv_type_signal" >&6; }
27272 cat >>confdefs.h <<_ACEOF
27273 #define RETSIGTYPE $ac_cv_type_signal
27278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27279 $as_echo_n "checking for type of signal functions... " >&6; }
27280 if ${bash_cv_signal_vintage+:} false; then :
27281 $as_echo_n "(cached) " >&6
27284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27285 /* end confdefs.h. */
27286 #include <signal.h>
27292 struct sigaction sa;
27293 sigemptyset(&ss); sigsuspend(&ss);
27294 sigaction(SIGINT, &sa, (struct sigaction *) 0);
27295 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27301 if ac_fn_c_try_link "$LINENO"; then :
27302 bash_cv_signal_vintage="posix"
27305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27306 /* end confdefs.h. */
27307 #include <signal.h>
27312 int mask = sigmask(SIGINT);
27313 sigsetmask(mask); sigblock(mask); sigpause(mask);
27319 if ac_fn_c_try_link "$LINENO"; then :
27320 bash_cv_signal_vintage="4.2bsd"
27323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27324 /* end confdefs.h. */
27326 #include <signal.h>
27327 RETSIGTYPE foo() { }
27332 int mask = sigmask(SIGINT);
27333 sigset(SIGINT, foo); sigrelse(SIGINT);
27334 sighold(SIGINT); sigpause(SIGINT);
27340 if ac_fn_c_try_link "$LINENO"; then :
27341 bash_cv_signal_vintage="svr3"
27343 bash_cv_signal_vintage="v7"
27346 rm -f core conftest.err conftest.$ac_objext \
27347 conftest$ac_exeext conftest.$ac_ext
27350 rm -f core conftest.err conftest.$ac_objext \
27351 conftest$ac_exeext conftest.$ac_ext
27354 rm -f core conftest.err conftest.$ac_objext \
27355 conftest$ac_exeext conftest.$ac_ext
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27360 $as_echo "$bash_cv_signal_vintage" >&6; }
27361 if test "$bash_cv_signal_vintage" = "posix"; then
27362 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27364 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27365 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27367 elif test "$bash_cv_signal_vintage" = "svr3"; then
27368 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27372 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27373 if test "x$ac_cv_type_mode_t" = xyes; then :
27377 cat >>confdefs.h <<_ACEOF
27383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27384 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27385 if ${ac_cv_type_uid_t+:} false; then :
27386 $as_echo_n "(cached) " >&6
27388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27389 /* end confdefs.h. */
27390 #include <sys/types.h>
27393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27394 $EGREP "uid_t" >/dev/null 2>&1; then :
27395 ac_cv_type_uid_t=yes
27397 ac_cv_type_uid_t=no
27402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27403 $as_echo "$ac_cv_type_uid_t" >&6; }
27404 if test $ac_cv_type_uid_t = no; then
27406 $as_echo "#define uid_t int" >>confdefs.h
27409 $as_echo "#define gid_t int" >>confdefs.h
27413 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27414 if test "x$ac_cv_type_size_t" = xyes; then :
27418 cat >>confdefs.h <<_ACEOF
27419 #define size_t unsigned int
27424 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27425 if test "x$ac_cv_type_pid_t" = xyes; then :
27429 cat >>confdefs.h <<_ACEOF
27435 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27436 if test "x$ac_cv_type_off_t" = xyes; then :
27440 cat >>confdefs.h <<_ACEOF
27441 #define off_t long int
27447 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27448 if test "x$ac_cv_type_intptr_t" = xyes; then :
27450 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27453 for ac_type in 'int' 'long int' 'long long int'; do
27454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27455 /* end confdefs.h. */
27456 $ac_includes_default
27460 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27461 test_array [0] = 0;
27462 return test_array [0];
27468 if ac_fn_c_try_compile "$LINENO"; then :
27470 cat >>confdefs.h <<_ACEOF
27471 #define intptr_t $ac_type
27476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27477 test -z "$ac_type" && break
27483 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27484 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27486 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27489 for ac_type in 'unsigned int' 'unsigned long int' \
27490 'unsigned long long int'; do
27491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27492 /* end confdefs.h. */
27493 $ac_includes_default
27497 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27498 test_array [0] = 0;
27499 return test_array [0];
27505 if ac_fn_c_try_compile "$LINENO"; then :
27507 cat >>confdefs.h <<_ACEOF
27508 #define uintptr_t $ac_type
27513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27514 test -z "$ac_type" && break
27519 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27520 if test "x$ac_cv_type_ino_t" = xyes; then :
27524 cat >>confdefs.h <<_ACEOF
27525 #define ino_t unsigned long
27530 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27531 if test "x$ac_cv_type_dev_t" = xyes; then :
27535 cat >>confdefs.h <<_ACEOF
27536 #define dev_t unsigned long
27541 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27542 if test "x$ac_cv_type_daddr_t" = xyes; then :
27546 cat >>confdefs.h <<_ACEOF
27547 #define daddr_t long
27552 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27553 if test "x$ac_cv_type_major_t" = xyes; then :
27557 cat >>confdefs.h <<_ACEOF
27558 #define major_t int
27563 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27564 if test "x$ac_cv_type_minor_t" = xyes; then :
27568 cat >>confdefs.h <<_ACEOF
27569 #define minor_t int
27574 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27575 if test "x$ac_cv_type_ssize_t" = xyes; then :
27579 cat >>confdefs.h <<_ACEOF
27580 #define ssize_t int
27585 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27586 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27588 cat >>confdefs.h <<_ACEOF
27589 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27593 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27596 case " $LIBOBJS " in
27597 *" fileblocks.$ac_objext "* ) ;;
27598 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27605 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27606 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27608 cat >>confdefs.h <<_ACEOF
27609 #define HAVE_STRUCT_STAT_ST_RDEV 1
27613 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27619 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27620 if ${ac_cv_struct_tm+:} false; then :
27621 $as_echo_n "(cached) " >&6
27623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27624 /* end confdefs.h. */
27625 #include <sys/types.h>
27632 int *p = &tm.tm_sec;
27638 if ac_fn_c_try_compile "$LINENO"; then :
27639 ac_cv_struct_tm=time.h
27641 ac_cv_struct_tm=sys/time.h
27643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27646 $as_echo "$ac_cv_struct_tm" >&6; }
27647 if test $ac_cv_struct_tm = sys/time.h; then
27649 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27654 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27655 if ${ac_cv_c_const+:} false; then :
27656 $as_echo_n "(cached) " >&6
27658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27659 /* end confdefs.h. */
27665 #ifndef __cplusplus
27666 /* Ultrix mips cc rejects this sort of thing. */
27667 typedef int charset[2];
27668 const charset cs = { 0, 0 };
27669 /* SunOS 4.1.1 cc rejects this. */
27670 char const *const *pcpcc;
27672 /* NEC SVR4.0.2 mips cc rejects this. */
27673 struct point {int x, y;};
27674 static struct point const zero = {0,0};
27675 /* AIX XL C 1.02.0.0 rejects this.
27676 It does not let you subtract one const X* pointer from another in
27677 an arm of an if-expression whose if-part is not a constant
27679 const char *g = "string";
27680 pcpcc = &g + (g ? g-g : 0);
27681 /* HPUX 7.0 cc rejects these. */
27683 ppc = (char**) pcpcc;
27684 pcpcc = (char const *const *) ppc;
27685 { /* SCO 3.2v4 cc rejects this sort of thing. */
27688 char const *s = 0 ? (char *) 0 : (char const *) 0;
27693 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27694 int x[] = {25, 17};
27695 const int *foo = &x[0];
27698 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27699 typedef const int *iptr;
27703 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27704 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27705 struct s { int j; const int *ap[3]; } bx;
27706 struct s *b = &bx; b->j = 5;
27708 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27709 const int foo = 10;
27710 if (!foo) return 0;
27712 return !cs[0] && !zero.x;
27719 if ac_fn_c_try_compile "$LINENO"; then :
27724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27727 $as_echo "$ac_cv_c_const" >&6; }
27728 if test $ac_cv_c_const = no; then
27730 $as_echo "#define const /**/" >>confdefs.h
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27735 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27736 if ${ac_cv_c_restrict+:} false; then :
27737 $as_echo_n "(cached) " >&6
27739 ac_cv_c_restrict=no
27740 # The order here caters to the fact that C++ does not require restrict.
27741 for ac_kw in __restrict __restrict__ _Restrict restrict; do
27742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27743 /* end confdefs.h. */
27744 typedef int * int_ptr;
27745 int foo (int_ptr $ac_kw ip) {
27752 int * $ac_kw t = s;
27759 if ac_fn_c_try_compile "$LINENO"; then :
27760 ac_cv_c_restrict=$ac_kw
27762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27763 test "$ac_cv_c_restrict" != no && break
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27768 $as_echo "$ac_cv_c_restrict" >&6; }
27770 case $ac_cv_c_restrict in
27772 no) $as_echo "#define restrict /**/" >>confdefs.h
27774 *) cat >>confdefs.h <<_ACEOF
27775 #define restrict $ac_cv_c_restrict
27781 # The cast to long int works around a bug in the HP C Compiler
27782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27784 # This bug is HP SR number 8606223364.
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27786 $as_echo_n "checking size of char... " >&6; }
27787 if ${ac_cv_sizeof_char+:} false; then :
27788 $as_echo_n "(cached) " >&6
27790 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27793 if test "$ac_cv_type_char" = yes; then
27794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27796 as_fn_error 77 "cannot compute sizeof (char)
27797 See \`config.log' for more details" "$LINENO" 5; }
27799 ac_cv_sizeof_char=0
27804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27805 $as_echo "$ac_cv_sizeof_char" >&6; }
27809 cat >>confdefs.h <<_ACEOF
27810 #define SIZEOF_CHAR $ac_cv_sizeof_char
27814 # The cast to long int works around a bug in the HP C Compiler
27815 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27816 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27817 # This bug is HP SR number 8606223364.
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27819 $as_echo_n "checking size of short int... " >&6; }
27820 if ${ac_cv_sizeof_short_int+:} false; then :
27821 $as_echo_n "(cached) " >&6
27823 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27826 if test "$ac_cv_type_short_int" = yes; then
27827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27829 as_fn_error 77 "cannot compute sizeof (short int)
27830 See \`config.log' for more details" "$LINENO" 5; }
27832 ac_cv_sizeof_short_int=0
27837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27838 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27842 cat >>confdefs.h <<_ACEOF
27843 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27847 # The cast to long int works around a bug in the HP C Compiler
27848 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27849 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27850 # This bug is HP SR number 8606223364.
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27852 $as_echo_n "checking size of int... " >&6; }
27853 if ${ac_cv_sizeof_int+:} false; then :
27854 $as_echo_n "(cached) " >&6
27856 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27859 if test "$ac_cv_type_int" = yes; then
27860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27862 as_fn_error 77 "cannot compute sizeof (int)
27863 See \`config.log' for more details" "$LINENO" 5; }
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27871 $as_echo "$ac_cv_sizeof_int" >&6; }
27875 cat >>confdefs.h <<_ACEOF
27876 #define SIZEOF_INT $ac_cv_sizeof_int
27880 # The cast to long int works around a bug in the HP C Compiler
27881 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27882 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27883 # This bug is HP SR number 8606223364.
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27885 $as_echo_n "checking size of long int... " >&6; }
27886 if ${ac_cv_sizeof_long_int+:} false; then :
27887 $as_echo_n "(cached) " >&6
27889 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27892 if test "$ac_cv_type_long_int" = yes; then
27893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27895 as_fn_error 77 "cannot compute sizeof (long int)
27896 See \`config.log' for more details" "$LINENO" 5; }
27898 ac_cv_sizeof_long_int=0
27903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27904 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27908 cat >>confdefs.h <<_ACEOF
27909 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27913 # The cast to long int works around a bug in the HP C Compiler
27914 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27915 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27916 # This bug is HP SR number 8606223364.
27917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27918 $as_echo_n "checking size of long long int... " >&6; }
27919 if ${ac_cv_sizeof_long_long_int+:} false; then :
27920 $as_echo_n "(cached) " >&6
27922 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27925 if test "$ac_cv_type_long_long_int" = yes; then
27926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27928 as_fn_error 77 "cannot compute sizeof (long long int)
27929 See \`config.log' for more details" "$LINENO" 5; }
27931 ac_cv_sizeof_long_long_int=0
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27937 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27941 cat >>confdefs.h <<_ACEOF
27942 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27946 # The cast to long int works around a bug in the HP C Compiler
27947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27949 # This bug is HP SR number 8606223364.
27950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27951 $as_echo_n "checking size of int *... " >&6; }
27952 if ${ac_cv_sizeof_int_p+:} false; then :
27953 $as_echo_n "(cached) " >&6
27955 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27958 if test "$ac_cv_type_int_p" = yes; then
27959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27961 as_fn_error 77 "cannot compute sizeof (int *)
27962 See \`config.log' for more details" "$LINENO" 5; }
27964 ac_cv_sizeof_int_p=0
27969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27970 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27974 cat >>confdefs.h <<_ACEOF
27975 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27981 $as_echo_n "checking for u_int type... " >&6; }
27982 if ${ac_cv_have_u_int+:} false; then :
27983 $as_echo_n "(cached) " >&6
27986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27987 /* end confdefs.h. */
27989 #include <sys/types.h>
28001 if ac_fn_c_try_compile "$LINENO"; then :
28003 ac_cv_have_u_int="yes"
28007 ac_cv_have_u_int="no"
28011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
28016 $as_echo "$ac_cv_have_u_int" >&6; }
28017 if test "x$ac_cv_have_u_int" = "xyes" ; then
28018 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
28023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
28024 $as_echo_n "checking for intmax_t type... " >&6; }
28025 if ${ac_cv_have_intmax_t+:} false; then :
28026 $as_echo_n "(cached) " >&6
28029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28030 /* end confdefs.h. */
28032 #include <sys/types.h>
28044 if ac_fn_c_try_compile "$LINENO"; then :
28046 ac_cv_have_intmax_t="yes"
28050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28051 /* end confdefs.h. */
28053 #include <stdint.h>
28065 if ac_fn_c_try_compile "$LINENO"; then :
28067 ac_cv_have_intmax_t="yes"
28071 ac_cv_have_intmax_t="no"
28075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
28084 $as_echo "$ac_cv_have_intmax_t" >&6; }
28085 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
28086 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
28092 $as_echo_n "checking for u_intmax_t type... " >&6; }
28093 if ${ac_cv_have_u_intmax_t+:} false; then :
28094 $as_echo_n "(cached) " >&6
28097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28098 /* end confdefs.h. */
28100 #include <sys/types.h>
28106 u_intmax_t a; a = 1;
28112 if ac_fn_c_try_compile "$LINENO"; then :
28114 ac_cv_have_u_intmax_t="yes"
28118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28119 /* end confdefs.h. */
28121 #include <stdint.h>
28127 u_intmax_t a; a = 1;
28133 if ac_fn_c_try_compile "$LINENO"; then :
28135 ac_cv_have_u_intmax_t="yes"
28139 ac_cv_have_u_intmax_t="no"
28143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
28152 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
28153 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
28154 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
28160 $as_echo_n "checking for intXX_t types... " >&6; }
28161 if ${ac_cv_have_intxx_t+:} false; then :
28162 $as_echo_n "(cached) " >&6
28165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28166 /* end confdefs.h. */
28168 #include <sys/types.h>
28174 int8_t a; int16_t b; int32_t c; a = b = c = 1;
28180 if ac_fn_c_try_compile "$LINENO"; then :
28182 ac_cv_have_intxx_t="yes"
28186 ac_cv_have_intxx_t="no"
28190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
28195 $as_echo "$ac_cv_have_intxx_t" >&6; }
28196 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
28197 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
28203 $as_echo_n "checking for int64_t type... " >&6; }
28204 if ${ac_cv_have_int64_t+:} false; then :
28205 $as_echo_n "(cached) " >&6
28208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28209 /* end confdefs.h. */
28211 #include <sys/types.h>
28223 if ac_fn_c_try_compile "$LINENO"; then :
28225 ac_cv_have_int64_t="yes"
28229 ac_cv_have_int64_t="no"
28233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
28238 $as_echo "$ac_cv_have_int64_t" >&6; }
28239 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28240 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28246 $as_echo_n "checking for u_intXX_t types... " >&6; }
28247 if ${ac_cv_have_u_intxx_t+:} false; then :
28248 $as_echo_n "(cached) " >&6
28251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28252 /* end confdefs.h. */
28254 #include <sys/types.h>
28260 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28266 if ac_fn_c_try_compile "$LINENO"; then :
28268 ac_cv_have_u_intxx_t="yes"
28272 ac_cv_have_u_intxx_t="no"
28276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28281 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28282 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28283 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28289 $as_echo_n "checking for u_int64_t types... " >&6; }
28290 if ${ac_cv_have_u_int64_t+:} false; then :
28291 $as_echo_n "(cached) " >&6
28294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28295 /* end confdefs.h. */
28297 #include <sys/types.h>
28303 u_int64_t a; a = 1;
28309 if ac_fn_c_try_compile "$LINENO"; then :
28311 ac_cv_have_u_int64_t="yes"
28315 ac_cv_have_u_int64_t="no"
28319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28324 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28325 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28326 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28331 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28332 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28335 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28337 /* end confdefs.h. */
28339 #include <sys/bitypes.h>
28345 int8_t a; int16_t b; int32_t c;
28346 u_int8_t e; u_int16_t f; u_int32_t g;
28347 a = b = c = e = f = g = 1;
28353 if ac_fn_c_try_compile "$LINENO"; then :
28355 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28357 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28359 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28362 $as_echo "yes" >&6; }
28366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28367 $as_echo "no" >&6; }
28371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28374 if test -z "$have_u_intxx_t" ; then
28375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28376 $as_echo_n "checking for uintXX_t types... " >&6; }
28377 if ${ac_cv_have_uintxx_t+:} false; then :
28378 $as_echo_n "(cached) " >&6
28381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28382 /* end confdefs.h. */
28384 #include <sys/types.h>
28390 uint8_t a; uint16_t b;
28391 uint32_t c; a = b = c = 1;
28397 if ac_fn_c_try_compile "$LINENO"; then :
28399 ac_cv_have_uintxx_t="yes"
28403 ac_cv_have_uintxx_t="no"
28407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28412 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28413 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28414 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28419 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28420 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28423 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28425 /* end confdefs.h. */
28427 #include <sys/bitypes.h>
28433 int64_t a; u_int64_t b;
28440 if ac_fn_c_try_compile "$LINENO"; then :
28442 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28444 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28447 $as_echo "yes" >&6; }
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28452 $as_echo "no" >&6; }
28456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28459 if (test -z "$have_uintxx_t" && \
28460 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28463 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28465 /* end confdefs.h. */
28467 #include <sys/bitypes.h>
28473 uint8_t a; uint16_t b;
28474 uint32_t c; a = b = c = 1;
28480 if ac_fn_c_try_compile "$LINENO"; then :
28482 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28485 $as_echo "yes" >&6; }
28489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28490 $as_echo "no" >&6; }
28494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28513 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28514 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28515 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28516 cat >>confdefs.h <<_ACEOF
28517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28521 echo 'configure: cannot find needed function.'; exit 1
28527 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28530 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28532 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28537 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28540 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28542 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28547 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28548 if test "x$ac_cv_func_closefrom" = xyes; then :
28550 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28554 for ac_func in getpagesize
28556 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28557 if test "x$ac_cv_func_getpagesize" = xyes; then :
28558 cat >>confdefs.h <<_ACEOF
28559 #define HAVE_GETPAGESIZE 1
28562 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28567 for ac_func in malloc_trim
28569 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28570 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28571 cat >>confdefs.h <<_ACEOF
28572 #define HAVE_MALLOC_TRIM 1
28575 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28581 for ac_func in fchdir
28583 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28584 if test "x$ac_cv_func_fchdir" = xyes; then :
28585 cat >>confdefs.h <<_ACEOF
28586 #define HAVE_FCHDIR 1
28588 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28593 for ac_func in strtoll
28595 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28596 if test "x$ac_cv_func_strtoll" = xyes; then :
28597 cat >>confdefs.h <<_ACEOF
28598 #define HAVE_STRTOLL 1
28600 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28605 for ac_func in posix_fadvise
28607 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28608 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28609 cat >>confdefs.h <<_ACEOF
28610 #define HAVE_POSIX_FADVISE 1
28616 for ac_func in posix_fallocate
28618 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28619 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28620 cat >>confdefs.h <<_ACEOF
28621 #define HAVE_POSIX_FALLOCATE 1
28627 for ac_func in fdatasync
28629 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28630 if test "x$ac_cv_func_fdatasync" = xyes; then :
28631 cat >>confdefs.h <<_ACEOF
28632 #define HAVE_FDATASYNC 1
28639 for ac_func in chflags
28641 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28642 if test "x$ac_cv_func_chflags" = xyes; then :
28643 cat >>confdefs.h <<_ACEOF
28644 #define HAVE_CHFLAGS 1
28651 for ac_func in snprintf vsnprintf gethostid fseeko
28653 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28654 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28655 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28656 cat >>confdefs.h <<_ACEOF
28657 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28665 $as_echo_n "checking for va_copy... " >&6; }
28666 if ${ba_cv_va_copy+:} false; then :
28667 $as_echo_n "(cached) " >&6
28670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28671 /* end confdefs.h. */
28673 #include <stdarg.h>
28674 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28675 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28681 call_use_va_copy(1,2,3)
28687 if ac_fn_c_try_link "$LINENO"; then :
28697 rm -f core conftest.err conftest.$ac_objext \
28698 conftest$ac_exeext conftest.$ac_ext
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28703 $as_echo "$ba_cv_va_copy" >&6; }
28704 test $ba_cv_va_copy = yes &&
28705 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28708 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28711 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28712 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28713 cat >>confdefs.h <<_ACEOF
28714 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28721 # If resolver functions are not in libc check for -lnsl or -lresolv.
28722 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28723 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28725 $as_echo "using libc's resolver" >&6; }
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28728 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28729 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28730 $as_echo_n "(cached) " >&6
28732 ac_check_lib_save_LIBS=$LIBS
28734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28735 /* end confdefs.h. */
28737 /* Override any GCC internal prototype to avoid an error.
28738 Use char because int might match the return type of a GCC
28739 builtin and then its argument prototype would still apply. */
28743 char gethostbyname_r ();
28747 return gethostbyname_r ();
28752 if ac_fn_c_try_link "$LINENO"; then :
28753 ac_cv_lib_nsl_gethostbyname_r=yes
28755 ac_cv_lib_nsl_gethostbyname_r=no
28757 rm -f core conftest.err conftest.$ac_objext \
28758 conftest$ac_exeext conftest.$ac_ext
28759 LIBS=$ac_check_lib_save_LIBS
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28762 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28763 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28764 cat >>confdefs.h <<_ACEOF
28765 #define HAVE_LIBNSL 1
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28773 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28774 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28775 $as_echo_n "(cached) " >&6
28777 ac_check_lib_save_LIBS=$LIBS
28778 LIBS="-lresolv $LIBS"
28779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28780 /* end confdefs.h. */
28782 /* Override any GCC internal prototype to avoid an error.
28783 Use char because int might match the return type of a GCC
28784 builtin and then its argument prototype would still apply. */
28788 char gethostbyname_r ();
28792 return gethostbyname_r ();
28797 if ac_fn_c_try_link "$LINENO"; then :
28798 ac_cv_lib_resolv_gethostbyname_r=yes
28800 ac_cv_lib_resolv_gethostbyname_r=no
28802 rm -f core conftest.err conftest.$ac_objext \
28803 conftest$ac_exeext conftest.$ac_ext
28804 LIBS=$ac_check_lib_save_LIBS
28806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28807 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28808 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28809 cat >>confdefs.h <<_ACEOF
28810 #define HAVE_LIBRESOLV 1
28813 LIBS="-lresolv $LIBS"
28820 for ac_func in inet_pton
28822 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28823 if test "x$ac_cv_func_inet_pton" = xyes; then :
28824 cat >>confdefs.h <<_ACEOF
28825 #define HAVE_INET_PTON 1
28827 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28832 for ac_func in inet_ntop
28834 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28835 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28836 cat >>confdefs.h <<_ACEOF
28837 #define HAVE_INET_NTOP 1
28839 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28844 for ac_func in gethostbyname2
28846 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28847 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28848 cat >>confdefs.h <<_ACEOF
28849 #define HAVE_GETHOSTBYNAME2 1
28851 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28856 for ac_func in getnameinfo
28858 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28859 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28860 cat >>confdefs.h <<_ACEOF
28861 #define HAVE_GETNAMEINFO 1
28863 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28871 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28872 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28873 $as_echo_n "(cached) " >&6
28876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28877 /* end confdefs.h. */
28879 #include <sys/socket.h>
28885 struct sockaddr s; s.sa_len;
28891 if ac_fn_c_try_compile "$LINENO"; then :
28893 ac_cv_struct_sockaddr_sa_len=yes
28896 ac_cv_struct_sockaddr_sa_len=no
28900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28905 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28907 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28909 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28914 $as_echo_n "checking for working getaddrinfo... " >&6; }
28915 if ${ac_cv_working_getaddrinfo+:} false; then :
28916 $as_echo_n "(cached) " >&6
28919 if test "$cross_compiling" = yes; then :
28921 ac_cv_working_getaddrinfo="yes"
28925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28926 /* end confdefs.h. */
28929 #include <string.h>
28930 #include <sys/types.h>
28931 #include <sys/socket.h>
28934 struct addrinfo hints, *ai;
28937 memset(&hints, 0, sizeof(hints));
28938 hints.ai_family = AF_UNSPEC;
28939 hints.ai_socktype = SOCK_STREAM;
28940 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28944 if (ai->ai_addr->sa_family != AF_INET) {
28951 if ac_fn_c_try_run "$LINENO"; then :
28953 ac_cv_working_getaddrinfo="yes"
28957 ac_cv_working_getaddrinfo="no"
28960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28961 conftest.$ac_objext conftest.beam conftest.$ac_ext
28967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28968 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28969 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28970 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28972 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28977 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28978 if test "$ac_cv_func_gai_strerror" != "yes"; then
28979 ac_cv_working_getaddrinfo="no"
28982 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28987 for ac_func in strftime
28989 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28990 if test "x$ac_cv_func_strftime" = xyes; then :
28991 cat >>confdefs.h <<_ACEOF
28992 #define HAVE_STRFTIME 1
28996 # strftime is in -lintl on SCO UNIX.
28997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28998 $as_echo_n "checking for strftime in -lintl... " >&6; }
28999 if ${ac_cv_lib_intl_strftime+:} false; then :
29000 $as_echo_n "(cached) " >&6
29002 ac_check_lib_save_LIBS=$LIBS
29003 LIBS="-lintl $LIBS"
29004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29005 /* end confdefs.h. */
29007 /* Override any GCC internal prototype to avoid an error.
29008 Use char because int might match the return type of a GCC
29009 builtin and then its argument prototype would still apply. */
29017 return strftime ();
29022 if ac_fn_c_try_link "$LINENO"; then :
29023 ac_cv_lib_intl_strftime=yes
29025 ac_cv_lib_intl_strftime=no
29027 rm -f core conftest.err conftest.$ac_objext \
29028 conftest$ac_exeext conftest.$ac_ext
29029 LIBS=$ac_check_lib_save_LIBS
29031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
29032 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
29033 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
29034 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
29036 LIBS="-lintl $LIBS"
29042 for ac_func in vprintf
29044 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
29045 if test "x$ac_cv_func_vprintf" = xyes; then :
29046 cat >>confdefs.h <<_ACEOF
29047 #define HAVE_VPRINTF 1
29050 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
29051 if test "x$ac_cv_func__doprnt" = xyes; then :
29053 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
29061 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29062 # for constant arguments. Useless!
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
29064 $as_echo_n "checking for working alloca.h... " >&6; }
29065 if ${ac_cv_working_alloca_h+:} false; then :
29066 $as_echo_n "(cached) " >&6
29068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29069 /* end confdefs.h. */
29070 #include <alloca.h>
29074 char *p = (char *) alloca (2 * sizeof (int));
29080 if ac_fn_c_try_link "$LINENO"; then :
29081 ac_cv_working_alloca_h=yes
29083 ac_cv_working_alloca_h=no
29085 rm -f core conftest.err conftest.$ac_objext \
29086 conftest$ac_exeext conftest.$ac_ext
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
29089 $as_echo "$ac_cv_working_alloca_h" >&6; }
29090 if test $ac_cv_working_alloca_h = yes; then
29092 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
29097 $as_echo_n "checking for alloca... " >&6; }
29098 if ${ac_cv_func_alloca_works+:} false; then :
29099 $as_echo_n "(cached) " >&6
29101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29102 /* end confdefs.h. */
29104 # define alloca __builtin_alloca
29107 # include <malloc.h>
29108 # define alloca _alloca
29110 # ifdef HAVE_ALLOCA_H
29111 # include <alloca.h>
29116 # ifndef alloca /* predefined by HP cc +Olibcalls */
29117 void *alloca (size_t);
29127 char *p = (char *) alloca (1);
29133 if ac_fn_c_try_link "$LINENO"; then :
29134 ac_cv_func_alloca_works=yes
29136 ac_cv_func_alloca_works=no
29138 rm -f core conftest.err conftest.$ac_objext \
29139 conftest$ac_exeext conftest.$ac_ext
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
29142 $as_echo "$ac_cv_func_alloca_works" >&6; }
29144 if test $ac_cv_func_alloca_works = yes; then
29146 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
29149 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29150 # that cause trouble. Some versions do not even contain alloca or
29151 # contain a buggy version. If you still want to use their alloca,
29152 # use ar to extract alloca.o from them instead of compiling alloca.c.
29154 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29156 $as_echo "#define C_ALLOCA 1" >>confdefs.h
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
29160 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
29161 if ${ac_cv_os_cray+:} false; then :
29162 $as_echo_n "(cached) " >&6
29164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29165 /* end confdefs.h. */
29166 #if defined CRAY && ! defined CRAY2
29173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29174 $EGREP "webecray" >/dev/null 2>&1; then :
29182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
29183 $as_echo "$ac_cv_os_cray" >&6; }
29184 if test $ac_cv_os_cray = yes; then
29185 for ac_func in _getb67 GETB67 getb67; do
29186 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29187 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29188 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29190 cat >>confdefs.h <<_ACEOF
29191 #define CRAY_STACKSEG_END $ac_func
29200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
29201 $as_echo_n "checking stack direction for C alloca... " >&6; }
29202 if ${ac_cv_c_stack_direction+:} false; then :
29203 $as_echo_n "(cached) " >&6
29205 if test "$cross_compiling" = yes; then :
29206 ac_cv_c_stack_direction=0
29208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29209 /* end confdefs.h. */
29210 $ac_includes_default
29212 find_stack_direction (int *addr, int depth)
29214 int dir, dummy = 0;
29217 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
29218 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
29219 return dir + dummy;
29223 main (int argc, char **argv)
29225 return find_stack_direction (0, argc + !argv + 20) < 0;
29228 if ac_fn_c_try_run "$LINENO"; then :
29229 ac_cv_c_stack_direction=1
29231 ac_cv_c_stack_direction=-1
29233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29234 conftest.$ac_objext conftest.beam conftest.$ac_ext
29238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29239 $as_echo "$ac_cv_c_stack_direction" >&6; }
29240 cat >>confdefs.h <<_ACEOF
29241 #define STACK_DIRECTION $ac_cv_c_stack_direction
29247 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29248 # -lseq on Dynix/PTX, -lgen on Unixware.
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29250 $as_echo_n "checking for library containing getmntent... " >&6; }
29251 if ${ac_cv_search_getmntent+:} false; then :
29252 $as_echo_n "(cached) " >&6
29254 ac_func_search_save_LIBS=$LIBS
29255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29256 /* end confdefs.h. */
29258 /* Override any GCC internal prototype to avoid an error.
29259 Use char because int might match the return type of a GCC
29260 builtin and then its argument prototype would still apply. */
29268 return getmntent ();
29273 for ac_lib in '' sun seq gen; do
29274 if test -z "$ac_lib"; then
29275 ac_res="none required"
29278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29280 if ac_fn_c_try_link "$LINENO"; then :
29281 ac_cv_search_getmntent=$ac_res
29283 rm -f core conftest.err conftest.$ac_objext \
29285 if ${ac_cv_search_getmntent+:} false; then :
29289 if ${ac_cv_search_getmntent+:} false; then :
29292 ac_cv_search_getmntent=no
29294 rm conftest.$ac_ext
29295 LIBS=$ac_func_search_save_LIBS
29297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29298 $as_echo "$ac_cv_search_getmntent" >&6; }
29299 ac_res=$ac_cv_search_getmntent
29300 if test "$ac_res" != no; then :
29301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29302 ac_cv_func_getmntent=yes
29304 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29307 ac_cv_func_getmntent=no
29311 for ac_func in getmntinfo
29313 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29314 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29315 cat >>confdefs.h <<_ACEOF
29316 #define HAVE_GETMNTINFO 1
29318 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29324 $as_echo_n "checking whether closedir returns void... " >&6; }
29325 if ${ac_cv_func_closedir_void+:} false; then :
29326 $as_echo_n "(cached) " >&6
29328 if test "$cross_compiling" = yes; then :
29329 ac_cv_func_closedir_void=yes
29331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29332 /* end confdefs.h. */
29333 $ac_includes_default
29334 #include <$ac_header_dirent>
29335 #ifndef __cplusplus
29342 return closedir (opendir (".")) != 0;
29347 if ac_fn_c_try_run "$LINENO"; then :
29348 ac_cv_func_closedir_void=no
29350 ac_cv_func_closedir_void=yes
29352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29353 conftest.$ac_objext conftest.beam conftest.$ac_ext
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29358 $as_echo "$ac_cv_func_closedir_void" >&6; }
29359 if test $ac_cv_func_closedir_void = yes; then
29361 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29366 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29367 if ${ac_cv_func_setpgrp_void+:} false; then :
29368 $as_echo_n "(cached) " >&6
29370 if test "$cross_compiling" = yes; then :
29371 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29374 /* end confdefs.h. */
29375 $ac_includes_default
29379 /* If this system has a BSD-style setpgrp which takes arguments,
29380 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29381 exit successfully. */
29382 return setpgrp (1,1) != -1;
29387 if ac_fn_c_try_run "$LINENO"; then :
29388 ac_cv_func_setpgrp_void=no
29390 ac_cv_func_setpgrp_void=yes
29392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29393 conftest.$ac_objext conftest.beam conftest.$ac_ext
29397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29398 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29399 if test $ac_cv_func_setpgrp_void = yes; then
29401 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29404 # AC_FUNC_FNMATCH dnl use local version
29406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29407 $as_echo_n "checking for gettext in -lintl... " >&6; }
29408 if ${ac_cv_lib_intl_gettext+:} false; then :
29409 $as_echo_n "(cached) " >&6
29411 ac_check_lib_save_LIBS=$LIBS
29412 LIBS="-lintl $LIBS"
29413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29414 /* end confdefs.h. */
29416 /* Override any GCC internal prototype to avoid an error.
29417 Use char because int might match the return type of a GCC
29418 builtin and then its argument prototype would still apply. */
29431 if ac_fn_c_try_link "$LINENO"; then :
29432 ac_cv_lib_intl_gettext=yes
29434 ac_cv_lib_intl_gettext=no
29436 rm -f core conftest.err conftest.$ac_objext \
29437 conftest$ac_exeext conftest.$ac_ext
29438 LIBS=$ac_check_lib_save_LIBS
29440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29441 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29442 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29443 LIBS="$LIBS -lintl"
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29448 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29449 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29450 $as_echo_n "(cached) " >&6
29452 ac_check_lib_save_LIBS=$LIBS
29454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29455 /* end confdefs.h. */
29457 /* Override any GCC internal prototype to avoid an error.
29458 Use char because int might match the return type of a GCC
29459 builtin and then its argument prototype would still apply. */
29467 return getpwnam ();
29472 if ac_fn_c_try_link "$LINENO"; then :
29473 ac_cv_lib_sun_getpwnam=yes
29475 ac_cv_lib_sun_getpwnam=no
29477 rm -f core conftest.err conftest.$ac_objext \
29478 conftest$ac_exeext conftest.$ac_ext
29479 LIBS=$ac_check_lib_save_LIBS
29481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29482 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29483 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29484 cat >>confdefs.h <<_ACEOF
29485 #define HAVE_LIBSUN 1
29493 for ac_header in zlib.h
29495 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29496 if test "x$ac_cv_header_zlib_h" = xyes; then :
29497 cat >>confdefs.h <<_ACEOF
29498 #define HAVE_ZLIB_H 1
29505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29506 $as_echo_n "checking for deflate in -lz... " >&6; }
29507 if ${ac_cv_lib_z_deflate+:} false; then :
29508 $as_echo_n "(cached) " >&6
29510 ac_check_lib_save_LIBS=$LIBS
29512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29513 /* end confdefs.h. */
29515 /* Override any GCC internal prototype to avoid an error.
29516 Use char because int might match the return type of a GCC
29517 builtin and then its argument prototype would still apply. */
29530 if ac_fn_c_try_link "$LINENO"; then :
29531 ac_cv_lib_z_deflate=yes
29533 ac_cv_lib_z_deflate=no
29535 rm -f core conftest.err conftest.$ac_objext \
29536 conftest$ac_exeext conftest.$ac_ext
29537 LIBS=$ac_check_lib_save_LIBS
29539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29540 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29541 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29546 if test x$ZLIBS = x-lz; then
29547 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29556 # Check whether --enable-afs was given.
29557 if test "${enable_afs+set}" = set; then :
29558 enableval=$enable_afs;
29559 if test x$enableval = xyes; then
29561 elif test x$enableval = xno; then
29570 if test x$support_afs = xyes -o x$support_afs = xauto; then
29572 # Check whether --with-afsdir was given.
29573 if test "${with_afsdir+set}" = set; then :
29574 withval=$with_afsdir; with_afsdir=$withval
29579 if test x$with_afsdir = x; then
29580 for root in /usr /usr/local; do
29581 if test -d ${root}/include/afs/ ; then
29582 with_afsdir=${root}
29585 if test -d ${root}/include/openafs/afs/ ; then
29586 with_afsdir=${root}
29592 if test -d ${with_afsdir}/include/afs/ ; then
29593 AFS_CFLAGS="-I${with_afsdir}/include"
29595 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29596 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29600 saved_CFLAGS="${CFLAGS}"
29601 saved_CPPFLAGS="${CPPFLAGS}"
29602 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29603 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29605 for ac_header in afs/afsint.h
29607 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29608 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29609 cat >>confdefs.h <<_ACEOF
29610 #define HAVE_AFS_AFSINT_H 1
29617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29618 /* end confdefs.h. */
29620 #include <afs/afsint.h>
29621 #include <afs/venus.h>
29624 if ac_fn_c_try_cpp "$LINENO"; then :
29626 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29630 rm -f conftest.err conftest.i conftest.$ac_ext
29632 CFLAGS="${saved_CFLAGS}"
29633 CPPFLAGS="${saved_CPPFLAGS}"
29635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29636 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29637 for dir in ${with_afsdir}/lib \
29638 ${with_afsdir}/lib/afs \
29639 ${with_afsdir}/lib/openafs \
29640 ${with_afsdir}/lib64 \
29641 ${with_afsdir}/lib64/afs \
29642 ${with_afsdir}/lib64/openafs
29644 for arch_type in .a .so
29646 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29648 if test $pkg = 0; then
29650 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29656 if test $have_afs = yes; then
29657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29658 $as_echo "yes" >&6; }
29660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29661 $as_echo "no" >&6; }
29664 if test x$support_afs = xyes -a $have_afs != yes; then
29665 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29666 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29668 if test $have_afs = yes; then
29670 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29673 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29682 # Check whether --enable-lzo was given.
29683 if test "${enable_lzo+set}" = set; then :
29684 enableval=$enable_lzo;
29685 if test x$enableval = xno; then
29698 if test x$support_lzo = xyes; then
29700 # Check whether --with-lzo was given.
29701 if test "${with_lzo+set}" = set; then :
29703 case "$with_lzo" in
29708 if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29709 LZO_INC="-I${with_lzo}/include"
29710 LZO_LDFLAGS="-L${with_lzo}/lib"
29711 with_lzo="${with_lzo}/include"
29713 with_lzo="/usr/include"
29716 as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29717 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29718 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29721 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29723 LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29729 echo "lzoconf.h not found. lzo turned off ..."
29741 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29742 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29744 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29745 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29748 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29749 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29750 $as_echo_n "(cached) " >&6
29752 ac_check_lib_save_LIBS=$LIBS
29753 LIBS="-llzo2 $LIBS"
29754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29755 /* end confdefs.h. */
29757 /* Override any GCC internal prototype to avoid an error.
29758 Use char because int might match the return type of a GCC
29759 builtin and then its argument prototype would still apply. */
29763 char lzo1x_1_compress ();
29767 return lzo1x_1_compress ();
29772 if ac_fn_c_try_link "$LINENO"; then :
29773 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29775 ac_cv_lib_lzo2_lzo1x_1_compress=no
29777 rm -f core conftest.err conftest.$ac_objext \
29778 conftest$ac_exeext conftest.$ac_ext
29779 LIBS=$ac_check_lib_save_LIBS
29781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29782 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29783 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29787 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29811 # Check whether --enable-acl was given.
29812 if test "${enable_acl+set}" = set; then :
29813 enableval=$enable_acl;
29814 if test x$enableval = xyes; then
29816 elif test x$enableval = xno; then
29825 have_extended_acl=no
29826 if test x$support_acl = xyes -o x$support_acl = xauto; then
29827 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29828 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29830 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29836 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29837 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29845 if test $have_acl = no; then
29846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29847 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29848 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29849 $as_echo_n "(cached) " >&6
29851 ac_check_lib_save_LIBS=$LIBS
29853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29854 /* end confdefs.h. */
29856 /* Override any GCC internal prototype to avoid an error.
29857 Use char because int might match the return type of a GCC
29858 builtin and then its argument prototype would still apply. */
29862 char acl_get_file ();
29866 return acl_get_file ();
29871 if ac_fn_c_try_link "$LINENO"; then :
29872 ac_cv_lib_acl_acl_get_file=yes
29874 ac_cv_lib_acl_acl_get_file=no
29876 rm -f core conftest.err conftest.$ac_objext \
29877 conftest$ac_exeext conftest.$ac_ext
29878 LIBS=$ac_check_lib_save_LIBS
29880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29881 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29882 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29885 if test $have_afs = yes; then
29886 if test -d /usr/lib64/; then
29887 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29889 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29892 FDLIBS="-lacl $FDLIBS"
29900 if test $have_acl = no -a \
29901 x${HAVE_OSF1_OS_TRUE} = x; then
29902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29903 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29904 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29905 $as_echo_n "(cached) " >&6
29907 ac_check_lib_save_LIBS=$LIBS
29908 LIBS="-lpacl $LIBS"
29909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29910 /* end confdefs.h. */
29912 /* Override any GCC internal prototype to avoid an error.
29913 Use char because int might match the return type of a GCC
29914 builtin and then its argument prototype would still apply. */
29918 char acl_get_file ();
29922 return acl_get_file ();
29927 if ac_fn_c_try_link "$LINENO"; then :
29928 ac_cv_lib_pacl_acl_get_file=yes
29930 ac_cv_lib_pacl_acl_get_file=no
29932 rm -f core conftest.err conftest.$ac_objext \
29933 conftest$ac_exeext conftest.$ac_ext
29934 LIBS=$ac_check_lib_save_LIBS
29936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29937 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29938 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29941 FDLIBS="-lpacl $FDLIBS"
29947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29948 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29949 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29950 if test $? = 0; then
29952 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29955 $as_echo "yes" >&6; }
29957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29958 $as_echo "no" >&6; }
29962 if test $have_acl = yes -a \
29963 x${HAVE_DARWIN_OS_TRUE} = x; then
29964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29965 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29966 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29967 if test $? = 0; then
29969 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29972 $as_echo "yes" >&6; }
29974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29975 $as_echo "no" >&6; }
29979 if test $have_acl = yes -a \
29980 x${HAVE_FREEBSD_OS_TRUE} = x; then
29981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29982 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29983 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29984 if test $? = 0; then
29986 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29989 $as_echo "yes" >&6; }
29991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29992 $as_echo "no" >&6; }
29996 if test $have_acl = no -a \
29997 x${HAVE_SUN_OS_TRUE} = x; then
29998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29999 $as_echo_n "checking for acltotext in -lsec... " >&6; }
30000 if ${ac_cv_lib_sec_acltotext+:} false; then :
30001 $as_echo_n "(cached) " >&6
30003 ac_check_lib_save_LIBS=$LIBS
30005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30006 /* end confdefs.h. */
30008 /* Override any GCC internal prototype to avoid an error.
30009 Use char because int might match the return type of a GCC
30010 builtin and then its argument prototype would still apply. */
30018 return acltotext ();
30023 if ac_fn_c_try_link "$LINENO"; then :
30024 ac_cv_lib_sec_acltotext=yes
30026 ac_cv_lib_sec_acltotext=no
30028 rm -f core conftest.err conftest.$ac_objext \
30029 conftest$ac_exeext conftest.$ac_ext
30030 LIBS=$ac_check_lib_save_LIBS
30032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
30033 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
30034 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
30037 FDLIBS="-lsec $FDLIBS"
30039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
30040 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
30041 if ${ac_cv_lib_sec_acl_totext+:} false; then :
30042 $as_echo_n "(cached) " >&6
30044 ac_check_lib_save_LIBS=$LIBS
30046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30047 /* end confdefs.h. */
30049 /* Override any GCC internal prototype to avoid an error.
30050 Use char because int might match the return type of a GCC
30051 builtin and then its argument prototype would still apply. */
30055 char acl_totext ();
30059 return acl_totext ();
30064 if ac_fn_c_try_link "$LINENO"; then :
30065 ac_cv_lib_sec_acl_totext=yes
30067 ac_cv_lib_sec_acl_totext=no
30069 rm -f core conftest.err conftest.$ac_objext \
30070 conftest$ac_exeext conftest.$ac_ext
30071 LIBS=$ac_check_lib_save_LIBS
30073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
30074 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
30075 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
30077 have_extended_acl=yes
30088 if test $have_acl = no -a \
30089 x${HAVE_AIX_OS_TRUE} = x; then
30090 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
30091 if test "x$ac_cv_func_acl_get" = xyes; then :
30095 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
30096 if test "x$ac_cv_func_aclx_get" = xyes; then :
30098 have_extended_acl=yes
30109 if test x$support_acl = xyes -a $have_acl != yes; then
30110 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
30111 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
30113 if test $have_acl = yes; then
30115 $as_echo "#define HAVE_ACL 1" >>confdefs.h
30119 if test $have_extended_acl = yes; then
30121 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
30128 # Check whether --enable-xattr was given.
30129 if test "${enable_xattr+set}" = set; then :
30130 enableval=$enable_xattr;
30131 if test x$enableval = xyes; then
30133 elif test x$enableval = xno; then
30142 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
30143 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
30144 x${HAVE_NETBSD_OS_TRUE} = x -o \
30145 x${HAVE_OPENBSD_OS_TRUE} = x; then
30146 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
30147 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
30149 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
30154 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
30155 if test "x$ac_cv_header_libutil_h" = xyes; then :
30157 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
30162 for ac_func in extattr_get_link extattr_set_link extattr_list_link
30164 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30165 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30166 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30167 cat >>confdefs.h <<_ACEOF
30168 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30173 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
30176 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
30179 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
30187 if test $have_xattr = no; then
30188 for ac_func in extattr_get_file extattr_set_file extattr_list_file
30190 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30191 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30192 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30193 cat >>confdefs.h <<_ACEOF
30194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30199 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
30202 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
30205 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
30214 if test $have_xattr = yes; then
30215 have_extattr_string_in_libc=no
30216 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
30218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30220 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30221 cat >>confdefs.h <<_ACEOF
30222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30225 have_extattr_string_in_libc=yes
30227 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30230 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30238 if test $have_extattr_string_in_libc = no; then
30239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
30240 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
30241 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
30242 $as_echo_n "(cached) " >&6
30244 ac_check_lib_save_LIBS=$LIBS
30245 LIBS="-lutil $LIBS"
30246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30247 /* end confdefs.h. */
30249 /* Override any GCC internal prototype to avoid an error.
30250 Use char because int might match the return type of a GCC
30251 builtin and then its argument prototype would still apply. */
30255 char extattr_namespace_to_string extattr_string_to_namespace ();
30259 return extattr_namespace_to_string extattr_string_to_namespace ();
30264 if ac_fn_c_try_link "$LINENO"; then :
30265 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30267 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30269 rm -f core conftest.err conftest.$ac_objext \
30270 conftest$ac_exeext conftest.$ac_ext
30271 LIBS=$ac_check_lib_save_LIBS
30273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30274 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30275 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30278 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30281 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30283 FDLIBS="-lutil $FDLIBS"
30292 if test $have_xattr = no -a \
30293 x${HAVE_AIX_OS_TRUE} = x; then
30294 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30295 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30297 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30302 for ac_func in llistea lgetea lsetea
30304 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30305 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30306 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30307 cat >>confdefs.h <<_ACEOF
30308 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30313 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30316 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30319 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30327 if test $have_xattr = no; then
30328 for ac_func in listea getea setea
30330 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30331 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30332 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30333 cat >>confdefs.h <<_ACEOF
30334 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30339 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30342 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30345 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30355 if test $have_xattr = no -a \
30356 x${HAVE_OSF1_OS_TRUE} = x; then
30357 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30358 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30360 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30365 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30367 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30368 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30369 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30370 cat >>confdefs.h <<_ACEOF
30371 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30376 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30379 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30382 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30385 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30388 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30397 if test $have_xattr = no -a \
30398 x${HAVE_SUN_OS_TRUE} = x; then
30399 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30400 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30402 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30407 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30408 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30410 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30415 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30416 if test "x$ac_cv_header_attr_h" = xyes; then :
30418 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30424 for ac_func in openat fstatat unlinkat fchownat futimesat
30426 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30427 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30428 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30429 cat >>confdefs.h <<_ACEOF
30430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30435 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30438 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30441 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30444 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30447 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30455 if test $have_xattr = yes; then
30456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30457 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30458 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30459 $as_echo_n "(cached) " >&6
30461 ac_check_lib_save_LIBS=$LIBS
30462 LIBS="-lnvpair $LIBS"
30463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30464 /* end confdefs.h. */
30466 /* Override any GCC internal prototype to avoid an error.
30467 Use char because int might match the return type of a GCC
30468 builtin and then its argument prototype would still apply. */
30472 char nvlist_next_nvpair ();
30476 return nvlist_next_nvpair ();
30481 if ac_fn_c_try_link "$LINENO"; then :
30482 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30484 ac_cv_lib_nvpair_nvlist_next_nvpair=no
30486 rm -f core conftest.err conftest.$ac_objext \
30487 conftest$ac_exeext conftest.$ac_ext
30488 LIBS=$ac_check_lib_save_LIBS
30490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30491 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30492 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30495 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30497 FDLIBS="-lnvpair $FDLIBS"
30505 if test $have_xattr = no; then
30506 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30507 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30509 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30514 for ac_func in llistxattr lgetxattr lsetxattr
30516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30517 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30518 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30519 cat >>confdefs.h <<_ACEOF
30520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30525 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30528 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30531 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30539 if test $have_xattr = no; then
30540 for ac_func in listxattr getxattr setxattr
30542 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30543 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30544 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30545 cat >>confdefs.h <<_ACEOF
30546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30551 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30554 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30557 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30567 if test x$support_xattr = xyes -a $have_xattr != yes; then
30568 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30569 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30571 if test $have_xattr = yes; then
30573 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30581 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30582 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30583 $as_echo_n "(cached) " >&6
30585 ac_check_lib_save_LIBS=$LIBS
30586 LIBS="-lpthread $LIBS"
30587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30588 /* end confdefs.h. */
30590 /* Override any GCC internal prototype to avoid an error.
30591 Use char because int might match the return type of a GCC
30592 builtin and then its argument prototype would still apply. */
30596 char pthread_create ();
30600 return pthread_create ();
30605 if ac_fn_c_try_link "$LINENO"; then :
30606 ac_cv_lib_pthread_pthread_create=yes
30608 ac_cv_lib_pthread_pthread_create=no
30610 rm -f core conftest.err conftest.$ac_objext \
30611 conftest$ac_exeext conftest.$ac_ext
30612 LIBS=$ac_check_lib_save_LIBS
30614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30615 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30616 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30617 PTHREAD_LIB="-lpthread"
30620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30621 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30622 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30623 $as_echo_n "(cached) " >&6
30625 ac_check_lib_save_LIBS=$LIBS
30626 LIBS="-lpthreads $LIBS"
30627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30628 /* end confdefs.h. */
30630 /* Override any GCC internal prototype to avoid an error.
30631 Use char because int might match the return type of a GCC
30632 builtin and then its argument prototype would still apply. */
30636 char pthread_create ();
30640 return pthread_create ();
30645 if ac_fn_c_try_link "$LINENO"; then :
30646 ac_cv_lib_pthreads_pthread_create=yes
30648 ac_cv_lib_pthreads_pthread_create=no
30650 rm -f core conftest.err conftest.$ac_objext \
30651 conftest$ac_exeext conftest.$ac_ext
30652 LIBS=$ac_check_lib_save_LIBS
30654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30655 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30656 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30657 PTHREAD_LIB="-lpthreads"
30660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30661 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30662 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30663 $as_echo_n "(cached) " >&6
30665 ac_check_lib_save_LIBS=$LIBS
30667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30668 /* end confdefs.h. */
30670 /* Override any GCC internal prototype to avoid an error.
30671 Use char because int might match the return type of a GCC
30672 builtin and then its argument prototype would still apply. */
30676 char pthread_create ();
30680 return pthread_create ();
30685 if ac_fn_c_try_link "$LINENO"; then :
30686 ac_cv_lib_c_r_pthread_create=yes
30688 ac_cv_lib_c_r_pthread_create=no
30690 rm -f core conftest.err conftest.$ac_objext \
30691 conftest$ac_exeext conftest.$ac_ext
30692 LIBS=$ac_check_lib_save_LIBS
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30695 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30696 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30697 PTHREAD_LIB="-lc_r"
30700 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30701 if test "x$ac_cv_func_pthread_create" = xyes; then :
30718 for ac_header in sys/prctl.h sys/capability.h
30720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30721 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30722 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30723 cat >>confdefs.h <<_ACEOF
30724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30731 for ac_func in prctl setreuid
30733 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30734 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30735 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30736 cat >>confdefs.h <<_ACEOF
30737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30744 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30745 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30746 $as_echo_n "(cached) " >&6
30748 ac_check_lib_save_LIBS=$LIBS
30750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30751 /* end confdefs.h. */
30753 /* Override any GCC internal prototype to avoid an error.
30754 Use char because int might match the return type of a GCC
30755 builtin and then its argument prototype would still apply. */
30759 char cap_set_proc ();
30763 return cap_set_proc ();
30768 if ac_fn_c_try_link "$LINENO"; then :
30769 ac_cv_lib_cap_cap_set_proc=yes
30771 ac_cv_lib_cap_cap_set_proc=no
30773 rm -f core conftest.err conftest.$ac_objext \
30774 conftest$ac_exeext conftest.$ac_ext
30775 LIBS=$ac_check_lib_save_LIBS
30777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30778 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30779 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30785 if test x$CAP_LIBS = x-lcap; then
30787 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30793 $as_echo "#define FDLIBS 1" >>confdefs.h
30796 CFLAGS=${CFLAGS--O}
30798 if test x$have_gcc = xyes ; then
30799 CPPFLAGS="$CPPFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30800 CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30802 LDFLAGS=${LDFLAGS--O}
30803 CPPFLAGS="$CPPFLAGS"
30832 COMPRESS_MANPAGES=yes
30834 case "$DISTNAME" in
30837 PSCMD="ps -e -o pid,comm"
30838 PFILES="${PFILES} platforms/aix/Makefile"
30839 TAPEDRIVE="/dev/rmt0.1"
30843 PTHREAD_LIB="-lpthread -lexc"
30844 if test "${CC}" = "gcc" ; then
30851 TAPEDRIVE="/dev/nrmt0"
30854 DISTVER=`uname -a |awk '{print $3}'`
30855 TAPEDRIVE="/dev/nrmt0"
30856 PTHREAD_LIB="-pthread"
30857 CFLAGS="${CFLAGS} -pthread"
30858 PSCMD="ps -ax -o pid,command"
30861 PFILES="${PFILES} \
30862 platforms/bsdi/Makefile \
30863 platforms/bsdi/bacula-fd \
30864 platforms/bsdi/bacula-sd \
30865 platforms/bsdi/bacula-dir"
30866 largefile_support="yes"
30869 DISTVER=`uname -a |awk '{print $3}'`
30870 TAPEDRIVE="/dev/nrst0"
30872 WCFLAGS="-mwindows"
30873 WLDFLAGS="-mwindows"
30877 TAPEDRIVE="/dev/nst0"
30878 PSCMD="ps -e -o pid,command"
30880 PFILES="${PFILES} \
30881 platforms/darwin/Makefile"
30885 TAPEDRIVE="/dev/nst0"
30886 PSCMD="ps -e -o pid,command"
30888 PFILES="${PFILES} \
30889 platforms/osx/Makefile"
30892 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30895 DISTVER=`cat /etc/debian_version`
30896 if test -f /etc/lsb-release ; then
30898 if test "x$DISTRIB_ID" != "x" ; then
30899 DISTNAME=$DISTRIB_ID
30901 if test "x$DISTRIB_RELEASE" != "x" ; then
30902 DISTVER=$DISTRIB_RELEASE
30905 if test "$DISTNAME" = "Ubuntu" ; then
30908 TAPEDRIVE="/dev/nst0"
30909 PSCMD="ps -e -o pid,command"
30910 if test "$DISTNAME" = "ubuntu" ; then
30911 PFILES="${PFILES} \
30912 platforms/ubuntu/Makefile \
30913 platforms/ubuntu/bacula-fd \
30914 platforms/ubuntu/bacula-sd \
30915 platforms/ubuntu/bacula-dir"
30917 PFILES="${PFILES} \
30918 platforms/debian/Makefile \
30919 platforms/debian/bacula-fd \
30920 platforms/debian/bacula-sd \
30921 platforms/debian/bacula-dir"
30925 DISTVER=`uname -a |awk '{print $3}'`
30926 VER=`echo $DISTVER | cut -c 1`
30927 if test x$VER = x4 ; then
30928 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30929 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30933 TAPEDRIVE="/dev/nrsa0"
30934 PSCMD="ps -ax -o pid,command"
30935 PFILES="${PFILES} \
30936 platforms/freebsd/Makefile \
30937 platforms/freebsd/bacula-fd \
30938 platforms/freebsd/bacula-sd \
30939 platforms/freebsd/bacula-dir"
30940 largefile_support="yes"
30944 TAPEDRIVE="/dev/nst0"
30945 PSCMD="ps -e -o pid,command"
30946 PFILES="${PFILES} \
30947 platforms/hurd/Makefile \
30948 platforms/hurd/bacula-fd \
30949 platforms/hurd/bacula-sd \
30950 platforms/hurd/bacula-dir"
30953 PSCMD="UNIX95=1; ps -e -o pid,comm"
30954 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30956 TAPEDRIVE="/dev/rmt/0hnb"
30957 PTHREAD_LIB="-lpthread"
30958 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30963 TAPEDRIVE="/dev/rmt/0cbn"
30964 PSCMD="ps -e -o pid,comm"
30965 PFILES="${PFILES} \
30966 platforms/irix/Makefile \
30967 platforms/irix/bacula-fd \
30968 platforms/irix/bacula-sd \
30969 platforms/irix/bacula-dir"
30972 DISTVER=`uname -a |awk '{print $3}'`
30975 TAPEDRIVE="/dev/nrst0"
30976 PSCMD="ps -ax -o pid,command"
30977 PTHREAD_LIB="-pthread"
30978 CFLAGS="${CFLAGS} -pthread"
30981 DISTVER=`uname -a |awk '{print $3}'`
30984 TAPEDRIVE="/dev/nrst0"
30985 PSCMD="ps -ax -o pid,command"
30986 PTHREAD_LIB="-pthread"
30987 CFLAGS="${CFLAGS} -pthread"
30988 PFILES="${PFILES} \
30989 platforms/openbsd/Makefile \
30990 platforms/openbsd/bacula-fd \
30991 platforms/openbsd/bacula-sd \
30992 platforms/openbsd/bacula-dir"
30995 if test -f /etc/whitebox-release ; then
30996 f=/etc/whitebox-release
30998 f=/etc/redhat-release
31000 if test `cat $f | grep release |\
31001 cut -f 3 -d ' '`x = "Enterprise"x ; then
31002 DISTVER="Enterprise "`cat $f | grep release |\
31005 DISTVER=`cat /etc/redhat-release | grep release |\
31008 TAPEDRIVE="/dev/nst0"
31009 PSCMD="ps -e -o pid,command"
31010 PFILES="${PFILES} \
31011 platforms/redhat/Makefile \
31012 platforms/redhat/bacula-fd \
31013 platforms/redhat/bacula-sd \
31014 platforms/redhat/bacula-dir
31018 DISTVER=`cat /etc/mandrake-release | grep release |\
31020 TAPEDRIVE="/dev/nst0"
31021 PSCMD="ps -e -o pid,command"
31022 PFILES="${PFILES} \
31023 platforms/mandrake/Makefile \
31024 platforms/mandrake/bacula-fd \
31025 platforms/mandrake/bacula-sd \
31026 platforms/mandrake/bacula-dir \
31030 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
31031 TAPEDRIVE="/dev/nst0"
31032 PSCMD="ps -e -o pid,command"
31033 PFILES="${PFILES} \
31034 platforms/gentoo/Makefile \
31035 platforms/gentoo/bacula-init \
31036 platforms/gentoo/bacula-fd \
31037 platforms/gentoo/bacula-sd \
31038 platforms/gentoo/bacula-dir"
31041 DISTVER=`cat /etc/slackware-version`
31042 TAPEDRIVE="/dev/nst0"
31043 PSCMD="ps -e -o pid,command"
31044 PFILES="${PFILES} \
31045 platforms/slackware/Makefile \
31046 platforms/slackware/rc.bacula-fd \
31047 platforms/slackware/rc.bacula-sd \
31048 platforms/slackware/rc.bacula-dir\
31049 platforms/slackware/functions.bacula"
31053 TAPEDRIVE="/dev/rmt/0cbn"
31054 PSCMD="ps -e -o pid,comm"
31055 PFILES="${PFILES} \
31056 platforms/solaris/Makefile \
31057 platforms/solaris/bacula-fd \
31058 platforms/solaris/bacula-sd \
31059 platforms/solaris/bacula-dir"
31063 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
31065 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
31069 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
31074 $as_echo "#define HAVE_SOLARIS10 1" >>confdefs.h
31080 LIBS="$LIBS -lresolv -lrt"
31083 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
31085 TAPEDRIVE="/dev/nst0"
31086 PSCMD="ps -e -o pid,command"
31087 PFILES="${PFILES} \
31088 platforms/suse/Makefile \
31089 platforms/suse/bacula-fd \
31090 platforms/suse/bacula-sd \
31091 platforms/suse/bacula-dir \
31092 platforms/suse/bacula"
31097 TAPEDRIVE="/dev/nst0"
31098 PSCMD="ps -e -o pid,command"
31099 PFILES="${PFILES} \
31100 platforms/suse/Makefile \
31101 platforms/suse/bacula-fd \
31102 platforms/suse/bacula-sd \
31103 platforms/suse/bacula-dir"
31107 TAPEDRIVE="/dev/nst0"
31110 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
31114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
31115 $as_echo_n "checking for systemd support... " >&6; }
31117 # Check whether --with-systemd was given.
31118 if test "${with_systemd+set}" = set; then :
31119 withval=$with_systemd;
31120 if test "$withval" != "no"; then
31121 if test "$withval" = "yes"; then
31122 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
31124 SYSTEMD_UNITDIR="${withval}"
31127 PFILES="${PFILES} \
31128 platforms/systemd/Makefile \
31129 platforms/systemd/bacula.conf \
31130 platforms/systemd/bacula-dir.service \
31131 platforms/systemd/bacula-fd.service \
31132 platforms/systemd/bacula-sd.service"
31134 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
31136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31137 $as_echo "yes" >&6; }
31138 support_systemd="yes"
31140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31141 $as_echo "no" >&6; }
31142 support_systemd="no"
31147 support_systemd="no"
31148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31149 $as_echo "no" >&6; }
31158 LIBS="$PTHREAD_LIB $LIBS"
31160 cat >>confdefs.h <<_ACEOF
31164 cat >>confdefs.h <<_ACEOF
31176 MCOMMON=./autoconf/Make.common
31179 if test "x${subsysdir}" = "x${sbindir}" ; then
31182 echo "You have set both --sbindir and --with-subsys-dir"
31183 echo " equal to: ${subsysdir} "
31184 echo "This is not permitted. Please reconfigure."
31186 echo "Aborting configuration ..."
31193 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/baculabackupreport scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps scripts/bacula-tray-monitor.desktop src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/bat.pro.mingw64 src/qt-console/install_conf_file src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.pro.mingw32 src/qt-console/tray-monitor/tray-monitor.pro.mingw64 src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/cats/install-default-backend src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile po/Makefile.in updatedb/update_mysql_tables updatedb/update_sqlite3_tables updatedb/update_postgresql_tables updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec platforms/rpms/suse/bacula.spec platforms/rpms/suse/bacula-bat.spec platforms/rpms/suse/bacula-docs.spec platforms/rpms/suse/bacula-mtx.spec $PFILES"
31195 ac_config_commands="$ac_config_commands default"
31197 cat >confcache <<\_ACEOF
31198 # This file is a shell script that caches the results of configure
31199 # tests run on this system so they can be shared between configure
31200 # scripts and configure runs, see configure's option --config-cache.
31201 # It is not useful on other systems. If it contains results you don't
31202 # want to keep, you may remove or edit it.
31204 # config.status only pays attention to the cache file if you give it
31205 # the --recheck option to rerun configure.
31207 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31208 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31209 # following values.
31213 # The following way of writing the cache mishandles newlines in values,
31214 # but we know of no workaround that is simple, portable, and efficient.
31215 # So, we kill variables containing newlines.
31216 # Ultrix sh set writes to stderr and can't be redirected directly,
31217 # and sets the high bit in the cache file unless we assign to the vars.
31219 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31220 eval ac_val=\$$ac_var
31224 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31225 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31228 _ | IFS | as_nl) ;; #(
31229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31230 *) { eval $ac_var=; unset $ac_var;} ;;
31236 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31237 *${as_nl}ac_space=\ *)
31238 # `set' does not quote correctly, so add quotes: double-quote
31239 # substitution turns \\\\ into \\, and sed turns \\ into \.
31242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31245 # `set' quotes correctly as required by POSIX, so do not add quotes.
31246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31255 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31257 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31259 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31260 if test -w "$cache_file"; then
31261 if test "x$cache_file" != "x/dev/null"; then
31262 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31263 $as_echo "$as_me: updating cache $cache_file" >&6;}
31264 if test ! -f "$cache_file" || test -h "$cache_file"; then
31265 cat confcache >"$cache_file"
31267 case $cache_file in #(
31269 mv -f confcache "$cache_file"$$ &&
31270 mv -f "$cache_file"$$ "$cache_file" ;; #(
31272 mv -f confcache "$cache_file" ;;
31277 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31278 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31283 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31284 # Let make expand exec_prefix.
31285 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31287 DEFS=-DHAVE_CONFIG_H
31292 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31293 # 1. Remove the extension, and $U if already installed.
31294 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31295 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31296 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31297 # will be set to the directory where LIBOBJS objects are built.
31298 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31299 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31301 LIBOBJS=$ac_libobjs
31303 LTLIBOBJS=$ac_ltlibobjs
31308 : "${CONFIG_STATUS=./config.status}"
31310 ac_clean_files_save=$ac_clean_files
31311 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31313 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31315 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31317 # Generated by $as_me.
31318 # Run this file to recreate the current configuration.
31319 # Compiler output produced by configure, useful for debugging
31320 # configure, is in config.log if it exists.
31323 ac_cs_recheck=false
31326 SHELL=\${CONFIG_SHELL-$SHELL}
31329 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31330 ## -------------------- ##
31331 ## M4sh Initialization. ##
31332 ## -------------------- ##
31334 # Be more Bourne compatible
31335 DUALCASE=1; export DUALCASE # for MKS sh
31336 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31339 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31340 # is contrary to our usage. Disable this feature.
31341 alias -g '${1+"$@"}'='"$@"'
31342 setopt NO_GLOB_SUBST
31344 case `(set -o) 2>/dev/null` in #(
31356 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31357 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31358 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31359 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31360 # Prefer a ksh shell builtin over an external printf program on Solaris,
31361 # but without wasting forks for bash or zsh.
31362 if test -z "$BASH_VERSION$ZSH_VERSION" \
31363 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31364 as_echo='print -r --'
31365 as_echo_n='print -rn --'
31366 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31367 as_echo='printf %s\n'
31368 as_echo_n='printf %s'
31370 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31371 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31372 as_echo_n='/usr/ucb/echo -n'
31374 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31375 as_echo_n_body='eval
31379 expr "X$arg" : "X\\(.*\\)$as_nl";
31380 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31382 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31384 export as_echo_n_body
31385 as_echo_n='sh -c $as_echo_n_body as_echo'
31387 export as_echo_body
31388 as_echo='sh -c $as_echo_body as_echo'
31391 # The user is always right.
31392 if test "${PATH_SEPARATOR+set}" != set; then
31394 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31395 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31402 # We need space, tab and new line, in precisely that order. Quoting is
31403 # there to prevent editors from complaining about space-tab.
31404 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31405 # splitting by setting IFS to empty value.)
31408 # Find who we are. Look in the path if we contain no directory separator.
31411 *[\\/]* ) as_myself=$0 ;;
31412 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31413 for as_dir in $PATH
31416 test -z "$as_dir" && as_dir=.
31417 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31423 # We did not find ourselves, most probably we were run as `sh COMMAND'
31424 # in which case we are not to be found in the path.
31425 if test "x$as_myself" = x; then
31428 if test ! -f "$as_myself"; then
31429 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31433 # Unset variables that we do not need and which cause bugs (e.g. in
31434 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31435 # suppresses any "Segmentation fault" message there. '((' could
31436 # trigger a bug in pdksh 5.2.14.
31437 for as_var in BASH_ENV ENV MAIL MAILPATH
31438 do eval test x\${$as_var+set} = xset \
31439 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31452 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31455 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31456 # ----------------------------------------
31457 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31458 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31459 # script with STATUS, using 1 if that was 0.
31462 as_status=$1; test $as_status -eq 0 && as_status=1
31464 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31465 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31467 $as_echo "$as_me: error: $2" >&2
31468 as_fn_exit $as_status
31472 # as_fn_set_status STATUS
31473 # -----------------------
31474 # Set $? to STATUS, without forking.
31475 as_fn_set_status ()
31478 } # as_fn_set_status
31480 # as_fn_exit STATUS
31481 # -----------------
31482 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31486 as_fn_set_status $1
31492 # Portably unset VAR.
31495 { eval $1=; unset $1;}
31497 as_unset=as_fn_unset
31498 # as_fn_append VAR VALUE
31499 # ----------------------
31500 # Append the text in VALUE to the end of the definition contained in VAR. Take
31501 # advantage of any shell optimizations that allow amortized linear growth over
31502 # repeated appends, instead of the typical quadratic growth present in naive
31504 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31505 eval 'as_fn_append ()
31516 # as_fn_arith ARG...
31517 # ------------------
31518 # Perform arithmetic evaluation on the ARGs, and store the result in the
31519 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31520 # must be portable across $(()) and expr.
31521 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31522 eval 'as_fn_arith ()
31529 as_val=`expr "$@" || test $? -eq 1`
31534 if expr a : '\(a\)' >/dev/null 2>&1 &&
31535 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31541 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31542 as_basename=basename
31547 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31553 as_me=`$as_basename -- "$0" ||
31554 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31555 X"$0" : 'X\(//\)$' \| \
31556 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31558 sed '/^.*\/\([^/][^/]*\)\/*$/{
31572 # Avoid depending upon Character Ranges.
31573 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31574 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31575 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31576 as_cr_digits='0123456789'
31577 as_cr_alnum=$as_cr_Letters$as_cr_digits
31579 ECHO_C= ECHO_N= ECHO_T=
31580 case `echo -n x` in #(((((
31582 case `echo 'xy\c'` in
31583 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31585 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31592 rm -f conf$$ conf$$.exe conf$$.file
31593 if test -d conf$$.dir; then
31594 rm -f conf$$.dir/conf$$.file
31597 mkdir conf$$.dir 2>/dev/null
31599 if (echo >conf$$.file) 2>/dev/null; then
31600 if ln -s conf$$.file conf$$ 2>/dev/null; then
31602 # ... but there are two gotchas:
31603 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31604 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31605 # In both cases, we have to default to `cp -pR'.
31606 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31608 elif ln conf$$.file conf$$ 2>/dev/null; then
31616 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31617 rmdir conf$$.dir 2>/dev/null
31622 # Create "$as_dir" as a directory, including parents if necessary.
31627 -*) as_dir=./$as_dir;;
31629 test -d "$as_dir" || eval $as_mkdir_p || {
31633 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31634 *) as_qdir=$as_dir;;
31636 as_dirs="'$as_qdir' $as_dirs"
31637 as_dir=`$as_dirname -- "$as_dir" ||
31638 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31639 X"$as_dir" : 'X\(//\)[^/]' \| \
31640 X"$as_dir" : 'X\(//\)$' \| \
31641 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31642 $as_echo X"$as_dir" |
31643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31647 /^X\(\/\/\)[^/].*/{
31660 test -d "$as_dir" && break
31662 test -z "$as_dirs" || eval "mkdir $as_dirs"
31663 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31667 if mkdir -p . 2>/dev/null; then
31668 as_mkdir_p='mkdir -p "$as_dir"'
31670 test -d ./-p && rmdir ./-p
31675 # as_fn_executable_p FILE
31676 # -----------------------
31677 # Test if FILE is an executable regular file.
31678 as_fn_executable_p ()
31680 test -f "$1" && test -x "$1"
31681 } # as_fn_executable_p
31682 as_test_x='test -x'
31683 as_executable_p=as_fn_executable_p
31685 # Sed expression to map a string onto a valid CPP name.
31686 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31688 # Sed expression to map a string onto a valid variable name.
31689 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31693 ## ----------------------------------- ##
31694 ## Main body of $CONFIG_STATUS script. ##
31695 ## ----------------------------------- ##
31697 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31700 # Save the log message, to keep $0 and so on meaningful, and to
31701 # report actual input values of CONFIG_FILES etc. instead of their
31702 # values after options handling.
31704 This file was extended by bacula $as_me 9.0.6, which was
31705 generated by GNU Autoconf 2.69. Invocation command line was
31707 CONFIG_FILES = $CONFIG_FILES
31708 CONFIG_HEADERS = $CONFIG_HEADERS
31709 CONFIG_LINKS = $CONFIG_LINKS
31710 CONFIG_COMMANDS = $CONFIG_COMMANDS
31713 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31718 case $ac_config_files in *"
31719 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31722 case $ac_config_headers in *"
31723 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31728 # Files that config.status was made for.
31729 config_files="$ac_config_files"
31730 config_headers="$ac_config_headers"
31731 config_commands="$ac_config_commands"
31735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31737 \`$as_me' instantiates files and other configuration actions
31738 from templates according to the current configuration. Unless the files
31739 and actions are specified as TAGs, all are instantiated by default.
31741 Usage: $0 [OPTION]... [TAG]...
31743 -h, --help print this help, then exit
31744 -V, --version print version number and configuration settings, then exit
31745 --config print configuration, then exit
31746 -q, --quiet, --silent
31747 do not print progress messages
31748 -d, --debug don't remove temporary files
31749 --recheck update $as_me by reconfiguring in the same conditions
31750 --file=FILE[:TEMPLATE]
31751 instantiate the configuration file FILE
31752 --header=FILE[:TEMPLATE]
31753 instantiate the configuration header FILE
31755 Configuration files:
31758 Configuration headers:
31761 Configuration commands:
31764 Report bugs to the package provider."
31767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31768 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31770 bacula config.status 9.0.6
31771 configured by $0, generated by GNU Autoconf 2.69,
31772 with options \\"\$ac_cs_config\\"
31774 Copyright (C) 2012 Free Software Foundation, Inc.
31775 This config.status script is free software; the Free Software Foundation
31776 gives unlimited permission to copy, distribute and modify it."
31782 test -n "\$AWK" || AWK=awk
31785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31786 # The default lists apply if the user does not specify any file.
31792 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31793 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31797 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31809 # Handling of the options.
31810 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31812 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31813 $as_echo "$ac_cs_version"; exit ;;
31814 --config | --confi | --conf | --con | --co | --c )
31815 $as_echo "$ac_cs_config"; exit ;;
31816 --debug | --debu | --deb | --de | --d | -d )
31818 --file | --fil | --fi | --f )
31821 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31822 '') as_fn_error $? "missing file argument" ;;
31824 as_fn_append CONFIG_FILES " '$ac_optarg'"
31825 ac_need_defaults=false;;
31826 --header | --heade | --head | --hea )
31829 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31831 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31832 ac_need_defaults=false;;
31834 # Conflict between --help and --header
31835 as_fn_error $? "ambiguous option: \`$1'
31836 Try \`$0 --help' for more information.";;
31837 --help | --hel | -h )
31838 $as_echo "$ac_cs_usage"; exit ;;
31839 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31840 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31843 # This is an error.
31844 -*) as_fn_error $? "unrecognized option: \`$1'
31845 Try \`$0 --help' for more information." ;;
31847 *) as_fn_append ac_config_targets " $1"
31848 ac_need_defaults=false ;;
31854 ac_configure_extra_args=
31856 if $ac_cs_silent; then
31858 ac_configure_extra_args="$ac_configure_extra_args --silent"
31862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31863 if \$ac_cs_recheck; then
31864 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31866 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31867 CONFIG_SHELL='$SHELL'
31868 export CONFIG_SHELL
31873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31877 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31878 ## Running $as_me. ##
31884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31890 # The HP-UX ksh and POSIX shell print the target directory to stdout
31891 # if CDPATH is set.
31892 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31894 sed_quote_subst='$sed_quote_subst'
31895 double_quote_subst='$double_quote_subst'
31896 delay_variable_subst='$delay_variable_subst'
31897 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31898 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31899 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31900 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31901 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31902 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31903 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31904 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31905 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31906 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31907 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31908 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31909 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31910 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31911 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31912 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31913 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31914 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31915 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31916 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31917 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31918 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31919 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31920 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31921 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31922 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31923 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31924 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31925 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31926 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31927 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31928 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31929 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31930 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31931 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31932 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31933 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31934 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31935 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31936 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31937 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31938 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31939 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31940 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31941 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31942 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31943 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31944 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31945 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31946 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31947 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31948 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31949 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31950 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31951 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31952 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31953 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"`'
31954 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31955 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31956 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31957 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31958 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31959 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31960 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31961 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31962 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31963 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31964 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31965 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31966 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31967 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31968 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31969 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31970 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31971 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31972 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31973 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31974 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31975 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31976 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31977 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31978 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31979 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31980 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31981 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31982 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31983 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31984 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31985 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31986 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31987 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31988 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31989 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31990 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31991 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31992 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31993 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31994 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31995 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31996 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31997 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31998 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31999 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32000 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32001 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
32002 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32003 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32004 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32005 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32006 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32007 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32008 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32009 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32010 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32011 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32012 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32013 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32014 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32015 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32016 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32017 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32018 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32019 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32020 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
32021 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32022 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32023 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32024 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32025 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32026 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32027 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32028 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32029 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32030 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32031 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32032 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32033 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32034 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32035 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32036 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32037 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32038 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32039 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32040 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32041 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32042 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32043 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32044 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32045 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32046 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32047 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32048 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32049 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32050 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32051 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32052 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32053 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32054 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32055 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32056 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32057 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32058 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32059 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32060 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32061 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32062 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32063 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32064 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32065 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32066 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32067 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32068 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32069 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32070 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32071 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32072 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32073 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
32074 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
32075 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
32076 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32077 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32078 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
32079 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
32080 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
32083 LTCFLAGS='$LTCFLAGS'
32084 compiler='$compiler_DEFAULT'
32086 # A function that is used when there is no print builtin or printf.
32087 func_fallback_echo ()
32089 eval 'cat <<_LTECHO_EOF
32094 # Quote evaled strings.
32109 deplibs_check_method \
32114 sharedlib_from_linklib_cmd \
32117 archiver_list_spec \
32123 lt_cv_sys_global_symbol_pipe \
32124 lt_cv_sys_global_symbol_to_cdecl \
32125 lt_cv_sys_global_symbol_to_c_name_address \
32126 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32127 nm_file_list_spec \
32128 lt_prog_compiler_no_builtin_flag \
32129 lt_prog_compiler_pic \
32130 lt_prog_compiler_wl \
32131 lt_prog_compiler_static \
32132 lt_cv_prog_compiler_c_o \
32141 export_dynamic_flag_spec \
32142 whole_archive_flag_spec \
32143 compiler_needs_object \
32145 allow_undefined_flag \
32146 no_undefined_flag \
32147 hardcode_libdir_flag_spec \
32148 hardcode_libdir_separator \
32152 variables_saved_for_relink \
32154 library_names_spec \
32156 install_override_mode \
32160 compiler_lib_search_dirs \
32165 compiler_lib_search_path \
32169 lt_prog_compiler_no_builtin_flag_CXX \
32170 lt_prog_compiler_pic_CXX \
32171 lt_prog_compiler_wl_CXX \
32172 lt_prog_compiler_static_CXX \
32173 lt_cv_prog_compiler_c_o_CXX \
32174 export_dynamic_flag_spec_CXX \
32175 whole_archive_flag_spec_CXX \
32176 compiler_needs_object_CXX \
32178 allow_undefined_flag_CXX \
32179 no_undefined_flag_CXX \
32180 hardcode_libdir_flag_spec_CXX \
32181 hardcode_libdir_separator_CXX \
32182 exclude_expsyms_CXX \
32183 include_expsyms_CXX \
32184 file_list_spec_CXX \
32185 compiler_lib_search_dirs_CXX \
32186 predep_objects_CXX \
32187 postdep_objects_CXX \
32190 compiler_lib_search_path_CXX; do
32191 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32192 *[\\\\\\\`\\"\\\$]*)
32193 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32196 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32201 # Double-quote double-evaled strings.
32202 for var in reload_cmds \
32203 old_postinstall_cmds \
32204 old_postuninstall_cmds \
32206 extract_expsyms_cmds \
32207 old_archive_from_new_cmds \
32208 old_archive_from_expsyms_cmds \
32210 archive_expsym_cmds \
32212 module_expsym_cmds \
32213 export_symbols_cmds \
32217 postuninstall_cmds \
32219 sys_lib_search_path_spec \
32220 sys_lib_dlsearch_path_spec \
32222 old_archive_cmds_CXX \
32223 old_archive_from_new_cmds_CXX \
32224 old_archive_from_expsyms_cmds_CXX \
32226 archive_expsym_cmds_CXX \
32228 module_expsym_cmds_CXX \
32229 export_symbols_cmds_CXX \
32231 postlink_cmds_CXX; do
32232 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32233 *[\\\\\\\`\\"\\\$]*)
32234 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32237 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32242 ac_aux_dir='$ac_aux_dir'
32243 xsi_shell='$xsi_shell'
32244 lt_shell_append='$lt_shell_append'
32246 # See if we are running on zsh, and set the options which allow our
32247 # commands through without removal of \ escapes INIT.
32248 if test -n "\${ZSH_VERSION+set}" ; then
32249 setopt NO_GLOB_SUBST
32255 TIMESTAMP='$TIMESTAMP'
32263 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32264 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32266 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32267 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32268 LINGUAS="${LINGUAS-%UNSET%}"
32273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32275 # Handling of arguments.
32276 for ac_config_target in $ac_config_targets
32278 case $ac_config_target in
32279 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32280 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32281 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32282 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32283 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32284 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32285 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32286 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32287 "scripts/baculabackupreport") CONFIG_FILES="$CONFIG_FILES scripts/baculabackupreport" ;;
32288 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32289 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32290 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32291 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32292 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32293 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32294 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32295 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32296 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32297 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32298 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32299 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32300 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32301 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32302 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32303 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32304 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32305 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
32306 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32307 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32308 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32309 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32310 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32311 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32312 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32313 "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32314 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32315 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32316 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32317 "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32318 "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32319 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32320 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32321 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32322 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32323 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32324 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32325 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32326 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32327 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32328 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32329 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32330 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32331 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32332 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32333 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32334 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32335 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32336 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32337 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32338 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32339 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32340 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32341 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32342 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32343 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32344 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32345 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32346 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32347 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32348 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32349 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32350 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32351 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32352 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32353 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32354 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32355 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32356 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32357 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32358 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32359 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32360 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32361 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32362 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32363 "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32364 "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32365 "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32366 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32367 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32368 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32369 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32370 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32371 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32372 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32373 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32374 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32375 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32376 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32377 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32378 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32379 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32380 "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32381 "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32382 "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32383 "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32384 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32385 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32387 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32392 # If the user did not use the arguments to specify the items to instantiate,
32393 # then the envvar interface is used. Set only those that are not.
32394 # We use the long form for the default assignment because of an extremely
32395 # bizarre bug on SunOS 4.1.3.
32396 if $ac_need_defaults; then
32397 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32398 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32399 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32402 # Have a temporary directory for convenience. Make it in the build tree
32403 # simply because there is no reason against having it here, and in addition,
32404 # creating and moving files from /tmp can sometimes cause problems.
32405 # Hook for its removal unless debugging.
32406 # Note that there is a small window in which the directory will not be cleaned:
32407 # after its creation but before its name has been assigned to `$tmp'.
32411 trap 'exit_status=$?
32412 : "${ac_tmp:=$tmp}"
32413 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32415 trap 'as_fn_exit 1' 1 2 13 15
32417 # Create a (secure) tmp directory for tmp files.
32420 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32424 tmp=./conf$$-$RANDOM
32425 (umask 077 && mkdir "$tmp")
32426 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32429 # Set up the scripts for CONFIG_FILES section.
32430 # No need to generate them if there are no CONFIG_FILES.
32431 # This happens for instance with `./config.status config.h'.
32432 if test -n "$CONFIG_FILES"; then
32434 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32435 ac_cs_awk_getline=:
32436 ac_cs_awk_pipe_init=
32437 ac_cs_awk_read_file='
32438 while ((getline aline < (F[key])) > 0)
32441 ac_cs_awk_pipe_fini=
32443 ac_cs_awk_getline=false
32444 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32445 ac_cs_awk_read_file='
32447 print "cat " F[key] " &&"
32448 '$ac_cs_awk_pipe_init
32449 # The final `:' finishes the AND list.
32450 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32452 ac_cr=`echo X | tr X '\015'`
32453 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32454 # But we know of no other shell where ac_cr would be empty at this
32455 # point, so we can use a bashism as a fallback.
32456 if test "x$ac_cr" = x; then
32457 eval ac_cr=\$\'\\r\'
32459 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32460 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32463 ac_cs_awk_cr=$ac_cr
32466 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32469 # Create commands to substitute file output variables.
32471 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32472 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32473 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32476 } >conf$$files.sh &&
32477 . ./conf$$files.sh ||
32478 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32479 rm -f conf$$files.sh
32482 echo "cat >conf$$subs.awk <<_ACEOF" &&
32483 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32485 } >conf$$subs.sh ||
32486 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32487 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32489 for ac_last_try in false false false false false :; do
32490 . ./conf$$subs.sh ||
32491 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32493 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32494 if test $ac_delim_n = $ac_delim_num; then
32496 elif $ac_last_try; then
32497 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32499 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32502 rm -f conf$$subs.sh
32504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32505 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32509 s/^/S["/; s/!.*/"]=/
32519 s/\(.\{148\}\)..*/\1/
32521 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32526 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32533 s/\(.\{148\}\)..*/\1/
32535 s/["\\]/\\&/g; s/^/"/; s/$/"/
32539 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32544 ' <conf$$subs.awk | sed '
32549 ' >>$CONFIG_STATUS || ac_write_fail=1
32550 rm -f conf$$subs.awk
32551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32553 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32554 for (key in S) S_is_set[key] = 1
32556 \$ac_cs_awk_pipe_init
32560 nfields = split(line, field, "@")
32562 len = length(field[1])
32563 for (i = 2; i < nfields; i++) {
32565 keylen = length(key)
32566 if (S_is_set[key]) {
32568 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32569 len += length(value) + length(field[++i])
32574 if (nfields == 3 && !substed) {
32576 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32577 \$ac_cs_awk_read_file
32583 \$ac_cs_awk_pipe_fini
32586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32587 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32588 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32591 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32592 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32595 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32596 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32597 # trailing colons and then remove the whole line if VPATH becomes empty
32598 # (actually we leave an empty line to preserve line numbers).
32599 if test "x$srcdir" = x.; then
32600 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32619 fi # test -n "$CONFIG_FILES"
32621 # Set up the scripts for CONFIG_HEADERS section.
32622 # No need to generate them if there are no CONFIG_HEADERS.
32623 # This happens for instance with `./config.status Makefile'.
32624 if test -n "$CONFIG_HEADERS"; then
32625 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32629 # Transform confdefs.h into an awk script `defines.awk', embedded as
32630 # here-document in config.status, that substitutes the proper values into
32631 # config.h.in to produce config.h.
32633 # Create a delimiter string that does not exist in confdefs.h, to ease
32634 # handling of long lines.
32636 for ac_last_try in false false :; do
32637 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32638 if test -z "$ac_tt"; then
32640 elif $ac_last_try; then
32641 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32643 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32647 # For the awk script, D is an array of macro values keyed by name,
32648 # likewise P contains macro parameters if any. Preserve backslash
32649 # newline sequences.
32651 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32653 s/.\{148\}/&'"$ac_delim"'/g
32656 s/^[ ]*#[ ]*define[ ][ ]*/ /
32663 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32665 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32669 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32670 D["\1"]=" \3\\\\\\n"\\/p
32672 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32677 s/.\{148\}/&'"$ac_delim"'/g
32682 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32685 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32687 ' <confdefs.h | sed '
32688 s/'"$ac_delim"'/"\\\
32689 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32692 for (key in D) D_is_set[key] = 1
32695 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32697 split(line, arg, " ")
32698 if (arg[1] == "#") {
32702 defundef = substr(arg[1], 2)
32705 split(mac1, mac2, "(") #)
32707 prefix = substr(line, 1, index(line, defundef) - 1)
32708 if (D_is_set[macro]) {
32709 # Preserve the white space surrounding the "#".
32710 print prefix "define", macro P[macro] D[macro]
32713 # Replace #undef with comments. This is necessary, for example,
32714 # in the case of _POSIX_SOURCE, which is predefined and required
32715 # on some systems where configure will not decide to define it.
32716 if (defundef == "undef") {
32717 print "/*", prefix defundef, macro, "*/"
32725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32726 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32727 fi # test -n "$CONFIG_HEADERS"
32730 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32735 :[FHLC]) ac_mode=$ac_tag; continue;;
32737 case $ac_mode$ac_tag in
32739 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32740 :[FH]-) ac_tag=-:-;;
32741 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32758 -) ac_f="$ac_tmp/stdin";;
32759 *) # Look for the file first in the build tree, then in the source tree
32760 # (if the path is not absolute). The absolute path cannot be DOS-style,
32761 # because $ac_f cannot contain `:'.
32765 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32767 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32769 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32770 as_fn_append ac_file_inputs " '$ac_f'"
32773 # Let's still pretend it is `configure' which instantiates (i.e., don't
32774 # use $as_me), people would be surprised to read:
32775 # /* config.h. Generated by config.status. */
32776 configure_input='Generated from '`
32777 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32779 if test x"$ac_file" != x-; then
32780 configure_input="$ac_file. $configure_input"
32781 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32782 $as_echo "$as_me: creating $ac_file" >&6;}
32784 # Neutralize special characters interpreted by sed in replacement strings.
32785 case $configure_input in #(
32786 *\&* | *\|* | *\\* )
32787 ac_sed_conf_input=`$as_echo "$configure_input" |
32788 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32789 *) ac_sed_conf_input=$configure_input;;
32793 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32799 ac_dir=`$as_dirname -- "$ac_file" ||
32800 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32801 X"$ac_file" : 'X\(//\)[^/]' \| \
32802 X"$ac_file" : 'X\(//\)$' \| \
32803 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32804 $as_echo X"$ac_file" |
32805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32809 /^X\(\/\/\)[^/].*/{
32822 as_dir="$ac_dir"; as_fn_mkdir_p
32826 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32828 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32829 # A ".." for each directory in $ac_dir_suffix.
32830 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32831 case $ac_top_builddir_sub in
32832 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32833 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32836 ac_abs_top_builddir=$ac_pwd
32837 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32838 # for backward compatibility:
32839 ac_top_builddir=$ac_top_build_prefix
32842 .) # We are building in place.
32844 ac_top_srcdir=$ac_top_builddir_sub
32845 ac_abs_top_srcdir=$ac_pwd ;;
32846 [\\/]* | ?:[\\/]* ) # Absolute name.
32847 ac_srcdir=$srcdir$ac_dir_suffix;
32848 ac_top_srcdir=$srcdir
32849 ac_abs_top_srcdir=$srcdir ;;
32850 *) # Relative name.
32851 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32852 ac_top_srcdir=$ac_top_build_prefix$srcdir
32853 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32855 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32865 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32866 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32871 # If the template does not know about datarootdir, expand it.
32872 # FIXME: This hack should be removed a few years after 2.60.
32873 ac_datarootdir_hack=; ac_datarootdir_seen=
32884 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32885 *datarootdir*) ac_datarootdir_seen=yes;;
32886 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32888 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32891 ac_datarootdir_hack='
32892 s&@datadir@&$datadir&g
32893 s&@docdir@&$docdir&g
32894 s&@infodir@&$infodir&g
32895 s&@localedir@&$localedir&g
32896 s&@mandir@&$mandir&g
32897 s&\\\${datarootdir}&$datarootdir&g' ;;
32901 # Neutralize VPATH when `$srcdir' = `.'.
32902 # Shell code in configure.ac might set extrasub.
32903 # FIXME: do we really want to maintain this feature?
32904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32905 ac_sed_extra="$ac_vpsub
32908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32911 s|@configure_input@|$ac_sed_conf_input|;t t
32912 s&@top_builddir@&$ac_top_builddir_sub&;t t
32913 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32914 s&@srcdir@&$ac_srcdir&;t t
32915 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32916 s&@top_srcdir@&$ac_top_srcdir&;t t
32917 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32918 s&@builddir@&$ac_builddir&;t t
32919 s&@abs_builddir@&$ac_abs_builddir&;t t
32920 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32921 s&@INSTALL@&$ac_INSTALL&;t t
32922 $ac_datarootdir_hack
32924 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32925 if $ac_cs_awk_getline; then
32926 $AWK -f "$ac_tmp/subs.awk"
32928 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32930 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32932 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32933 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32934 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32935 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32937 which seems to be undefined. Please make sure it is defined" >&5
32938 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32939 which seems to be undefined. Please make sure it is defined" >&2;}
32941 rm -f "$ac_tmp/stdin"
32943 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32944 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32946 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32952 if test x"$ac_file" != x-; then
32954 $as_echo "/* $configure_input */" \
32955 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32956 } >"$ac_tmp/config.h" \
32957 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32958 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32959 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32960 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32963 mv "$ac_tmp/config.h" "$ac_file" \
32964 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32967 $as_echo "/* $configure_input */" \
32968 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32969 || as_fn_error $? "could not create -" "$LINENO" 5
32973 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32974 $as_echo "$as_me: executing $ac_file commands" >&6;}
32979 case $ac_file$ac_mode in
32982 # See if we are running on zsh, and set the options which allow our
32983 # commands through without removal of \ escapes.
32984 if test -n "${ZSH_VERSION+set}" ; then
32985 setopt NO_GLOB_SUBST
32988 cfgfile="${ofile}T"
32989 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32992 cat <<_LT_EOF >> "$cfgfile"
32995 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32996 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32997 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32998 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33000 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33001 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
33003 # Written by Gordon Matzigkeit, 1996
33005 # This file is part of GNU Libtool.
33007 # GNU Libtool is free software; you can redistribute it and/or
33008 # modify it under the terms of the GNU General Public License as
33009 # published by the Free Software Foundation; either version 2 of
33010 # the License, or (at your option) any later version.
33012 # As a special exception to the GNU General Public License,
33013 # if you distribute this file as part of a program or library that
33014 # is built using GNU Libtool, you may include this file under the
33015 # same distribution terms that you use for the rest of that program.
33017 # GNU Libtool is distributed in the hope that it will be useful,
33018 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33019 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33020 # GNU General Public License for more details.
33022 # You should have received a copy of the GNU General Public License
33023 # along with GNU Libtool; see the file COPYING. If not, a copy
33024 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33025 # obtained by writing to the Free Software Foundation, Inc.,
33026 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33029 # The names of the tagged configurations supported by this script.
33030 available_tags="CXX "
33032 # ### BEGIN LIBTOOL CONFIG
33034 # Which release of libtool.m4 was used?
33035 macro_version=$macro_version
33036 macro_revision=$macro_revision
33038 # Whether or not to build shared libraries.
33039 build_libtool_libs=$enable_shared
33041 # Whether or not to build static libraries.
33042 build_old_libs=$enable_static
33044 # What type of objects to build.
33047 # Whether or not to optimize for fast installation.
33048 fast_install=$enable_fast_install
33050 # Shell to use when invoking shell scripts.
33053 # An echo program that protects backslashes.
33056 # The PATH separator for the build system.
33057 PATH_SEPARATOR=$lt_PATH_SEPARATOR
33060 host_alias=$host_alias
33064 # The build system.
33065 build_alias=$build_alias
33069 # A sed program that does not truncate output.
33072 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33073 Xsed="\$SED -e 1s/^X//"
33075 # A grep program that handles long lines.
33081 # A literal string matcher.
33084 # A BSD- or MS-compatible name lister.
33087 # Whether we need soft or hard links.
33090 # What is the maximum length of a command?
33091 max_cmd_len=$max_cmd_len
33093 # Object file suffix (normally "o").
33096 # Executable file suffix (normally "").
33099 # whether the shell understands "unset".
33102 # turn spaces into newlines.
33105 # turn newlines into spaces.
33108 # convert \$build file names to \$host format.
33109 to_host_file_cmd=$lt_cv_to_host_file_cmd
33111 # convert \$build files to toolchain format.
33112 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33114 # An object symbol dumper.
33115 OBJDUMP=$lt_OBJDUMP
33117 # Method to check whether dependent libraries are shared objects.
33118 deplibs_check_method=$lt_deplibs_check_method
33120 # Command to use when deplibs_check_method = "file_magic".
33121 file_magic_cmd=$lt_file_magic_cmd
33123 # How to find potential files when deplibs_check_method = "file_magic".
33124 file_magic_glob=$lt_file_magic_glob
33126 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33127 want_nocaseglob=$lt_want_nocaseglob
33129 # DLL creation program.
33130 DLLTOOL=$lt_DLLTOOL
33132 # Command to associate shared and link libraries.
33133 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33138 # Flags to create an archive.
33139 AR_FLAGS=$lt_AR_FLAGS
33141 # How to feed a file listing to the archiver.
33142 archiver_list_spec=$lt_archiver_list_spec
33144 # A symbol stripping program.
33147 # Commands used to install an old-style archive.
33149 old_postinstall_cmds=$lt_old_postinstall_cmds
33150 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33152 # Whether to use a lock for old archive extraction.
33153 lock_old_archive_extraction=$lock_old_archive_extraction
33158 # LTCC compiler flags.
33159 LTCFLAGS=$lt_CFLAGS
33161 # Take the output of nm and produce a listing of raw symbols and C names.
33162 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33164 # Transform the output of nm in a proper C declaration.
33165 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33167 # Transform the output of nm in a C name address pair.
33168 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33170 # Transform the output of nm in a C name address pair when lib prefix is needed.
33171 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33173 # Specify filename containing input files for \$NM.
33174 nm_file_list_spec=$lt_nm_file_list_spec
33176 # The root where to search for dependent libraries,and in which our libraries should be installed.
33177 lt_sysroot=$lt_sysroot
33179 # The name of the directory that contains temporary libtool files.
33182 # Used to examine libraries when file_magic_cmd begins with "file".
33183 MAGIC_CMD=$MAGIC_CMD
33185 # Must we lock files when doing compilation?
33186 need_locks=$lt_need_locks
33189 MANIFEST_TOOL=$lt_MANIFEST_TOOL
33191 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33192 DSYMUTIL=$lt_DSYMUTIL
33194 # Tool to change global to local symbols on Mac OS X.
33197 # Tool to manipulate fat objects and archives on Mac OS X.
33200 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33203 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33204 OTOOL64=$lt_OTOOL64
33206 # Old archive suffix (normally "a").
33209 # Shared library suffix (normally ".so").
33210 shrext_cmds=$lt_shrext_cmds
33212 # The commands to extract the exported symbol list from a shared archive.
33213 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33215 # Variables whose values should be saved in libtool wrapper scripts and
33216 # restored at link time.
33217 variables_saved_for_relink=$lt_variables_saved_for_relink
33219 # Do we need the "lib" prefix for modules?
33220 need_lib_prefix=$need_lib_prefix
33222 # Do we need a version for libraries?
33223 need_version=$need_version
33225 # Library versioning type.
33226 version_type=$version_type
33228 # Shared library runtime path variable.
33229 runpath_var=$runpath_var
33231 # Shared library path variable.
33232 shlibpath_var=$shlibpath_var
33234 # Is shlibpath searched before the hard-coded library search path?
33235 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33237 # Format of library name prefix.
33238 libname_spec=$lt_libname_spec
33240 # List of archive names. First name is the real one, the rest are links.
33241 # The last name is the one that the linker finds with -lNAME
33242 library_names_spec=$lt_library_names_spec
33244 # The coded name of the library, if different from the real name.
33245 soname_spec=$lt_soname_spec
33247 # Permission mode override for installation of shared libraries.
33248 install_override_mode=$lt_install_override_mode
33250 # Command to use after installation of a shared archive.
33251 postinstall_cmds=$lt_postinstall_cmds
33253 # Command to use after uninstallation of a shared archive.
33254 postuninstall_cmds=$lt_postuninstall_cmds
33256 # Commands used to finish a libtool library installation in a directory.
33257 finish_cmds=$lt_finish_cmds
33259 # As "finish_cmds", except a single script fragment to be evaled but
33261 finish_eval=$lt_finish_eval
33263 # Whether we should hardcode library paths into libraries.
33264 hardcode_into_libs=$hardcode_into_libs
33266 # Compile-time system search path for libraries.
33267 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33269 # Run-time system search path for libraries.
33270 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33272 # Whether dlopen is supported.
33273 dlopen_support=$enable_dlopen
33275 # Whether dlopen of programs is supported.
33276 dlopen_self=$enable_dlopen_self
33278 # Whether dlopen of statically linked programs is supported.
33279 dlopen_self_static=$enable_dlopen_self_static
33281 # Commands to strip libraries.
33282 old_striplib=$lt_old_striplib
33283 striplib=$lt_striplib
33286 # The linker used to build libraries.
33289 # How to create reloadable object files.
33290 reload_flag=$lt_reload_flag
33291 reload_cmds=$lt_reload_cmds
33293 # Commands used to build an old-style archive.
33294 old_archive_cmds=$lt_old_archive_cmds
33296 # A language specific compiler.
33299 # Is the compiler the GNU compiler?
33302 # Compiler flag to turn off builtin functions.
33303 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33305 # Additional compiler flags for building library objects.
33306 pic_flag=$lt_lt_prog_compiler_pic
33308 # How to pass a linker flag through the compiler.
33309 wl=$lt_lt_prog_compiler_wl
33311 # Compiler flag to prevent dynamic linking.
33312 link_static_flag=$lt_lt_prog_compiler_static
33314 # Does compiler simultaneously support -c and -o options?
33315 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33317 # Whether or not to add -lc for building shared libraries.
33318 build_libtool_need_lc=$archive_cmds_need_lc
33320 # Whether or not to disallow shared libs when runtime libs are static.
33321 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33323 # Compiler flag to allow reflexive dlopens.
33324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33326 # Compiler flag to generate shared objects directly from archives.
33327 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33329 # Whether the compiler copes with passing no objects directly.
33330 compiler_needs_object=$lt_compiler_needs_object
33332 # Create an old-style archive from a shared archive.
33333 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33335 # Create a temporary old-style archive to link instead of a shared archive.
33336 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33338 # Commands used to build a shared archive.
33339 archive_cmds=$lt_archive_cmds
33340 archive_expsym_cmds=$lt_archive_expsym_cmds
33342 # Commands used to build a loadable module if different from building
33343 # a shared archive.
33344 module_cmds=$lt_module_cmds
33345 module_expsym_cmds=$lt_module_expsym_cmds
33347 # Whether we are building with GNU ld or not.
33348 with_gnu_ld=$lt_with_gnu_ld
33350 # Flag that allows shared libraries with undefined symbols to be built.
33351 allow_undefined_flag=$lt_allow_undefined_flag
33353 # Flag that enforces no undefined symbols.
33354 no_undefined_flag=$lt_no_undefined_flag
33356 # Flag to hardcode \$libdir into a binary during linking.
33357 # This must work even if \$libdir does not exist
33358 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33360 # Whether we need a single "-rpath" flag with a separated argument.
33361 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33363 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33364 # DIR into the resulting binary.
33365 hardcode_direct=$hardcode_direct
33367 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33368 # DIR into the resulting binary and the resulting library dependency is
33369 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33370 # library is relocated.
33371 hardcode_direct_absolute=$hardcode_direct_absolute
33373 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33374 # into the resulting binary.
33375 hardcode_minus_L=$hardcode_minus_L
33377 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33378 # into the resulting binary.
33379 hardcode_shlibpath_var=$hardcode_shlibpath_var
33381 # Set to "yes" if building a shared library automatically hardcodes DIR
33382 # into the library and all subsequent libraries and executables linked
33384 hardcode_automatic=$hardcode_automatic
33386 # Set to yes if linker adds runtime paths of dependent libraries
33387 # to runtime path list.
33388 inherit_rpath=$inherit_rpath
33390 # Whether libtool must link a program against all its dependency libraries.
33391 link_all_deplibs=$link_all_deplibs
33393 # Set to "yes" if exported symbols are required.
33394 always_export_symbols=$always_export_symbols
33396 # The commands to list exported symbols.
33397 export_symbols_cmds=$lt_export_symbols_cmds
33399 # Symbols that should not be listed in the preloaded symbols.
33400 exclude_expsyms=$lt_exclude_expsyms
33402 # Symbols that must always be exported.
33403 include_expsyms=$lt_include_expsyms
33405 # Commands necessary for linking programs (against libraries) with templates.
33406 prelink_cmds=$lt_prelink_cmds
33408 # Commands necessary for finishing linking programs.
33409 postlink_cmds=$lt_postlink_cmds
33411 # Specify filename containing input files.
33412 file_list_spec=$lt_file_list_spec
33414 # How to hardcode a shared library path into an executable.
33415 hardcode_action=$hardcode_action
33417 # The directories searched by this compiler when creating a shared library.
33418 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33420 # Dependencies to place before and after the objects being linked to
33421 # create a shared library.
33422 predep_objects=$lt_predep_objects
33423 postdep_objects=$lt_postdep_objects
33424 predeps=$lt_predeps
33425 postdeps=$lt_postdeps
33427 # The library search path used internally by the compiler when linking
33428 # a shared library.
33429 compiler_lib_search_path=$lt_compiler_lib_search_path
33431 # ### END LIBTOOL CONFIG
33437 cat <<\_LT_EOF >> "$cfgfile"
33438 # AIX sometimes has problems with the GCC collect2 program. For some
33439 # reason, if we set the COLLECT_NAMES environment variable, the problems
33440 # vanish in a puff of smoke.
33441 if test "X${COLLECT_NAMES+set}" != Xset; then
33443 export COLLECT_NAMES
33450 ltmain="$ac_aux_dir/ltmain.sh"
33453 # We use sed instead of cat because bash on DJGPP gets confused if
33454 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33455 # text mode, it properly converts lines to CR/LF. This bash problem
33456 # is reportedly fixed, but why not run on old versions too?
33457 sed '$q' "$ltmain" >> "$cfgfile" \
33458 || (rm -f "$cfgfile"; exit 1)
33460 if test x"$xsi_shell" = xyes; then
33461 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33465 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33466 \ * ) func_dirname_result="${3}" ;;\
33468 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33469 && mv -f "$cfgfile.tmp" "$cfgfile" \
33470 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33471 test 0 -eq $? || _lt_function_replace_fail=:
33474 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33477 \ func_basename_result="${1##*/}"\
33478 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33479 && mv -f "$cfgfile.tmp" "$cfgfile" \
33480 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33481 test 0 -eq $? || _lt_function_replace_fail=:
33484 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33485 func_dirname_and_basename ()\
33488 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33489 \ * ) func_dirname_result="${3}" ;;\
33491 \ func_basename_result="${1##*/}"\
33492 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33493 && mv -f "$cfgfile.tmp" "$cfgfile" \
33494 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33495 test 0 -eq $? || _lt_function_replace_fail=:
33498 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33501 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33502 \ # positional parameters, so assign one to ordinary parameter first.\
33503 \ func_stripname_result=${3}\
33504 \ func_stripname_result=${func_stripname_result#"${1}"}\
33505 \ func_stripname_result=${func_stripname_result%"${2}"}\
33506 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33507 && mv -f "$cfgfile.tmp" "$cfgfile" \
33508 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33509 test 0 -eq $? || _lt_function_replace_fail=:
33512 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33513 func_split_long_opt ()\
33515 \ func_split_long_opt_name=${1%%=*}\
33516 \ func_split_long_opt_arg=${1#*=}\
33517 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33518 && mv -f "$cfgfile.tmp" "$cfgfile" \
33519 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33520 test 0 -eq $? || _lt_function_replace_fail=:
33523 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33524 func_split_short_opt ()\
33526 \ func_split_short_opt_arg=${1#??}\
33527 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33528 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33529 && mv -f "$cfgfile.tmp" "$cfgfile" \
33530 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33531 test 0 -eq $? || _lt_function_replace_fail=:
33534 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33538 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33539 \ *) func_lo2o_result=${1} ;;\
33541 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33542 && mv -f "$cfgfile.tmp" "$cfgfile" \
33543 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33544 test 0 -eq $? || _lt_function_replace_fail=:
33547 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33550 func_xform_result=${1%.*}.lo\
33551 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33552 && mv -f "$cfgfile.tmp" "$cfgfile" \
33553 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33554 test 0 -eq $? || _lt_function_replace_fail=:
33557 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33560 func_arith_result=$(( $* ))\
33561 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33562 && mv -f "$cfgfile.tmp" "$cfgfile" \
33563 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33564 test 0 -eq $? || _lt_function_replace_fail=:
33567 sed -e '/^func_len ()$/,/^} # func_len /c\
33570 func_len_result=${#1}\
33571 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33572 && mv -f "$cfgfile.tmp" "$cfgfile" \
33573 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33574 test 0 -eq $? || _lt_function_replace_fail=:
33578 if test x"$lt_shell_append" = xyes; then
33579 sed -e '/^func_append ()$/,/^} # func_append /c\
33582 eval "${1}+=\\${2}"\
33583 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33584 && mv -f "$cfgfile.tmp" "$cfgfile" \
33585 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33586 test 0 -eq $? || _lt_function_replace_fail=:
33589 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33590 func_append_quoted ()\
33592 \ func_quote_for_eval "${2}"\
33593 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33594 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33595 && mv -f "$cfgfile.tmp" "$cfgfile" \
33596 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33597 test 0 -eq $? || _lt_function_replace_fail=:
33600 # Save a `func_append' function call where possible by direct use of '+='
33601 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33602 && mv -f "$cfgfile.tmp" "$cfgfile" \
33603 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33604 test 0 -eq $? || _lt_function_replace_fail=:
33606 # Save a `func_append' function call even when '+=' is not available
33607 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33608 && mv -f "$cfgfile.tmp" "$cfgfile" \
33609 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33610 test 0 -eq $? || _lt_function_replace_fail=:
33613 if test x"$_lt_function_replace_fail" = x":"; then
33614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33615 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33619 mv -f "$cfgfile" "$ofile" ||
33620 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33624 cat <<_LT_EOF >> "$ofile"
33626 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33628 # The linker used to build libraries.
33631 # How to create reloadable object files.
33632 reload_flag=$lt_reload_flag_CXX
33633 reload_cmds=$lt_reload_cmds_CXX
33635 # Commands used to build an old-style archive.
33636 old_archive_cmds=$lt_old_archive_cmds_CXX
33638 # A language specific compiler.
33639 CC=$lt_compiler_CXX
33641 # Is the compiler the GNU compiler?
33644 # Compiler flag to turn off builtin functions.
33645 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33647 # Additional compiler flags for building library objects.
33648 pic_flag=$lt_lt_prog_compiler_pic_CXX
33650 # How to pass a linker flag through the compiler.
33651 wl=$lt_lt_prog_compiler_wl_CXX
33653 # Compiler flag to prevent dynamic linking.
33654 link_static_flag=$lt_lt_prog_compiler_static_CXX
33656 # Does compiler simultaneously support -c and -o options?
33657 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33659 # Whether or not to add -lc for building shared libraries.
33660 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33662 # Whether or not to disallow shared libs when runtime libs are static.
33663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33665 # Compiler flag to allow reflexive dlopens.
33666 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33668 # Compiler flag to generate shared objects directly from archives.
33669 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33671 # Whether the compiler copes with passing no objects directly.
33672 compiler_needs_object=$lt_compiler_needs_object_CXX
33674 # Create an old-style archive from a shared archive.
33675 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33677 # Create a temporary old-style archive to link instead of a shared archive.
33678 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33680 # Commands used to build a shared archive.
33681 archive_cmds=$lt_archive_cmds_CXX
33682 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33684 # Commands used to build a loadable module if different from building
33685 # a shared archive.
33686 module_cmds=$lt_module_cmds_CXX
33687 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33689 # Whether we are building with GNU ld or not.
33690 with_gnu_ld=$lt_with_gnu_ld_CXX
33692 # Flag that allows shared libraries with undefined symbols to be built.
33693 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33695 # Flag that enforces no undefined symbols.
33696 no_undefined_flag=$lt_no_undefined_flag_CXX
33698 # Flag to hardcode \$libdir into a binary during linking.
33699 # This must work even if \$libdir does not exist
33700 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33702 # Whether we need a single "-rpath" flag with a separated argument.
33703 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33705 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33706 # DIR into the resulting binary.
33707 hardcode_direct=$hardcode_direct_CXX
33709 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33710 # DIR into the resulting binary and the resulting library dependency is
33711 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33712 # library is relocated.
33713 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33715 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33716 # into the resulting binary.
33717 hardcode_minus_L=$hardcode_minus_L_CXX
33719 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33720 # into the resulting binary.
33721 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33723 # Set to "yes" if building a shared library automatically hardcodes DIR
33724 # into the library and all subsequent libraries and executables linked
33726 hardcode_automatic=$hardcode_automatic_CXX
33728 # Set to yes if linker adds runtime paths of dependent libraries
33729 # to runtime path list.
33730 inherit_rpath=$inherit_rpath_CXX
33732 # Whether libtool must link a program against all its dependency libraries.
33733 link_all_deplibs=$link_all_deplibs_CXX
33735 # Set to "yes" if exported symbols are required.
33736 always_export_symbols=$always_export_symbols_CXX
33738 # The commands to list exported symbols.
33739 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33741 # Symbols that should not be listed in the preloaded symbols.
33742 exclude_expsyms=$lt_exclude_expsyms_CXX
33744 # Symbols that must always be exported.
33745 include_expsyms=$lt_include_expsyms_CXX
33747 # Commands necessary for linking programs (against libraries) with templates.
33748 prelink_cmds=$lt_prelink_cmds_CXX
33750 # Commands necessary for finishing linking programs.
33751 postlink_cmds=$lt_postlink_cmds_CXX
33753 # Specify filename containing input files.
33754 file_list_spec=$lt_file_list_spec_CXX
33756 # How to hardcode a shared library path into an executable.
33757 hardcode_action=$hardcode_action_CXX
33759 # The directories searched by this compiler when creating a shared library.
33760 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33762 # Dependencies to place before and after the objects being linked to
33763 # create a shared library.
33764 predep_objects=$lt_predep_objects_CXX
33765 postdep_objects=$lt_postdep_objects_CXX
33766 predeps=$lt_predeps_CXX
33767 postdeps=$lt_postdeps_CXX
33769 # The library search path used internally by the compiler when linking
33770 # a shared library.
33771 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33773 # ### END LIBTOOL TAG CONFIG: CXX
33778 for ac_file in $CONFIG_FILES; do
33779 # Support "outfile[:infile[:infile...]]"
33781 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33783 # PO directories have a Makefile.in generated from Makefile.in.in.
33784 case "$ac_file" in */Makefile.in)
33785 # Adjust a relative srcdir.
33786 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33787 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33788 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33789 # In autoconf-2.13 it is called $ac_given_srcdir.
33790 # In autoconf-2.50 it is called $srcdir.
33791 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33792 case "$ac_given_srcdir" in
33793 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33794 /*) top_srcdir="$ac_given_srcdir" ;;
33795 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33797 # Treat a directory as a PO directory if and only if it has a
33798 # POTFILES.in file. This allows packages to have multiple PO
33799 # directories under different names or in different locations.
33800 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33801 rm -f "$ac_dir/POTFILES"
33802 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33803 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33804 POMAKEFILEDEPS="POTFILES.in"
33805 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33806 # on $ac_dir but don't depend on user-specified configuration
33808 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33809 # The LINGUAS file contains the set of available languages.
33810 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33811 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33813 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33814 # Hide the ALL_LINGUAS assigment from automake.
33815 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33816 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33818 # The set of available languages was given in configure.in.
33819 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33822 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33823 # Compute UPDATEPOFILES
33824 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33825 # Compute DUMMYPOFILES
33826 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33828 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33829 case "$ac_given_srcdir" in
33831 *) srcdirpre='$(srcdir)/' ;;
33837 for lang in $ALL_LINGUAS; do
33838 POFILES="$POFILES $srcdirpre$lang.po"
33839 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33840 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33841 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33843 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33844 # environment variable.
33846 if test -n "$ALL_LINGUAS"; then
33847 for presentlang in $ALL_LINGUAS; do
33849 if test "%UNSET%" != "$LINGUAS"; then
33850 desiredlanguages="$LINGUAS"
33852 desiredlanguages="$ALL_LINGUAS"
33854 for desiredlang in $desiredlanguages; do
33855 # Use the presentlang catalog if desiredlang is
33856 # a. equal to presentlang, or
33857 # b. a variant of presentlang (because in this case,
33858 # presentlang can be used as a fallback for messages
33859 # which are not translated in the desiredlang catalog).
33860 case "$desiredlang" in
33861 "$presentlang"*) useit=yes;;
33864 if test $useit = yes; then
33865 INST_LINGUAS="$INST_LINGUAS $presentlang"
33870 if test -n "$INST_LINGUAS"; then
33871 for lang in $INST_LINGUAS; do
33872 CATALOGS="$CATALOGS $lang.gmo"
33875 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33876 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"
33877 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33878 if test -f "$f"; then
33880 *.orig | *.bak | *~) ;;
33881 *) cat "$f" >> "$ac_dir/Makefile" ;;
33898 ac_clean_files=$ac_clean_files_save
33900 test $ac_write_fail = 0 ||
33901 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33904 # configure is writing to config.log, and then calls config.status.
33905 # config.status does its own redirection, appending to config.log.
33906 # Unfortunately, on DOS this fails, as config.log is still kept open
33907 # by configure, so config.status won't be able to write to it; its
33908 # output is simply discarded. So we exec the FD to /dev/null,
33909 # effectively closing config.log, so it can be properly (re)opened and
33910 # appended to by config.status. When coming back to configure, we
33911 # need to make the FD available again.
33912 if test "$no_create" != yes; then
33914 ac_config_status_args=
33915 test "$silent" = yes &&
33916 ac_config_status_args="$ac_config_status_args --quiet"
33918 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33920 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33921 # would make configure fail if this is the last instruction.
33922 $ac_cs_success || as_fn_exit 1
33924 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33926 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33930 if test "${support_bat}" = "yes" ; then
33931 if test "x$QMAKE" = "xnone"; then
33932 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33936 echo "Creating bat Makefile"
33942 ${MAKE:-make} clean
33946 if test X"$GCC" = "Xyes" ; then
33947 echo "Doing make of dependencies"
33948 ${MAKE:-make} depend
33952 chmod 755 install_conf_file build-depkgs-qt-console
33956 chmod 755 bacula btraceback mtx-changer
33957 chmod 755 dvd-handler dvd-simulator
33958 chmod 755 bconsole disk-changer devel_bacula logrotate
33962 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33963 chmod 755 $c/update_postgresql_tables_10_to_11
33964 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33965 chmod 755 $c/update_postgresql_tables_11_to_12
33970 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33971 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33973 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33974 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33976 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33977 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33979 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33980 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33982 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33983 chmod 755 $c/sqlite
33986 chmod 755 $c/install-default-backend
33988 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33989 largefile_support="yes"
33992 if test X"$GCC" = "Xyes" ; then
33993 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33994 if test "x${CCVERSION}" = "x" ; then
33995 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33997 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33998 if test x"${CXXVERSION}" = x ; then
33999 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
34003 # clean up any old junk
34007 ${MAKE:-make} clean
34010 Configuration on `date`:
34012 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
34013 Bacula version: ${BACULA} ${VERSION} (${DATE})
34014 Source code location: ${srcdir}
34015 Install binaries: ${sbindir}
34016 Install libraries: ${libdir}
34017 Install config files: ${sysconfdir}
34018 Scripts directory: ${scriptdir}
34019 Archive directory: ${archivedir}
34020 Working directory: ${working_dir}
34021 PID directory: ${piddir}
34022 Subsys directory: ${subsysdir}
34023 Man directory: ${mandir}
34024 Data directory: ${datarootdir}
34025 Plugin directory: ${plugindir}
34026 C Compiler: ${CC} ${CCVERSION}
34027 C++ Compiler: ${CXX} ${CXXVERSION}
34028 Compiler flags: ${WCFLAGS} ${CFLAGS}
34029 Linker flags: ${WLDFLAGS} ${LDFLAGS}
34031 Statically Linked Tools: ${support_static_tools}
34032 Statically Linked FD: ${support_static_fd}
34033 Statically Linked SD: ${support_static_sd}
34034 Statically Linked DIR: ${support_static_dir}
34035 Statically Linked CONS: ${support_static_cons}
34036 Database backends: ${db_backends}
34037 Database port: ${db_port}
34038 Database name: ${db_name}
34039 Database user: ${db_user}
34040 Database SSL options: ${db_ssl_options}
34042 Job Output Email: ${job_email}
34043 Traceback Email: ${dump_email}
34044 SMTP Host Address: ${smtp_host}
34046 Director Port: ${dir_port}
34047 File daemon Port: ${fd_port}
34048 Storage daemon Port: ${sd_port}
34050 Director User: ${dir_user}
34051 Director Group: ${dir_group}
34052 Storage Daemon User: ${sd_user}
34053 Storage DaemonGroup: ${sd_group}
34054 File Daemon User: ${fd_user}
34055 File Daemon Group: ${fd_group}
34057 Large file support: $largefile_support
34058 Bacula conio support: ${got_conio} ${CONS_LIBS}
34059 readline support: ${got_readline} ${PRTREADLINE_SRC}
34060 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
34061 TLS support: ${support_tls}
34062 Encryption support: ${support_crypto}
34063 ZLIB support: ${have_zlib}
34064 LZO support: ${have_lzo}
34065 enable-smartalloc: ${support_smartalloc}
34066 enable-lockmgr: ${support_lockmgr}
34067 bat support: ${support_bat}
34068 client-only: ${build_client_only}
34069 build-dird: ${build_dird}
34070 build-stored: ${build_stored}
34071 Plugin support: ${have_plugins}
34072 AFS support: ${have_afs}
34073 ACL support: ${have_acl}
34074 XATTR support: ${have_xattr}
34075 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
34076 Batch insert enabled: ${batch_insert_db_backends}
34080 # create a small shell script useful for support with
34081 # configure options and config.out info
34082 cat > scripts/bacula_config << EOF
34085 $ $0 $ac_configure_args
34087 cat config.out >> scripts/bacula_config
34088 echo __EOC__ >> scripts/bacula_config
34089 chmod 755 scripts/bacula_config