2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bacula 7.2.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='bacula'
589 PACKAGE_TARNAME='bacula'
590 PACKAGE_VERSION='7.2.0'
591 PACKAGE_STRING='bacula 7.2.0'
595 ac_unique_file="src/version.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
633 ac_subst_vars='LTLIBOBJS
663 SHARED_CATALOG_TARGETS
734 INTL_LIBTOOL_SUFFIX_PREFIX
741 BUILD_INCLUDED_LIBINTL
772 HAVE_OPENBSD_OS_FALSE
776 HAVE_FREEBSD_OS_FALSE
790 INCLUDE_UNINSTALL_TARGET
791 INCLUDE_INSTALL_TARGET
795 LIBTOOL_UNINSTALL_TARGET
796 LIBTOOL_INSTALL_TARGET
797 DEFAULT_SHARED_OBJECT_TYPE
876 LIBBACFIND_LT_RELEASE
877 LIBBACCATS_LT_RELEASE
921 program_transform_name
932 ac_subst_files='MCOMMON'
934 enable_option_checking
948 with_included_gettext
983 with_mon_dir_password
1013 ac_precious_vars='build_alias
1029 # Initialize some variables set by options.
1031 ac_init_version=false
1032 ac_unrecognized_opts=
1033 ac_unrecognized_sep=
1034 # The variables have the same names as the options, with
1035 # dashes changed to underlines.
1036 cache_file=/dev/null
1043 program_transform_name=s,x,x,
1051 # Installation directory options.
1052 # These are left unexpanded so users can "make install exec_prefix=/foo"
1053 # and all the variables that are supposed to be based on exec_prefix
1054 # by default will actually change.
1055 # Use braces instead of parens because sh, perl, etc. also accept them.
1056 # (The list follows the same order as the GNU Coding Standards.)
1057 bindir='${exec_prefix}/bin'
1058 sbindir='${exec_prefix}/sbin'
1059 libexecdir='${exec_prefix}/libexec'
1060 datarootdir='${prefix}/share'
1061 datadir='${datarootdir}'
1062 sysconfdir='${prefix}/etc'
1063 sharedstatedir='${prefix}/com'
1064 localstatedir='${prefix}/var'
1065 includedir='${prefix}/include'
1066 oldincludedir='/usr/include'
1067 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1068 infodir='${datarootdir}/info'
1073 libdir='${exec_prefix}/lib'
1074 localedir='${datarootdir}/locale'
1075 mandir='${datarootdir}/man'
1081 # If the previous option needs an argument, assign it.
1082 if test -n "$ac_prev"; then
1083 eval $ac_prev=\$ac_option
1089 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1094 # Accept the important Cygnus configure options, so we can diagnose typos.
1096 case $ac_dashdash$ac_option in
1100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1103 bindir=$ac_optarg ;;
1105 -build | --build | --buil | --bui | --bu)
1106 ac_prev=build_alias ;;
1107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1108 build_alias=$ac_optarg ;;
1110 -cache-file | --cache-file | --cache-fil | --cache-fi \
1111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1112 ac_prev=cache_file ;;
1113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1115 cache_file=$ac_optarg ;;
1117 --config-cache | -C)
1118 cache_file=config.cache ;;
1120 -datadir | --datadir | --datadi | --datad)
1122 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1123 datadir=$ac_optarg ;;
1125 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1126 | --dataroo | --dataro | --datar)
1127 ac_prev=datarootdir ;;
1128 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1129 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1130 datarootdir=$ac_optarg ;;
1132 -disable-* | --disable-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid feature name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1141 "enable_$ac_useropt"
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1146 eval enable_$ac_useropt=no ;;
1148 -docdir | --docdir | --docdi | --doc | --do)
1150 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1151 docdir=$ac_optarg ;;
1153 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1155 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1156 dvidir=$ac_optarg ;;
1158 -enable-* | --enable-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid feature name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "enable_$ac_useropt"
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1172 eval enable_$ac_useropt=\$ac_optarg ;;
1174 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1175 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1176 | --exec | --exe | --ex)
1177 ac_prev=exec_prefix ;;
1178 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1179 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1180 | --exec=* | --exe=* | --ex=*)
1181 exec_prefix=$ac_optarg ;;
1183 -gas | --gas | --ga | --g)
1184 # Obsolete; use --with-gas.
1187 -help | --help | --hel | --he | -h)
1188 ac_init_help=long ;;
1189 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1190 ac_init_help=recursive ;;
1191 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1192 ac_init_help=short ;;
1194 -host | --host | --hos | --ho)
1195 ac_prev=host_alias ;;
1196 -host=* | --host=* | --hos=* | --ho=*)
1197 host_alias=$ac_optarg ;;
1199 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1201 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1203 htmldir=$ac_optarg ;;
1205 -includedir | --includedir | --includedi | --included | --include \
1206 | --includ | --inclu | --incl | --inc)
1207 ac_prev=includedir ;;
1208 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1209 | --includ=* | --inclu=* | --incl=* | --inc=*)
1210 includedir=$ac_optarg ;;
1212 -infodir | --infodir | --infodi | --infod | --info | --inf)
1214 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1215 infodir=$ac_optarg ;;
1217 -libdir | --libdir | --libdi | --libd)
1219 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1220 libdir=$ac_optarg ;;
1222 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1223 | --libexe | --libex | --libe)
1224 ac_prev=libexecdir ;;
1225 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1226 | --libexe=* | --libex=* | --libe=*)
1227 libexecdir=$ac_optarg ;;
1229 -localedir | --localedir | --localedi | --localed | --locale)
1230 ac_prev=localedir ;;
1231 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1232 localedir=$ac_optarg ;;
1234 -localstatedir | --localstatedir | --localstatedi | --localstated \
1235 | --localstate | --localstat | --localsta | --localst | --locals)
1236 ac_prev=localstatedir ;;
1237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1238 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1239 localstatedir=$ac_optarg ;;
1241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1244 mandir=$ac_optarg ;;
1246 -nfp | --nfp | --nf)
1247 # Obsolete; use --without-fp.
1250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1251 | --no-cr | --no-c | -n)
1254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1260 | --oldin | --oldi | --old | --ol | --o)
1261 ac_prev=oldincludedir ;;
1262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1265 oldincludedir=$ac_optarg ;;
1267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1270 prefix=$ac_optarg ;;
1272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1273 | --program-pre | --program-pr | --program-p)
1274 ac_prev=program_prefix ;;
1275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1277 program_prefix=$ac_optarg ;;
1279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1280 | --program-suf | --program-su | --program-s)
1281 ac_prev=program_suffix ;;
1282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1284 program_suffix=$ac_optarg ;;
1286 -program-transform-name | --program-transform-name \
1287 | --program-transform-nam | --program-transform-na \
1288 | --program-transform-n | --program-transform- \
1289 | --program-transform | --program-transfor \
1290 | --program-transfo | --program-transf \
1291 | --program-trans | --program-tran \
1292 | --progr-tra | --program-tr | --program-t)
1293 ac_prev=program_transform_name ;;
1294 -program-transform-name=* | --program-transform-name=* \
1295 | --program-transform-nam=* | --program-transform-na=* \
1296 | --program-transform-n=* | --program-transform-=* \
1297 | --program-transform=* | --program-transfor=* \
1298 | --program-transfo=* | --program-transf=* \
1299 | --program-trans=* | --program-tran=* \
1300 | --progr-tra=* | --program-tr=* | --program-t=*)
1301 program_transform_name=$ac_optarg ;;
1303 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1305 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1306 pdfdir=$ac_optarg ;;
1308 -psdir | --psdir | --psdi | --psd | --ps)
1310 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1314 | -silent | --silent | --silen | --sile | --sil)
1317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1321 sbindir=$ac_optarg ;;
1323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1325 | --sharedst | --shareds | --shared | --share | --shar \
1327 ac_prev=sharedstatedir ;;
1328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1332 sharedstatedir=$ac_optarg ;;
1334 -site | --site | --sit)
1336 -site=* | --site=* | --sit=*)
1339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1342 srcdir=$ac_optarg ;;
1344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1345 | --syscon | --sysco | --sysc | --sys | --sy)
1346 ac_prev=sysconfdir ;;
1347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1349 sysconfdir=$ac_optarg ;;
1351 -target | --target | --targe | --targ | --tar | --ta | --t)
1352 ac_prev=target_alias ;;
1353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1354 target_alias=$ac_optarg ;;
1356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1359 -version | --version | --versio | --versi | --vers | -V)
1360 ac_init_version=: ;;
1363 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1364 # Reject names that are not valid shell variable names.
1365 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1366 as_fn_error $? "invalid package name: $ac_useropt"
1367 ac_useropt_orig=$ac_useropt
1368 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369 case $ac_user_opts in
1373 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1374 ac_unrecognized_sep=', ';;
1376 eval with_$ac_useropt=\$ac_optarg ;;
1378 -without-* | --without-*)
1379 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1380 # Reject names that are not valid shell variable names.
1381 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1382 as_fn_error $? "invalid package name: $ac_useropt"
1383 ac_useropt_orig=$ac_useropt
1384 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1385 case $ac_user_opts in
1389 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1390 ac_unrecognized_sep=', ';;
1392 eval with_$ac_useropt=no ;;
1395 # Obsolete; use --with-x.
1398 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1399 | --x-incl | --x-inc | --x-in | --x-i)
1400 ac_prev=x_includes ;;
1401 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1402 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1403 x_includes=$ac_optarg ;;
1405 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1406 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1407 ac_prev=x_libraries ;;
1408 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1409 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1410 x_libraries=$ac_optarg ;;
1412 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1413 Try \`$0 --help' for more information"
1417 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1418 # Reject names that are not valid shell variable names.
1419 case $ac_envvar in #(
1420 '' | [0-9]* | *[!_$as_cr_alnum]* )
1421 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1423 eval $ac_envvar=\$ac_optarg
1424 export $ac_envvar ;;
1427 # FIXME: should be removed in autoconf 3.0.
1428 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1429 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1430 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1431 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1437 if test -n "$ac_prev"; then
1438 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1439 as_fn_error $? "missing argument to $ac_option"
1442 if test -n "$ac_unrecognized_opts"; then
1443 case $enable_option_checking in
1445 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1446 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1450 # Check all directory arguments for consistency.
1451 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452 datadir sysconfdir sharedstatedir localstatedir includedir \
1453 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454 libdir localedir mandir
1456 eval ac_val=\$$ac_var
1457 # Remove trailing slashes.
1460 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1461 eval $ac_var=\$ac_val;;
1463 # Be sure to have absolute directory names.
1465 [\\/$]* | ?:[\\/]* ) continue;;
1466 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1468 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1471 # There might be people who depend on the old broken behavior: `$host'
1472 # used to hold the argument of --host etc.
1473 # FIXME: To remove some day.
1476 target=$target_alias
1478 # FIXME: To remove some day.
1479 if test "x$host_alias" != x; then
1480 if test "x$build_alias" = x; then
1481 cross_compiling=maybe
1482 elif test "x$build_alias" != "x$host_alias"; then
1488 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1490 test "$silent" = yes && exec 6>/dev/null
1493 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1494 ac_ls_di=`ls -di .` &&
1495 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1496 as_fn_error $? "working directory cannot be determined"
1497 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1498 as_fn_error $? "pwd does not report name of working directory"
1501 # Find the source files, if location was not specified.
1502 if test -z "$srcdir"; then
1503 ac_srcdir_defaulted=yes
1504 # Try the directory containing this script, then the parent directory.
1505 ac_confdir=`$as_dirname -- "$as_myself" ||
1506 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1507 X"$as_myself" : 'X\(//\)[^/]' \| \
1508 X"$as_myself" : 'X\(//\)$' \| \
1509 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1510 $as_echo X"$as_myself" |
1511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1529 if test ! -r "$srcdir/$ac_unique_file"; then
1533 ac_srcdir_defaulted=no
1535 if test ! -r "$srcdir/$ac_unique_file"; then
1536 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1537 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1539 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1541 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1543 # When building in place, set srcdir=.
1544 if test "$ac_abs_confdir" = "$ac_pwd"; then
1547 # Remove unnecessary trailing slashes from srcdir.
1548 # Double slashes in file names in object file debugging info
1549 # mess up M-x gdb in Emacs.
1551 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1553 for ac_var in $ac_precious_vars; do
1554 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1555 eval ac_env_${ac_var}_value=\$${ac_var}
1556 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1557 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1561 # Report the --help message.
1563 if test "$ac_init_help" = "long"; then
1564 # Omit some internal or obsolete options to make the list less imposing.
1565 # This message is too long to be a string in the A/UX 3.1 sh.
1567 \`configure' configures bacula 7.2.0 to adapt to many kinds of systems.
1569 Usage: $0 [OPTION]... [VAR=VALUE]...
1571 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572 VAR=VALUE. See below for descriptions of some of the useful variables.
1574 Defaults for the options are specified in brackets.
1577 -h, --help display this help and exit
1578 --help=short display options specific to this package
1579 --help=recursive display the short help of all the included packages
1580 -V, --version display version information and exit
1581 -q, --quiet, --silent do not print \`checking ...' messages
1582 --cache-file=FILE cache test results in FILE [disabled]
1583 -C, --config-cache alias for \`--cache-file=config.cache'
1584 -n, --no-create do not create output files
1585 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1587 Installation directories:
1588 --prefix=PREFIX install architecture-independent files in PREFIX
1589 [$ac_default_prefix]
1590 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1593 By default, \`make install' will install all the files in
1594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596 for instance \`--prefix=\$HOME'.
1598 For better control, use the options below.
1600 Fine tuning of the installation directories:
1601 --bindir=DIR user executables [EPREFIX/bin]
1602 --sbindir=DIR system admin executables [EPREFIX/sbin]
1603 --libexecdir=DIR program executables [EPREFIX/libexec]
1604 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1605 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1606 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1607 --libdir=DIR object code libraries [EPREFIX/lib]
1608 --includedir=DIR C header files [PREFIX/include]
1609 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1610 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1611 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1612 --infodir=DIR info documentation [DATAROOTDIR/info]
1613 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1614 --mandir=DIR man documentation [DATAROOTDIR/man]
1615 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1616 --htmldir=DIR html documentation [DOCDIR]
1617 --dvidir=DIR dvi documentation [DOCDIR]
1618 --pdfdir=DIR pdf documentation [DOCDIR]
1619 --psdir=DIR ps documentation [DOCDIR]
1625 --x-includes=DIR X include files are in DIR
1626 --x-libraries=DIR X library files are in DIR
1629 --build=BUILD configure for building on BUILD [guessed]
1630 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1634 if test -n "$ac_init_help"; then
1635 case $ac_init_help in
1636 short | recursive ) echo "Configuration of bacula 7.2.0:";;
1641 --disable-option-checking ignore unrecognized --enable/--with options
1642 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1643 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1644 --enable-libtool enable building using GNU libtool [default=yes]
1645 --enable-shared[=PKGS] build shared libraries [default=yes]
1646 --enable-static[=PKGS] build static libraries [default=no]
1647 --enable-fast-install[=PKGS]
1648 optimize for fast installation [default=yes]
1649 --disable-libtool-lock avoid locking (might break parallel builds)
1650 --enable-includes enable installing of include files [default=no]
1651 --disable-nls do not use Native Language Support
1652 --disable-rpath do not hardcode runtime library paths
1653 --enable-bat enable build of bat Qt4 GUI [default=no]
1654 --enable-smartalloc enable smartalloc debugging support [default=no]
1655 --enable-lockmgr enable lock manager support [default=no]
1656 --enable-static-tools enable static tape tools [default=no]
1657 --enable-static-fd enable static File daemon [default=no]
1658 --enable-static-sd enable static Storage daemon [default=no]
1659 --enable-static-dir enable static Director [default=no]
1660 --enable-static-cons enable static Console [default=no]
1661 --enable-client-only build client (File daemon) only [default=no]
1662 --enable-build-dird enable building of dird (Director) [default=yes]
1663 --enable-build-stored enable building of stored (Storage daemon)
1665 --disable-conio disable conio support [default=no]
1666 --enable-ipv6 enable ipv6 support [default=yes]
1667 --disable-readline disable readline support [default=yes]
1668 --enable-batch-insert enable the DB batch insert code [default=yes]
1669 --disable-largefile omit support for large files
1670 --disable-afs disable afs support [default=auto]
1671 --disable-lzo disable lzo support [default=yes]
1672 --disable-acl disable acl support [default=auto]
1673 --disable-xattr disable xattr support [default=auto]
1676 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1677 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1678 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1680 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1681 --with-sysroot=DIR Search for dependent libraries within DIR
1682 (or the compiler's sysroot if not specified).
1683 --with-gnu-ld assume the C compiler uses GNU ld default=no
1684 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1685 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1686 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1687 --without-libintl-prefix don't search for libintl in includedir and libdir
1688 --with-included-gettext use the GNU gettext library included here
1689 --with-readline[=DIR] specify readline library directory
1690 --with-tcp-wrappers[=DIR]
1691 enable tcpwrappers support
1692 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1693 --with-working-dir=PATH specify path of Bacula working directory
1694 --with-archivedir=PATH specify path of SD archive directory
1695 --with-basename=RESNAME specify base resource name for daemons
1696 --with-hostname=RESNAME specify host name for daemons
1697 --with-scriptdir=PATH specify path of Bacula scripts directory
1698 --with-bsrdir=PATH specify path of Bacula bsrs directory
1699 --with-logdir=PATH specify path of Bacula logs directory
1700 --with-plugindir=PATH specify path of Bacula plugins directory
1701 --with-dump-email=EMAIL dump email address
1702 --with-job-email=EMAIL job output email address
1703 --with-smtp-host=HOST SMTP mail host address
1704 --with-pid-dir=PATH specify location of Bacula pid files
1705 --with-subsys-dir=PATH specify location of Bacula subsys file
1706 --with-baseport=PORT specify base port address for daemons
1707 --with-dir-password=PASSWORD
1708 specify Director's password
1709 --with-fd-password=PASSWORD
1710 specify Client's password
1711 --with-sd-password=PASSWORD
1712 specify Storage daemon's password
1713 --with-mon-dir-password=PASSWORD
1714 specify Director's password used by the monitor
1715 --with-mon-fd-password=PASSWORD
1716 specify Client's password used by the monitor
1717 --with-mon-sd-password=PASSWORD
1718 specify Storage daemon's password used by the
1720 --with-db-name=DBNAME specify database name [default=bacula]
1721 --with-db-user=UNAME specify database user [default=bacula]
1722 --with-db-password=PWD specify database password [default=*none*]
1723 --with-db-port=DBPORT specify a database port [default=null]
1724 --with-dir-user=USER specify user for Director daemon
1725 --with-dir-group=GROUP specify group for Director daemon
1726 --with-sd-user=USER specify user for Storage daemon
1727 --with-sd-group=GROUP specify group for Storage daemon
1728 --with-fd-user=USER specify user for File daemon
1729 --with-fd-group=GROUP specify group for File daemon
1730 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1731 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1732 base install directory, [default=/usr/local/pgsql]
1733 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1734 directory, default is to search through a number of
1735 common places for the MySQL files.
1736 --with-embedded-mysql[=DIR]
1737 Include MySQL support. DIR is the MySQL base install
1738 directory, default is to search through a number of
1739 common places for the MySQL files.
1740 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1741 install directory, default is to search through a
1742 number of common places for the SQLite3 files.
1743 --with-x use the X Window System
1744 --with-afsdir[=DIR] Directory holding AFS includes/libs
1745 --with-lzo[=DIR] specify lzo library directory
1746 --with-systemd[=UNITDIR]
1747 Include systemd support. UNITDIR is where systemd
1748 system .service files are located, default is to ask
1751 Some influential environment variables:
1752 CC C compiler command
1753 CFLAGS C compiler flags
1754 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1755 nonstandard directory <lib dir>
1756 LIBS libraries to pass to the linker, e.g. -l<library>
1757 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1758 you have headers in a nonstandard directory <include dir>
1759 CXX C++ compiler command
1760 CXXFLAGS C++ compiler flags
1762 CXXCPP C++ preprocessor
1763 XMKMF Path to xmkmf, Makefile generator for X Window System
1765 Use these variables to override the choices made by `configure' or to help
1766 it to find libraries and programs with nonstandard names/locations.
1768 Report bugs to the package provider.
1773 if test "$ac_init_help" = "recursive"; then
1774 # If there are subdirs, report their specific --help.
1775 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1776 test -d "$ac_dir" ||
1777 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1785 # A ".." for each directory in $ac_dir_suffix.
1786 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1787 case $ac_top_builddir_sub in
1788 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1792 ac_abs_top_builddir=$ac_pwd
1793 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1794 # for backward compatibility:
1795 ac_top_builddir=$ac_top_build_prefix
1798 .) # We are building in place.
1800 ac_top_srcdir=$ac_top_builddir_sub
1801 ac_abs_top_srcdir=$ac_pwd ;;
1802 [\\/]* | ?:[\\/]* ) # Absolute name.
1803 ac_srcdir=$srcdir$ac_dir_suffix;
1804 ac_top_srcdir=$srcdir
1805 ac_abs_top_srcdir=$srcdir ;;
1807 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1808 ac_top_srcdir=$ac_top_build_prefix$srcdir
1809 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1811 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1813 cd "$ac_dir" || { ac_status=$?; continue; }
1814 # Check for guested configure.
1815 if test -f "$ac_srcdir/configure.gnu"; then
1817 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1818 elif test -f "$ac_srcdir/configure"; then
1820 $SHELL "$ac_srcdir/configure" --help=recursive
1822 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1824 cd "$ac_pwd" || { ac_status=$?; break; }
1828 test -n "$ac_init_help" && exit $ac_status
1829 if $ac_init_version; then
1831 bacula configure 7.2.0
1832 generated by GNU Autoconf 2.69
1834 Copyright (C) 2012 Free Software Foundation, Inc.
1835 This configure script is free software; the Free Software Foundation
1836 gives unlimited permission to copy, distribute and modify it.
1841 ## ------------------------ ##
1842 ## Autoconf initialization. ##
1843 ## ------------------------ ##
1845 # ac_fn_c_try_compile LINENO
1846 # --------------------------
1847 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_compile ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext
1852 if { { ac_try="$ac_compile"
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_compile") 2>conftest.err
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_c_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest.$ac_objext; then :
1873 $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 as_fn_set_status $ac_retval
1881 } # ac_fn_c_try_compile
1883 # ac_fn_cxx_try_compile LINENO
1884 # ----------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_cxx_try_compile ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext
1890 if { { ac_try="$ac_compile"
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_compile") 2>conftest.err
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_cxx_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest.$ac_objext; then :
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1919 } # ac_fn_cxx_try_compile
1921 # ac_fn_c_try_cpp LINENO
1922 # ----------------------
1923 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if { { ac_try="$ac_cpp conftest.$ac_ext"
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } > conftest.i && {
1943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1944 test ! -s conftest.err
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 as_fn_set_status $ac_retval
1958 # ac_fn_c_try_link LINENO
1959 # -----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded.
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext conftest$ac_exeext
1965 if { { ac_try="$ac_link"
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>conftest.err
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest$ac_exeext && {
1984 test "$cross_compiling" = yes ||
1985 test -x conftest$ac_exeext
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1994 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996 # interfere with the next link command; also delete a directory that is
1997 # left behind by Apple's compiler. We do this before executing the actions.
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 as_fn_set_status $ac_retval
2002 } # ac_fn_c_try_link
2004 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists and can be compiled using the include files in
2007 # INCLUDES, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_compile ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014 $as_echo_n "(cached) " >&6
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2021 if ac_fn_c_try_compile "$LINENO"; then :
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 } # ac_fn_c_check_header_compile
2035 # ac_fn_c_try_run LINENO
2036 # ----------------------
2037 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2038 # that executables *can* be run.
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 if { { ac_try="$ac_link"
2044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2045 *) ac_try_echo=$ac_try;;
2047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2048 $as_echo "$ac_try_echo"; } >&5
2049 (eval "$ac_link") 2>&5
2051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2052 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2053 { { case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_try") 2>&5
2061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062 test $ac_status = 0; }; }; then :
2065 $as_echo "$as_me: program exited with status $ac_status" >&5
2066 $as_echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2069 ac_retval=$ac_status
2071 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 as_fn_set_status $ac_retval
2077 # ac_fn_c_check_func LINENO FUNC VAR
2078 # ----------------------------------
2079 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2080 ac_fn_c_check_func ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086 $as_echo_n "(cached) " >&6
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2090 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2092 #define $2 innocuous_$2
2094 /* System header to define __stub macros and hopefully few prototypes,
2095 which can conflict with char $2 (); below.
2096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2097 <limits.h> exists even on freestanding compilers. */
2100 # include <limits.h>
2102 # include <assert.h>
2107 /* Override any GCC internal prototype to avoid an error.
2108 Use char because int might match the return type of a GCC
2109 builtin and then its argument prototype would still apply. */
2114 /* The GNU C library defines this for functions which it implements
2115 to always fail with ENOSYS. Some functions are actually named
2116 something starting with __ and the normal name is an alias. */
2117 #if defined __stub_$2 || defined __stub___$2
2129 if ac_fn_c_try_link "$LINENO"; then :
2134 rm -f core conftest.err conftest.$ac_objext \
2135 conftest$ac_exeext conftest.$ac_ext
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139 $as_echo "$ac_res" >&6; }
2140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142 } # ac_fn_c_check_func
2144 # ac_fn_cxx_try_cpp LINENO
2145 # ------------------------
2146 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2147 ac_fn_cxx_try_cpp ()
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 if { { ac_try="$ac_cpp conftest.$ac_ext"
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2159 if test -s conftest.err; then
2160 grep -v '^ *+' conftest.err >conftest.er1
2161 cat conftest.er1 >&5
2162 mv -f conftest.er1 conftest.err
2164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2165 test $ac_status = 0; } > conftest.i && {
2166 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2167 test ! -s conftest.err
2171 $as_echo "$as_me: failed program was:" >&5
2172 sed 's/^/| /' conftest.$ac_ext >&5
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177 as_fn_set_status $ac_retval
2179 } # ac_fn_cxx_try_cpp
2181 # ac_fn_cxx_try_link LINENO
2182 # -------------------------
2183 # Try to link conftest.$ac_ext, and return whether this succeeded.
2184 ac_fn_cxx_try_link ()
2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187 rm -f conftest.$ac_objext conftest$ac_exeext
2188 if { { ac_try="$ac_link"
2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2194 $as_echo "$ac_try_echo"; } >&5
2195 (eval "$ac_link") 2>conftest.err
2197 if test -s conftest.err; then
2198 grep -v '^ *+' conftest.err >conftest.er1
2199 cat conftest.er1 >&5
2200 mv -f conftest.er1 conftest.err
2202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2203 test $ac_status = 0; } && {
2204 test -z "$ac_cxx_werror_flag" ||
2205 test ! -s conftest.err
2206 } && test -s conftest$ac_exeext && {
2207 test "$cross_compiling" = yes ||
2208 test -x conftest$ac_exeext
2212 $as_echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2217 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2218 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2219 # interfere with the next link command; also delete a directory that is
2220 # left behind by Apple's compiler. We do this before executing the actions.
2221 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223 as_fn_set_status $ac_retval
2225 } # ac_fn_cxx_try_link
2227 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2228 # ---------------------------------------------
2229 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2231 ac_fn_c_check_decl ()
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 as_decl_name=`echo $2|sed 's/ *(.*//'`
2235 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2237 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2238 if eval \${$3+:} false; then :
2239 $as_echo_n "(cached) " >&6
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2247 #ifndef $as_decl_name
2249 (void) $as_decl_use;
2251 (void) $as_decl_name;
2259 if ac_fn_c_try_compile "$LINENO"; then :
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 } # ac_fn_c_check_decl
2273 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2274 # -------------------------------------------
2275 # Tests whether TYPE exists after having included INCLUDES, setting cache
2276 # variable VAR accordingly.
2277 ac_fn_c_check_type ()
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2281 $as_echo_n "checking for $2... " >&6; }
2282 if eval \${$3+:} false; then :
2283 $as_echo_n "(cached) " >&6
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2298 if ac_fn_c_try_compile "$LINENO"; then :
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2311 if ac_fn_c_try_compile "$LINENO"; then :
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2322 $as_echo "$ac_res" >&6; }
2323 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2325 } # ac_fn_c_check_type
2327 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2328 # -------------------------------------------------------
2329 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2330 # the include files in INCLUDES and setting the cache variable VAR
2332 ac_fn_c_check_header_mongrel ()
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 if eval \${$3+:} false; then :
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2337 $as_echo_n "checking for $2... " >&6; }
2338 if eval \${$3+:} false; then :
2339 $as_echo_n "(cached) " >&6
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2345 # Is the header compilable?
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2347 $as_echo_n "checking $2 usability... " >&6; }
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2353 if ac_fn_c_try_compile "$LINENO"; then :
2354 ac_header_compiler=yes
2356 ac_header_compiler=no
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2360 $as_echo "$ac_header_compiler" >&6; }
2362 # Is the header present?
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2364 $as_echo_n "checking $2 presence... " >&6; }
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2369 if ac_fn_c_try_cpp "$LINENO"; then :
2370 ac_header_preproc=yes
2372 ac_header_preproc=no
2374 rm -f conftest.err conftest.i conftest.$ac_ext
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2376 $as_echo "$ac_header_preproc" >&6; }
2378 # So? What about this header?
2379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2382 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2384 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2388 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2390 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2392 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2394 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2396 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2400 $as_echo_n "checking for $2... " >&6; }
2401 if eval \${$3+:} false; then :
2402 $as_echo_n "(cached) " >&6
2404 eval "$3=\$ac_header_compiler"
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2408 $as_echo "$ac_res" >&6; }
2410 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2412 } # ac_fn_c_check_header_mongrel
2414 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2415 # --------------------------------------------
2416 # Tries to find the compile-time value of EXPR in a program that includes
2417 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2419 ac_fn_c_compute_int ()
2421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422 if test "$cross_compiling" = yes; then
2423 # Depending upon the size, compute the lo and hi bounds.
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2430 static int test_array [1 - 2 * !(($2) >= 0)];
2432 return test_array [0];
2438 if ac_fn_c_try_compile "$LINENO"; then :
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h. */
2447 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2449 return test_array [0];
2455 if ac_fn_c_try_compile "$LINENO"; then :
2456 ac_hi=$ac_mid; break
2458 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2459 if test $ac_lo -le $ac_mid; then
2463 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h. */
2474 static int test_array [1 - 2 * !(($2) < 0)];
2476 return test_array [0];
2482 if ac_fn_c_try_compile "$LINENO"; then :
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2491 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2493 return test_array [0];
2499 if ac_fn_c_try_compile "$LINENO"; then :
2500 ac_lo=$ac_mid; break
2502 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2503 if test $ac_mid -le $ac_hi; then
2507 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 # Binary search between lo and hi bounds.
2518 while test "x$ac_lo" != "x$ac_hi"; do
2519 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h. */
2526 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2528 return test_array [0];
2534 if ac_fn_c_try_compile "$LINENO"; then :
2537 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h. */
2549 static long int longval () { return $2; }
2550 static unsigned long int ulongval () { return $2; }
2557 FILE *f = fopen ("conftest.val", "w");
2562 long int i = longval ();
2565 fprintf (f, "%ld", i);
2569 unsigned long int i = ulongval ();
2572 fprintf (f, "%lu", i);
2574 /* Do not output a trailing newline, as this causes \r\n confusion
2575 on some platforms. */
2576 return ferror (f) || fclose (f) != 0;
2582 if ac_fn_c_try_run "$LINENO"; then :
2583 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2588 conftest.$ac_objext conftest.beam conftest.$ac_ext
2592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2593 as_fn_set_status $ac_retval
2595 } # ac_fn_c_compute_int
2597 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2598 # ----------------------------------------------------
2599 # Tries to find if the field MEMBER exists in type AGGR, after including
2600 # INCLUDES, setting cache variable VAR accordingly.
2601 ac_fn_c_check_member ()
2603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2605 $as_echo_n "checking for $2.$3... " >&6; }
2606 if eval \${$4+:} false; then :
2607 $as_echo_n "(cached) " >&6
2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h. */
2622 if ac_fn_c_try_compile "$LINENO"; then :
2625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626 /* end confdefs.h. */
2632 if (sizeof ac_aggr.$3)
2638 if ac_fn_c_try_compile "$LINENO"; then :
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2649 $as_echo "$ac_res" >&6; }
2650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2652 } # ac_fn_c_check_member
2654 # ac_fn_cxx_try_run LINENO
2655 # ------------------------
2656 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2657 # that executables *can* be run.
2658 ac_fn_cxx_try_run ()
2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661 if { { ac_try="$ac_link"
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2667 $as_echo "$ac_try_echo"; } >&5
2668 (eval "$ac_link") 2>&5
2670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2671 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2672 { { case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2677 $as_echo "$ac_try_echo"; } >&5
2678 (eval "$ac_try") 2>&5
2680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2681 test $ac_status = 0; }; }; then :
2684 $as_echo "$as_me: program exited with status $ac_status" >&5
2685 $as_echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2688 ac_retval=$ac_status
2690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2692 as_fn_set_status $ac_retval
2694 } # ac_fn_cxx_try_run
2696 # ac_fn_cxx_check_func LINENO FUNC VAR
2697 # ------------------------------------
2698 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2699 ac_fn_cxx_check_func ()
2701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2703 $as_echo_n "checking for $2... " >&6; }
2704 if eval \${$3+:} false; then :
2705 $as_echo_n "(cached) " >&6
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708 /* end confdefs.h. */
2709 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2711 #define $2 innocuous_$2
2713 /* System header to define __stub macros and hopefully few prototypes,
2714 which can conflict with char $2 (); below.
2715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2716 <limits.h> exists even on freestanding compilers. */
2719 # include <limits.h>
2721 # include <assert.h>
2726 /* Override any GCC internal prototype to avoid an error.
2727 Use char because int might match the return type of a GCC
2728 builtin and then its argument prototype would still apply. */
2733 /* The GNU C library defines this for functions which it implements
2734 to always fail with ENOSYS. Some functions are actually named
2735 something starting with __ and the normal name is an alias. */
2736 #if defined __stub_$2 || defined __stub___$2
2748 if ac_fn_cxx_try_link "$LINENO"; then :
2753 rm -f core conftest.err conftest.$ac_objext \
2754 conftest$ac_exeext conftest.$ac_ext
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758 $as_echo "$ac_res" >&6; }
2759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2761 } # ac_fn_cxx_check_func
2762 cat >config.log <<_ACEOF
2763 This file contains any messages produced by compilers while
2764 running configure, to aid debugging if configure makes a mistake.
2766 It was created by bacula $as_me 7.2.0, which was
2767 generated by GNU Autoconf 2.69. Invocation command line was
2779 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2780 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2781 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2782 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2783 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2785 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2786 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2788 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2789 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2790 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2791 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2792 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2793 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2794 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 test -z "$as_dir" && as_dir=.
2803 $as_echo "PATH: $as_dir"
2819 # Keep a trace of the command line.
2820 # Strip out --no-create and --no-recursion so they do not pile up.
2821 # Strip out --silent because we don't want to record it for future runs.
2822 # Also quote any args containing shell meta-characters.
2823 # Make two passes to allow for proper duplicate-argument suppression.
2827 ac_must_keep_next=false
2833 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2835 | -silent | --silent | --silen | --sile | --sil)
2838 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2841 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2843 as_fn_append ac_configure_args1 " '$ac_arg'"
2844 if test $ac_must_keep_next = true; then
2845 ac_must_keep_next=false # Got value, back to normal.
2848 *=* | --config-cache | -C | -disable-* | --disable-* \
2849 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2850 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2851 | -with-* | --with-* | -without-* | --without-* | --x)
2852 case "$ac_configure_args0 " in
2853 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2856 -* ) ac_must_keep_next=true ;;
2859 as_fn_append ac_configure_args " '$ac_arg'"
2864 { ac_configure_args0=; unset ac_configure_args0;}
2865 { ac_configure_args1=; unset ac_configure_args1;}
2867 # When interrupted or exit'd, cleanup temporary files, and complete
2868 # config.log. We remove comments because anyway the quotes in there
2869 # would cause problems or look ugly.
2870 # WARNING: Use '\'' to represent an apostrophe within the trap.
2871 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2872 trap 'exit_status=$?
2873 # Save into config.log some information that might help in debugging.
2877 $as_echo "## ---------------- ##
2878 ## Cache variables. ##
2879 ## ---------------- ##"
2881 # The following way of writing the cache mishandles newlines in values,
2883 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2884 eval ac_val=\$$ac_var
2888 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2889 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2892 _ | IFS | as_nl) ;; #(
2893 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2894 *) { eval $ac_var=; unset $ac_var;} ;;
2899 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2900 *${as_nl}ac_space=\ *)
2902 "s/'\''/'\''\\\\'\'''\''/g;
2903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2906 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2913 $as_echo "## ----------------- ##
2914 ## Output variables. ##
2915 ## ----------------- ##"
2917 for ac_var in $ac_subst_vars
2919 eval ac_val=\$$ac_var
2921 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2923 $as_echo "$ac_var='\''$ac_val'\''"
2927 if test -n "$ac_subst_files"; then
2928 $as_echo "## ------------------- ##
2929 ## File substitutions. ##
2930 ## ------------------- ##"
2932 for ac_var in $ac_subst_files
2934 eval ac_val=\$$ac_var
2936 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2938 $as_echo "$ac_var='\''$ac_val'\''"
2943 if test -s confdefs.h; then
2944 $as_echo "## ----------- ##
2951 test "$ac_signal" != 0 &&
2952 $as_echo "$as_me: caught signal $ac_signal"
2953 $as_echo "$as_me: exit $exit_status"
2955 rm -f core *.core core.conftest.* &&
2956 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2959 for ac_signal in 1 2 13 15; do
2960 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2964 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2965 rm -f -r conftest* confdefs.h
2967 $as_echo "/* confdefs.h */" > confdefs.h
2969 # Predefined preprocessor variables.
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_NAME "$PACKAGE_NAME"
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2983 cat >>confdefs.h <<_ACEOF
2984 #define PACKAGE_STRING "$PACKAGE_STRING"
2987 cat >>confdefs.h <<_ACEOF
2988 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2991 cat >>confdefs.h <<_ACEOF
2992 #define PACKAGE_URL "$PACKAGE_URL"
2996 # Let the site file select an alternate cache file if it wants to.
2997 # Prefer an explicitly selected file to automatically selected ones.
3000 if test -n "$CONFIG_SITE"; then
3001 # We do not want a PATH search for config.site.
3002 case $CONFIG_SITE in #((
3003 -*) ac_site_file1=./$CONFIG_SITE;;
3004 */*) ac_site_file1=$CONFIG_SITE;;
3005 *) ac_site_file1=./$CONFIG_SITE;;
3007 elif test "x$prefix" != xNONE; then
3008 ac_site_file1=$prefix/share/config.site
3009 ac_site_file2=$prefix/etc/config.site
3011 ac_site_file1=$ac_default_prefix/share/config.site
3012 ac_site_file2=$ac_default_prefix/etc/config.site
3014 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3016 test "x$ac_site_file" = xNONE && continue
3017 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3019 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3020 sed 's/^/| /' "$ac_site_file" >&5
3022 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 as_fn_error $? "failed to load site script $ac_site_file
3025 See \`config.log' for more details" "$LINENO" 5; }
3029 if test -r "$cache_file"; then
3030 # Some versions of bash will fail to source /dev/null (special files
3031 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3032 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3034 $as_echo "$as_me: loading cache $cache_file" >&6;}
3036 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3037 *) . "./$cache_file";;
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3042 $as_echo "$as_me: creating cache $cache_file" >&6;}
3046 as_fn_append ac_header_list " stdlib.h"
3047 as_fn_append ac_header_list " unistd.h"
3048 as_fn_append ac_header_list " sys/param.h"
3049 # Check that the precious variables saved in the cache have kept the same
3051 ac_cache_corrupted=false
3052 for ac_var in $ac_precious_vars; do
3053 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3054 eval ac_new_set=\$ac_env_${ac_var}_set
3055 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3056 eval ac_new_val=\$ac_env_${ac_var}_value
3057 case $ac_old_set,$ac_new_set in
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3060 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3061 ac_cache_corrupted=: ;;
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3064 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3065 ac_cache_corrupted=: ;;
3068 if test "x$ac_old_val" != "x$ac_new_val"; then
3069 # differences in whitespace do not lead to failure.
3070 ac_old_val_w=`echo x $ac_old_val`
3071 ac_new_val_w=`echo x $ac_new_val`
3072 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3074 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3075 ac_cache_corrupted=:
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3078 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3079 eval $ac_var=\$ac_old_val
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3082 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3084 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3087 # Pass precious variables to config.status.
3088 if test "$ac_new_set" = set; then
3090 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3091 *) ac_arg=$ac_var=$ac_new_val ;;
3093 case " $ac_configure_args " in
3094 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3095 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3099 if $ac_cache_corrupted; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3103 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3104 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3106 ## -------------------- ##
3107 ## Main body of script. ##
3108 ## -------------------- ##
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3127 if test -f "$ac_dir/install-sh"; then
3129 ac_install_sh="$ac_aux_dir/install-sh -c"
3131 elif test -f "$ac_dir/install.sh"; then
3133 ac_install_sh="$ac_aux_dir/install.sh -c"
3135 elif test -f "$ac_dir/shtool"; then
3137 ac_install_sh="$ac_aux_dir/shtool install -c"
3141 if test -z "$ac_aux_dir"; then
3142 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3145 # These three variables are undocumented and unsupported,
3146 # and are intended to be withdrawn in a future Autoconf release.
3147 # They can cause serious problems if a builder's source tree is in a directory
3148 # whose full name contains unusual characters.
3149 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3150 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3151 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3154 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_path_TRUEPRG+:} false; then :
3164 $as_echo_n "(cached) " >&6
3168 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 TRUEPRG=$ac_cv_path_TRUEPRG
3190 if test -n "$TRUEPRG"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3192 $as_echo "$TRUEPRG" >&6; }
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3199 test -n "$TRUEPRG" && break
3201 test -n "$TRUEPRG" || TRUEPRG=":"
3203 for ac_prog in false
3205 # Extract the first word of "$ac_prog", so it can be a program name with args.
3206 set dummy $ac_prog; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if ${ac_cv_path_FALSEPRG+:} false; then :
3210 $as_echo_n "(cached) " >&6
3214 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 FALSEPRG=$ac_cv_path_FALSEPRG
3236 if test -n "$FALSEPRG"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3238 $as_echo "$FALSEPRG" >&6; }
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3245 test -n "$FALSEPRG" && break
3247 test -n "$FALSEPRG" || FALSEPRG=":"
3252 if test "x$BACULA" != x; then
3253 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3255 BACULA=${BACULA:-Bacula}
3256 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3257 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3258 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3259 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3260 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3261 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3262 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3263 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3265 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3266 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3267 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3269 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3270 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3273 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3274 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3276 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3277 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3280 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3282 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3286 PFILES="platforms/Makefile"
3288 echo "configuring for ${BACULA} $VERSION ($DATE)"
3293 ac_cpp='$CPP $CPPFLAGS'
3294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297 if test -n "$ac_tool_prefix"; then
3298 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3299 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_prog_CC+:} false; then :
3303 $as_echo_n "(cached) " >&6
3305 if test -n "$CC"; then
3306 ac_cv_prog_CC="$CC" # Let the user override the test.
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 if test -n "$CC"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328 $as_echo "$CC" >&6; }
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3336 if test -z "$ac_cv_prog_CC"; then
3338 # Extract the first word of "gcc", so it can be a program name with args.
3339 set dummy gcc; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3343 $as_echo_n "(cached) " >&6
3345 if test -n "$ac_ct_CC"; then
3346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_ac_ct_CC="gcc"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3366 if test -n "$ac_ct_CC"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3368 $as_echo "$ac_ct_CC" >&6; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3374 if test "x$ac_ct_CC" = x; then
3377 case $cross_compiling:$ac_tool_warned in
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3381 ac_tool_warned=yes ;;
3389 if test -z "$CC"; then
3390 if test -n "$ac_tool_prefix"; then
3391 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3392 set dummy ${ac_tool_prefix}cc; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_CC+:} false; then :
3396 $as_echo_n "(cached) " >&6
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408 ac_cv_prog_CC="${ac_tool_prefix}cc"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 if test -n "$CC"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421 $as_echo "$CC" >&6; }
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3430 if test -z "$CC"; then
3431 # Extract the first word of "cc", so it can be a program name with args.
3432 set dummy cc; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if ${ac_cv_prog_CC+:} false; then :
3436 $as_echo_n "(cached) " >&6
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3450 ac_prog_rejected=yes
3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 if test $ac_prog_rejected = yes; then
3462 # We found a bogon in the path, so make sure we never use it.
3463 set dummy $ac_cv_prog_CC
3465 if test $# != 0; then
3466 # We chose a different compiler from the bogus one.
3467 # However, it has the same basename, so the bogon will be chosen
3468 # first if we set CC to just the basename; use the full file name.
3470 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3476 if test -n "$CC"; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3478 $as_echo "$CC" >&6; }
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3486 if test -z "$CC"; then
3487 if test -n "$ac_tool_prefix"; then
3488 for ac_prog in cl.exe
3490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if ${ac_cv_prog_CC+:} false; then :
3495 $as_echo_n "(cached) " >&6
3497 if test -n "$CC"; then
3498 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 if test -n "$CC"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3520 $as_echo "$CC" >&6; }
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3527 test -n "$CC" && break
3530 if test -z "$CC"; then
3532 for ac_prog in cl.exe
3534 # Extract the first word of "$ac_prog", so it can be a program name with args.
3535 set dummy $ac_prog; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3539 $as_echo_n "(cached) " >&6
3541 if test -n "$ac_ct_CC"; then
3542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_ac_ct_CC="$ac_prog"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3571 test -n "$ac_ct_CC" && break
3574 if test "x$ac_ct_CC" = x; then
3577 case $cross_compiling:$ac_tool_warned in
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned=yes ;;
3590 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error $? "no acceptable C compiler found in \$PATH
3593 See \`config.log' for more details" "$LINENO" 5; }
3595 # Provide some information about the compiler.
3596 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3599 for ac_option in --version -v -V -qversion; do
3600 { { ac_try="$ac_compiler $ac_option >&5"
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3609 if test -s conftest.err; then
3611 ... rest of stderr output deleted ...
3612 10q' conftest.err >conftest.er1
3613 cat conftest.er1 >&5
3615 rm -f conftest.er1 conftest.err
3616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617 test $ac_status = 0; }
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3631 ac_clean_files_save=$ac_clean_files
3632 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3633 # Try to create an executable without -o first, disregard a.out.
3634 # It will help us diagnose broken compilers, and finding out an intuition
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3637 $as_echo_n "checking whether the C compiler works... " >&6; }
3638 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3640 # The possible output files:
3641 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3644 for ac_file in $ac_files
3647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3648 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3653 if { { ac_try="$ac_link_default"
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_link_default") 2>&5
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }; then :
3664 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3665 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3666 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3667 # so that the user can short-circuit this test for compilers unknown to
3669 for ac_file in $ac_files ''
3671 test -f "$ac_file" || continue
3673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3676 # We found the default executable, but exeext='' is most
3680 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3682 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3684 # We set ac_cv_exeext here because the later test for it is not
3685 # safe: cross compilers may not add the suffix if given an `-o'
3686 # argument, so we may need to know it at that point already.
3687 # Even if this section looks crufty: it has the advantage of
3694 test "$ac_cv_exeext" = no && ac_cv_exeext=
3699 if test -z "$ac_file"; then :
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3702 $as_echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 as_fn_error 77 "C compiler cannot create executables
3708 See \`config.log' for more details" "$LINENO" 5; }
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3711 $as_echo "yes" >&6; }
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3714 $as_echo_n "checking for C compiler default output file name... " >&6; }
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3716 $as_echo "$ac_file" >&6; }
3717 ac_exeext=$ac_cv_exeext
3719 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3720 ac_clean_files=$ac_clean_files_save
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3722 $as_echo_n "checking for suffix of executables... " >&6; }
3723 if { { ac_try="$ac_link"
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730 (eval "$ac_link") 2>&5
3732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733 test $ac_status = 0; }; then :
3734 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3735 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3736 # work properly (i.e., refer to `conftest.exe'), while it won't with
3738 for ac_file in conftest.exe conftest conftest.*; do
3739 test -f "$ac_file" || continue
3741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3751 See \`config.log' for more details" "$LINENO" 5; }
3753 rm -f conftest conftest$ac_cv_exeext
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3755 $as_echo "$ac_cv_exeext" >&6; }
3757 rm -f conftest.$ac_ext
3758 EXEEXT=$ac_cv_exeext
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3766 FILE *f = fopen ("conftest.out", "w");
3767 return ferror (f) || fclose (f) != 0;
3773 ac_clean_files="$ac_clean_files conftest.out"
3774 # Check that the compiler produces executables we can run. If not, either
3775 # the compiler is broken, or we cross compile.
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3777 $as_echo_n "checking whether we are cross compiling... " >&6; }
3778 if test "$cross_compiling" != yes; then
3779 { { ac_try="$ac_link"
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_link") 2>&5
3788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; }
3790 if { ac_try='./conftest$ac_cv_exeext'
3791 { { case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_try") 2>&5
3799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800 test $ac_status = 0; }; }; then
3803 if test "$cross_compiling" = maybe; then
3806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808 as_fn_error $? "cannot run C compiled programs.
3809 If you meant to cross compile, use \`--host'.
3810 See \`config.log' for more details" "$LINENO" 5; }
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3815 $as_echo "$cross_compiling" >&6; }
3817 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3818 ac_clean_files=$ac_clean_files_save
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3820 $as_echo_n "checking for suffix of object files... " >&6; }
3821 if ${ac_cv_objext+:} false; then :
3822 $as_echo_n "(cached) " >&6
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3835 rm -f conftest.o conftest.obj
3836 if { { ac_try="$ac_compile"
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842 $as_echo "$ac_try_echo"; } >&5
3843 (eval "$ac_compile") 2>&5
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }; then :
3847 for ac_file in conftest.o conftest.obj conftest.*; do
3848 test -f "$ac_file" || continue;
3850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3851 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3856 $as_echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 as_fn_error $? "cannot compute suffix of object files: cannot compile
3862 See \`config.log' for more details" "$LINENO" 5; }
3864 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3867 $as_echo "$ac_cv_objext" >&6; }
3868 OBJEXT=$ac_cv_objext
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3871 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3872 if ${ac_cv_c_compiler_gnu+:} false; then :
3873 $as_echo_n "(cached) " >&6
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3889 if ac_fn_c_try_compile "$LINENO"; then :
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3899 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3900 if test $ac_compiler_gnu = yes; then
3905 ac_test_CFLAGS=${CFLAGS+set}
3906 ac_save_CFLAGS=$CFLAGS
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3908 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3909 if ${ac_cv_prog_cc_g+:} false; then :
3910 $as_echo_n "(cached) " >&6
3912 ac_save_c_werror_flag=$ac_c_werror_flag
3913 ac_c_werror_flag=yes
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3927 if ac_fn_c_try_compile "$LINENO"; then :
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3942 if ac_fn_c_try_compile "$LINENO"; then :
3945 ac_c_werror_flag=$ac_save_c_werror_flag
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3958 if ac_fn_c_try_compile "$LINENO"; then :
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 ac_c_werror_flag=$ac_save_c_werror_flag
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3969 $as_echo "$ac_cv_prog_cc_g" >&6; }
3970 if test "$ac_test_CFLAGS" = set; then
3971 CFLAGS=$ac_save_CFLAGS
3972 elif test $ac_cv_prog_cc_g = yes; then
3973 if test "$GCC" = yes; then
3979 if test "$GCC" = yes; then
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3986 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3987 if ${ac_cv_prog_cc_c89+:} false; then :
3988 $as_echo_n "(cached) " >&6
3990 ac_cv_prog_cc_c89=no
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3997 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3998 struct buf { int x; };
3999 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4000 static char *e (p, i)
4006 static char *f (char * (*g) (char **, int), char **p, ...)
4011 s = g (p, va_arg (v,int));
4016 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4017 function prototypes and stuff, but not '\xHH' hex character constants.
4018 These don't provoke an error unfortunately, instead are silently treated
4019 as 'x'. The following induces an error, until -std is added to get
4020 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4021 array size at least. It's necessary to write '\x00'==0 to get something
4022 that's true only with -std. */
4023 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4025 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4026 inside strings and character constants. */
4028 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4030 int test (int i, double x);
4031 struct s1 {int (*f) (int a);};
4032 struct s2 {int (*f) (double a);};
4033 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4039 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4044 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4045 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4047 CC="$ac_save_CC $ac_arg"
4048 if ac_fn_c_try_compile "$LINENO"; then :
4049 ac_cv_prog_cc_c89=$ac_arg
4051 rm -f core conftest.err conftest.$ac_objext
4052 test "x$ac_cv_prog_cc_c89" != "xno" && break
4054 rm -f conftest.$ac_ext
4059 case "x$ac_cv_prog_cc_c89" in
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4062 $as_echo "none needed" >&6; } ;;
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4065 $as_echo "unsupported" >&6; } ;;
4067 CC="$CC $ac_cv_prog_cc_c89"
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4069 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4071 if test "x$ac_cv_prog_cc_c89" != xno; then :
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082 ac_cpp='$CXXCPP $CPPFLAGS'
4083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4086 if test -z "$CXX"; then
4087 if test -n "$CCC"; then
4090 if test -n "$ac_tool_prefix"; then
4091 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if ${ac_cv_prog_CXX+:} false; then :
4098 $as_echo_n "(cached) " >&6
4100 if test -n "$CXX"; then
4101 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 test -z "$as_dir" && as_dir=.
4108 for ac_exec_ext in '' $ac_executable_extensions; do
4109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 if test -n "$CXX"; then
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4123 $as_echo "$CXX" >&6; }
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 $as_echo "no" >&6; }
4130 test -n "$CXX" && break
4133 if test -z "$CXX"; then
4135 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4137 # Extract the first word of "$ac_prog", so it can be a program name with args.
4138 set dummy $ac_prog; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4142 $as_echo_n "(cached) " >&6
4144 if test -n "$ac_ct_CXX"; then
4145 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4154 ac_cv_prog_ac_ct_CXX="$ac_prog"
4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4165 if test -n "$ac_ct_CXX"; then
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4167 $as_echo "$ac_ct_CXX" >&6; }
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4174 test -n "$ac_ct_CXX" && break
4177 if test "x$ac_ct_CXX" = x; then
4180 case $cross_compiling:$ac_tool_warned in
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4184 ac_tool_warned=yes ;;
4192 # Provide some information about the compiler.
4193 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4196 for ac_option in --version -v -V -qversion; do
4197 { { ac_try="$ac_compiler $ac_option >&5"
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203 $as_echo "$ac_try_echo"; } >&5
4204 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4206 if test -s conftest.err; then
4208 ... rest of stderr output deleted ...
4209 10q' conftest.err >conftest.er1
4210 cat conftest.er1 >&5
4212 rm -f conftest.er1 conftest.err
4213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4214 test $ac_status = 0; }
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4218 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4219 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4220 $as_echo_n "(cached) " >&6
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4236 if ac_fn_cxx_try_compile "$LINENO"; then :
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4246 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4247 if test $ac_compiler_gnu = yes; then
4252 ac_test_CXXFLAGS=${CXXFLAGS+set}
4253 ac_save_CXXFLAGS=$CXXFLAGS
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4255 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4256 if ${ac_cv_prog_cxx_g+:} false; then :
4257 $as_echo_n "(cached) " >&6
4259 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4260 ac_cxx_werror_flag=yes
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4274 if ac_fn_cxx_try_compile "$LINENO"; then :
4275 ac_cv_prog_cxx_g=yes
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4289 if ac_fn_cxx_try_compile "$LINENO"; then :
4292 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4305 if ac_fn_cxx_try_compile "$LINENO"; then :
4306 ac_cv_prog_cxx_g=yes
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4316 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4317 if test "$ac_test_CXXFLAGS" = set; then
4318 CXXFLAGS=$ac_save_CXXFLAGS
4319 elif test $ac_cv_prog_cxx_g = yes; then
4320 if test "$GXX" = yes; then
4326 if test "$GXX" = yes; then
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338 if test "x$CC" != xcc; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4340 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4343 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4345 set dummy $CC; ac_cc=`$as_echo "$2" |
4346 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4347 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4348 $as_echo_n "(cached) " >&6
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4361 # Make sure it works both with $CC and with simple cc.
4362 # We do the test twice because some compilers refuse to overwrite an
4363 # existing .o file with -o, though they will create one.
4364 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4366 if { { case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4371 $as_echo "$ac_try_echo"; } >&5
4372 (eval "$ac_try") 2>&5
4374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4375 test $ac_status = 0; } &&
4376 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4381 $as_echo "$ac_try_echo"; } >&5
4382 (eval "$ac_try") 2>&5
4384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4385 test $ac_status = 0; };
4387 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4388 if test "x$CC" != xcc; then
4389 # Test first that cc exists at all.
4390 if { ac_try='cc -c conftest.$ac_ext >&5'
4391 { { case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 $as_echo "$ac_try_echo"; } >&5
4397 (eval "$ac_try") 2>&5
4399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400 test $ac_status = 0; }; }; then
4401 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4403 if { { case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408 $as_echo "$ac_try_echo"; } >&5
4409 (eval "$ac_try") 2>&5
4411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412 test $ac_status = 0; } &&
4413 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 $as_echo "$ac_try_echo"; } >&5
4419 (eval "$ac_try") 2>&5
4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; };
4427 # cc exists but doesn't like -o.
4428 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4433 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4435 rm -f core conftest*
4438 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4440 $as_echo "yes" >&6; }
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443 $as_echo "no" >&6; }
4445 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4450 ac_cpp='$CPP $CPPFLAGS'
4451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4455 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4456 # On Suns, sometimes $CPP names a directory.
4457 if test -n "$CPP" && test -d "$CPP"; then
4460 if test -z "$CPP"; then
4461 if ${ac_cv_prog_CPP+:} false; then :
4462 $as_echo_n "(cached) " >&6
4464 # Double quotes because CPP needs to be expanded
4465 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4468 for ac_c_preproc_warn_flag in '' yes
4470 # Use a header file that comes with gcc, so configuring glibc
4471 # with a fresh cross-compiler works.
4472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4473 # <limits.h> exists even on freestanding compilers.
4474 # On the NeXT, cc -E runs the code through the compiler's parser,
4475 # not just through cpp. "Syntax error" is here to catch this case.
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4479 # include <limits.h>
4481 # include <assert.h>
4485 if ac_fn_c_try_cpp "$LINENO"; then :
4488 # Broken: fails on valid input.
4491 rm -f conftest.err conftest.i conftest.$ac_ext
4493 # OK, works on sane cases. Now check whether nonexistent headers
4494 # can be detected and how.
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497 #include <ac_nonexistent.h>
4499 if ac_fn_c_try_cpp "$LINENO"; then :
4500 # Broken: success on invalid input.
4503 # Passes both tests.
4507 rm -f conftest.err conftest.i conftest.$ac_ext
4510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4511 rm -f conftest.i conftest.err conftest.$ac_ext
4512 if $ac_preproc_ok; then :
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4525 $as_echo "$CPP" >&6; }
4527 for ac_c_preproc_warn_flag in '' yes
4529 # Use a header file that comes with gcc, so configuring glibc
4530 # with a fresh cross-compiler works.
4531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4532 # <limits.h> exists even on freestanding compilers.
4533 # On the NeXT, cc -E runs the code through the compiler's parser,
4534 # not just through cpp. "Syntax error" is here to catch this case.
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4538 # include <limits.h>
4540 # include <assert.h>
4544 if ac_fn_c_try_cpp "$LINENO"; then :
4547 # Broken: fails on valid input.
4550 rm -f conftest.err conftest.i conftest.$ac_ext
4552 # OK, works on sane cases. Now check whether nonexistent headers
4553 # can be detected and how.
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556 #include <ac_nonexistent.h>
4558 if ac_fn_c_try_cpp "$LINENO"; then :
4559 # Broken: success on invalid input.
4562 # Passes both tests.
4566 rm -f conftest.err conftest.i conftest.$ac_ext
4569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4570 rm -f conftest.i conftest.err conftest.$ac_ext
4571 if $ac_preproc_ok; then :
4574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4576 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4577 See \`config.log' for more details" "$LINENO" 5; }
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4588 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4589 if ${ac_cv_path_GREP+:} false; then :
4590 $as_echo_n "(cached) " >&6
4592 if test -z "$GREP"; then
4593 ac_path_GREP_found=false
4594 # Loop through the user's path and test for each of PROGNAME-LIST
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4599 test -z "$as_dir" && as_dir=.
4600 for ac_prog in grep ggrep; do
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4603 as_fn_executable_p "$ac_path_GREP" || continue
4604 # Check for GNU ac_path_GREP and select it if it is found.
4605 # Check for GNU $ac_path_GREP
4606 case `"$ac_path_GREP" --version 2>&1` in
4608 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4611 $as_echo_n 0123456789 >"conftest.in"
4614 cat "conftest.in" "conftest.in" >"conftest.tmp"
4615 mv "conftest.tmp" "conftest.in"
4616 cp "conftest.in" "conftest.nl"
4617 $as_echo 'GREP' >> "conftest.nl"
4618 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4620 as_fn_arith $ac_count + 1 && ac_count=$as_val
4621 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4622 # Best one so far, save it but keep looking for a better one
4623 ac_cv_path_GREP="$ac_path_GREP"
4624 ac_path_GREP_max=$ac_count
4626 # 10*(2^10) chars as input seems more than enough
4627 test $ac_count -gt 10 && break
4629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4632 $ac_path_GREP_found && break 3
4637 if test -z "$ac_cv_path_GREP"; then
4638 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4641 ac_cv_path_GREP=$GREP
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4646 $as_echo "$ac_cv_path_GREP" >&6; }
4647 GREP="$ac_cv_path_GREP"
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4651 $as_echo_n "checking for egrep... " >&6; }
4652 if ${ac_cv_path_EGREP+:} false; then :
4653 $as_echo_n "(cached) " >&6
4655 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4656 then ac_cv_path_EGREP="$GREP -E"
4658 if test -z "$EGREP"; then
4659 ac_path_EGREP_found=false
4660 # Loop through the user's path and test for each of PROGNAME-LIST
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4665 test -z "$as_dir" && as_dir=.
4666 for ac_prog in egrep; do
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4669 as_fn_executable_p "$ac_path_EGREP" || continue
4670 # Check for GNU ac_path_EGREP and select it if it is found.
4671 # Check for GNU $ac_path_EGREP
4672 case `"$ac_path_EGREP" --version 2>&1` in
4674 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4677 $as_echo_n 0123456789 >"conftest.in"
4680 cat "conftest.in" "conftest.in" >"conftest.tmp"
4681 mv "conftest.tmp" "conftest.in"
4682 cp "conftest.in" "conftest.nl"
4683 $as_echo 'EGREP' >> "conftest.nl"
4684 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4686 as_fn_arith $ac_count + 1 && ac_count=$as_val
4687 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4688 # Best one so far, save it but keep looking for a better one
4689 ac_cv_path_EGREP="$ac_path_EGREP"
4690 ac_path_EGREP_max=$ac_count
4692 # 10*(2^10) chars as input seems more than enough
4693 test $ac_count -gt 10 && break
4695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4698 $ac_path_EGREP_found && break 3
4703 if test -z "$ac_cv_path_EGREP"; then
4704 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4707 ac_cv_path_EGREP=$EGREP
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4713 $as_echo "$ac_cv_path_EGREP" >&6; }
4714 EGREP="$ac_cv_path_EGREP"
4717 if test $ac_cv_c_compiler_gnu = yes; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4719 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4720 if ${ac_cv_prog_gcc_traditional+:} false; then :
4721 $as_echo_n "(cached) " >&6
4723 ac_pattern="Autoconf.*'x'"
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4730 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4731 ac_cv_prog_gcc_traditional=yes
4733 ac_cv_prog_gcc_traditional=no
4738 if test $ac_cv_prog_gcc_traditional = no; then
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4745 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4746 ac_cv_prog_gcc_traditional=yes
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4753 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4754 if test $ac_cv_prog_gcc_traditional = yes; then
4755 CC="$CC -traditional"
4759 BASECC=`basename $CC`
4761 if test "x$BASECC" = xgcc; then
4762 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4766 # Extract the first word of "$CXX", so it can be a program name with args.
4767 set dummy $CXX; ac_word=$2
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4769 $as_echo_n "checking for $ac_word... " >&6; }
4770 if ${ac_cv_path_CXX+:} false; then :
4771 $as_echo_n "(cached) " >&6
4775 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4785 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4798 if test -n "$CXX"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4800 $as_echo "$CXX" >&6; }
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4807 if test ! -e $CXX; then
4808 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4811 # Find a good install program. We prefer a C program (faster),
4812 # so one script is as good as another. But avoid the broken or
4813 # incompatible versions:
4814 # SysV /etc/install, /usr/sbin/install
4815 # SunOS /usr/etc/install
4816 # IRIX /sbin/install
4818 # AmigaOS /C/install, which installs bootblocks on floppy discs
4819 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4820 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4821 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4822 # OS/2's system install, which has a completely different semantic
4823 # ./install, which can be erroneously created by make from ./install.sh.
4824 # Reject install programs that cannot install multiple files.
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4826 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4827 if test -z "$INSTALL"; then
4828 if ${ac_cv_path_install+:} false; then :
4829 $as_echo_n "(cached) " >&6
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 test -z "$as_dir" && as_dir=.
4836 # Account for people who put trailing slashes in PATH elements.
4837 case $as_dir/ in #((
4838 ./ | .// | /[cC]/* | \
4839 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4840 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4843 # OSF1 and SCO ODT 3.0 have their own names for install.
4844 # Don't use installbsd from OSF since it installs stuff as root
4846 for ac_prog in ginstall scoinst install; do
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4849 if test $ac_prog = install &&
4850 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4851 # AIX install. It has an incompatible calling convention.
4853 elif test $ac_prog = install &&
4854 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4855 # program-specific install script used by HP pwplus--don't use.
4858 rm -rf conftest.one conftest.two conftest.dir
4859 echo one > conftest.one
4860 echo two > conftest.two
4862 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4863 test -s conftest.one && test -s conftest.two &&
4864 test -s conftest.dir/conftest.one &&
4865 test -s conftest.dir/conftest.two
4867 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4880 rm -rf conftest.one conftest.two conftest.dir
4883 if test "${ac_cv_path_install+set}" = set; then
4884 INSTALL=$ac_cv_path_install
4886 # As a last resort, use the slow shell script. Don't cache a
4887 # value for INSTALL within a source directory, because that will
4888 # break other packages using the cache if that directory is
4889 # removed, or if the value is a relative name.
4890 INSTALL=$ac_install_sh
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4894 $as_echo "$INSTALL" >&6; }
4896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4897 # It thinks the first close brace ends the variable substitution.
4898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4904 # Extract the first word of "mv", so it can be a program name with args.
4905 set dummy mv; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if ${ac_cv_path_MV+:} false; then :
4909 $as_echo_n "(cached) " >&6
4913 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4923 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4936 if test -n "$MV"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4938 $as_echo "$MV" >&6; }
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4945 # Extract the first word of "rm", so it can be a program name with args.
4946 set dummy rm; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_path_REMOVE+:} false; then :
4950 $as_echo_n "(cached) " >&6
4954 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4976 REMOVE=$ac_cv_path_REMOVE
4977 if test -n "$REMOVE"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4979 $as_echo "$REMOVE" >&6; }
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4986 # Extract the first word of "cp", so it can be a program name with args.
4987 set dummy cp; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_path_CP+:} false; then :
4991 $as_echo_n "(cached) " >&6
4995 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5005 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5018 if test -n "$CP"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5020 $as_echo "$CP" >&6; }
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5027 # Extract the first word of "sed", so it can be a program name with args.
5028 set dummy sed; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_path_SED+:} false; then :
5032 $as_echo_n "(cached) " >&6
5036 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5046 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5059 if test -n "$SED"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5061 $as_echo "$SED" >&6; }
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5068 # Extract the first word of "echo", so it can be a program name with args.
5069 set dummy echo; ac_word=$2
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071 $as_echo_n "checking for $ac_word... " >&6; }
5072 if ${ac_cv_path_ECHO+:} false; then :
5073 $as_echo_n "(cached) " >&6
5077 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5087 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5099 ECHO=$ac_cv_path_ECHO
5100 if test -n "$ECHO"; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5102 $as_echo "$ECHO" >&6; }
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5109 # Extract the first word of "cmp", so it can be a program name with args.
5110 set dummy cmp; ac_word=$2
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if ${ac_cv_path_CMP+:} false; then :
5114 $as_echo_n "(cached) " >&6
5118 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5141 if test -n "$CMP"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5143 $as_echo "$CMP" >&6; }
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5150 # Extract the first word of "tbl", so it can be a program name with args.
5151 set dummy tbl; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_path_TBL+:} false; then :
5155 $as_echo_n "(cached) " >&6
5159 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5182 if test -n "$TBL"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5184 $as_echo "$TBL" >&6; }
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5191 # Extract the first word of "ar", so it can be a program name with args.
5192 set dummy ar; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_path_AR+:} false; then :
5196 $as_echo_n "(cached) " >&6
5200 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5223 if test -n "$AR"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5225 $as_echo "$AR" >&6; }
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5232 # Extract the first word of "openssl", so it can be a program name with args.
5233 set dummy openssl; ac_word=$2
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235 $as_echo_n "checking for $ac_word... " >&6; }
5236 if ${ac_cv_path_OPENSSL+:} false; then :
5237 $as_echo_n "(cached) " >&6
5241 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5263 OPENSSL=$ac_cv_path_OPENSSL
5264 if test -n "$OPENSSL"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5266 $as_echo "$OPENSSL" >&6; }
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5273 # Extract the first word of "mtx", so it can be a program name with args.
5274 set dummy mtx; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_path_MTX+:} false; then :
5278 $as_echo_n "(cached) " >&6
5282 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5305 if test -n "$MTX"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5307 $as_echo "$MTX" >&6; }
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5314 # Extract the first word of "dd", so it can be a program name with args.
5315 set dummy dd; ac_word=$2
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 $as_echo_n "checking for $ac_word... " >&6; }
5318 if ${ac_cv_path_DD+:} false; then :
5319 $as_echo_n "(cached) " >&6
5323 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5341 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5346 if test -n "$DD"; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5348 $as_echo "$DD" >&6; }
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5355 # Extract the first word of "mkisofs", so it can be a program name with args.
5356 set dummy mkisofs; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if ${ac_cv_path_MKISOFS+:} false; then :
5360 $as_echo_n "(cached) " >&6
5364 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5386 MKISOFS=$ac_cv_path_MKISOFS
5387 if test -n "$MKISOFS"; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5389 $as_echo "$MKISOFS" >&6; }
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5396 # Extract the first word of "python", so it can be a program name with args.
5397 set dummy python; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_path_PYTHON+:} false; then :
5401 $as_echo_n "(cached) " >&6
5405 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5415 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5427 PYTHON=$ac_cv_path_PYTHON
5428 if test -n "$PYTHON"; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5430 $as_echo "$PYTHON" >&6; }
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 $as_echo "no" >&6; }
5437 # Extract the first word of "growisofs", so it can be a program name with args.
5438 set dummy growisofs; ac_word=$2
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if ${ac_cv_path_GROWISOFS+:} false; then :
5442 $as_echo_n "(cached) " >&6
5446 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 test -z "$as_dir" && as_dir=.
5454 for ac_exec_ext in '' $ac_executable_extensions; do
5455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5456 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5468 GROWISOFS=$ac_cv_path_GROWISOFS
5469 if test -n "$GROWISOFS"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5471 $as_echo "$GROWISOFS" >&6; }
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5478 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5479 set dummy dvd+rw-mediainfo; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5483 $as_echo_n "(cached) " >&6
5485 case $DVDRWMEDIAINFO in
5487 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5497 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5509 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5510 if test -n "$DVDRWMEDIAINFO"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5512 $as_echo "$DVDRWMEDIAINFO" >&6; }
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5519 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5520 set dummy dvd+rw-format; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5524 $as_echo_n "(cached) " >&6
5526 case $DVDRWFORMAT in
5528 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5550 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5551 if test -n "$DVDRWFORMAT"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5553 $as_echo "$DVDRWFORMAT" >&6; }
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5560 # Extract the first word of "pkg-config", so it can be a program name with args.
5561 set dummy pkg-config; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_path_PKGCONFIG+:} false; then :
5565 $as_echo_n "(cached) " >&6
5569 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5579 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5591 PKGCONFIG=$ac_cv_path_PKGCONFIG
5592 if test -n "$PKGCONFIG"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5594 $as_echo "$PKGCONFIG" >&6; }
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5601 # Extract the first word of "qmake", so it can be a program name with args.
5602 set dummy qmake; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_path_QMAKE+:} false; then :
5606 $as_echo_n "(cached) " >&6
5610 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5620 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5632 QMAKE=$ac_cv_path_QMAKE
5633 if test -n "$QMAKE"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5635 $as_echo "$QMAKE" >&6; }
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5642 # Extract the first word of "gmake", so it can be a program name with args.
5643 set dummy gmake; ac_word=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_path_GMAKE+:} false; then :
5647 $as_echo_n "(cached) " >&6
5651 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5673 GMAKE=$ac_cv_path_GMAKE
5674 if test -n "$GMAKE"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5676 $as_echo "$GMAKE" >&6; }
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5683 # Extract the first word of "pidof", so it can be a program name with args.
5684 set dummy pidof; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if ${ac_cv_path_PIDOF+:} false; then :
5688 $as_echo_n "(cached) " >&6
5692 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5714 PIDOF=$ac_cv_path_PIDOF
5715 if test -n "$PIDOF"; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5717 $as_echo "$PIDOF" >&6; }
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5724 for ac_prog in gawk mawk nawk awk
5726 # Extract the first word of "$ac_prog", so it can be a program name with args.
5727 set dummy $ac_prog; ac_word=$2
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729 $as_echo_n "checking for $ac_word... " >&6; }
5730 if ${ac_cv_prog_AWK+:} false; then :
5731 $as_echo_n "(cached) " >&6
5733 if test -n "$AWK"; then
5734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5743 ac_cv_prog_AWK="$ac_prog"
5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 if test -n "$AWK"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5756 $as_echo "$AWK" >&6; }
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5763 test -n "$AWK" && break
5766 # Some AWK programs fail, so test it and warn the user
5767 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5768 { if ((prog == $2) || (("(" prog ")") == $2) ||
5769 (("" prog "") == $2) ||
5770 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5772 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5773 The regex engine of $AWK is too broken to be used you
5774 might want to install GNU AWK.
5775 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5778 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5779 set dummy $THE_AWK; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_path_AWK+:} false; then :
5783 $as_echo_n "(cached) " >&6
5787 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5810 if test -n "$AWK"; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5812 $as_echo "$AWK" >&6; }
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5821 test -n "$ARFLAG" || ARFLAGS="cr"
5833 # Check whether --enable-libtool was given.
5834 if test "${enable_libtool+set}" = set; then :
5835 enableval=$enable_libtool;
5836 if test x$enableval = xno; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5846 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5851 macro_version='2.4.2'
5852 macro_revision='1.3337'
5866 ltmain="$ac_aux_dir/ltmain.sh"
5868 # Make sure we can run config.sub.
5869 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5870 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5873 $as_echo_n "checking build system type... " >&6; }
5874 if ${ac_cv_build+:} false; then :
5875 $as_echo_n "(cached) " >&6
5877 ac_build_alias=$build_alias
5878 test "x$ac_build_alias" = x &&
5879 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5880 test "x$ac_build_alias" = x &&
5881 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5882 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5883 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5887 $as_echo "$ac_cv_build" >&6; }
5888 case $ac_cv_build in
5890 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5893 ac_save_IFS=$IFS; IFS='-'
5899 # Remember, the first character of IFS is used to create $*,
5900 # except with old shells:
5903 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5907 $as_echo_n "checking host system type... " >&6; }
5908 if ${ac_cv_host+:} false; then :
5909 $as_echo_n "(cached) " >&6
5911 if test "x$host_alias" = x; then
5912 ac_cv_host=$ac_cv_build
5914 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5915 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5920 $as_echo "$ac_cv_host" >&6; }
5923 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5926 ac_save_IFS=$IFS; IFS='-'
5932 # Remember, the first character of IFS is used to create $*,
5933 # except with old shells:
5936 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5939 # Backslashify metacharacters that are still active within
5940 # double-quoted strings.
5941 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5943 # Same as above, but do not quote variable references.
5944 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5946 # Sed substitution to delay expansion of an escaped shell variable in a
5947 # double_quote_subst'ed string.
5948 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5950 # Sed substitution to delay expansion of an escaped single quote.
5951 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5953 # Sed substitution to avoid accidental globbing in evaled expressions
5954 no_glob_subst='s/\*/\\\*/g'
5956 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5957 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5958 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5961 $as_echo_n "checking how to print strings... " >&6; }
5962 # Test print first, because it will be a builtin if present.
5963 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5964 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5966 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5969 # Use this function as a fallback that always works.
5970 func_fallback_echo ()
5972 eval 'cat <<_LTECHO_EOF
5976 ECHO='func_fallback_echo'
5979 # func_echo_all arg...
5980 # Invoke $ECHO with all args, space-separated.
5987 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5988 $as_echo "printf" >&6; } ;;
5989 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5990 $as_echo "print -r" >&6; } ;;
5991 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5992 $as_echo "cat" >&6; } ;;
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6009 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6010 if ${ac_cv_path_SED+:} false; then :
6011 $as_echo_n "(cached) " >&6
6013 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6014 for ac_i in 1 2 3 4 5 6 7; do
6015 ac_script="$ac_script$as_nl$ac_script"
6017 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6018 { ac_script=; unset ac_script;}
6019 if test -z "$SED"; then
6020 ac_path_SED_found=false
6021 # Loop through the user's path and test for each of PROGNAME-LIST
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 test -z "$as_dir" && as_dir=.
6027 for ac_prog in sed gsed; do
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6030 as_fn_executable_p "$ac_path_SED" || continue
6031 # Check for GNU ac_path_SED and select it if it is found.
6032 # Check for GNU $ac_path_SED
6033 case `"$ac_path_SED" --version 2>&1` in
6035 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6038 $as_echo_n 0123456789 >"conftest.in"
6041 cat "conftest.in" "conftest.in" >"conftest.tmp"
6042 mv "conftest.tmp" "conftest.in"
6043 cp "conftest.in" "conftest.nl"
6044 $as_echo '' >> "conftest.nl"
6045 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6047 as_fn_arith $ac_count + 1 && ac_count=$as_val
6048 if test $ac_count -gt ${ac_path_SED_max-0}; then
6049 # Best one so far, save it but keep looking for a better one
6050 ac_cv_path_SED="$ac_path_SED"
6051 ac_path_SED_max=$ac_count
6053 # 10*(2^10) chars as input seems more than enough
6054 test $ac_count -gt 10 && break
6056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6059 $ac_path_SED_found && break 3
6064 if test -z "$ac_cv_path_SED"; then
6065 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6073 $as_echo "$ac_cv_path_SED" >&6; }
6074 SED="$ac_cv_path_SED"
6077 test -z "$SED" && SED=sed
6078 Xsed="$SED -e 1s/^X//"
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6091 $as_echo_n "checking for fgrep... " >&6; }
6092 if ${ac_cv_path_FGREP+:} false; then :
6093 $as_echo_n "(cached) " >&6
6095 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6096 then ac_cv_path_FGREP="$GREP -F"
6098 if test -z "$FGREP"; then
6099 ac_path_FGREP_found=false
6100 # Loop through the user's path and test for each of PROGNAME-LIST
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6105 test -z "$as_dir" && as_dir=.
6106 for ac_prog in fgrep; do
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6109 as_fn_executable_p "$ac_path_FGREP" || continue
6110 # Check for GNU ac_path_FGREP and select it if it is found.
6111 # Check for GNU $ac_path_FGREP
6112 case `"$ac_path_FGREP" --version 2>&1` in
6114 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6117 $as_echo_n 0123456789 >"conftest.in"
6120 cat "conftest.in" "conftest.in" >"conftest.tmp"
6121 mv "conftest.tmp" "conftest.in"
6122 cp "conftest.in" "conftest.nl"
6123 $as_echo 'FGREP' >> "conftest.nl"
6124 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6126 as_fn_arith $ac_count + 1 && ac_count=$as_val
6127 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6128 # Best one so far, save it but keep looking for a better one
6129 ac_cv_path_FGREP="$ac_path_FGREP"
6130 ac_path_FGREP_max=$ac_count
6132 # 10*(2^10) chars as input seems more than enough
6133 test $ac_count -gt 10 && break
6135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6138 $ac_path_FGREP_found && break 3
6143 if test -z "$ac_cv_path_FGREP"; then
6144 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6147 ac_cv_path_FGREP=$FGREP
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6153 $as_echo "$ac_cv_path_FGREP" >&6; }
6154 FGREP="$ac_cv_path_FGREP"
6157 test -z "$GREP" && GREP=grep
6177 # Check whether --with-gnu-ld was given.
6178 if test "${with_gnu_ld+set}" = set; then :
6179 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6185 if test "$GCC" = yes; then
6186 # Check if gcc -print-prog-name=ld gives a path.
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6188 $as_echo_n "checking for ld used by $CC... " >&6; }
6191 # gcc leaves a trailing carriage return which upsets mingw
6192 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6194 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6197 # Accept absolute paths.
6199 re_direlt='/[^/][^/]*/\.\./'
6200 # Canonicalize the pathname of ld
6201 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6202 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6203 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6205 test -z "$LD" && LD="$ac_prog"
6208 # If it fails, then pretend we aren't using GCC.
6212 # If it is relative, then search for the first ld in PATH.
6216 elif test "$with_gnu_ld" = yes; then
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6218 $as_echo_n "checking for GNU ld... " >&6; }
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6221 $as_echo_n "checking for non-GNU ld... " >&6; }
6223 if ${lt_cv_path_LD+:} false; then :
6224 $as_echo_n "(cached) " >&6
6226 if test -z "$LD"; then
6227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6228 for ac_dir in $PATH; do
6230 test -z "$ac_dir" && ac_dir=.
6231 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6232 lt_cv_path_LD="$ac_dir/$ac_prog"
6233 # Check to see if the program is GNU ld. I'd rather use --version,
6234 # but apparently some variants of GNU ld only accept -v.
6235 # Break only if it was the GNU/non-GNU ld that we prefer.
6236 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6237 *GNU* | *'with BFD'*)
6238 test "$with_gnu_ld" != no && break
6241 test "$with_gnu_ld" != yes && break
6248 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6253 if test -n "$LD"; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6255 $as_echo "$LD" >&6; }
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6260 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6262 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6263 if ${lt_cv_prog_gnu_ld+:} false; then :
6264 $as_echo_n "(cached) " >&6
6266 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6267 case `$LD -v 2>&1 </dev/null` in
6268 *GNU* | *'with BFD'*)
6269 lt_cv_prog_gnu_ld=yes
6272 lt_cv_prog_gnu_ld=no
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6277 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6278 with_gnu_ld=$lt_cv_prog_gnu_ld
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6289 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6290 if ${lt_cv_path_NM+:} false; then :
6291 $as_echo_n "(cached) " >&6
6293 if test -n "$NM"; then
6294 # Let the user override the test.
6297 lt_nm_to_check="${ac_tool_prefix}nm"
6298 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6299 lt_nm_to_check="$lt_nm_to_check nm"
6301 for lt_tmp_nm in $lt_nm_to_check; do
6302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6303 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6305 test -z "$ac_dir" && ac_dir=.
6306 tmp_nm="$ac_dir/$lt_tmp_nm"
6307 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6308 # Check to see if the nm accepts a BSD-compat flag.
6309 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6310 # nm: unknown option "B" ignored
6311 # Tru64's nm complains that /dev/null is an invalid object file
6312 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6313 */dev/null* | *'Invalid file or object type'*)
6314 lt_cv_path_NM="$tmp_nm -B"
6318 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6320 lt_cv_path_NM="$tmp_nm -p"
6324 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6325 continue # so that we can try to find one that supports BSD flags
6334 : ${lt_cv_path_NM=no}
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6338 $as_echo "$lt_cv_path_NM" >&6; }
6339 if test "$lt_cv_path_NM" != "no"; then
6342 # Didn't find any BSD compatible name lister, look for dumpbin.
6343 if test -n "$DUMPBIN"; then :
6344 # Let the user override the test.
6346 if test -n "$ac_tool_prefix"; then
6347 for ac_prog in dumpbin "link -dump"
6349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if ${ac_cv_prog_DUMPBIN+:} false; then :
6354 $as_echo_n "(cached) " >&6
6356 if test -n "$DUMPBIN"; then
6357 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 DUMPBIN=$ac_cv_prog_DUMPBIN
6377 if test -n "$DUMPBIN"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6379 $as_echo "$DUMPBIN" >&6; }
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6386 test -n "$DUMPBIN" && break
6389 if test -z "$DUMPBIN"; then
6390 ac_ct_DUMPBIN=$DUMPBIN
6391 for ac_prog in dumpbin "link -dump"
6393 # Extract the first word of "$ac_prog", so it can be a program name with args.
6394 set dummy $ac_prog; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6398 $as_echo_n "(cached) " >&6
6400 if test -n "$ac_ct_DUMPBIN"; then
6401 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6410 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6421 if test -n "$ac_ct_DUMPBIN"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6423 $as_echo "$ac_ct_DUMPBIN" >&6; }
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6430 test -n "$ac_ct_DUMPBIN" && break
6433 if test "x$ac_ct_DUMPBIN" = x; then
6436 case $cross_compiling:$ac_tool_warned in
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6440 ac_tool_warned=yes ;;
6442 DUMPBIN=$ac_ct_DUMPBIN
6446 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6448 DUMPBIN="$DUMPBIN -symbols"
6456 if test "$DUMPBIN" != ":"; then
6460 test -z "$NM" && NM=nm
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6468 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6469 if ${lt_cv_nm_interface+:} false; then :
6470 $as_echo_n "(cached) " >&6
6472 lt_cv_nm_interface="BSD nm"
6473 echo "int some_variable = 0;" > conftest.$ac_ext
6474 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6475 (eval "$ac_compile" 2>conftest.err)
6476 cat conftest.err >&5
6477 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6478 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6479 cat conftest.err >&5
6480 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6481 cat conftest.out >&5
6482 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6483 lt_cv_nm_interface="MS dumpbin"
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6488 $as_echo "$lt_cv_nm_interface" >&6; }
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6491 $as_echo_n "checking whether ln -s works... " >&6; }
6493 if test "$LN_S" = "ln -s"; then
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6495 $as_echo "yes" >&6; }
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6498 $as_echo "no, using $LN_S" >&6; }
6501 # find the maximum length of command line arguments
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6503 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6504 if ${lt_cv_sys_max_cmd_len+:} false; then :
6505 $as_echo_n "(cached) " >&6
6512 # On DJGPP, this test can blow up pretty badly due to problems in libc
6513 # (any single argument exceeding 2000 bytes causes a buffer overrun
6514 # during glob expansion). Even if it were fixed, the result of this
6515 # check would be larger than it should be.
6516 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6520 # Under GNU Hurd, this test is not required because there is
6521 # no limit to the length of command line arguments.
6522 # Libtool will interpret -1 as no limit whatsoever
6523 lt_cv_sys_max_cmd_len=-1;
6526 cygwin* | mingw* | cegcc*)
6527 # On Win9x/ME, this test blows up -- it succeeds, but takes
6528 # about 5 minutes as the teststring grows exponentially.
6529 # Worse, since 9x/ME are not pre-emptively multitasking,
6530 # you end up with a "frozen" computer, even though with patience
6531 # the test eventually succeeds (with a max line length of 256k).
6532 # Instead, let's just punt: use the minimum linelength reported by
6533 # all of the supported platforms: 8192 (on NT/2K/XP).
6534 lt_cv_sys_max_cmd_len=8192;
6538 # On MiNT this can take a long time and run out of memory.
6539 lt_cv_sys_max_cmd_len=8192;
6543 # On AmigaOS with pdksh, this test takes hours, literally.
6544 # So we just punt and use a minimum line length of 8192.
6545 lt_cv_sys_max_cmd_len=8192;
6548 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6549 # This has been around since 386BSD, at least. Likely further.
6550 if test -x /sbin/sysctl; then
6551 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6552 elif test -x /usr/sbin/sysctl; then
6553 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6555 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6557 # And add a safety zone
6558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6563 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6564 lt_cv_sys_max_cmd_len=196608
6568 # The test takes a long time on OS/2.
6569 lt_cv_sys_max_cmd_len=8192
6573 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6574 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6575 # nice to cause kernel panics so lets avoid the loop below.
6576 # First set a reasonable default.
6577 lt_cv_sys_max_cmd_len=16384
6579 if test -x /sbin/sysconfig; then
6580 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6581 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6586 lt_cv_sys_max_cmd_len=102400
6588 sysv5* | sco5v6* | sysv4.2uw2*)
6589 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6590 if test -n "$kargmax"; then
6591 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6593 lt_cv_sys_max_cmd_len=32768
6597 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6598 if test -n "$lt_cv_sys_max_cmd_len" && \
6599 test undefined != "$lt_cv_sys_max_cmd_len"; then
6600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6603 # Make teststring a little bigger before we do anything with it.
6604 # a 1K string should be a reasonable start.
6605 for i in 1 2 3 4 5 6 7 8 ; do
6606 teststring=$teststring$teststring
6608 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6609 # If test is not a shell built-in, we'll probably end up computing a
6610 # maximum length that is only half of the actual maximum length, but
6612 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6613 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6614 test $i != 17 # 1/2 MB should be enough
6617 teststring=$teststring$teststring
6619 # Only check the string length outside the loop.
6620 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6622 # Add a significant safety factor because C++ compilers can tack on
6623 # massive amounts of additional arguments before passing them to the
6624 # linker. It appears as though 1/2 is a usable value.
6625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6632 if test -n $lt_cv_sys_max_cmd_len ; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6634 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6637 $as_echo "none" >&6; }
6639 max_cmd_len=$lt_cv_sys_max_cmd_len
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6651 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6652 # Try some XSI features
6655 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6657 && eval 'test $(( 1 + 1 )) -eq 2 \
6658 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6661 $as_echo "$xsi_shell" >&6; }
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6665 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6667 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6669 && lt_shell_append=yes
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6671 $as_echo "$lt_shell_append" >&6; }
6674 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6684 # test EBCDIC or ASCII
6685 case `echo X|tr X '\101'` in
6686 A) # ASCII based system
6687 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6688 lt_SP2NL='tr \040 \012'
6689 lt_NL2SP='tr \015\012 \040\040'
6691 *) # EBCDIC based system
6692 lt_SP2NL='tr \100 \n'
6693 lt_NL2SP='tr \r\n \100\100'
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6706 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6707 if ${lt_cv_to_host_file_cmd+:} false; then :
6708 $as_echo_n "(cached) " >&6
6713 *-*-mingw* ) # actually msys
6714 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6717 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6719 * ) # otherwise, assume *nix
6720 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6726 *-*-mingw* ) # actually msys
6727 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6730 lt_cv_to_host_file_cmd=func_convert_file_noop
6732 * ) # otherwise, assume *nix
6733 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6737 * ) # unhandled hosts (and "normal" native builds)
6738 lt_cv_to_host_file_cmd=func_convert_file_noop
6744 to_host_file_cmd=$lt_cv_to_host_file_cmd
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6746 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6753 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6754 if ${lt_cv_to_tool_file_cmd+:} false; then :
6755 $as_echo_n "(cached) " >&6
6757 #assume ordinary cross tools, or native build.
6758 lt_cv_to_tool_file_cmd=func_convert_file_noop
6762 *-*-mingw* ) # actually msys
6763 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6771 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6773 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6780 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6781 if ${lt_cv_ld_reload_flag+:} false; then :
6782 $as_echo_n "(cached) " >&6
6784 lt_cv_ld_reload_flag='-r'
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6787 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6788 reload_flag=$lt_cv_ld_reload_flag
6789 case $reload_flag in
6791 *) reload_flag=" $reload_flag" ;;
6793 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6795 cygwin* | mingw* | pw32* | cegcc*)
6796 if test "$GCC" != yes; then
6801 if test "$GCC" = yes; then
6802 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6804 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6817 if test -n "$ac_tool_prefix"; then
6818 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6819 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821 $as_echo_n "checking for $ac_word... " >&6; }
6822 if ${ac_cv_prog_OBJDUMP+:} false; then :
6823 $as_echo_n "(cached) " >&6
6825 if test -n "$OBJDUMP"; then
6826 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6835 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 OBJDUMP=$ac_cv_prog_OBJDUMP
6846 if test -n "$OBJDUMP"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6848 $as_echo "$OBJDUMP" >&6; }
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 $as_echo "no" >&6; }
6856 if test -z "$ac_cv_prog_OBJDUMP"; then
6857 ac_ct_OBJDUMP=$OBJDUMP
6858 # Extract the first word of "objdump", so it can be a program name with args.
6859 set dummy objdump; ac_word=$2
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 $as_echo_n "checking for $ac_word... " >&6; }
6862 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6863 $as_echo_n "(cached) " >&6
6865 if test -n "$ac_ct_OBJDUMP"; then
6866 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6875 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6886 if test -n "$ac_ct_OBJDUMP"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6888 $as_echo "$ac_ct_OBJDUMP" >&6; }
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6894 if test "x$ac_ct_OBJDUMP" = x; then
6897 case $cross_compiling:$ac_tool_warned in
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6901 ac_tool_warned=yes ;;
6903 OBJDUMP=$ac_ct_OBJDUMP
6906 OBJDUMP="$ac_cv_prog_OBJDUMP"
6909 test -z "$OBJDUMP" && OBJDUMP=objdump
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6920 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6921 if ${lt_cv_deplibs_check_method+:} false; then :
6922 $as_echo_n "(cached) " >&6
6924 lt_cv_file_magic_cmd='$MAGIC_CMD'
6925 lt_cv_file_magic_test_file=
6926 lt_cv_deplibs_check_method='unknown'
6927 # Need to set the preceding variable on all platforms that support
6928 # interlibrary dependencies.
6929 # 'none' -- dependencies not supported.
6930 # `unknown' -- same as none, but documents that we really don't know.
6931 # 'pass_all' -- all dependencies passed with no checks.
6932 # 'test_compile' -- check by making test program.
6933 # 'file_magic [[regex]]' -- check by looking for files in library path
6934 # which responds to the $file_magic_cmd with a given extended regex.
6935 # If you have `file' or equivalent on your system and you're not sure
6936 # whether `pass_all' will *always* work, you probably want this one.
6940 lt_cv_deplibs_check_method=pass_all
6944 lt_cv_deplibs_check_method=pass_all
6948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6949 lt_cv_file_magic_cmd='/usr/bin/file -L'
6950 lt_cv_file_magic_test_file=/shlib/libc.so
6954 # func_win32_libid is a shell function defined in ltmain.sh
6955 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6956 lt_cv_file_magic_cmd='func_win32_libid'
6960 # Base MSYS/MinGW do not provide the 'file' command needed by
6961 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6962 # unless we find 'file', for example because we are cross-compiling.
6963 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6964 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6965 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6966 lt_cv_file_magic_cmd='func_win32_libid'
6968 # Keep this pattern in sync with the one in func_win32_libid.
6969 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6970 lt_cv_file_magic_cmd='$OBJDUMP -f'
6975 # use the weaker test based on 'objdump'. See mingw*.
6976 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6977 lt_cv_file_magic_cmd='$OBJDUMP -f'
6980 darwin* | rhapsody*)
6981 lt_cv_deplibs_check_method=pass_all
6984 freebsd* | dragonfly*)
6985 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6988 # Not sure whether the presence of OpenBSD here was a mistake.
6989 # Let's accept both of them until this is cleared up.
6990 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6991 lt_cv_file_magic_cmd=/usr/bin/file
6992 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6996 lt_cv_deplibs_check_method=pass_all
7001 lt_cv_deplibs_check_method=pass_all
7004 hpux10.20* | hpux11*)
7005 lt_cv_file_magic_cmd=/usr/bin/file
7008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7009 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7012 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]'
7013 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7017 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7023 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7027 irix5* | irix6* | nonstopux*)
7029 *-32|*"-32 ") libmagic=32-bit;;
7030 *-n32|*"-n32 ") libmagic=N32;;
7031 *-64|*"-64 ") libmagic=64-bit;;
7032 *) libmagic=never-match;;
7034 lt_cv_deplibs_check_method=pass_all
7037 # This must be glibc/ELF.
7038 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7039 lt_cv_deplibs_check_method=pass_all
7042 netbsd* | netbsdelf*-gnu)
7043 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7052 lt_cv_file_magic_cmd=/usr/bin/file
7053 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7057 lt_cv_deplibs_check_method=pass_all
7061 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7068 osf3* | osf4* | osf5*)
7069 lt_cv_deplibs_check_method=pass_all
7073 lt_cv_deplibs_check_method=pass_all
7077 lt_cv_deplibs_check_method=pass_all
7080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7081 lt_cv_deplibs_check_method=pass_all
7085 case $host_vendor in
7087 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]'
7088 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7091 lt_cv_deplibs_check_method=pass_all
7094 lt_cv_file_magic_cmd='/bin/file'
7095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7098 lt_cv_file_magic_cmd='/bin/file'
7099 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7100 lt_cv_file_magic_test_file=/lib/libc.so
7103 lt_cv_deplibs_check_method=pass_all
7106 lt_cv_deplibs_check_method=pass_all
7112 lt_cv_deplibs_check_method=pass_all
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7118 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7122 if test "$build" = "$host"; then
7125 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7128 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7134 file_magic_cmd=$lt_cv_file_magic_cmd
7135 deplibs_check_method=$lt_cv_deplibs_check_method
7136 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7159 if test -n "$ac_tool_prefix"; then
7160 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7161 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if ${ac_cv_prog_DLLTOOL+:} false; then :
7165 $as_echo_n "(cached) " >&6
7167 if test -n "$DLLTOOL"; then
7168 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 DLLTOOL=$ac_cv_prog_DLLTOOL
7188 if test -n "$DLLTOOL"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7190 $as_echo "$DLLTOOL" >&6; }
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7198 if test -z "$ac_cv_prog_DLLTOOL"; then
7199 ac_ct_DLLTOOL=$DLLTOOL
7200 # Extract the first word of "dlltool", so it can be a program name with args.
7201 set dummy dlltool; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7205 $as_echo_n "(cached) " >&6
7207 if test -n "$ac_ct_DLLTOOL"; then
7208 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7217 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7228 if test -n "$ac_ct_DLLTOOL"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7230 $as_echo "$ac_ct_DLLTOOL" >&6; }
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7236 if test "x$ac_ct_DLLTOOL" = x; then
7239 case $cross_compiling:$ac_tool_warned in
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7243 ac_tool_warned=yes ;;
7245 DLLTOOL=$ac_ct_DLLTOOL
7248 DLLTOOL="$ac_cv_prog_DLLTOOL"
7251 test -z "$DLLTOOL" && DLLTOOL=dlltool
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7263 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7264 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7265 $as_echo_n "(cached) " >&6
7267 lt_cv_sharedlib_from_linklib_cmd='unknown'
7270 cygwin* | mingw* | pw32* | cegcc*)
7271 # two different shell functions defined in ltmain.sh
7272 # decide which to use based on capabilities of $DLLTOOL
7273 case `$DLLTOOL --help 2>&1` in
7274 *--identify-strict*)
7275 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7278 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7283 # fallback: assume linklib IS sharedlib
7284 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7290 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7291 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7292 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7300 if test -n "$ac_tool_prefix"; then
7303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7304 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_prog_AR+:} false; then :
7308 $as_echo_n "(cached) " >&6
7310 if test -n "$AR"; then
7311 ac_cv_prog_AR="$AR" # Let the user override the test.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 if test -n "$AR"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7333 $as_echo "$AR" >&6; }
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7340 test -n "$AR" && break
7343 if test -z "$AR"; then
7347 # Extract the first word of "$ac_prog", so it can be a program name with args.
7348 set dummy $ac_prog; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7352 $as_echo_n "(cached) " >&6
7354 if test -n "$ac_ct_AR"; then
7355 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_ac_ct_AR="$ac_prog"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7375 if test -n "$ac_ct_AR"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7377 $as_echo "$ac_ct_AR" >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7384 test -n "$ac_ct_AR" && break
7387 if test "x$ac_ct_AR" = x; then
7390 case $cross_compiling:$ac_tool_warned in
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7394 ac_tool_warned=yes ;;
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7414 $as_echo_n "checking for archiver @FILE support... " >&6; }
7415 if ${lt_cv_ar_at_file+:} false; then :
7416 $as_echo_n "(cached) " >&6
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7430 if ac_fn_c_try_compile "$LINENO"; then :
7431 echo conftest.$ac_objext > conftest.lst
7432 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7434 (eval $lt_ar_try) 2>&5
7436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7437 test $ac_status = 0; }
7438 if test "$ac_status" -eq 0; then
7439 # Ensure the archiver fails upon bogus file names.
7440 rm -f conftest.$ac_objext libconftest.a
7441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7442 (eval $lt_ar_try) 2>&5
7444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445 test $ac_status = 0; }
7446 if test "$ac_status" -ne 0; then
7450 rm -f conftest.* libconftest.a
7453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7457 $as_echo "$lt_cv_ar_at_file" >&6; }
7459 if test "x$lt_cv_ar_at_file" = xno; then
7462 archiver_list_spec=$lt_cv_ar_at_file
7471 if test -n "$ac_tool_prefix"; then
7472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7473 set dummy ${ac_tool_prefix}strip; ac_word=$2
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 $as_echo_n "checking for $ac_word... " >&6; }
7476 if ${ac_cv_prog_STRIP+:} false; then :
7477 $as_echo_n "(cached) " >&6
7479 if test -n "$STRIP"; then
7480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 test -z "$as_dir" && as_dir=.
7487 for ac_exec_ext in '' $ac_executable_extensions; do
7488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7489 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 STRIP=$ac_cv_prog_STRIP
7500 if test -n "$STRIP"; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7502 $as_echo "$STRIP" >&6; }
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7510 if test -z "$ac_cv_prog_STRIP"; then
7512 # Extract the first word of "strip", so it can be a program name with args.
7513 set dummy strip; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7517 $as_echo_n "(cached) " >&6
7519 if test -n "$ac_ct_STRIP"; then
7520 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_ac_ct_STRIP="strip"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7540 if test -n "$ac_ct_STRIP"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7542 $as_echo "$ac_ct_STRIP" >&6; }
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7548 if test "x$ac_ct_STRIP" = x; then
7551 case $cross_compiling:$ac_tool_warned in
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7555 ac_tool_warned=yes ;;
7560 STRIP="$ac_cv_prog_STRIP"
7563 test -z "$STRIP" && STRIP=:
7570 if test -n "$ac_tool_prefix"; then
7571 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7572 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if ${ac_cv_prog_RANLIB+:} false; then :
7576 $as_echo_n "(cached) " >&6
7578 if test -n "$RANLIB"; then
7579 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 RANLIB=$ac_cv_prog_RANLIB
7599 if test -n "$RANLIB"; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7601 $as_echo "$RANLIB" >&6; }
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7609 if test -z "$ac_cv_prog_RANLIB"; then
7610 ac_ct_RANLIB=$RANLIB
7611 # Extract the first word of "ranlib", so it can be a program name with args.
7612 set dummy ranlib; ac_word=$2
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614 $as_echo_n "checking for $ac_word... " >&6; }
7615 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7616 $as_echo_n "(cached) " >&6
7618 if test -n "$ac_ct_RANLIB"; then
7619 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7628 ac_cv_prog_ac_ct_RANLIB="ranlib"
7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7639 if test -n "$ac_ct_RANLIB"; then
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7641 $as_echo "$ac_ct_RANLIB" >&6; }
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7647 if test "x$ac_ct_RANLIB" = x; then
7650 case $cross_compiling:$ac_tool_warned in
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7654 ac_tool_warned=yes ;;
7656 RANLIB=$ac_ct_RANLIB
7659 RANLIB="$ac_cv_prog_RANLIB"
7662 test -z "$RANLIB" && RANLIB=:
7669 # Determine commands to create old-style static archives.
7670 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7671 old_postinstall_cmds='chmod 644 $oldlib'
7672 old_postuninstall_cmds=
7674 if test -n "$RANLIB"; then
7677 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7680 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7683 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7688 lock_old_archive_extraction=yes ;;
7690 lock_old_archive_extraction=no ;;
7731 # If no C compiler was specified, use CC.
7734 # If no C compiler flags were specified, use CFLAGS.
7735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7737 # Allow CC to be a program name with arguments.
7741 # Check for command to grab the raw symbol name followed by C symbol from nm.
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7743 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7744 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7745 $as_echo_n "(cached) " >&6
7748 # These are sane defaults that work on at least a few old systems.
7749 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7751 # Character class describing NM global symbol codes.
7752 symcode='[BCDEGRST]'
7754 # Regexp to match symbols that can be accessed directly from C.
7755 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7757 # Define system-specific variables.
7762 cygwin* | mingw* | pw32* | cegcc*)
7763 symcode='[ABCDGISTW]'
7766 if test "$host_cpu" = ia64; then
7767 symcode='[ABCDEGRST]'
7771 symcode='[BCDEGRST]'
7774 symcode='[BCDEGQRST]'
7785 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7793 # If we're using GNU nm, then use its standard symbol codes.
7794 case `$NM -V 2>&1` in
7795 *GNU* | *'with BFD'*)
7796 symcode='[ABCDGIRSTW]' ;;
7799 # Transform an extracted symbol line into a proper C declaration.
7800 # Some systems (esp. on ia64) link data and code symbols differently,
7801 # so use this general approach.
7802 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7804 # Transform an extracted symbol line into symbol name and symbol address
7805 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7806 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'"
7808 # Handle CRLF in mingw tool chain
7812 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7816 # Try without a prefix underscore, then with it.
7817 for ac_symprfx in "" "_"; do
7819 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7820 symxfrm="\\1 $ac_symprfx\\2 \\2"
7822 # Write the raw and C identifiers.
7823 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7824 # Fake it for dumpbin and say T for any non-static function
7825 # and D for any global variable.
7826 # Also find C++ and __fastcall symbols from MSVC++,
7827 # which start with @ or ?.
7828 lt_cv_sys_global_symbol_pipe="$AWK '"\
7829 " {last_section=section; section=\$ 3};"\
7830 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7831 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7832 " \$ 0!~/External *\|/{next};"\
7833 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7834 " {if(hide[section]) next};"\
7835 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7836 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7837 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7838 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7839 " ' prfx=^$ac_symprfx"
7841 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7843 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7845 # Check to see that the pipe works correctly.
7849 cat > conftest.$ac_ext <<_LT_EOF
7854 void nm_test_func(void);
7855 void nm_test_func(void){}
7859 int main(){nm_test_var='a';nm_test_func();return(0);}
7862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7863 (eval $ac_compile) 2>&5
7865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7866 test $ac_status = 0; }; then
7867 # Now try to grab the symbols.
7869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7870 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873 test $ac_status = 0; } && test -s "$nlist"; then
7874 # Try sorting and uniquifying the output.
7875 if sort "$nlist" | uniq > "$nlist"T; then
7876 mv -f "$nlist"T "$nlist"
7881 # Make sure that we snagged all the symbols we need.
7882 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7883 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7884 cat <<_LT_EOF > conftest.$ac_ext
7885 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7886 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7887 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7888 relocations are performed -- see ld's documentation on pseudo-relocs. */
7889 # define LT_DLSYM_CONST
7890 #elif defined(__osf__)
7891 /* This system does not cope well with relocations in const data. */
7892 # define LT_DLSYM_CONST
7894 # define LT_DLSYM_CONST const
7902 # Now generate the symbol file.
7903 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7905 cat <<_LT_EOF >> conftest.$ac_ext
7907 /* The mapping between symbol names and symbols. */
7908 LT_DLSYM_CONST struct {
7912 lt__PROGRAM__LTX_preloaded_symbols[] =
7914 { "@PROGRAM@", (void *) 0 },
7916 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7917 cat <<\_LT_EOF >> conftest.$ac_ext
7921 /* This works around a problem in FreeBSD linker */
7922 #ifdef FREEBSD_WORKAROUND
7923 static const void *lt_preloaded_setup() {
7924 return lt__PROGRAM__LTX_preloaded_symbols;
7932 # Now try linking the two files.
7933 mv conftest.$ac_objext conftstm.$ac_objext
7934 lt_globsym_save_LIBS=$LIBS
7935 lt_globsym_save_CFLAGS=$CFLAGS
7936 LIBS="conftstm.$ac_objext"
7937 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7939 (eval $ac_link) 2>&5
7941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7942 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7945 LIBS=$lt_globsym_save_LIBS
7946 CFLAGS=$lt_globsym_save_CFLAGS
7948 echo "cannot find nm_test_func in $nlist" >&5
7951 echo "cannot find nm_test_var in $nlist" >&5
7954 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7957 echo "$progname: failed program was:" >&5
7958 cat conftest.$ac_ext >&5
7960 rm -rf conftest* conftst*
7962 # Do not use the global_symbol_pipe unless it works.
7963 if test "$pipe_works" = yes; then
7966 lt_cv_sys_global_symbol_pipe=
7972 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7973 lt_cv_sys_global_symbol_to_cdecl=
7975 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7977 $as_echo "failed" >&6; }
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7980 $as_echo "ok" >&6; }
7983 # Response file support.
7984 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7985 nm_file_list_spec='@'
7986 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7987 nm_file_list_spec='@'
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8017 $as_echo_n "checking for sysroot... " >&6; }
8019 # Check whether --with-sysroot was given.
8020 if test "${with_sysroot+set}" = set; then :
8021 withval=$with_sysroot;
8028 case ${with_sysroot} in #(
8030 if test "$GCC" = yes; then
8031 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8035 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8041 $as_echo "${with_sysroot}" >&6; }
8042 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8047 $as_echo "${lt_sysroot:-no}" >&6; }
8053 # Check whether --enable-libtool-lock was given.
8054 if test "${enable_libtool_lock+set}" = set; then :
8055 enableval=$enable_libtool_lock;
8058 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8060 # Some flags need to be propagated to the compiler or linker for good
8064 # Find out which ABI we are using.
8065 echo 'int i;' > conftest.$ac_ext
8066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8067 (eval $ac_compile) 2>&5
8069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8070 test $ac_status = 0; }; then
8071 case `/usr/bin/file conftest.$ac_objext` in
8083 # Find out which ABI we are using.
8084 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8086 (eval $ac_compile) 2>&5
8088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8089 test $ac_status = 0; }; then
8090 if test "$lt_cv_prog_gnu_ld" = yes; then
8091 case `/usr/bin/file conftest.$ac_objext` in
8093 LD="${LD-ld} -melf32bsmip"
8096 LD="${LD-ld} -melf32bmipn32"
8099 LD="${LD-ld} -melf64bmip"
8103 case `/usr/bin/file conftest.$ac_objext` in
8119 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8120 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8121 # Find out which ABI we are using.
8122 echo 'int i;' > conftest.$ac_ext
8123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8124 (eval $ac_compile) 2>&5
8126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8127 test $ac_status = 0; }; then
8128 case `/usr/bin/file conftest.o` in
8131 x86_64-*kfreebsd*-gnu)
8132 LD="${LD-ld} -m elf_i386_fbsd"
8135 case `/usr/bin/file conftest.o` in
8137 LD="${LD-ld} -m elf32_x86_64"
8140 LD="${LD-ld} -m elf_i386"
8145 LD="${LD-ld} -m elf32lppclinux"
8148 LD="${LD-ld} -m elf32ppclinux"
8151 LD="${LD-ld} -m elf_s390"
8154 LD="${LD-ld} -m elf32_sparc"
8160 x86_64-*kfreebsd*-gnu)
8161 LD="${LD-ld} -m elf_x86_64_fbsd"
8164 LD="${LD-ld} -m elf_x86_64"
8167 LD="${LD-ld} -m elf64lppc"
8170 LD="${LD-ld} -m elf64ppc"
8172 s390*-*linux*|s390*-*tpf*)
8173 LD="${LD-ld} -m elf64_s390"
8176 LD="${LD-ld} -m elf64_sparc"
8186 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8187 SAVE_CFLAGS="$CFLAGS"
8188 CFLAGS="$CFLAGS -belf"
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8190 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8191 if ${lt_cv_cc_needs_belf+:} false; then :
8192 $as_echo_n "(cached) " >&6
8195 ac_cpp='$CPP $CPPFLAGS'
8196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8211 if ac_fn_c_try_link "$LINENO"; then :
8212 lt_cv_cc_needs_belf=yes
8214 lt_cv_cc_needs_belf=no
8216 rm -f core conftest.err conftest.$ac_objext \
8217 conftest$ac_exeext conftest.$ac_ext
8219 ac_cpp='$CPP $CPPFLAGS'
8220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8226 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8227 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8228 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8229 CFLAGS="$SAVE_CFLAGS"
8233 # Find out which ABI we are using.
8234 echo 'int i;' > conftest.$ac_ext
8235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8236 (eval $ac_compile) 2>&5
8238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8239 test $ac_status = 0; }; then
8240 case `/usr/bin/file conftest.o` in
8242 case $lt_cv_prog_gnu_ld in
8246 LD="${LD-ld} -m elf_x86_64"
8249 LD="${LD-ld} -m elf64_sparc"
8252 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8253 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8258 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8270 need_locks="$enable_libtool_lock"
8272 if test -n "$ac_tool_prefix"; then
8273 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8274 set dummy ${ac_tool_prefix}mt; ac_word=$2
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276 $as_echo_n "checking for $ac_word... " >&6; }
8277 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8278 $as_echo_n "(cached) " >&6
8280 if test -n "$MANIFEST_TOOL"; then
8281 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 test -z "$as_dir" && as_dir=.
8288 for ac_exec_ext in '' $ac_executable_extensions; do
8289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8290 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8301 if test -n "$MANIFEST_TOOL"; then
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8303 $as_echo "$MANIFEST_TOOL" >&6; }
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8311 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8312 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8313 # Extract the first word of "mt", so it can be a program name with args.
8314 set dummy mt; ac_word=$2
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 $as_echo_n "checking for $ac_word... " >&6; }
8317 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8318 $as_echo_n "(cached) " >&6
8320 if test -n "$ac_ct_MANIFEST_TOOL"; then
8321 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 test -z "$as_dir" && as_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8330 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8340 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8341 if test -n "$ac_ct_MANIFEST_TOOL"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8343 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8349 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8352 case $cross_compiling:$ac_tool_warned in
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8356 ac_tool_warned=yes ;;
8358 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8361 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8364 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8366 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8367 if ${lt_cv_path_mainfest_tool+:} false; then :
8368 $as_echo_n "(cached) " >&6
8370 lt_cv_path_mainfest_tool=no
8371 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8372 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8373 cat conftest.err >&5
8374 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8375 lt_cv_path_mainfest_tool=yes
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8380 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8381 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8391 rhapsody* | darwin*)
8392 if test -n "$ac_tool_prefix"; then
8393 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8394 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396 $as_echo_n "checking for $ac_word... " >&6; }
8397 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8398 $as_echo_n "(cached) " >&6
8400 if test -n "$DSYMUTIL"; then
8401 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 test -z "$as_dir" && as_dir=.
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8410 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8421 if test -n "$DSYMUTIL"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8423 $as_echo "$DSYMUTIL" >&6; }
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8431 if test -z "$ac_cv_prog_DSYMUTIL"; then
8432 ac_ct_DSYMUTIL=$DSYMUTIL
8433 # Extract the first word of "dsymutil", so it can be a program name with args.
8434 set dummy dsymutil; ac_word=$2
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8436 $as_echo_n "checking for $ac_word... " >&6; }
8437 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8438 $as_echo_n "(cached) " >&6
8440 if test -n "$ac_ct_DSYMUTIL"; then
8441 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 test -z "$as_dir" && as_dir=.
8448 for ac_exec_ext in '' $ac_executable_extensions; do
8449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8450 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8460 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8461 if test -n "$ac_ct_DSYMUTIL"; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8463 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8466 $as_echo "no" >&6; }
8469 if test "x$ac_ct_DSYMUTIL" = x; then
8472 case $cross_compiling:$ac_tool_warned in
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8476 ac_tool_warned=yes ;;
8478 DSYMUTIL=$ac_ct_DSYMUTIL
8481 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8484 if test -n "$ac_tool_prefix"; then
8485 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8486 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if ${ac_cv_prog_NMEDIT+:} false; then :
8490 $as_echo_n "(cached) " >&6
8492 if test -n "$NMEDIT"; then
8493 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499 test -z "$as_dir" && as_dir=.
8500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8502 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 NMEDIT=$ac_cv_prog_NMEDIT
8513 if test -n "$NMEDIT"; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8515 $as_echo "$NMEDIT" >&6; }
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8523 if test -z "$ac_cv_prog_NMEDIT"; then
8524 ac_ct_NMEDIT=$NMEDIT
8525 # Extract the first word of "nmedit", so it can be a program name with args.
8526 set dummy nmedit; ac_word=$2
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8528 $as_echo_n "checking for $ac_word... " >&6; }
8529 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8530 $as_echo_n "(cached) " >&6
8532 if test -n "$ac_ct_NMEDIT"; then
8533 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539 test -z "$as_dir" && as_dir=.
8540 for ac_exec_ext in '' $ac_executable_extensions; do
8541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8542 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8552 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8553 if test -n "$ac_ct_NMEDIT"; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8555 $as_echo "$ac_ct_NMEDIT" >&6; }
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558 $as_echo "no" >&6; }
8561 if test "x$ac_ct_NMEDIT" = x; then
8564 case $cross_compiling:$ac_tool_warned in
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8568 ac_tool_warned=yes ;;
8570 NMEDIT=$ac_ct_NMEDIT
8573 NMEDIT="$ac_cv_prog_NMEDIT"
8576 if test -n "$ac_tool_prefix"; then
8577 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8578 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 $as_echo_n "checking for $ac_word... " >&6; }
8581 if ${ac_cv_prog_LIPO+:} false; then :
8582 $as_echo_n "(cached) " >&6
8584 if test -n "$LIPO"; then
8585 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8594 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 LIPO=$ac_cv_prog_LIPO
8605 if test -n "$LIPO"; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8607 $as_echo "$LIPO" >&6; }
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8615 if test -z "$ac_cv_prog_LIPO"; then
8617 # Extract the first word of "lipo", so it can be a program name with args.
8618 set dummy lipo; ac_word=$2
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8620 $as_echo_n "checking for $ac_word... " >&6; }
8621 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8622 $as_echo_n "(cached) " >&6
8624 if test -n "$ac_ct_LIPO"; then
8625 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 test -z "$as_dir" && as_dir=.
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8634 ac_cv_prog_ac_ct_LIPO="lipo"
8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8645 if test -n "$ac_ct_LIPO"; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8647 $as_echo "$ac_ct_LIPO" >&6; }
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650 $as_echo "no" >&6; }
8653 if test "x$ac_ct_LIPO" = x; then
8656 case $cross_compiling:$ac_tool_warned in
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8660 ac_tool_warned=yes ;;
8665 LIPO="$ac_cv_prog_LIPO"
8668 if test -n "$ac_tool_prefix"; then
8669 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8670 set dummy ${ac_tool_prefix}otool; ac_word=$2
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672 $as_echo_n "checking for $ac_word... " >&6; }
8673 if ${ac_cv_prog_OTOOL+:} false; then :
8674 $as_echo_n "(cached) " >&6
8676 if test -n "$OTOOL"; then
8677 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8683 test -z "$as_dir" && as_dir=.
8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8686 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8696 OTOOL=$ac_cv_prog_OTOOL
8697 if test -n "$OTOOL"; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8699 $as_echo "$OTOOL" >&6; }
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8707 if test -z "$ac_cv_prog_OTOOL"; then
8709 # Extract the first word of "otool", so it can be a program name with args.
8710 set dummy otool; ac_word=$2
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 $as_echo_n "checking for $ac_word... " >&6; }
8713 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8714 $as_echo_n "(cached) " >&6
8716 if test -n "$ac_ct_OTOOL"; then
8717 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 test -z "$as_dir" && as_dir=.
8724 for ac_exec_ext in '' $ac_executable_extensions; do
8725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8726 ac_cv_prog_ac_ct_OTOOL="otool"
8727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8736 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8737 if test -n "$ac_ct_OTOOL"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8739 $as_echo "$ac_ct_OTOOL" >&6; }
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8745 if test "x$ac_ct_OTOOL" = x; then
8748 case $cross_compiling:$ac_tool_warned in
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8752 ac_tool_warned=yes ;;
8757 OTOOL="$ac_cv_prog_OTOOL"
8760 if test -n "$ac_tool_prefix"; then
8761 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8762 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8764 $as_echo_n "checking for $ac_word... " >&6; }
8765 if ${ac_cv_prog_OTOOL64+:} false; then :
8766 $as_echo_n "(cached) " >&6
8768 if test -n "$OTOOL64"; then
8769 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8778 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8788 OTOOL64=$ac_cv_prog_OTOOL64
8789 if test -n "$OTOOL64"; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8791 $as_echo "$OTOOL64" >&6; }
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8799 if test -z "$ac_cv_prog_OTOOL64"; then
8800 ac_ct_OTOOL64=$OTOOL64
8801 # Extract the first word of "otool64", so it can be a program name with args.
8802 set dummy otool64; ac_word=$2
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804 $as_echo_n "checking for $ac_word... " >&6; }
8805 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8806 $as_echo_n "(cached) " >&6
8808 if test -n "$ac_ct_OTOOL64"; then
8809 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 test -z "$as_dir" && as_dir=.
8816 for ac_exec_ext in '' $ac_executable_extensions; do
8817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8818 ac_cv_prog_ac_ct_OTOOL64="otool64"
8819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8829 if test -n "$ac_ct_OTOOL64"; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8831 $as_echo "$ac_ct_OTOOL64" >&6; }
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834 $as_echo "no" >&6; }
8837 if test "x$ac_ct_OTOOL64" = x; then
8840 case $cross_compiling:$ac_tool_warned in
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8844 ac_tool_warned=yes ;;
8846 OTOOL64=$ac_ct_OTOOL64
8849 OTOOL64="$ac_cv_prog_OTOOL64"
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8879 $as_echo_n "checking for -single_module linker flag... " >&6; }
8880 if ${lt_cv_apple_cc_single_mod+:} false; then :
8881 $as_echo_n "(cached) " >&6
8883 lt_cv_apple_cc_single_mod=no
8884 if test -z "${LT_MULTI_MODULE}"; then
8885 # By default we will add the -single_module flag. You can override
8886 # by either setting the environment variable LT_MULTI_MODULE
8887 # non-empty at configure time, or by adding -multi_module to the
8889 rm -rf libconftest.dylib*
8890 echo "int foo(void){return 1;}" > conftest.c
8891 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8892 -dynamiclib -Wl,-single_module conftest.c" >&5
8893 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8894 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8896 # If there is a non-empty error log, and "single_module"
8897 # appears in it, assume the flag caused a linker warning
8898 if test -s conftest.err && $GREP single_module conftest.err; then
8899 cat conftest.err >&5
8900 # Otherwise, if the output was created with a 0 exit code from
8901 # the compiler, it worked.
8902 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8903 lt_cv_apple_cc_single_mod=yes
8905 cat conftest.err >&5
8907 rm -rf libconftest.dylib*
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8912 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8915 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8916 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8917 $as_echo_n "(cached) " >&6
8919 lt_cv_ld_exported_symbols_list=no
8920 save_LDFLAGS=$LDFLAGS
8921 echo "_main" > conftest.sym
8922 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8934 if ac_fn_c_try_link "$LINENO"; then :
8935 lt_cv_ld_exported_symbols_list=yes
8937 lt_cv_ld_exported_symbols_list=no
8939 rm -f core conftest.err conftest.$ac_objext \
8940 conftest$ac_exeext conftest.$ac_ext
8941 LDFLAGS="$save_LDFLAGS"
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8945 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8948 $as_echo_n "checking for -force_load linker flag... " >&6; }
8949 if ${lt_cv_ld_force_load+:} false; then :
8950 $as_echo_n "(cached) " >&6
8952 lt_cv_ld_force_load=no
8953 cat > conftest.c << _LT_EOF
8954 int forced_loaded() { return 2;}
8956 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8957 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8958 echo "$AR cru libconftest.a conftest.o" >&5
8959 $AR cru libconftest.a conftest.o 2>&5
8960 echo "$RANLIB libconftest.a" >&5
8961 $RANLIB libconftest.a 2>&5
8962 cat > conftest.c << _LT_EOF
8963 int main() { return 0;}
8965 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8966 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8968 if test -s conftest.err && $GREP force_load conftest.err; then
8969 cat conftest.err >&5
8970 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8971 lt_cv_ld_force_load=yes
8973 cat conftest.err >&5
8975 rm -f conftest.err libconftest.a conftest conftest.c
8976 rm -rf conftest.dSYM
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8980 $as_echo "$lt_cv_ld_force_load" >&6; }
8982 rhapsody* | darwin1.[012])
8983 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8985 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8986 darwin*) # darwin 5.x on
8987 # if running on 10.5 or later, the deployment target defaults
8988 # to the OS version, if on x86, and 10.4, the deployment
8989 # target defaults to 10.4. Don't you love it?
8990 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8991 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8992 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8994 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8996 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9000 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9001 _lt_dar_single_mod='$single_module'
9003 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9004 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9006 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9008 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9009 _lt_dsymutil='~$DSYMUTIL $lib || :'
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9017 $as_echo_n "checking for ANSI C header files... " >&6; }
9018 if ${ac_cv_header_stdc+:} false; then :
9019 $as_echo_n "(cached) " >&6
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9036 if ac_fn_c_try_compile "$LINENO"; then :
9037 ac_cv_header_stdc=yes
9039 ac_cv_header_stdc=no
9041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9043 if test $ac_cv_header_stdc = yes; then
9044 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9051 $EGREP "memchr" >/dev/null 2>&1; then :
9054 ac_cv_header_stdc=no
9060 if test $ac_cv_header_stdc = yes; then
9061 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9068 $EGREP "free" >/dev/null 2>&1; then :
9071 ac_cv_header_stdc=no
9077 if test $ac_cv_header_stdc = yes; then
9078 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9079 if test "$cross_compiling" = yes; then :
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9086 #if ((' ' & 0x0FF) == 0x020)
9087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9090 # define ISLOWER(c) \
9091 (('a' <= (c) && (c) <= 'i') \
9092 || ('j' <= (c) && (c) <= 'r') \
9093 || ('s' <= (c) && (c) <= 'z'))
9094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9102 for (i = 0; i < 256; i++)
9103 if (XOR (islower (i), ISLOWER (i))
9104 || toupper (i) != TOUPPER (i))
9109 if ac_fn_c_try_run "$LINENO"; then :
9112 ac_cv_header_stdc=no
9114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9115 conftest.$ac_objext conftest.beam conftest.$ac_ext
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9121 $as_echo "$ac_cv_header_stdc" >&6; }
9122 if test $ac_cv_header_stdc = yes; then
9124 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9128 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9129 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9130 inttypes.h stdint.h unistd.h
9132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9133 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9135 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9136 cat >>confdefs.h <<_ACEOF
9137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9145 for ac_header in dlfcn.h
9147 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9149 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9150 cat >>confdefs.h <<_ACEOF
9151 #define HAVE_DLFCN_H 1
9161 func_stripname_cnf ()
9164 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9165 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9167 } # func_stripname_cnf
9174 # Check whether --enable-shared was given.
9175 if test "${enable_shared+set}" = set; then :
9176 enableval=$enable_shared; p=${PACKAGE-default}
9178 yes) enable_shared=yes ;;
9179 no) enable_shared=no ;;
9182 # Look at the argument we got. We use all the common list separators.
9183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9184 for pkg in $enableval; do
9186 if test "X$pkg" = "X$p"; then
9203 # Check whether --enable-static was given.
9204 if test "${enable_static+set}" = set; then :
9205 enableval=$enable_static; p=${PACKAGE-default}
9207 yes) enable_static=yes ;;
9208 no) enable_static=no ;;
9211 # Look at the argument we got. We use all the common list separators.
9212 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9213 for pkg in $enableval; do
9215 if test "X$pkg" = "X$p"; then
9244 # Check whether --with-pic was given.
9245 if test "${with_pic+set}" = set; then :
9246 withval=$with_pic; lt_p=${PACKAGE-default}
9248 yes|no) pic_mode=$withval ;;
9251 # Look at the argument we got. We use all the common list separators.
9252 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9253 for lt_pkg in $withval; do
9255 if test "X$lt_pkg" = "X$lt_p"; then
9267 test -z "$pic_mode" && pic_mode=default
9275 # Check whether --enable-fast-install was given.
9276 if test "${enable_fast_install+set}" = set; then :
9277 enableval=$enable_fast_install; p=${PACKAGE-default}
9279 yes) enable_fast_install=yes ;;
9280 no) enable_fast_install=no ;;
9282 enable_fast_install=no
9283 # Look at the argument we got. We use all the common list separators.
9284 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9285 for pkg in $enableval; do
9287 if test "X$pkg" = "X$p"; then
9288 enable_fast_install=yes
9295 enable_fast_install=yes
9308 # This can be used to rebuild libtool when needed
9309 LIBTOOL_DEPS="$ltmain"
9311 # Always use our own libtool.
9312 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9343 test -z "$LN_S" && LN_S="ln -s"
9358 if test -n "${ZSH_VERSION+set}" ; then
9359 setopt NO_GLOB_SUBST
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9363 $as_echo_n "checking for objdir... " >&6; }
9364 if ${lt_cv_objdir+:} false; then :
9365 $as_echo_n "(cached) " >&6
9367 rm -f .libs 2>/dev/null
9368 mkdir .libs 2>/dev/null
9369 if test -d .libs; then
9372 # MS-DOS does not allow filenames that begin with a dot.
9375 rmdir .libs 2>/dev/null
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9378 $as_echo "$lt_cv_objdir" >&6; }
9379 objdir=$lt_cv_objdir
9385 cat >>confdefs.h <<_ACEOF
9386 #define LT_OBJDIR "$lt_cv_objdir/"
9394 # AIX sometimes has problems with the GCC collect2 program. For some
9395 # reason, if we set the COLLECT_NAMES environment variable, the problems
9396 # vanish in a puff of smoke.
9397 if test "X${COLLECT_NAMES+set}" != Xset; then
9399 export COLLECT_NAMES
9406 can_build_shared=yes
9408 # All known linkers require a `.a' archive for static linking (except MSVC,
9409 # which needs '.lib').
9412 with_gnu_ld="$lt_cv_prog_gnu_ld"
9415 old_CFLAGS="$CFLAGS"
9417 # Set sane defaults for various variables
9418 test -z "$CC" && CC=cc
9419 test -z "$LTCC" && LTCC=$CC
9420 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9421 test -z "$LD" && LD=ld
9422 test -z "$ac_objext" && ac_objext=o
9424 for cc_temp in $compiler""; do
9426 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9427 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9432 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9435 # Only perform the check for file, if the check method requires it
9436 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9437 case $deplibs_check_method in
9439 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9441 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9442 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9443 $as_echo_n "(cached) " >&6
9447 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9450 lt_save_MAGIC_CMD="$MAGIC_CMD"
9451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9452 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9453 for ac_dir in $ac_dummy; do
9455 test -z "$ac_dir" && ac_dir=.
9456 if test -f $ac_dir/${ac_tool_prefix}file; then
9457 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9458 if test -n "$file_magic_test_file"; then
9459 case $deplibs_check_method in
9461 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9462 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9463 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9464 $EGREP "$file_magic_regex" > /dev/null; then
9469 *** Warning: the command libtool uses to detect shared libraries,
9470 *** $file_magic_cmd, produces output that libtool cannot recognize.
9471 *** The result is that libtool may fail to recognize shared libraries
9472 *** as such. This will affect the creation of libtool libraries that
9473 *** depend on shared libraries, but programs linked with such libtool
9474 *** libraries will work regardless of this problem. Nevertheless, you
9475 *** may want to report the problem to your system manager and/or to
9476 *** bug-libtool@gnu.org
9486 MAGIC_CMD="$lt_save_MAGIC_CMD"
9491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9492 if test -n "$MAGIC_CMD"; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9494 $as_echo "$MAGIC_CMD" >&6; }
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497 $as_echo "no" >&6; }
9504 if test -z "$lt_cv_path_MAGIC_CMD"; then
9505 if test -n "$ac_tool_prefix"; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9507 $as_echo_n "checking for file... " >&6; }
9508 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9509 $as_echo_n "(cached) " >&6
9513 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9516 lt_save_MAGIC_CMD="$MAGIC_CMD"
9517 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9518 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9519 for ac_dir in $ac_dummy; do
9521 test -z "$ac_dir" && ac_dir=.
9522 if test -f $ac_dir/file; then
9523 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9524 if test -n "$file_magic_test_file"; then
9525 case $deplibs_check_method in
9527 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9528 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9529 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9530 $EGREP "$file_magic_regex" > /dev/null; then
9535 *** Warning: the command libtool uses to detect shared libraries,
9536 *** $file_magic_cmd, produces output that libtool cannot recognize.
9537 *** The result is that libtool may fail to recognize shared libraries
9538 *** as such. This will affect the creation of libtool libraries that
9539 *** depend on shared libraries, but programs linked with such libtool
9540 *** libraries will work regardless of this problem. Nevertheless, you
9541 *** may want to report the problem to your system manager and/or to
9542 *** bug-libtool@gnu.org
9552 MAGIC_CMD="$lt_save_MAGIC_CMD"
9557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9558 if test -n "$MAGIC_CMD"; then
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9560 $as_echo "$MAGIC_CMD" >&6; }
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 $as_echo "no" >&6; }
9576 # Use C for the default configuration in the libtool script
9580 ac_cpp='$CPP $CPPFLAGS'
9581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9586 # Source file extension for C test sources.
9589 # Object file extension for compiled C test sources.
9593 # Code to be used in simple compile tests
9594 lt_simple_compile_test_code="int some_variable = 0;"
9596 # Code to be used in simple link tests
9597 lt_simple_link_test_code='int main(){return(0);}'
9605 # If no C compiler was specified, use CC.
9608 # If no C compiler flags were specified, use CFLAGS.
9609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9611 # Allow CC to be a program name with arguments.
9614 # Save the default compiler, since it gets overwritten when the other
9615 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9616 compiler_DEFAULT=$CC
9618 # save warnings/boilerplate of simple test code
9619 ac_outfile=conftest.$ac_objext
9620 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9621 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9622 _lt_compiler_boilerplate=`cat conftest.err`
9625 ac_outfile=conftest.$ac_objext
9626 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9627 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9628 _lt_linker_boilerplate=`cat conftest.err`
9633 ## There is no encapsulation within the following macros, do not change
9634 ## the running order or otherwise move them around unless you know exactly
9635 ## what you are doing...
9636 if test -n "$compiler"; then
9638 lt_prog_compiler_no_builtin_flag=
9640 if test "$GCC" = yes; then
9641 case $cc_basename in
9643 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9645 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9649 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9650 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9651 $as_echo_n "(cached) " >&6
9653 lt_cv_prog_compiler_rtti_exceptions=no
9654 ac_outfile=conftest.$ac_objext
9655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9656 lt_compiler_flag="-fno-rtti -fno-exceptions"
9657 # Insert the option either (1) after the last *FLAGS variable, or
9658 # (2) before a word containing "conftest.", or (3) at the end.
9659 # Note that $ac_compile itself does not contain backslashes and begins
9660 # with a dollar sign (not a hyphen), so the echo should work correctly.
9661 # The option is referenced via a variable to avoid confusing sed.
9662 lt_compile=`echo "$ac_compile" | $SED \
9663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9665 -e 's:$: $lt_compiler_flag:'`
9666 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9667 (eval "$lt_compile" 2>conftest.err)
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 if (exit $ac_status) && test -s "$ac_outfile"; then
9672 # The compiler can only warn and ignore the option if not recognized
9673 # So say no if there are warnings other than the usual output.
9674 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9676 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9677 lt_cv_prog_compiler_rtti_exceptions=yes
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9684 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9686 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9687 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9699 lt_prog_compiler_wl=
9700 lt_prog_compiler_pic=
9701 lt_prog_compiler_static=
9704 if test "$GCC" = yes; then
9705 lt_prog_compiler_wl='-Wl,'
9706 lt_prog_compiler_static='-static'
9710 # All AIX code is PIC.
9711 if test "$host_cpu" = ia64; then
9712 # AIX 5 now supports IA64 processor
9713 lt_prog_compiler_static='-Bstatic'
9720 # see comment about AmigaOS4 .so support
9721 lt_prog_compiler_pic='-fPIC'
9724 # FIXME: we need at least 68020 code to build shared libraries, but
9725 # adding the `-m68020' flag to GCC prevents building anything better,
9727 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9732 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9733 # PIC is the default for these OSes.
9736 mingw* | cygwin* | pw32* | os2* | cegcc*)
9737 # This hack is so that the source file can tell whether it is being
9738 # built for inclusion in a dll (and should export symbols for example).
9739 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9740 # (--disable-auto-import) libraries
9741 lt_prog_compiler_pic='-DDLL_EXPORT'
9744 darwin* | rhapsody*)
9745 # PIC is the default on this platform
9746 # Common symbols not allowed in MH_DYLIB files
9747 lt_prog_compiler_pic='-fno-common'
9751 # PIC is the default for Haiku.
9752 # The "-static" flag exists, but is broken.
9753 lt_prog_compiler_static=
9757 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9758 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9759 # sets the default TLS model and affects inlining.
9765 lt_prog_compiler_pic='-fPIC'
9771 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9772 # Instead, we relocate shared libraries at runtime.
9776 # Just because we use GCC doesn't mean we suddenly get shared libraries
9777 # on systems that don't support them.
9778 lt_prog_compiler_can_build_shared=no
9783 # QNX uses GNU C++, but need to define -shared option too, otherwise
9785 lt_prog_compiler_pic='-fPIC -shared'
9789 if test -d /usr/nec; then
9790 lt_prog_compiler_pic=-Kconform_pic
9795 lt_prog_compiler_pic='-fPIC'
9799 case $cc_basename in
9800 nvcc*) # Cuda Compiler Driver 2.2
9801 lt_prog_compiler_wl='-Xlinker '
9802 if test -n "$lt_prog_compiler_pic"; then
9803 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9808 # PORTME Check for flag to pass linker flags through the system compiler.
9811 lt_prog_compiler_wl='-Wl,'
9812 if test "$host_cpu" = ia64; then
9813 # AIX 5 now supports IA64 processor
9814 lt_prog_compiler_static='-Bstatic'
9816 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9820 mingw* | cygwin* | pw32* | os2* | cegcc*)
9821 # This hack is so that the source file can tell whether it is being
9822 # built for inclusion in a dll (and should export symbols for example).
9823 lt_prog_compiler_pic='-DDLL_EXPORT'
9826 hpux9* | hpux10* | hpux11*)
9827 lt_prog_compiler_wl='-Wl,'
9828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9835 lt_prog_compiler_pic='+Z'
9838 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9839 lt_prog_compiler_static='${wl}-a ${wl}archive'
9842 irix5* | irix6* | nonstopux*)
9843 lt_prog_compiler_wl='-Wl,'
9844 # PIC (with -KPIC) is the default.
9845 lt_prog_compiler_static='-non_shared'
9848 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9849 case $cc_basename in
9850 # old Intel for x86_64 which still supported -KPIC.
9852 lt_prog_compiler_wl='-Wl,'
9853 lt_prog_compiler_pic='-KPIC'
9854 lt_prog_compiler_static='-static'
9856 # icc used to be incompatible with GCC.
9857 # ICC 10 doesn't accept -KPIC any more.
9859 lt_prog_compiler_wl='-Wl,'
9860 lt_prog_compiler_pic='-fPIC'
9861 lt_prog_compiler_static='-static'
9863 # Lahey Fortran 8.1.
9865 lt_prog_compiler_wl='-Wl,'
9866 lt_prog_compiler_pic='--shared'
9867 lt_prog_compiler_static='--static'
9870 # NAG Fortran compiler
9871 lt_prog_compiler_wl='-Wl,-Wl,,'
9872 lt_prog_compiler_pic='-PIC'
9873 lt_prog_compiler_static='-Bstatic'
9875 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9876 # Portland Group compilers (*not* the Pentium gcc compiler,
9877 # which looks to be a dead project)
9878 lt_prog_compiler_wl='-Wl,'
9879 lt_prog_compiler_pic='-fpic'
9880 lt_prog_compiler_static='-Bstatic'
9883 lt_prog_compiler_wl='-Wl,'
9884 # All Alpha code is PIC.
9885 lt_prog_compiler_static='-non_shared'
9887 xl* | bgxl* | bgf* | mpixl*)
9888 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9889 lt_prog_compiler_wl='-Wl,'
9890 lt_prog_compiler_pic='-qpic'
9891 lt_prog_compiler_static='-qstaticlink'
9894 case `$CC -V 2>&1 | sed 5q` in
9895 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9896 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9897 lt_prog_compiler_pic='-KPIC'
9898 lt_prog_compiler_static='-Bstatic'
9899 lt_prog_compiler_wl=''
9901 *Sun\ F* | *Sun*Fortran*)
9902 lt_prog_compiler_pic='-KPIC'
9903 lt_prog_compiler_static='-Bstatic'
9904 lt_prog_compiler_wl='-Qoption ld '
9908 lt_prog_compiler_pic='-KPIC'
9909 lt_prog_compiler_static='-Bstatic'
9910 lt_prog_compiler_wl='-Wl,'
9912 *Intel*\ [CF]*Compiler*)
9913 lt_prog_compiler_wl='-Wl,'
9914 lt_prog_compiler_pic='-fPIC'
9915 lt_prog_compiler_static='-static'
9918 lt_prog_compiler_wl='-Wl,'
9919 lt_prog_compiler_pic='-fpic'
9920 lt_prog_compiler_static='-Bstatic'
9928 lt_prog_compiler_pic='-KPIC'
9929 lt_prog_compiler_static='-Bstatic'
9933 # QNX uses GNU C++, but need to define -shared option too, otherwise
9935 lt_prog_compiler_pic='-fPIC -shared'
9938 osf3* | osf4* | osf5*)
9939 lt_prog_compiler_wl='-Wl,'
9940 # All OSF/1 code is PIC.
9941 lt_prog_compiler_static='-non_shared'
9945 lt_prog_compiler_static='-non_shared'
9949 lt_prog_compiler_pic='-KPIC'
9950 lt_prog_compiler_static='-Bstatic'
9951 case $cc_basename in
9952 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9953 lt_prog_compiler_wl='-Qoption ld ';;
9955 lt_prog_compiler_wl='-Wl,';;
9960 lt_prog_compiler_wl='-Qoption ld '
9961 lt_prog_compiler_pic='-PIC'
9962 lt_prog_compiler_static='-Bstatic'
9965 sysv4 | sysv4.2uw2* | sysv4.3*)
9966 lt_prog_compiler_wl='-Wl,'
9967 lt_prog_compiler_pic='-KPIC'
9968 lt_prog_compiler_static='-Bstatic'
9972 if test -d /usr/nec ;then
9973 lt_prog_compiler_pic='-Kconform_pic'
9974 lt_prog_compiler_static='-Bstatic'
9978 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9979 lt_prog_compiler_wl='-Wl,'
9980 lt_prog_compiler_pic='-KPIC'
9981 lt_prog_compiler_static='-Bstatic'
9985 lt_prog_compiler_wl='-Wl,'
9986 lt_prog_compiler_can_build_shared=no
9990 lt_prog_compiler_pic='-pic'
9991 lt_prog_compiler_static='-Bstatic'
9995 lt_prog_compiler_can_build_shared=no
10001 # For platforms which do not support PIC, -DPIC is meaningless:
10003 lt_prog_compiler_pic=
10006 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10011 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10012 if ${lt_cv_prog_compiler_pic+:} false; then :
10013 $as_echo_n "(cached) " >&6
10015 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10018 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10019 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10022 # Check to make sure the PIC flag actually works.
10024 if test -n "$lt_prog_compiler_pic"; then
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10026 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10027 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10028 $as_echo_n "(cached) " >&6
10030 lt_cv_prog_compiler_pic_works=no
10031 ac_outfile=conftest.$ac_objext
10032 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10033 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10034 # Insert the option either (1) after the last *FLAGS variable, or
10035 # (2) before a word containing "conftest.", or (3) at the end.
10036 # Note that $ac_compile itself does not contain backslashes and begins
10037 # with a dollar sign (not a hyphen), so the echo should work correctly.
10038 # The option is referenced via a variable to avoid confusing sed.
10039 lt_compile=`echo "$ac_compile" | $SED \
10040 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10042 -e 's:$: $lt_compiler_flag:'`
10043 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10044 (eval "$lt_compile" 2>conftest.err)
10046 cat conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 if (exit $ac_status) && test -s "$ac_outfile"; then
10049 # The compiler can only warn and ignore the option if not recognized
10050 # So say no if there are warnings other than the usual output.
10051 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10053 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10054 lt_cv_prog_compiler_pic_works=yes
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10061 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10063 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10064 case $lt_prog_compiler_pic in
10066 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10069 lt_prog_compiler_pic=
10070 lt_prog_compiler_can_build_shared=no
10086 # Check to make sure the static flag actually works.
10088 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10090 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10091 if ${lt_cv_prog_compiler_static_works+:} false; then :
10092 $as_echo_n "(cached) " >&6
10094 lt_cv_prog_compiler_static_works=no
10095 save_LDFLAGS="$LDFLAGS"
10096 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10097 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10098 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10099 # The linker can only warn and ignore the option if not recognized
10100 # So say no if there are warnings
10101 if test -s conftest.err; then
10102 # Append any errors to the config.log.
10103 cat conftest.err 1>&5
10104 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10106 if diff conftest.exp conftest.er2 >/dev/null; then
10107 lt_cv_prog_compiler_static_works=yes
10110 lt_cv_prog_compiler_static_works=yes
10114 LDFLAGS="$save_LDFLAGS"
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10118 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10120 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10123 lt_prog_compiler_static=
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10133 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10134 if ${lt_cv_prog_compiler_c_o+:} false; then :
10135 $as_echo_n "(cached) " >&6
10137 lt_cv_prog_compiler_c_o=no
10138 $RM -r conftest 2>/dev/null
10142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10144 lt_compiler_flag="-o out/conftest2.$ac_objext"
10145 # Insert the option either (1) after the last *FLAGS variable, or
10146 # (2) before a word containing "conftest.", or (3) at the end.
10147 # Note that $ac_compile itself does not contain backslashes and begins
10148 # with a dollar sign (not a hyphen), so the echo should work correctly.
10149 lt_compile=`echo "$ac_compile" | $SED \
10150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10152 -e 's:$: $lt_compiler_flag:'`
10153 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10154 (eval "$lt_compile" 2>out/conftest.err)
10156 cat out/conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10160 # The compiler can only warn and ignore the option if not recognized
10161 # So say no if there are warnings
10162 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10163 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10164 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10165 lt_cv_prog_compiler_c_o=yes
10170 # SGI C++ compiler will create directory out/ii_files/ for
10171 # template instantiation
10172 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10173 $RM out/* && rmdir out
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10180 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10188 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10189 if ${lt_cv_prog_compiler_c_o+:} false; then :
10190 $as_echo_n "(cached) " >&6
10192 lt_cv_prog_compiler_c_o=no
10193 $RM -r conftest 2>/dev/null
10197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10199 lt_compiler_flag="-o out/conftest2.$ac_objext"
10200 # Insert the option either (1) after the last *FLAGS variable, or
10201 # (2) before a word containing "conftest.", or (3) at the end.
10202 # Note that $ac_compile itself does not contain backslashes and begins
10203 # with a dollar sign (not a hyphen), so the echo should work correctly.
10204 lt_compile=`echo "$ac_compile" | $SED \
10205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10207 -e 's:$: $lt_compiler_flag:'`
10208 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10209 (eval "$lt_compile" 2>out/conftest.err)
10211 cat out/conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10215 # The compiler can only warn and ignore the option if not recognized
10216 # So say no if there are warnings
10217 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10218 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10219 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10220 lt_cv_prog_compiler_c_o=yes
10225 # SGI C++ compiler will create directory out/ii_files/ for
10226 # template instantiation
10227 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10228 $RM out/* && rmdir out
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10235 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10240 hard_links="nottested"
10241 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10242 # do not overwrite the value of need_locks provided by the user
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10244 $as_echo_n "checking if we can lock with hard links... " >&6; }
10247 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10249 ln conftest.a conftest.b 2>&5 || hard_links=no
10250 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10252 $as_echo "$hard_links" >&6; }
10253 if test "$hard_links" = no; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10255 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10268 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10271 allow_undefined_flag=
10272 always_export_symbols=no
10274 archive_expsym_cmds=
10275 compiler_needs_object=no
10276 enable_shared_with_static_runtimes=no
10277 export_dynamic_flag_spec=
10278 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10279 hardcode_automatic=no
10281 hardcode_direct_absolute=no
10282 hardcode_libdir_flag_spec=
10283 hardcode_libdir_separator=
10284 hardcode_minus_L=no
10285 hardcode_shlibpath_var=unsupported
10287 link_all_deplibs=unknown
10289 module_expsym_cmds=
10290 old_archive_from_new_cmds=
10291 old_archive_from_expsyms_cmds=
10292 thread_safe_flag_spec=
10293 whole_archive_flag_spec=
10294 # include_expsyms should be a list of space-separated symbols to be *always*
10295 # included in the symbol list
10297 # exclude_expsyms can be an extended regexp of symbols to exclude
10298 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10299 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10300 # as well as any symbol that contains `d'.
10301 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10302 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10303 # platforms (ab)use it in PIC code, but their linkers get confused if
10304 # the symbol is explicitly referenced. Since portable code cannot
10305 # rely on this symbol name, it's probably fine to never include it in
10306 # preloaded symbol tables.
10307 # Exclude shared library initialization/finalization symbols.
10308 extract_expsyms_cmds=
10311 cygwin* | mingw* | pw32* | cegcc*)
10312 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10313 # When not using gcc, we currently assume that we are using
10314 # Microsoft Visual C++.
10315 if test "$GCC" != yes; then
10320 # we just hope/assume this is gcc and not c89 (= MSVC++)
10326 linux* | k*bsd*-gnu | gnu*)
10327 link_all_deplibs=no
10333 # On some targets, GNU ld is compatible enough with the native linker
10334 # that we're better off using the native interface for both.
10335 lt_use_gnu_ld_interface=no
10336 if test "$with_gnu_ld" = yes; then
10339 # The AIX port of GNU ld has always aspired to compatibility
10340 # with the native linker. However, as the warning in the GNU ld
10341 # block says, versions before 2.19.5* couldn't really create working
10342 # shared libraries, regardless of the interface used.
10343 case `$LD -v 2>&1` in
10344 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10345 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10346 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10348 lt_use_gnu_ld_interface=yes
10353 lt_use_gnu_ld_interface=yes
10358 if test "$lt_use_gnu_ld_interface" = yes; then
10359 # If archive_cmds runs LD, not CC, wlarc should be empty
10362 # Set some defaults for GNU ld with shared library support. These
10363 # are reset later if shared libraries are not supported. Putting them
10364 # here allows them to be overridden if necessary.
10365 runpath_var=LD_RUN_PATH
10366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10367 export_dynamic_flag_spec='${wl}--export-dynamic'
10368 # ancient GNU ld didn't support --whole-archive et. al.
10369 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10370 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10372 whole_archive_flag_spec=
10374 supports_anon_versioning=no
10375 case `$LD -v 2>&1` in
10376 *GNU\ gold*) supports_anon_versioning=yes ;;
10377 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10378 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10379 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10380 *\ 2.11.*) ;; # other 2.11 versions
10381 *) supports_anon_versioning=yes ;;
10384 # See if GNU ld supports shared libraries.
10387 # On AIX/PPC, the GNU linker is very broken
10388 if test "$host_cpu" != ia64; then
10392 *** Warning: the GNU linker, at least up to release 2.19, is reported
10393 *** to be unable to reliably create shared libraries on AIX.
10394 *** Therefore, libtool is disabling shared libraries support. If you
10395 *** really care for shared libraries, you may want to install binutils
10396 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10397 *** You will then need to restart the configuration process.
10406 # see comment about AmigaOS4 .so support
10407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10408 archive_expsym_cmds=''
10411 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)'
10412 hardcode_libdir_flag_spec='-L$libdir'
10413 hardcode_minus_L=yes
10419 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10420 allow_undefined_flag=unsupported
10421 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10422 # support --undefined. This deserves some investigation. FIXME
10423 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10429 cygwin* | mingw* | pw32* | cegcc*)
10430 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10431 # as there is no search path for DLLs.
10432 hardcode_libdir_flag_spec='-L$libdir'
10433 export_dynamic_flag_spec='${wl}--export-all-symbols'
10434 allow_undefined_flag=unsupported
10435 always_export_symbols=no
10436 enable_shared_with_static_runtimes=yes
10437 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'
10438 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10440 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10442 # If the export-symbols file already is a .def file (1st line
10443 # is EXPORTS), use it as is; otherwise, prepend...
10444 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10445 cp $export_symbols $output_objdir/$soname.def;
10447 echo EXPORTS > $output_objdir/$soname.def;
10448 cat $export_symbols >> $output_objdir/$soname.def;
10450 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10458 link_all_deplibs=yes
10463 hardcode_shlibpath_var=no
10464 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10465 export_dynamic_flag_spec='${wl}-E'
10466 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10467 # Instead, shared libraries are loaded at an image base (0x10000000 by
10468 # default) and relocated if they conflict, which is a slow very memory
10469 # consuming and fragmenting process. To avoid this, we pick a random,
10470 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10471 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10472 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10473 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'
10476 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10478 if test "$host_os" = linux-dietlibc; then
10479 case $cc_basename in
10480 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10483 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10484 && test "$tmp_diet" = no
10486 tmp_addflag=' $pic_flag'
10487 tmp_sharedflag='-shared'
10488 case $cc_basename,$host_cpu in
10489 pgcc*) # Portland Group C compiler
10490 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'
10491 tmp_addflag=' $pic_flag'
10493 pgf77* | pgf90* | pgf95* | pgfortran*)
10494 # Portland Group f77 and f90 compilers
10495 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'
10496 tmp_addflag=' $pic_flag -Mnomain' ;;
10497 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10498 tmp_addflag=' -i_dynamic' ;;
10499 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10500 tmp_addflag=' -i_dynamic -nofor_main' ;;
10501 ifc* | ifort*) # Intel Fortran compiler
10502 tmp_addflag=' -nofor_main' ;;
10503 lf95*) # Lahey Fortran 8.1
10504 whole_archive_flag_spec=
10505 tmp_sharedflag='--shared' ;;
10506 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10507 tmp_sharedflag='-qmkshrobj'
10509 nvcc*) # Cuda Compiler Driver 2.2
10510 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'
10511 compiler_needs_object=yes
10514 case `$CC -V 2>&1 | sed 5q` in
10515 *Sun\ C*) # Sun C 5.9
10516 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'
10517 compiler_needs_object=yes
10518 tmp_sharedflag='-G' ;;
10519 *Sun\ F*) # Sun Fortran 8.3
10520 tmp_sharedflag='-G' ;;
10522 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10524 if test "x$supports_anon_versioning" = xyes; then
10525 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10526 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10527 echo "local: *; };" >> $output_objdir/$libname.ver~
10528 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10531 case $cc_basename in
10532 xlf* | bgf* | bgxlf* | mpixlf*)
10533 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10534 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10536 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10537 if test "x$supports_anon_versioning" = xyes; then
10538 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10539 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10540 echo "local: *; };" >> $output_objdir/$libname.ver~
10541 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10550 netbsd* | netbsdelf*-gnu)
10551 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10552 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10555 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10556 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10561 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10565 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10566 *** create shared libraries on Solaris systems. Therefore, libtool
10567 *** is disabling shared libraries support. We urge you to upgrade GNU
10568 *** binutils to release 2.9.1 or newer. Another option is to modify
10569 *** your PATH or compiler configuration so that the native linker is
10570 *** used, and then restart.
10573 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10574 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10575 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10582 case `$LD -v 2>&1` in
10583 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10587 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10588 *** reliably create shared libraries on SCO systems. Therefore, libtool
10589 *** is disabling shared libraries support. We urge you to upgrade GNU
10590 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10591 *** your PATH or compiler configuration so that the native linker is
10592 *** used, and then restart.
10597 # For security reasons, it is highly recommended that you always
10598 # use absolute paths for naming shared libraries, and exclude the
10599 # DT_RUNPATH tag from executables and libraries. But doing so
10600 # requires that you compile everything twice, which is a pain.
10601 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10604 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10613 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10615 hardcode_direct=yes
10616 hardcode_shlibpath_var=no
10620 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10621 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10622 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10629 if test "$ld_shlibs" = no; then
10631 hardcode_libdir_flag_spec=
10632 export_dynamic_flag_spec=
10633 whole_archive_flag_spec=
10636 # PORTME fill in a description of your system's linker (not GNU ld)
10639 allow_undefined_flag=unsupported
10640 always_export_symbols=yes
10641 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'
10642 # Note: this linker hardcodes the directories in LIBPATH if there
10643 # are no directories specified by -L.
10644 hardcode_minus_L=yes
10645 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10646 # Neither direct hardcoding nor static linking is supported with a
10648 hardcode_direct=unsupported
10653 if test "$host_cpu" = ia64; then
10654 # On IA64, the linker does run time linking by default, so we don't
10655 # have to do anything special.
10656 aix_use_runtimelinking=no
10657 exp_sym_flag='-Bexport'
10660 # If we're using GNU nm, then we don't want the "-C" option.
10661 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10662 # Also, AIX nm treats weak defined symbols like other global
10663 # defined symbols, whereas GNU nm marks them as "W".
10664 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10665 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'
10667 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'
10669 aix_use_runtimelinking=no
10671 # Test if we are trying to use run time linking or normal
10672 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10673 # need to do runtime linking.
10674 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10675 for ld_flag in $LDFLAGS; do
10676 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10677 aix_use_runtimelinking=yes
10684 exp_sym_flag='-bexport'
10685 no_entry_flag='-bnoentry'
10688 # When large executables or shared objects are built, AIX ld can
10689 # have problems creating the table of contents. If linking a library
10690 # or program results in "error TOC overflow" add -mminimal-toc to
10691 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10692 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10695 hardcode_direct=yes
10696 hardcode_direct_absolute=yes
10697 hardcode_libdir_separator=':'
10698 link_all_deplibs=yes
10699 file_list_spec='${wl}-f,'
10701 if test "$GCC" = yes; then
10702 case $host_os in aix4.[012]|aix4.[012].*)
10703 # We only want to do this on AIX 4.2 and lower, the check
10704 # below for broken collect2 doesn't work under 4.3+
10705 collect2name=`${CC} -print-prog-name=collect2`
10706 if test -f "$collect2name" &&
10707 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10709 # We have reworked collect2
10712 # We have old collect2
10713 hardcode_direct=unsupported
10714 # It fails to find uninstalled libraries when the uninstalled
10715 # path is not listed in the libpath. Setting hardcode_minus_L
10716 # to unsupported forces relinking
10717 hardcode_minus_L=yes
10718 hardcode_libdir_flag_spec='-L$libdir'
10719 hardcode_libdir_separator=
10723 shared_flag='-shared'
10724 if test "$aix_use_runtimelinking" = yes; then
10725 shared_flag="$shared_flag "'${wl}-G'
10727 link_all_deplibs=no
10730 if test "$host_cpu" = ia64; then
10731 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10732 # chokes on -Wl,-G. The following line is correct:
10735 if test "$aix_use_runtimelinking" = yes; then
10736 shared_flag='${wl}-G'
10738 shared_flag='${wl}-bM:SRE'
10743 export_dynamic_flag_spec='${wl}-bexpall'
10744 # It seems that -bexpall does not export symbols beginning with
10745 # underscore (_), so it is better to generate a list of symbols to export.
10746 always_export_symbols=yes
10747 if test "$aix_use_runtimelinking" = yes; then
10748 # Warning - without using the other runtime loading flags (-brtl),
10749 # -berok will link without error, but may produce a broken library.
10750 allow_undefined_flag='-berok'
10751 # Determine the default libpath from the value encoded in an
10752 # empty executable.
10753 if test "${lt_cv_aix_libpath+set}" = set; then
10754 aix_libpath=$lt_cv_aix_libpath
10756 if ${lt_cv_aix_libpath_+:} false; then :
10757 $as_echo_n "(cached) " >&6
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h. */
10770 if ac_fn_c_try_link "$LINENO"; then :
10772 lt_aix_libpath_sed='
10773 /Import File Strings/,/^$/ {
10775 s/^0 *\([^ ]*\) *$/\1/
10779 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10780 # Check for a 64-bit object if we didn't find anything.
10781 if test -z "$lt_cv_aix_libpath_"; then
10782 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10785 rm -f core conftest.err conftest.$ac_objext \
10786 conftest$ac_exeext conftest.$ac_ext
10787 if test -z "$lt_cv_aix_libpath_"; then
10788 lt_cv_aix_libpath_="/usr/lib:/lib"
10793 aix_libpath=$lt_cv_aix_libpath_
10796 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10797 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"
10799 if test "$host_cpu" = ia64; then
10800 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10801 allow_undefined_flag="-z nodefs"
10802 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"
10804 # Determine the default libpath from the value encoded in an
10805 # empty executable.
10806 if test "${lt_cv_aix_libpath+set}" = set; then
10807 aix_libpath=$lt_cv_aix_libpath
10809 if ${lt_cv_aix_libpath_+:} false; then :
10810 $as_echo_n "(cached) " >&6
10812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10823 if ac_fn_c_try_link "$LINENO"; then :
10825 lt_aix_libpath_sed='
10826 /Import File Strings/,/^$/ {
10828 s/^0 *\([^ ]*\) *$/\1/
10832 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10833 # Check for a 64-bit object if we didn't find anything.
10834 if test -z "$lt_cv_aix_libpath_"; then
10835 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10838 rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840 if test -z "$lt_cv_aix_libpath_"; then
10841 lt_cv_aix_libpath_="/usr/lib:/lib"
10846 aix_libpath=$lt_cv_aix_libpath_
10849 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10850 # Warning - without using the other run time loading flags,
10851 # -berok will link without error, but may produce a broken library.
10852 no_undefined_flag=' ${wl}-bernotok'
10853 allow_undefined_flag=' ${wl}-berok'
10854 if test "$with_gnu_ld" = yes; then
10855 # We only use this code for GNU lds that support --whole-archive.
10856 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10858 # Exported symbols can be pulled into shared objects from archives
10859 whole_archive_flag_spec='$convenience'
10861 archive_cmds_need_lc=yes
10862 # This is similar to how AIX traditionally builds its shared libraries.
10863 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'
10871 # see comment about AmigaOS4 .so support
10872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10873 archive_expsym_cmds=''
10876 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)'
10877 hardcode_libdir_flag_spec='-L$libdir'
10878 hardcode_minus_L=yes
10884 export_dynamic_flag_spec=-rdynamic
10887 cygwin* | mingw* | pw32* | cegcc*)
10888 # When not using gcc, we currently assume that we are using
10889 # Microsoft Visual C++.
10890 # hardcode_libdir_flag_spec is actually meaningless, as there is
10891 # no search path for DLLs.
10892 case $cc_basename in
10895 hardcode_libdir_flag_spec=' '
10896 allow_undefined_flag=unsupported
10897 always_export_symbols=yes
10899 # Tell ltmain to make .lib files, not .a files.
10901 # Tell ltmain to make .dll files, not .so files.
10903 # FIXME: Setting linknames here is a bad hack.
10904 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10905 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10906 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10908 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10910 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10912 # The linker will not automatically build a static lib if we build a DLL.
10913 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10914 enable_shared_with_static_runtimes=yes
10915 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10916 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10918 old_postinstall_cmds='chmod 644 $oldlib'
10919 postlink_cmds='lt_outputfile="@OUTPUT@"~
10920 lt_tool_outputfile="@TOOL_OUTPUT@"~
10921 case $lt_outputfile in
10924 lt_outputfile="$lt_outputfile.exe"
10925 lt_tool_outputfile="$lt_tool_outputfile.exe"
10928 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10929 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10930 $RM "$lt_outputfile.manifest";
10934 # Assume MSVC wrapper
10935 hardcode_libdir_flag_spec=' '
10936 allow_undefined_flag=unsupported
10937 # Tell ltmain to make .lib files, not .a files.
10939 # Tell ltmain to make .dll files, not .so files.
10941 # FIXME: Setting linknames here is a bad hack.
10942 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10943 # The linker will automatically build a .lib file if we build a DLL.
10944 old_archive_from_new_cmds='true'
10945 # FIXME: Should let the user specify the lib program.
10946 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10947 enable_shared_with_static_runtimes=yes
10952 darwin* | rhapsody*)
10955 archive_cmds_need_lc=no
10957 hardcode_automatic=yes
10958 hardcode_shlibpath_var=unsupported
10959 if test "$lt_cv_ld_force_load" = "yes"; then
10960 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\"`'
10963 whole_archive_flag_spec=''
10965 link_all_deplibs=yes
10966 allow_undefined_flag="$_lt_dar_allow_undefined"
10967 case $cc_basename in
10968 ifort*) _lt_dar_can_shared=yes ;;
10969 *) _lt_dar_can_shared=$GCC ;;
10971 if test "$_lt_dar_can_shared" = "yes"; then
10972 output_verbose_link_cmd=func_echo_all
10973 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10974 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10975 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}"
10976 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}"
10985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10986 hardcode_libdir_flag_spec='-L$libdir'
10987 hardcode_shlibpath_var=no
10990 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10991 # support. Future versions do this automatically, but an explicit c++rt0.o
10992 # does not break anything, and helps significantly (at the cost of a little
10995 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10996 hardcode_libdir_flag_spec='-R$libdir'
10997 hardcode_direct=yes
10998 hardcode_shlibpath_var=no
11001 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11003 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11004 hardcode_direct=yes
11005 hardcode_minus_L=yes
11006 hardcode_shlibpath_var=no
11009 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11010 freebsd* | dragonfly*)
11011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11012 hardcode_libdir_flag_spec='-R$libdir'
11013 hardcode_direct=yes
11014 hardcode_shlibpath_var=no
11018 if test "$GCC" = yes; then
11019 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'
11021 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'
11023 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11024 hardcode_libdir_separator=:
11025 hardcode_direct=yes
11027 # hardcode_minus_L: Not really in the search PATH,
11028 # but as the default location of the library.
11029 hardcode_minus_L=yes
11030 export_dynamic_flag_spec='${wl}-E'
11034 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11035 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11037 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11039 if test "$with_gnu_ld" = no; then
11040 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11041 hardcode_libdir_separator=:
11042 hardcode_direct=yes
11043 hardcode_direct_absolute=yes
11044 export_dynamic_flag_spec='${wl}-E'
11045 # hardcode_minus_L: Not really in the search PATH,
11046 # but as the default location of the library.
11047 hardcode_minus_L=yes
11052 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11055 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11058 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11061 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11067 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11070 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11074 # Older versions of the 11.00 compiler do not understand -b yet
11075 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11077 $as_echo_n "checking if $CC understands -b... " >&6; }
11078 if ${lt_cv_prog_compiler__b+:} false; then :
11079 $as_echo_n "(cached) " >&6
11081 lt_cv_prog_compiler__b=no
11082 save_LDFLAGS="$LDFLAGS"
11083 LDFLAGS="$LDFLAGS -b"
11084 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11085 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11086 # The linker can only warn and ignore the option if not recognized
11087 # So say no if there are warnings
11088 if test -s conftest.err; then
11089 # Append any errors to the config.log.
11090 cat conftest.err 1>&5
11091 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11093 if diff conftest.exp conftest.er2 >/dev/null; then
11094 lt_cv_prog_compiler__b=yes
11097 lt_cv_prog_compiler__b=yes
11101 LDFLAGS="$save_LDFLAGS"
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11105 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11107 if test x"$lt_cv_prog_compiler__b" = xyes; then
11108 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11110 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11116 if test "$with_gnu_ld" = no; then
11117 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11118 hardcode_libdir_separator=:
11123 hardcode_shlibpath_var=no
11126 hardcode_direct=yes
11127 hardcode_direct_absolute=yes
11128 export_dynamic_flag_spec='${wl}-E'
11130 # hardcode_minus_L: Not really in the search PATH,
11131 # but as the default location of the library.
11132 hardcode_minus_L=yes
11138 irix5* | irix6* | nonstopux*)
11139 if test "$GCC" = yes; then
11140 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'
11141 # Try to use the -exported_symbol ld option, if it does not
11142 # work, assume that -exports_file does not work either and
11143 # implicitly export all symbols.
11144 # This should be the same for all languages, so no per-tag cache variable.
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11146 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11147 if ${lt_cv_irix_exported_symbol+:} false; then :
11148 $as_echo_n "(cached) " >&6
11150 save_LDFLAGS="$LDFLAGS"
11151 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11153 /* end confdefs.h. */
11154 int foo (void) { return 0; }
11156 if ac_fn_c_try_link "$LINENO"; then :
11157 lt_cv_irix_exported_symbol=yes
11159 lt_cv_irix_exported_symbol=no
11161 rm -f core conftest.err conftest.$ac_objext \
11162 conftest$ac_exeext conftest.$ac_ext
11163 LDFLAGS="$save_LDFLAGS"
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11166 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11167 if test "$lt_cv_irix_exported_symbol" = yes; then
11168 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'
11171 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'
11172 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'
11174 archive_cmds_need_lc='no'
11175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11176 hardcode_libdir_separator=:
11178 link_all_deplibs=yes
11181 netbsd* | netbsdelf*-gnu)
11182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11183 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11185 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11187 hardcode_libdir_flag_spec='-R$libdir'
11188 hardcode_direct=yes
11189 hardcode_shlibpath_var=no
11193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11194 hardcode_direct=yes
11195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11196 hardcode_libdir_separator=:
11197 hardcode_shlibpath_var=no
11204 if test -f /usr/libexec/ld.so; then
11205 hardcode_direct=yes
11206 hardcode_shlibpath_var=no
11207 hardcode_direct_absolute=yes
11208 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11209 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11210 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11211 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11212 export_dynamic_flag_spec='${wl}-E'
11215 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11216 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11217 hardcode_libdir_flag_spec='-R$libdir'
11220 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11221 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11231 hardcode_libdir_flag_spec='-L$libdir'
11232 hardcode_minus_L=yes
11233 allow_undefined_flag=unsupported
11234 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'
11235 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11239 if test "$GCC" = yes; then
11240 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11241 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'
11243 allow_undefined_flag=' -expect_unresolved \*'
11244 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'
11246 archive_cmds_need_lc='no'
11247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11248 hardcode_libdir_separator=:
11251 osf4* | osf5*) # as osf3* with the addition of -msym flag
11252 if test "$GCC" = yes; then
11253 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11254 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'
11255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11257 allow_undefined_flag=' -expect_unresolved \*'
11258 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'
11259 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~
11260 $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'
11262 # Both c and cxx compiler support -rpath directly
11263 hardcode_libdir_flag_spec='-rpath $libdir'
11265 archive_cmds_need_lc='no'
11266 hardcode_libdir_separator=:
11270 no_undefined_flag=' -z defs'
11271 if test "$GCC" = yes; then
11273 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11274 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11275 $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'
11277 case `$CC -V 2>&1` in
11280 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11281 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11282 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11286 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11287 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11288 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11292 hardcode_libdir_flag_spec='-R$libdir'
11293 hardcode_shlibpath_var=no
11295 solaris2.[0-5] | solaris2.[0-5].*) ;;
11297 # The compiler driver will combine and reorder linker options,
11298 # but understands `-z linker_flag'. GCC discards it without `$wl',
11299 # but is careful enough not to reorder.
11300 # Supported since Solaris 2.6 (maybe 2.5.1?)
11301 if test "$GCC" = yes; then
11302 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11304 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11308 link_all_deplibs=yes
11312 if test "x$host_vendor" = xsequent; then
11313 # Use $CC to link under sequent, because it throws in some extra .o
11314 # files that make .init and .fini sections work.
11315 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11317 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11319 hardcode_libdir_flag_spec='-L$libdir'
11320 hardcode_direct=yes
11321 hardcode_minus_L=yes
11322 hardcode_shlibpath_var=no
11326 case $host_vendor in
11328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11329 hardcode_direct=yes # is this really true???
11332 ## LD is ld it makes a PLAMLIB
11333 ## CC just makes a GrossModule.
11334 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11335 reload_cmds='$CC -r -o $output$reload_objs'
11339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11340 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11343 runpath_var='LD_RUN_PATH'
11344 hardcode_shlibpath_var=no
11348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11349 hardcode_shlibpath_var=no
11350 export_dynamic_flag_spec='-Bexport'
11354 if test -d /usr/nec; then
11355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11356 hardcode_shlibpath_var=no
11357 runpath_var=LD_RUN_PATH
11358 hardcode_runpath_var=yes
11363 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11364 no_undefined_flag='${wl}-z,text'
11365 archive_cmds_need_lc=no
11366 hardcode_shlibpath_var=no
11367 runpath_var='LD_RUN_PATH'
11369 if test "$GCC" = yes; then
11370 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11371 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11373 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11374 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11378 sysv5* | sco3.2v5* | sco5v6*)
11379 # Note: We can NOT use -z defs as we might desire, because we do not
11380 # link with -lc, and that would cause any symbols used from libc to
11381 # always be unresolved, which means just about no library would
11382 # ever link correctly. If we're not using GNU ld we use -z text
11383 # though, which does catch some bad symbols but isn't as heavy-handed
11385 no_undefined_flag='${wl}-z,text'
11386 allow_undefined_flag='${wl}-z,nodefs'
11387 archive_cmds_need_lc=no
11388 hardcode_shlibpath_var=no
11389 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11390 hardcode_libdir_separator=':'
11391 link_all_deplibs=yes
11392 export_dynamic_flag_spec='${wl}-Bexport'
11393 runpath_var='LD_RUN_PATH'
11395 if test "$GCC" = yes; then
11396 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11397 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11399 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11400 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11406 hardcode_libdir_flag_spec='-L$libdir'
11407 hardcode_shlibpath_var=no
11415 if test x$host_vendor = xsni; then
11417 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11418 export_dynamic_flag_spec='${wl}-Blargedynsym'
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11425 $as_echo "$ld_shlibs" >&6; }
11426 test "$ld_shlibs" = no && can_build_shared=no
11428 with_gnu_ld=$with_gnu_ld
11445 # Do we need to explicitly link libc?
11447 case "x$archive_cmds_need_lc" in
11449 # Assume -lc should be added
11450 archive_cmds_need_lc=yes
11452 if test "$enable_shared" = yes && test "$GCC" = yes; then
11453 case $archive_cmds in
11455 # FIXME: we may have to deal with multi-command sequences.
11458 # Test whether the compiler implicitly links with -lc since on some
11459 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11460 # to ld, don't add -lc before -lgcc.
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11462 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11463 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11464 $as_echo_n "(cached) " >&6
11467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11470 (eval $ac_compile) 2>&5
11472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11473 test $ac_status = 0; } 2>conftest.err; then
11476 libobjs=conftest.$ac_objext
11478 wl=$lt_prog_compiler_wl
11479 pic_flag=$lt_prog_compiler_pic
11485 lt_save_allow_undefined_flag=$allow_undefined_flag
11486 allow_undefined_flag=
11487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11488 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11491 test $ac_status = 0; }
11493 lt_cv_archive_cmds_need_lc=no
11495 lt_cv_archive_cmds_need_lc=yes
11497 allow_undefined_flag=$lt_save_allow_undefined_flag
11499 cat conftest.err 1>&5
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11505 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11506 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11665 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11667 if test "$GCC" = yes; then
11669 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11670 *) lt_awk_arg="/^libraries:/" ;;
11673 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11674 *) lt_sed_strip_eq="s,=/,/,g" ;;
11676 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11677 case $lt_search_path_spec in
11679 # if the path contains ";" then we assume it to be the separator
11680 # otherwise default to the standard path separator (i.e. ":") - it is
11681 # assumed that no part of a normal pathname contains ";" but that should
11682 # okay in the real world where ";" in dirpaths is itself problematic.
11683 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11686 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11689 # Ok, now we have the path, separated by spaces, we can step through it
11690 # and add multilib dir if necessary.
11691 lt_tmp_lt_search_path_spec=
11692 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11693 for lt_sys_path in $lt_search_path_spec; do
11694 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11695 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11697 test -d "$lt_sys_path" && \
11698 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11701 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11702 BEGIN {RS=" "; FS="/|\n";} {
11705 for (lt_i = NF; lt_i > 0; lt_i--) {
11706 if ($lt_i != "" && $lt_i != ".") {
11707 if ($lt_i == "..") {
11710 if (lt_count == 0) {
11711 lt_foo="/" $lt_i lt_foo;
11718 if (lt_foo != "") { lt_freq[lt_foo]++; }
11719 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11721 # AWK program above erroneously prepends '/' to C:/dos/paths
11724 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11725 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11727 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11729 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11731 library_names_spec=
11732 libname_spec='lib$name'
11736 postuninstall_cmds=
11740 shlibpath_overrides_runpath=unknown
11742 dynamic_linker="$host_os ld.so"
11743 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11744 need_lib_prefix=unknown
11745 hardcode_into_libs=no
11747 # when you set need_version to no, make sure it does not cause -set_version
11748 # flags to be left without arguments
11749 need_version=unknown
11753 version_type=linux # correct to gnu/linux during the next big refactor
11754 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11755 shlibpath_var=LIBPATH
11757 # AIX 3 has no versioning support, so we append a major version to the name.
11758 soname_spec='${libname}${release}${shared_ext}$major'
11762 version_type=linux # correct to gnu/linux during the next big refactor
11765 hardcode_into_libs=yes
11766 if test "$host_cpu" = ia64; then
11767 # AIX 5 supports IA64
11768 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11769 shlibpath_var=LD_LIBRARY_PATH
11771 # With GCC up to 2.95.x, collect2 would create an import file
11772 # for dependence libraries. The import file would start with
11773 # the line `#! .'. This would cause the generated library to
11774 # depend on `.', always an invalid library. This was fixed in
11775 # development snapshots of GCC prior to 3.0.
11777 aix4 | aix4.[01] | aix4.[01].*)
11778 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11780 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11783 can_build_shared=no
11787 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11788 # soname into executable. Probably we can add versioning support to
11789 # collect2, so additional links can be useful in future.
11790 if test "$aix_use_runtimelinking" = yes; then
11791 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11792 # instead of lib<name>.a to let people know that these are not
11793 # typical AIX shared libraries.
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796 # We preserve .a as extension for shared libraries through AIX4.2
11797 # and later when we are not doing run time linking.
11798 library_names_spec='${libname}${release}.a $libname.a'
11799 soname_spec='${libname}${release}${shared_ext}$major'
11801 shlibpath_var=LIBPATH
11808 # Since July 2007 AmigaOS4 officially supports .so libraries.
11809 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813 library_names_spec='$libname.ixlibrary $libname.a'
11814 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11815 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'
11821 library_names_spec='${libname}${shared_ext}'
11822 dynamic_linker="$host_os ld.so"
11823 shlibpath_var=LIBRARY_PATH
11827 version_type=linux # correct to gnu/linux during the next big refactor
11829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11830 soname_spec='${libname}${release}${shared_ext}$major'
11831 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11834 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11835 # the default ld.so.conf also contains /usr/contrib/lib and
11836 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11837 # libtool to hard-code these into programs
11840 cygwin* | mingw* | pw32* | cegcc*)
11841 version_type=windows
11846 case $GCC,$cc_basename in
11849 library_names_spec='$libname.dll.a'
11850 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11851 postinstall_cmds='base_file=`basename \${file}`~
11852 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11853 dldir=$destdir/`dirname \$dlpath`~
11854 test -d \$dldir || mkdir -p \$dldir~
11855 $install_prog $dir/$dlname \$dldir/$dlname~
11856 chmod a+x \$dldir/$dlname~
11857 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11858 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11860 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11861 dlpath=$dir/\$dldll~
11863 shlibpath_overrides_runpath=yes
11867 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11868 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11870 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11873 # MinGW DLLs use traditional 'lib' prefix
11874 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11877 # pw32 DLLs use 'pw' prefix rather than 'lib'
11878 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11881 dynamic_linker='Win32 ld.exe'
11886 libname_spec='$name'
11887 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11888 library_names_spec='${libname}.dll.lib'
11892 sys_lib_search_path_spec=
11895 for lt_path in $LIB
11898 # Let DOS variable expansion print the short 8.3 style file name.
11899 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11900 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11903 # Convert to MSYS style.
11904 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11907 # Convert to unix form, then to dos form, then back to unix form
11908 # but this time dos style (no spaces!) so that the unix form looks
11909 # like /cygdrive/c/PROGRA~1:/cygdr...
11910 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11911 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11912 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11915 sys_lib_search_path_spec="$LIB"
11916 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11917 # It is most probably a Windows format PATH.
11918 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11920 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11922 # FIXME: find the short name or the path components, as spaces are
11923 # common. (e.g. "Program Files" -> "PROGRA~1")
11927 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11928 postinstall_cmds='base_file=`basename \${file}`~
11929 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11930 dldir=$destdir/`dirname \$dlpath`~
11931 test -d \$dldir || mkdir -p \$dldir~
11932 $install_prog $dir/$dlname \$dldir/$dlname'
11933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11934 dlpath=$dir/\$dldll~
11936 shlibpath_overrides_runpath=yes
11937 dynamic_linker='Win32 link.exe'
11941 # Assume MSVC wrapper
11942 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11943 dynamic_linker='Win32 ld.exe'
11946 # FIXME: first we should search . and the directory the executable is in
11950 darwin* | rhapsody*)
11951 dynamic_linker="$host_os dyld"
11952 version_type=darwin
11955 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11956 soname_spec='${libname}${release}${major}$shared_ext'
11957 shlibpath_overrides_runpath=yes
11958 shlibpath_var=DYLD_LIBRARY_PATH
11959 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11961 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11966 version_type=linux # correct to gnu/linux during the next big refactor
11969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11970 soname_spec='${libname}${release}${shared_ext}$major'
11971 shlibpath_var=LD_LIBRARY_PATH
11974 freebsd* | dragonfly*)
11975 # DragonFly does not have aout. When/if they implement a new
11976 # versioning mechanism, adjust this.
11977 if test -x /usr/bin/objformat; then
11978 objformat=`/usr/bin/objformat`
11981 freebsd[23].*) objformat=aout ;;
11982 *) objformat=elf ;;
11985 version_type=freebsd-$objformat
11986 case $version_type in
11988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11997 shlibpath_var=LD_LIBRARY_PATH
12000 shlibpath_overrides_runpath=yes
12002 freebsd3.[01]* | freebsdelf3.[01]*)
12003 shlibpath_overrides_runpath=yes
12004 hardcode_into_libs=yes
12006 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12007 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12008 shlibpath_overrides_runpath=no
12009 hardcode_into_libs=yes
12011 *) # from 4.6 on, and DragonFly
12012 shlibpath_overrides_runpath=yes
12013 hardcode_into_libs=yes
12019 version_type=linux # correct to gnu/linux during the next big refactor
12022 dynamic_linker="$host_os runtime_loader"
12023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12024 soname_spec='${libname}${release}${shared_ext}$major'
12025 shlibpath_var=LIBRARY_PATH
12026 shlibpath_overrides_runpath=yes
12027 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12028 hardcode_into_libs=yes
12031 hpux9* | hpux10* | hpux11*)
12032 # Give a soname corresponding to the major version so that dld.sl refuses to
12033 # link against other versions.
12040 hardcode_into_libs=yes
12041 dynamic_linker="$host_os dld.so"
12042 shlibpath_var=LD_LIBRARY_PATH
12043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12045 soname_spec='${libname}${release}${shared_ext}$major'
12046 if test "X$HPUX_IA64_MODE" = X32; then
12047 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12049 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12055 hardcode_into_libs=yes
12056 dynamic_linker="$host_os dld.sl"
12057 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12058 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12060 soname_spec='${libname}${release}${shared_ext}$major'
12061 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12066 dynamic_linker="$host_os dld.sl"
12067 shlibpath_var=SHLIB_PATH
12068 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12070 soname_spec='${libname}${release}${shared_ext}$major'
12073 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12074 postinstall_cmds='chmod 555 $lib'
12075 # or fails outright, so override atomically:
12076 install_override_mode=555
12080 version_type=linux # correct to gnu/linux during the next big refactor
12083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12084 soname_spec='${libname}${release}${shared_ext}$major'
12085 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12086 shlibpath_var=LD_LIBRARY_PATH
12087 shlibpath_overrides_runpath=no
12088 hardcode_into_libs=yes
12091 irix5* | irix6* | nonstopux*)
12093 nonstopux*) version_type=nonstopux ;;
12095 if test "$lt_cv_prog_gnu_ld" = yes; then
12096 version_type=linux # correct to gnu/linux during the next big refactor
12103 soname_spec='${libname}${release}${shared_ext}$major'
12104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12106 irix5* | nonstopux*)
12107 libsuff= shlibsuff=
12110 case $LD in # libtool.m4 will add one of these switches to LD
12111 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12112 libsuff= shlibsuff= libmagic=32-bit;;
12113 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12114 libsuff=32 shlibsuff=N32 libmagic=N32;;
12115 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12116 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12117 *) libsuff= shlibsuff= libmagic=never-match;;
12121 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12122 shlibpath_overrides_runpath=no
12123 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12124 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12125 hardcode_into_libs=yes
12128 # No shared lib support for Linux oldld, aout, or coff.
12129 linux*oldld* | linux*aout* | linux*coff*)
12133 # This must be glibc/ELF.
12134 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12135 version_type=linux # correct to gnu/linux during the next big refactor
12138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12139 soname_spec='${libname}${release}${shared_ext}$major'
12140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12141 shlibpath_var=LD_LIBRARY_PATH
12142 shlibpath_overrides_runpath=no
12144 # Some binutils ld are patched to set DT_RUNPATH
12145 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12146 $as_echo_n "(cached) " >&6
12148 lt_cv_shlibpath_overrides_runpath=no
12149 save_LDFLAGS=$LDFLAGS
12150 save_libdir=$libdir
12151 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12152 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12164 if ac_fn_c_try_link "$LINENO"; then :
12165 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12166 lt_cv_shlibpath_overrides_runpath=yes
12169 rm -f core conftest.err conftest.$ac_objext \
12170 conftest$ac_exeext conftest.$ac_ext
12171 LDFLAGS=$save_LDFLAGS
12172 libdir=$save_libdir
12176 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12178 # This implies no fast_install, which is unacceptable.
12179 # Some rework will be needed to allow for fast_install
12180 # before this can be enabled.
12181 hardcode_into_libs=yes
12183 # Append ld.so.conf contents to the search path
12184 if test -f /etc/ld.so.conf; then
12185 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' ' '`
12186 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12189 # We used to test for /lib/ld.so.1 and disable shared libraries on
12190 # powerpc, because MkLinux only supported shared libraries with the
12191 # GNU dynamic linker. Since this was broken with cross compilers,
12192 # most powerpc-linux boxes support dynamic linking these days and
12193 # people can always --disable-shared, the test was removed, and we
12194 # assume the GNU/Linux dynamic linker is in use.
12195 dynamic_linker='GNU/Linux ld.so'
12202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12203 soname_spec='${libname}${release}${shared_ext}$major'
12204 shlibpath_var=LD_LIBRARY_PATH
12205 shlibpath_overrides_runpath=no
12206 hardcode_into_libs=yes
12207 dynamic_linker='NetBSD ld.elf_so'
12214 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12217 dynamic_linker='NetBSD (a.out) ld.so'
12219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12220 soname_spec='${libname}${release}${shared_ext}$major'
12221 dynamic_linker='NetBSD ld.elf_so'
12223 shlibpath_var=LD_LIBRARY_PATH
12224 shlibpath_overrides_runpath=yes
12225 hardcode_into_libs=yes
12229 version_type=linux # correct to gnu/linux during the next big refactor
12230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12231 shlibpath_var=LD_LIBRARY_PATH
12232 shlibpath_overrides_runpath=yes
12239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12240 soname_spec='${libname}${release}${shared_ext}$major'
12241 shlibpath_var=LD_LIBRARY_PATH
12242 shlibpath_overrides_runpath=no
12243 hardcode_into_libs=yes
12244 dynamic_linker='ldqnx.so'
12249 sys_lib_dlsearch_path_spec="/usr/lib"
12251 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12253 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12254 *) need_version=no ;;
12256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12258 shlibpath_var=LD_LIBRARY_PATH
12259 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12261 openbsd2.[89] | openbsd2.[89].*)
12262 shlibpath_overrides_runpath=no
12265 shlibpath_overrides_runpath=yes
12269 shlibpath_overrides_runpath=yes
12274 libname_spec='$name'
12277 library_names_spec='$libname${shared_ext} $libname.a'
12278 dynamic_linker='OS/2 ld.exe'
12279 shlibpath_var=LIBPATH
12282 osf3* | osf4* | osf5*)
12286 soname_spec='${libname}${release}${shared_ext}$major'
12287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12288 shlibpath_var=LD_LIBRARY_PATH
12289 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12290 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12298 version_type=linux # correct to gnu/linux during the next big refactor
12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12302 soname_spec='${libname}${release}${shared_ext}$major'
12303 shlibpath_var=LD_LIBRARY_PATH
12304 shlibpath_overrides_runpath=yes
12305 hardcode_into_libs=yes
12306 # ldd complains unless libraries are executable
12307 postinstall_cmds='chmod +x $lib'
12312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12313 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12314 shlibpath_var=LD_LIBRARY_PATH
12315 shlibpath_overrides_runpath=yes
12316 if test "$with_gnu_ld" = yes; then
12323 version_type=linux # correct to gnu/linux during the next big refactor
12324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12325 soname_spec='${libname}${release}${shared_ext}$major'
12326 shlibpath_var=LD_LIBRARY_PATH
12327 case $host_vendor in
12329 shlibpath_overrides_runpath=no
12331 runpath_var=LD_RUN_PATH
12339 shlibpath_overrides_runpath=no
12340 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12346 if test -d /usr/nec ;then
12347 version_type=linux # correct to gnu/linux during the next big refactor
12348 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12349 soname_spec='$libname${shared_ext}.$major'
12350 shlibpath_var=LD_LIBRARY_PATH
12354 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12355 version_type=freebsd-elf
12358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12359 soname_spec='${libname}${release}${shared_ext}$major'
12360 shlibpath_var=LD_LIBRARY_PATH
12361 shlibpath_overrides_runpath=yes
12362 hardcode_into_libs=yes
12363 if test "$with_gnu_ld" = yes; then
12364 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12366 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12369 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12373 sys_lib_dlsearch_path_spec='/usr/lib'
12377 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12378 version_type=linux # correct to gnu/linux during the next big refactor
12381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12382 shlibpath_var=LD_LIBRARY_PATH
12383 shlibpath_overrides_runpath=no
12384 hardcode_into_libs=yes
12388 version_type=linux # correct to gnu/linux during the next big refactor
12389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12390 soname_spec='${libname}${release}${shared_ext}$major'
12391 shlibpath_var=LD_LIBRARY_PATH
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12399 $as_echo "$dynamic_linker" >&6; }
12400 test "$dynamic_linker" = no && can_build_shared=no
12402 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12403 if test "$GCC" = yes; then
12404 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12407 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12408 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12410 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12411 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12506 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12508 if test -n "$hardcode_libdir_flag_spec" ||
12509 test -n "$runpath_var" ||
12510 test "X$hardcode_automatic" = "Xyes" ; then
12512 # We can hardcode non-existent directories.
12513 if test "$hardcode_direct" != no &&
12514 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12515 # have to relink, otherwise we might link with an installed library
12516 # when we should be linking with a yet-to-be-installed one
12517 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12518 test "$hardcode_minus_L" != no; then
12519 # Linking always hardcodes the temporary library directory.
12520 hardcode_action=relink
12522 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12523 hardcode_action=immediate
12526 # We cannot hardcode anything, or else we can only hardcode existing
12528 hardcode_action=unsupported
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12531 $as_echo "$hardcode_action" >&6; }
12533 if test "$hardcode_action" = relink ||
12534 test "$inherit_rpath" = yes; then
12535 # Fast installation is not supported
12536 enable_fast_install=no
12537 elif test "$shlibpath_overrides_runpath" = yes ||
12538 test "$enable_shared" = no; then
12539 # Fast installation is not necessary
12540 enable_fast_install=needless
12548 if test "x$enable_dlopen" != xyes; then
12549 enable_dlopen=unknown
12550 enable_dlopen_self=unknown
12551 enable_dlopen_self_static=unknown
12558 lt_cv_dlopen="load_add_on"
12560 lt_cv_dlopen_self=yes
12563 mingw* | pw32* | cegcc*)
12564 lt_cv_dlopen="LoadLibrary"
12569 lt_cv_dlopen="dlopen"
12574 # if libdl is installed we need to link against it
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12576 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12577 if ${ac_cv_lib_dl_dlopen+:} false; then :
12578 $as_echo_n "(cached) " >&6
12580 ac_check_lib_save_LIBS=$LIBS
12582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12585 /* Override any GCC internal prototype to avoid an error.
12586 Use char because int might match the return type of a GCC
12587 builtin and then its argument prototype would still apply. */
12600 if ac_fn_c_try_link "$LINENO"; then :
12601 ac_cv_lib_dl_dlopen=yes
12603 ac_cv_lib_dl_dlopen=no
12605 rm -f core conftest.err conftest.$ac_objext \
12606 conftest$ac_exeext conftest.$ac_ext
12607 LIBS=$ac_check_lib_save_LIBS
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12610 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12611 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12612 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12615 lt_cv_dlopen="dyld"
12617 lt_cv_dlopen_self=yes
12624 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12625 if test "x$ac_cv_func_shl_load" = xyes; then :
12626 lt_cv_dlopen="shl_load"
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12629 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12630 if ${ac_cv_lib_dld_shl_load+:} false; then :
12631 $as_echo_n "(cached) " >&6
12633 ac_check_lib_save_LIBS=$LIBS
12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h. */
12638 /* Override any GCC internal prototype to avoid an error.
12639 Use char because int might match the return type of a GCC
12640 builtin and then its argument prototype would still apply. */
12648 return shl_load ();
12653 if ac_fn_c_try_link "$LINENO"; then :
12654 ac_cv_lib_dld_shl_load=yes
12656 ac_cv_lib_dld_shl_load=no
12658 rm -f core conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext conftest.$ac_ext
12660 LIBS=$ac_check_lib_save_LIBS
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12663 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12664 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12665 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12667 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12668 if test "x$ac_cv_func_dlopen" = xyes; then :
12669 lt_cv_dlopen="dlopen"
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12672 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12673 if ${ac_cv_lib_dl_dlopen+:} false; then :
12674 $as_echo_n "(cached) " >&6
12676 ac_check_lib_save_LIBS=$LIBS
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12681 /* Override any GCC internal prototype to avoid an error.
12682 Use char because int might match the return type of a GCC
12683 builtin and then its argument prototype would still apply. */
12696 if ac_fn_c_try_link "$LINENO"; then :
12697 ac_cv_lib_dl_dlopen=yes
12699 ac_cv_lib_dl_dlopen=no
12701 rm -f core conftest.err conftest.$ac_objext \
12702 conftest$ac_exeext conftest.$ac_ext
12703 LIBS=$ac_check_lib_save_LIBS
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12706 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12707 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12708 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12711 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12712 if ${ac_cv_lib_svld_dlopen+:} false; then :
12713 $as_echo_n "(cached) " >&6
12715 ac_check_lib_save_LIBS=$LIBS
12716 LIBS="-lsvld $LIBS"
12717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718 /* end confdefs.h. */
12720 /* Override any GCC internal prototype to avoid an error.
12721 Use char because int might match the return type of a GCC
12722 builtin and then its argument prototype would still apply. */
12735 if ac_fn_c_try_link "$LINENO"; then :
12736 ac_cv_lib_svld_dlopen=yes
12738 ac_cv_lib_svld_dlopen=no
12740 rm -f core conftest.err conftest.$ac_objext \
12741 conftest$ac_exeext conftest.$ac_ext
12742 LIBS=$ac_check_lib_save_LIBS
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12745 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12746 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12747 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12750 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12751 if ${ac_cv_lib_dld_dld_link+:} false; then :
12752 $as_echo_n "(cached) " >&6
12754 ac_check_lib_save_LIBS=$LIBS
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12759 /* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12769 return dld_link ();
12774 if ac_fn_c_try_link "$LINENO"; then :
12775 ac_cv_lib_dld_dld_link=yes
12777 ac_cv_lib_dld_dld_link=no
12779 rm -f core conftest.err conftest.$ac_objext \
12780 conftest$ac_exeext conftest.$ac_ext
12781 LIBS=$ac_check_lib_save_LIBS
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12784 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12785 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12786 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12807 if test "x$lt_cv_dlopen" != xno; then
12813 case $lt_cv_dlopen in
12815 save_CPPFLAGS="$CPPFLAGS"
12816 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12818 save_LDFLAGS="$LDFLAGS"
12819 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12822 LIBS="$lt_cv_dlopen_libs $LIBS"
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12825 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12826 if ${lt_cv_dlopen_self+:} false; then :
12827 $as_echo_n "(cached) " >&6
12829 if test "$cross_compiling" = yes; then :
12830 lt_cv_dlopen_self=cross
12832 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12833 lt_status=$lt_dlunknown
12834 cat > conftest.$ac_ext <<_LT_EOF
12835 #line $LINENO "configure"
12836 #include "confdefs.h"
12845 # define LT_DLGLOBAL RTLD_GLOBAL
12848 # define LT_DLGLOBAL DL_GLOBAL
12850 # define LT_DLGLOBAL 0
12854 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12855 find out it does not work in some platform. */
12856 #ifndef LT_DLLAZY_OR_NOW
12858 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12861 # define LT_DLLAZY_OR_NOW DL_LAZY
12864 # define LT_DLLAZY_OR_NOW RTLD_NOW
12867 # define LT_DLLAZY_OR_NOW DL_NOW
12869 # define LT_DLLAZY_OR_NOW 0
12876 /* When -fvisbility=hidden is used, assume the code has been annotated
12877 correspondingly for the symbols needed. */
12878 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12879 int fnord () __attribute__((visibility("default")));
12882 int fnord () { return 42; }
12885 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12886 int status = $lt_dlunknown;
12890 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12893 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12894 else puts (dlerror ());
12896 /* dlclose (self); */
12904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12905 (eval $ac_link) 2>&5
12907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12908 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12909 (./conftest; exit; ) >&5 2>/dev/null
12911 case x$lt_status in
12912 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12913 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12914 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12917 # compilation failed
12918 lt_cv_dlopen_self=no
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12926 $as_echo "$lt_cv_dlopen_self" >&6; }
12928 if test "x$lt_cv_dlopen_self" = xyes; then
12929 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12931 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12932 if ${lt_cv_dlopen_self_static+:} false; then :
12933 $as_echo_n "(cached) " >&6
12935 if test "$cross_compiling" = yes; then :
12936 lt_cv_dlopen_self_static=cross
12938 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12939 lt_status=$lt_dlunknown
12940 cat > conftest.$ac_ext <<_LT_EOF
12941 #line $LINENO "configure"
12942 #include "confdefs.h"
12951 # define LT_DLGLOBAL RTLD_GLOBAL
12954 # define LT_DLGLOBAL DL_GLOBAL
12956 # define LT_DLGLOBAL 0
12960 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12961 find out it does not work in some platform. */
12962 #ifndef LT_DLLAZY_OR_NOW
12964 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12967 # define LT_DLLAZY_OR_NOW DL_LAZY
12970 # define LT_DLLAZY_OR_NOW RTLD_NOW
12973 # define LT_DLLAZY_OR_NOW DL_NOW
12975 # define LT_DLLAZY_OR_NOW 0
12982 /* When -fvisbility=hidden is used, assume the code has been annotated
12983 correspondingly for the symbols needed. */
12984 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12985 int fnord () __attribute__((visibility("default")));
12988 int fnord () { return 42; }
12991 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12992 int status = $lt_dlunknown;
12996 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12999 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13000 else puts (dlerror ());
13002 /* dlclose (self); */
13010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13011 (eval $ac_link) 2>&5
13013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13014 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13015 (./conftest; exit; ) >&5 2>/dev/null
13017 case x$lt_status in
13018 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13019 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13020 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13023 # compilation failed
13024 lt_cv_dlopen_self_static=no
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13032 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13035 CPPFLAGS="$save_CPPFLAGS"
13036 LDFLAGS="$save_LDFLAGS"
13041 case $lt_cv_dlopen_self in
13042 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13043 *) enable_dlopen_self=unknown ;;
13046 case $lt_cv_dlopen_self_static in
13047 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13048 *) enable_dlopen_self_static=unknown ;;
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13071 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13072 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13073 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13074 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13076 $as_echo "yes" >&6; }
13078 # FIXME - insert some real tests, host_os isn't really good enough
13081 if test -n "$STRIP" ; then
13082 striplib="$STRIP -x"
13083 old_striplib="$STRIP -S"
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13085 $as_echo "yes" >&6; }
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093 $as_echo "no" >&6; }
13109 # Report which library types will actually be built
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13111 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13113 $as_echo "$can_build_shared" >&6; }
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13116 $as_echo_n "checking whether to build shared libraries... " >&6; }
13117 test "$can_build_shared" = "no" && enable_shared=no
13119 # On AIX, shared libraries and static libraries use the same namespace, and
13120 # are all built from PIC.
13123 test "$enable_shared" = yes && enable_static=no
13124 if test -n "$RANLIB"; then
13125 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13126 postinstall_cmds='$RANLIB $lib'
13131 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13132 test "$enable_shared" = yes && enable_static=no
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13137 $as_echo "$enable_shared" >&6; }
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13140 $as_echo_n "checking whether to build static libraries... " >&6; }
13141 # Make sure either enable_shared or enable_static is yes.
13142 test "$enable_shared" = yes || enable_static=yes
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13144 $as_echo "$enable_static" >&6; }
13151 ac_cpp='$CPP $CPPFLAGS'
13152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13158 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13159 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13160 (test "X$CXX" != "Xg++"))) ; then
13162 ac_cpp='$CXXCPP $CPPFLAGS'
13163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13167 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13168 if test -z "$CXXCPP"; then
13169 if ${ac_cv_prog_CXXCPP+:} false; then :
13170 $as_echo_n "(cached) " >&6
13172 # Double quotes because CXXCPP needs to be expanded
13173 for CXXCPP in "$CXX -E" "/lib/cpp"
13175 ac_preproc_ok=false
13176 for ac_cxx_preproc_warn_flag in '' yes
13178 # Use a header file that comes with gcc, so configuring glibc
13179 # with a fresh cross-compiler works.
13180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13181 # <limits.h> exists even on freestanding compilers.
13182 # On the NeXT, cc -E runs the code through the compiler's parser,
13183 # not just through cpp. "Syntax error" is here to catch this case.
13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h. */
13187 # include <limits.h>
13189 # include <assert.h>
13193 if ac_fn_cxx_try_cpp "$LINENO"; then :
13196 # Broken: fails on valid input.
13199 rm -f conftest.err conftest.i conftest.$ac_ext
13201 # OK, works on sane cases. Now check whether nonexistent headers
13202 # can be detected and how.
13203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h. */
13205 #include <ac_nonexistent.h>
13207 if ac_fn_cxx_try_cpp "$LINENO"; then :
13208 # Broken: success on invalid input.
13211 # Passes both tests.
13215 rm -f conftest.err conftest.i conftest.$ac_ext
13218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13219 rm -f conftest.i conftest.err conftest.$ac_ext
13220 if $ac_preproc_ok; then :
13225 ac_cv_prog_CXXCPP=$CXXCPP
13228 CXXCPP=$ac_cv_prog_CXXCPP
13230 ac_cv_prog_CXXCPP=$CXXCPP
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13233 $as_echo "$CXXCPP" >&6; }
13234 ac_preproc_ok=false
13235 for ac_cxx_preproc_warn_flag in '' yes
13237 # Use a header file that comes with gcc, so configuring glibc
13238 # with a fresh cross-compiler works.
13239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13240 # <limits.h> exists even on freestanding compilers.
13241 # On the NeXT, cc -E runs the code through the compiler's parser,
13242 # not just through cpp. "Syntax error" is here to catch this case.
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h. */
13246 # include <limits.h>
13248 # include <assert.h>
13252 if ac_fn_cxx_try_cpp "$LINENO"; then :
13255 # Broken: fails on valid input.
13258 rm -f conftest.err conftest.i conftest.$ac_ext
13260 # OK, works on sane cases. Now check whether nonexistent headers
13261 # can be detected and how.
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13264 #include <ac_nonexistent.h>
13266 if ac_fn_cxx_try_cpp "$LINENO"; then :
13267 # Broken: success on invalid input.
13270 # Passes both tests.
13274 rm -f conftest.err conftest.i conftest.$ac_ext
13277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13278 rm -f conftest.i conftest.err conftest.$ac_ext
13279 if $ac_preproc_ok; then :
13282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13284 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13285 See \`config.log' for more details" "$LINENO" 5; }
13289 ac_cpp='$CPP $CPPFLAGS'
13290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13295 _lt_caught_CXX_error=yes
13299 ac_cpp='$CXXCPP $CPPFLAGS'
13300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13304 archive_cmds_need_lc_CXX=no
13305 allow_undefined_flag_CXX=
13306 always_export_symbols_CXX=no
13307 archive_expsym_cmds_CXX=
13308 compiler_needs_object_CXX=no
13309 export_dynamic_flag_spec_CXX=
13310 hardcode_direct_CXX=no
13311 hardcode_direct_absolute_CXX=no
13312 hardcode_libdir_flag_spec_CXX=
13313 hardcode_libdir_separator_CXX=
13314 hardcode_minus_L_CXX=no
13315 hardcode_shlibpath_var_CXX=unsupported
13316 hardcode_automatic_CXX=no
13317 inherit_rpath_CXX=no
13319 module_expsym_cmds_CXX=
13320 link_all_deplibs_CXX=unknown
13321 old_archive_cmds_CXX=$old_archive_cmds
13322 reload_flag_CXX=$reload_flag
13323 reload_cmds_CXX=$reload_cmds
13324 no_undefined_flag_CXX=
13325 whole_archive_flag_spec_CXX=
13326 enable_shared_with_static_runtimes_CXX=no
13328 # Source file extension for C++ test sources.
13331 # Object file extension for compiled C++ test sources.
13335 # No sense in running all these tests if we already determined that
13336 # the CXX compiler isn't working. Some variables (like enable_shared)
13337 # are currently assumed to apply to all compilers on this platform,
13338 # and will be corrupted by setting them based on a non-working compiler.
13339 if test "$_lt_caught_CXX_error" != yes; then
13340 # Code to be used in simple compile tests
13341 lt_simple_compile_test_code="int some_variable = 0;"
13343 # Code to be used in simple link tests
13344 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13346 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13353 # If no C compiler was specified, use CC.
13356 # If no C compiler flags were specified, use CFLAGS.
13357 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13359 # Allow CC to be a program name with arguments.
13363 # save warnings/boilerplate of simple test code
13364 ac_outfile=conftest.$ac_objext
13365 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13366 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13367 _lt_compiler_boilerplate=`cat conftest.err`
13370 ac_outfile=conftest.$ac_objext
13371 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13372 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13373 _lt_linker_boilerplate=`cat conftest.err`
13377 # Allow CC to be a program name with arguments.
13379 lt_save_CFLAGS=$CFLAGS
13383 lt_save_with_gnu_ld=$with_gnu_ld
13384 lt_save_path_LD=$lt_cv_path_LD
13385 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13386 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13388 $as_unset lt_cv_prog_gnu_ld
13390 if test -n "${lt_cv_path_LDCXX+set}"; then
13391 lt_cv_path_LD=$lt_cv_path_LDCXX
13393 $as_unset lt_cv_path_LD
13395 test -z "${LDCXX+set}" || LD=$LDCXX
13400 for cc_temp in $compiler""; do
13402 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13403 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13408 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13411 if test -n "$compiler"; then
13412 # We don't want -fno-exception when compiling C++ code, so set the
13413 # no_builtin_flag separately
13414 if test "$GXX" = yes; then
13415 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13417 lt_prog_compiler_no_builtin_flag_CXX=
13420 if test "$GXX" = yes; then
13421 # Set up default GNU C++ configuration
13425 # Check whether --with-gnu-ld was given.
13426 if test "${with_gnu_ld+set}" = set; then :
13427 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13433 if test "$GCC" = yes; then
13434 # Check if gcc -print-prog-name=ld gives a path.
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13436 $as_echo_n "checking for ld used by $CC... " >&6; }
13439 # gcc leaves a trailing carriage return which upsets mingw
13440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13445 # Accept absolute paths.
13447 re_direlt='/[^/][^/]*/\.\./'
13448 # Canonicalize the pathname of ld
13449 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13450 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13451 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13453 test -z "$LD" && LD="$ac_prog"
13456 # If it fails, then pretend we aren't using GCC.
13460 # If it is relative, then search for the first ld in PATH.
13461 with_gnu_ld=unknown
13464 elif test "$with_gnu_ld" = yes; then
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13466 $as_echo_n "checking for GNU ld... " >&6; }
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13469 $as_echo_n "checking for non-GNU ld... " >&6; }
13471 if ${lt_cv_path_LD+:} false; then :
13472 $as_echo_n "(cached) " >&6
13474 if test -z "$LD"; then
13475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13476 for ac_dir in $PATH; do
13478 test -z "$ac_dir" && ac_dir=.
13479 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13480 lt_cv_path_LD="$ac_dir/$ac_prog"
13481 # Check to see if the program is GNU ld. I'd rather use --version,
13482 # but apparently some variants of GNU ld only accept -v.
13483 # Break only if it was the GNU/non-GNU ld that we prefer.
13484 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13485 *GNU* | *'with BFD'*)
13486 test "$with_gnu_ld" != no && break
13489 test "$with_gnu_ld" != yes && break
13496 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13500 LD="$lt_cv_path_LD"
13501 if test -n "$LD"; then
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13503 $as_echo "$LD" >&6; }
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506 $as_echo "no" >&6; }
13508 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13510 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13511 if ${lt_cv_prog_gnu_ld+:} false; then :
13512 $as_echo_n "(cached) " >&6
13514 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13515 case `$LD -v 2>&1 </dev/null` in
13516 *GNU* | *'with BFD'*)
13517 lt_cv_prog_gnu_ld=yes
13520 lt_cv_prog_gnu_ld=no
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13525 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13526 with_gnu_ld=$lt_cv_prog_gnu_ld
13534 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13535 # archiving commands below assume that GNU ld is being used.
13536 if test "$with_gnu_ld" = yes; then
13537 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13538 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'
13540 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13541 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13543 # If archive_cmds runs LD, not CC, wlarc should be empty
13544 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13545 # investigate it a little bit more. (MM)
13548 # ancient GNU ld didn't support --whole-archive et. al.
13549 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13550 $GREP 'no-whole-archive' > /dev/null; then
13551 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13553 whole_archive_flag_spec_CXX=
13559 # A generic and very simple default shared library creation
13560 # command for GNU C++ for the case where it uses the native
13561 # linker, instead of GNU ld. If possible, this setting should
13562 # overridden to take advantage of the native linker features on
13563 # the platform it is being used on.
13564 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13567 # Commands to make compiler produce verbose output that lists
13568 # what "hidden" libraries, object files and flags are used when
13569 # linking a shared library.
13570 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13578 # PORTME: fill in a description of your system's C++ link characteristics
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13580 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13584 # FIXME: insert proper C++ library support
13588 if test "$host_cpu" = ia64; then
13589 # On IA64, the linker does run time linking by default, so we don't
13590 # have to do anything special.
13591 aix_use_runtimelinking=no
13592 exp_sym_flag='-Bexport'
13595 aix_use_runtimelinking=no
13597 # Test if we are trying to use run time linking or normal
13598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13599 # need to do runtime linking.
13600 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13601 for ld_flag in $LDFLAGS; do
13604 aix_use_runtimelinking=yes
13612 exp_sym_flag='-bexport'
13613 no_entry_flag='-bnoentry'
13616 # When large executables or shared objects are built, AIX ld can
13617 # have problems creating the table of contents. If linking a library
13618 # or program results in "error TOC overflow" add -mminimal-toc to
13619 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13620 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13622 archive_cmds_CXX=''
13623 hardcode_direct_CXX=yes
13624 hardcode_direct_absolute_CXX=yes
13625 hardcode_libdir_separator_CXX=':'
13626 link_all_deplibs_CXX=yes
13627 file_list_spec_CXX='${wl}-f,'
13629 if test "$GXX" = yes; then
13630 case $host_os in aix4.[012]|aix4.[012].*)
13631 # We only want to do this on AIX 4.2 and lower, the check
13632 # below for broken collect2 doesn't work under 4.3+
13633 collect2name=`${CC} -print-prog-name=collect2`
13634 if test -f "$collect2name" &&
13635 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13637 # We have reworked collect2
13640 # We have old collect2
13641 hardcode_direct_CXX=unsupported
13642 # It fails to find uninstalled libraries when the uninstalled
13643 # path is not listed in the libpath. Setting hardcode_minus_L
13644 # to unsupported forces relinking
13645 hardcode_minus_L_CXX=yes
13646 hardcode_libdir_flag_spec_CXX='-L$libdir'
13647 hardcode_libdir_separator_CXX=
13650 shared_flag='-shared'
13651 if test "$aix_use_runtimelinking" = yes; then
13652 shared_flag="$shared_flag "'${wl}-G'
13656 if test "$host_cpu" = ia64; then
13657 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13658 # chokes on -Wl,-G. The following line is correct:
13661 if test "$aix_use_runtimelinking" = yes; then
13662 shared_flag='${wl}-G'
13664 shared_flag='${wl}-bM:SRE'
13669 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13670 # It seems that -bexpall does not export symbols beginning with
13671 # underscore (_), so it is better to generate a list of symbols to
13673 always_export_symbols_CXX=yes
13674 if test "$aix_use_runtimelinking" = yes; then
13675 # Warning - without using the other runtime loading flags (-brtl),
13676 # -berok will link without error, but may produce a broken library.
13677 allow_undefined_flag_CXX='-berok'
13678 # Determine the default libpath from the value encoded in an empty
13680 if test "${lt_cv_aix_libpath+set}" = set; then
13681 aix_libpath=$lt_cv_aix_libpath
13683 if ${lt_cv_aix_libpath__CXX+:} false; then :
13684 $as_echo_n "(cached) " >&6
13686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h. */
13697 if ac_fn_cxx_try_link "$LINENO"; then :
13699 lt_aix_libpath_sed='
13700 /Import File Strings/,/^$/ {
13702 s/^0 *\([^ ]*\) *$/\1/
13706 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13707 # Check for a 64-bit object if we didn't find anything.
13708 if test -z "$lt_cv_aix_libpath__CXX"; then
13709 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13712 rm -f core conftest.err conftest.$ac_objext \
13713 conftest$ac_exeext conftest.$ac_ext
13714 if test -z "$lt_cv_aix_libpath__CXX"; then
13715 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13720 aix_libpath=$lt_cv_aix_libpath__CXX
13723 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13725 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"
13727 if test "$host_cpu" = ia64; then
13728 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13729 allow_undefined_flag_CXX="-z nodefs"
13730 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"
13732 # Determine the default libpath from the value encoded in an
13733 # empty executable.
13734 if test "${lt_cv_aix_libpath+set}" = set; then
13735 aix_libpath=$lt_cv_aix_libpath
13737 if ${lt_cv_aix_libpath__CXX+:} false; then :
13738 $as_echo_n "(cached) " >&6
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h. */
13751 if ac_fn_cxx_try_link "$LINENO"; then :
13753 lt_aix_libpath_sed='
13754 /Import File Strings/,/^$/ {
13756 s/^0 *\([^ ]*\) *$/\1/
13760 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13761 # Check for a 64-bit object if we didn't find anything.
13762 if test -z "$lt_cv_aix_libpath__CXX"; then
13763 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13766 rm -f core conftest.err conftest.$ac_objext \
13767 conftest$ac_exeext conftest.$ac_ext
13768 if test -z "$lt_cv_aix_libpath__CXX"; then
13769 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13774 aix_libpath=$lt_cv_aix_libpath__CXX
13777 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13778 # Warning - without using the other run time loading flags,
13779 # -berok will link without error, but may produce a broken library.
13780 no_undefined_flag_CXX=' ${wl}-bernotok'
13781 allow_undefined_flag_CXX=' ${wl}-berok'
13782 if test "$with_gnu_ld" = yes; then
13783 # We only use this code for GNU lds that support --whole-archive.
13784 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13786 # Exported symbols can be pulled into shared objects from archives
13787 whole_archive_flag_spec_CXX='$convenience'
13789 archive_cmds_need_lc_CXX=yes
13790 # This is similar to how AIX traditionally builds its shared
13792 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'
13798 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13799 allow_undefined_flag_CXX=unsupported
13800 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13801 # support --undefined. This deserves some investigation. FIXME
13802 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13809 case $cc_basename in
13811 # FIXME: insert proper C++ library support
13817 cygwin* | mingw* | pw32* | cegcc*)
13818 case $GXX,$cc_basename in
13821 # hardcode_libdir_flag_spec is actually meaningless, as there is
13822 # no search path for DLLs.
13823 hardcode_libdir_flag_spec_CXX=' '
13824 allow_undefined_flag_CXX=unsupported
13825 always_export_symbols_CXX=yes
13826 file_list_spec_CXX='@'
13827 # Tell ltmain to make .lib files, not .a files.
13829 # Tell ltmain to make .dll files, not .so files.
13831 # FIXME: Setting linknames here is a bad hack.
13832 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13833 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13834 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13836 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13838 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13840 # The linker will not automatically build a static lib if we build a DLL.
13841 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13842 enable_shared_with_static_runtimes_CXX=yes
13844 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13845 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13846 lt_tool_outputfile="@TOOL_OUTPUT@"~
13847 case $lt_outputfile in
13850 lt_outputfile="$lt_outputfile.exe"
13851 lt_tool_outputfile="$lt_tool_outputfile.exe"
13854 func_to_tool_file "$lt_outputfile"~
13855 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13856 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13857 $RM "$lt_outputfile.manifest";
13862 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13863 # as there is no search path for DLLs.
13864 hardcode_libdir_flag_spec_CXX='-L$libdir'
13865 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13866 allow_undefined_flag_CXX=unsupported
13867 always_export_symbols_CXX=no
13868 enable_shared_with_static_runtimes_CXX=yes
13870 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13871 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'
13872 # If the export-symbols file already is a .def file (1st line
13873 # is EXPORTS), use it as is; otherwise, prepend...
13874 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13875 cp $export_symbols $output_objdir/$soname.def;
13877 echo EXPORTS > $output_objdir/$soname.def;
13878 cat $export_symbols >> $output_objdir/$soname.def;
13880 $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'
13887 darwin* | rhapsody*)
13890 archive_cmds_need_lc_CXX=no
13891 hardcode_direct_CXX=no
13892 hardcode_automatic_CXX=yes
13893 hardcode_shlibpath_var_CXX=unsupported
13894 if test "$lt_cv_ld_force_load" = "yes"; then
13895 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\"`'
13898 whole_archive_flag_spec_CXX=''
13900 link_all_deplibs_CXX=yes
13901 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13902 case $cc_basename in
13903 ifort*) _lt_dar_can_shared=yes ;;
13904 *) _lt_dar_can_shared=$GCC ;;
13906 if test "$_lt_dar_can_shared" = "yes"; then
13907 output_verbose_link_cmd=func_echo_all
13908 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}"
13909 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13910 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}"
13911 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}"
13912 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13913 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}"
13914 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}"
13924 case $cc_basename in
13926 # FIXME: insert proper C++ library support
13930 # Green Hills C++ Compiler
13931 # FIXME: insert proper C++ library support
13935 # FIXME: insert proper C++ library support
13942 # C++ shared libraries reported to be fairly broken before
13948 archive_cmds_need_lc_CXX=no
13951 freebsd* | dragonfly*)
13952 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13958 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13959 link_all_deplibs_CXX=yes
13963 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13964 hardcode_libdir_separator_CXX=:
13965 export_dynamic_flag_spec_CXX='${wl}-E'
13966 hardcode_direct_CXX=yes
13967 hardcode_minus_L_CXX=yes # Not in the search PATH,
13968 # but as the default
13969 # location of the library.
13971 case $cc_basename in
13973 # FIXME: insert proper C++ library support
13977 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'
13978 # Commands to make compiler produce verbose output that lists
13979 # what "hidden" libraries, object files and flags are used when
13980 # linking a shared library.
13982 # There doesn't appear to be a way to prevent this compiler from
13983 # explicitly linking system object files so we need to strip them
13984 # from the output so that they don't get included in the library
13986 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"'
13989 if test "$GXX" = yes; then
13990 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'
13992 # FIXME: insert proper C++ library support
14000 if test $with_gnu_ld = no; then
14001 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14002 hardcode_libdir_separator_CXX=:
14008 export_dynamic_flag_spec_CXX='${wl}-E'
14014 hardcode_direct_CXX=no
14015 hardcode_shlibpath_var_CXX=no
14018 hardcode_direct_CXX=yes
14019 hardcode_direct_absolute_CXX=yes
14020 hardcode_minus_L_CXX=yes # Not in the search PATH,
14021 # but as the default
14022 # location of the library.
14026 case $cc_basename in
14028 # FIXME: insert proper C++ library support
14034 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14037 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14040 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14043 # Commands to make compiler produce verbose output that lists
14044 # what "hidden" libraries, object files and flags are used when
14045 # linking a shared library.
14047 # There doesn't appear to be a way to prevent this compiler from
14048 # explicitly linking system object files so we need to strip them
14049 # from the output so that they don't get included in the library
14051 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"'
14054 if test "$GXX" = yes; then
14055 if test $with_gnu_ld = no; then
14058 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14061 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14064 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'
14069 # FIXME: insert proper C++ library support
14077 hardcode_direct_CXX=no
14078 hardcode_shlibpath_var_CXX=no
14079 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14080 export_dynamic_flag_spec_CXX='${wl}-E'
14081 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14082 # Instead, shared libraries are loaded at an image base (0x10000000 by
14083 # default) and relocated if they conflict, which is a slow very memory
14084 # consuming and fragmenting process. To avoid this, we pick a random,
14085 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14086 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14087 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'
14088 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'
14091 case $cc_basename in
14094 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'
14096 # Archives containing C++ object files must be created using
14097 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14098 # necessary to make sure instantiated templates are included
14100 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14103 if test "$GXX" = yes; then
14104 if test "$with_gnu_ld" = no; then
14105 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'
14107 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'
14110 link_all_deplibs_CXX=yes
14113 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14114 hardcode_libdir_separator_CXX=:
14115 inherit_rpath_CXX=yes
14118 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14119 case $cc_basename in
14121 # Kuck and Associates, Inc. (KAI) C++ Compiler
14123 # KCC will only create a shared library if the output file
14124 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14125 # to its proper name (with version) after linking.
14126 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'
14127 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'
14128 # Commands to make compiler produce verbose output that lists
14129 # what "hidden" libraries, object files and flags are used when
14130 # linking a shared library.
14132 # There doesn't appear to be a way to prevent this compiler from
14133 # explicitly linking system object files so we need to strip them
14134 # from the output so that they don't get included in the library
14136 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"'
14138 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14139 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14141 # Archives containing C++ object files must be created using
14142 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14143 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14148 # version 8.0 and above of icpc choke on multiply defined symbols
14149 # if we add $predep_objects and $postdep_objects, however 7.1 and
14150 # earlier do not add the objects themselves.
14151 case `$CC -V 2>&1` in
14153 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14154 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'
14156 *) # Version 8.0 or newer
14159 ia64*) tmp_idyn=' -i_dynamic';;
14161 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14162 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'
14165 archive_cmds_need_lc_CXX=no
14166 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14167 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14168 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14171 # Portland Group C++ compiler
14173 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14174 prelink_cmds_CXX='tpldir=Template.dir~
14176 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14177 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14178 old_archive_cmds_CXX='tpldir=Template.dir~
14180 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14181 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14183 archive_cmds_CXX='tpldir=Template.dir~
14185 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14186 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14187 archive_expsym_cmds_CXX='tpldir=Template.dir~
14189 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14190 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14192 *) # Version 6 and above use weak symbols
14193 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14194 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'
14198 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14199 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14200 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'
14204 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14205 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'
14207 runpath_var=LD_RUN_PATH
14208 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14209 hardcode_libdir_separator_CXX=:
14211 # Commands to make compiler produce verbose output that lists
14212 # what "hidden" libraries, object files and flags are used when
14213 # linking a shared library.
14215 # There doesn't appear to be a way to prevent this compiler from
14216 # explicitly linking system object files so we need to strip them
14217 # from the output so that they don't get included in the library
14219 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'
14221 xl* | mpixl* | bgxl*)
14222 # IBM XL 8.0 on PPC, with GNU ld
14223 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14224 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14225 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14226 if test "x$supports_anon_versioning" = xyes; then
14227 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14228 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14229 echo "local: *; };" >> $output_objdir/$libname.ver~
14230 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14234 case `$CC -V 2>&1 | sed 5q` in
14237 no_undefined_flag_CXX=' -zdefs'
14238 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14239 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'
14240 hardcode_libdir_flag_spec_CXX='-R$libdir'
14241 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'
14242 compiler_needs_object_CXX=yes
14244 # Not sure whether something based on
14245 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14247 output_verbose_link_cmd='func_echo_all'
14249 # Archives containing C++ object files must be created using
14250 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14251 # necessary to make sure instantiated templates are included
14253 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14261 # FIXME: insert proper C++ library support
14266 # FIXME: insert proper C++ library support
14271 case $cc_basename in
14273 # FIXME: insert proper C++ library support
14277 # FIXME: insert proper C++ library support
14284 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14285 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14287 hardcode_libdir_flag_spec_CXX='-R$libdir'
14288 hardcode_direct_CXX=yes
14289 hardcode_shlibpath_var_CXX=no
14291 # Workaround some broken pre-1.5 toolchains
14292 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14300 # C++ shared libraries are fairly broken
14305 if test -f /usr/libexec/ld.so; then
14306 hardcode_direct_CXX=yes
14307 hardcode_shlibpath_var_CXX=no
14308 hardcode_direct_absolute_CXX=yes
14309 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14310 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14311 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14312 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14313 export_dynamic_flag_spec_CXX='${wl}-E'
14314 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14316 output_verbose_link_cmd=func_echo_all
14322 osf3* | osf4* | osf5*)
14323 case $cc_basename in
14325 # Kuck and Associates, Inc. (KAI) C++ Compiler
14327 # KCC will only create a shared library if the output file
14328 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14329 # to its proper name (with version) after linking.
14330 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'
14332 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14333 hardcode_libdir_separator_CXX=:
14335 # Archives containing C++ object files must be created using
14336 # the KAI C++ compiler.
14338 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14339 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14343 # Rational C++ 2.4.1
14344 # FIXME: insert proper C++ library support
14350 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14351 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'
14352 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14355 allow_undefined_flag_CXX=' -expect_unresolved \*'
14356 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'
14357 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14358 echo "-hidden">> $lib.exp~
14359 $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~
14361 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14365 hardcode_libdir_separator_CXX=:
14367 # Commands to make compiler produce verbose output that lists
14368 # what "hidden" libraries, object files and flags are used when
14369 # linking a shared library.
14371 # There doesn't appear to be a way to prevent this compiler from
14372 # explicitly linking system object files so we need to strip them
14373 # from the output so that they don't get included in the library
14375 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"'
14378 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14379 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14382 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'
14385 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'
14389 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14390 hardcode_libdir_separator_CXX=:
14392 # Commands to make compiler produce verbose output that lists
14393 # what "hidden" libraries, object files and flags are used when
14394 # linking a shared library.
14395 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14398 # FIXME: insert proper C++ library support
14406 # FIXME: insert proper C++ library support
14411 case $cc_basename in
14414 # FIXME: insert proper C++ library support
14419 # FIXME: insert proper C++ library support
14423 # FIXME: insert proper C++ library support
14430 case $cc_basename in
14432 # Sun C++ 4.2, 5.x and Centerline C++
14433 archive_cmds_need_lc_CXX=yes
14434 no_undefined_flag_CXX=' -zdefs'
14435 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14436 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14437 $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'
14439 hardcode_libdir_flag_spec_CXX='-R$libdir'
14440 hardcode_shlibpath_var_CXX=no
14442 solaris2.[0-5] | solaris2.[0-5].*) ;;
14444 # The compiler driver will combine and reorder linker options,
14445 # but understands `-z linker_flag'.
14446 # Supported since Solaris 2.6 (maybe 2.5.1?)
14447 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14450 link_all_deplibs_CXX=yes
14452 output_verbose_link_cmd='func_echo_all'
14454 # Archives containing C++ object files must be created using
14455 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14456 # necessary to make sure instantiated templates are included
14458 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14461 # Green Hills C++ Compiler
14462 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14464 # The C++ compiler must be used to create the archive.
14465 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14468 # GNU C++ compiler with Solaris linker
14469 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14470 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14471 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14472 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14473 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14474 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14476 # Commands to make compiler produce verbose output that lists
14477 # what "hidden" libraries, object files and flags are used when
14478 # linking a shared library.
14479 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14481 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14483 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14484 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14485 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14487 # Commands to make compiler produce verbose output that lists
14488 # what "hidden" libraries, object files and flags are used when
14489 # linking a shared library.
14490 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14493 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14495 solaris2.[0-5] | solaris2.[0-5].*) ;;
14497 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14505 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14506 no_undefined_flag_CXX='${wl}-z,text'
14507 archive_cmds_need_lc_CXX=no
14508 hardcode_shlibpath_var_CXX=no
14509 runpath_var='LD_RUN_PATH'
14511 case $cc_basename in
14513 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14514 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14517 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14518 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14523 sysv5* | sco3.2v5* | sco5v6*)
14524 # Note: We can NOT use -z defs as we might desire, because we do not
14525 # link with -lc, and that would cause any symbols used from libc to
14526 # always be unresolved, which means just about no library would
14527 # ever link correctly. If we're not using GNU ld we use -z text
14528 # though, which does catch some bad symbols but isn't as heavy-handed
14530 no_undefined_flag_CXX='${wl}-z,text'
14531 allow_undefined_flag_CXX='${wl}-z,nodefs'
14532 archive_cmds_need_lc_CXX=no
14533 hardcode_shlibpath_var_CXX=no
14534 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14535 hardcode_libdir_separator_CXX=':'
14536 link_all_deplibs_CXX=yes
14537 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14538 runpath_var='LD_RUN_PATH'
14540 case $cc_basename in
14542 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14543 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14544 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14545 '"$old_archive_cmds_CXX"
14546 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14547 '"$reload_cmds_CXX"
14550 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14551 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14557 case $cc_basename in
14559 # NonStop-UX NCC 3.20
14560 # FIXME: insert proper C++ library support
14564 # FIXME: insert proper C++ library support
14571 # FIXME: insert proper C++ library support
14576 # FIXME: insert proper C++ library support
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14582 $as_echo "$ld_shlibs_CXX" >&6; }
14583 test "$ld_shlibs_CXX" = no && can_build_shared=no
14589 ## There is no encapsulation within the following macros, do not change
14590 ## the running order or otherwise move them around unless you know exactly
14591 ## what you are doing...
14592 # Dependencies to place before and after the object being linked:
14593 predep_objects_CXX=
14594 postdep_objects_CXX=
14597 compiler_lib_search_path_CXX=
14599 cat > conftest.$ac_ext <<_LT_EOF
14603 Foo (void) { a = 0; }
14610 _lt_libdeps_save_CFLAGS=$CFLAGS
14611 case "$CC $CFLAGS " in #(
14612 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14613 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14614 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14618 (eval $ac_compile) 2>&5
14620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14621 test $ac_status = 0; }; then
14622 # Parse the compiler output and extract the necessary
14623 # objects, libraries and library flags.
14625 # Sentinel used to keep track of whether or not we are before
14626 # the conftest object file.
14627 pre_test_object_deps_done=no
14629 for p in `eval "$output_verbose_link_cmd"`; do
14630 case ${prev}${p} in
14633 # Some compilers place space between "-{L,R}" and the path.
14634 # Remove the space.
14635 if test $p = "-L" ||
14636 test $p = "-R"; then
14641 # Expand the sysroot to ease extracting the directories later.
14642 if test -z "$prev"; then
14644 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14645 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14646 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14650 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14652 if test "$pre_test_object_deps_done" = no; then
14655 # Internal compiler library paths should come after those
14656 # provided the user. The postdeps already come after the
14657 # user supplied libs so there is no need to process them.
14658 if test -z "$compiler_lib_search_path_CXX"; then
14659 compiler_lib_search_path_CXX="${prev}${p}"
14661 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14664 # The "-l" case would never come before the object being
14665 # linked, so don't bother handling this case.
14668 if test -z "$postdeps_CXX"; then
14669 postdeps_CXX="${prev}${p}"
14671 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14677 *.lto.$objext) ;; # Ignore GCC LTO objects
14679 # This assumes that the test object file only shows up
14680 # once in the compiler output.
14681 if test "$p" = "conftest.$objext"; then
14682 pre_test_object_deps_done=yes
14686 if test "$pre_test_object_deps_done" = no; then
14687 if test -z "$predep_objects_CXX"; then
14688 predep_objects_CXX="$p"
14690 predep_objects_CXX="$predep_objects_CXX $p"
14693 if test -z "$postdep_objects_CXX"; then
14694 postdep_objects_CXX="$p"
14696 postdep_objects_CXX="$postdep_objects_CXX $p"
14701 *) ;; # Ignore the rest.
14709 echo "libtool.m4: error: problem compiling CXX test program"
14712 $RM -f confest.$objext
14713 CFLAGS=$_lt_libdeps_save_CFLAGS
14715 # PORTME: override above test on systems where it is broken
14718 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14719 # hack all around it, let's just trust "g++" to DTRT.
14720 predep_objects_CXX=
14721 postdep_objects_CXX=
14726 case `$CC -V 2>&1 | sed 5q` in
14730 # The more standards-conforming stlport4 library is
14731 # incompatible with the Cstd library. Avoid specifying
14732 # it if it's in CXXFLAGS. Ignore libCrun as
14733 # -library=stlport4 depends on it.
14734 case " $CXX $CXXFLAGS " in
14735 *" -library=stlport4 "*)
14736 solaris_use_stlport4=yes
14740 if test "$solaris_use_stlport4" != yes; then
14741 postdeps_CXX='-library=Cstd -library=Crun'
14748 case $cc_basename in
14750 # The more standards-conforming stlport4 library is
14751 # incompatible with the Cstd library. Avoid specifying
14752 # it if it's in CXXFLAGS. Ignore libCrun as
14753 # -library=stlport4 depends on it.
14754 case " $CXX $CXXFLAGS " in
14755 *" -library=stlport4 "*)
14756 solaris_use_stlport4=yes
14760 # Adding this requires a known-good setup of shared libraries for
14761 # Sun compiler versions before 5.6, else PIC objects from an old
14762 # archive will be linked into the output, leading to subtle bugs.
14763 if test "$solaris_use_stlport4" != yes; then
14764 postdeps_CXX='-library=Cstd -library=Crun'
14772 case " $postdeps_CXX " in
14773 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14775 compiler_lib_search_dirs_CXX=
14776 if test -n "${compiler_lib_search_path_CXX}"; then
14777 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14810 lt_prog_compiler_wl_CXX=
14811 lt_prog_compiler_pic_CXX=
14812 lt_prog_compiler_static_CXX=
14815 # C++ specific cases for pic, static, wl, etc.
14816 if test "$GXX" = yes; then
14817 lt_prog_compiler_wl_CXX='-Wl,'
14818 lt_prog_compiler_static_CXX='-static'
14822 # All AIX code is PIC.
14823 if test "$host_cpu" = ia64; then
14824 # AIX 5 now supports IA64 processor
14825 lt_prog_compiler_static_CXX='-Bstatic'
14832 # see comment about AmigaOS4 .so support
14833 lt_prog_compiler_pic_CXX='-fPIC'
14836 # FIXME: we need at least 68020 code to build shared libraries, but
14837 # adding the `-m68020' flag to GCC prevents building anything better,
14839 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14844 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14845 # PIC is the default for these OSes.
14847 mingw* | cygwin* | os2* | pw32* | cegcc*)
14848 # This hack is so that the source file can tell whether it is being
14849 # built for inclusion in a dll (and should export symbols for example).
14850 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14851 # (--disable-auto-import) libraries
14852 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14854 darwin* | rhapsody*)
14855 # PIC is the default on this platform
14856 # Common symbols not allowed in MH_DYLIB files
14857 lt_prog_compiler_pic_CXX='-fno-common'
14860 # DJGPP does not support shared libraries at all
14861 lt_prog_compiler_pic_CXX=
14864 # PIC is the default for Haiku.
14865 # The "-static" flag exists, but is broken.
14866 lt_prog_compiler_static_CXX=
14869 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14870 # Instead, we relocate shared libraries at runtime.
14873 if test -d /usr/nec; then
14874 lt_prog_compiler_pic_CXX=-Kconform_pic
14878 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14879 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14880 # sets the default TLS model and affects inlining.
14885 lt_prog_compiler_pic_CXX='-fPIC'
14890 # QNX uses GNU C++, but need to define -shared option too, otherwise
14891 # it will coredump.
14892 lt_prog_compiler_pic_CXX='-fPIC -shared'
14895 lt_prog_compiler_pic_CXX='-fPIC'
14901 # All AIX code is PIC.
14902 if test "$host_cpu" = ia64; then
14903 # AIX 5 now supports IA64 processor
14904 lt_prog_compiler_static_CXX='-Bstatic'
14906 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14910 case $cc_basename in
14912 # Green Hills C++ Compiler
14913 # _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"
14917 mingw* | cygwin* | os2* | pw32* | cegcc*)
14918 # This hack is so that the source file can tell whether it is being
14919 # built for inclusion in a dll (and should export symbols for example).
14920 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14923 case $cc_basename in
14925 lt_prog_compiler_pic_CXX='-KPIC'
14928 # Green Hills C++ Compiler
14929 lt_prog_compiler_pic_CXX='-pic'
14935 freebsd* | dragonfly*)
14936 # FreeBSD uses GNU C++
14938 hpux9* | hpux10* | hpux11*)
14939 case $cc_basename in
14941 lt_prog_compiler_wl_CXX='-Wl,'
14942 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14943 if test "$host_cpu" != ia64; then
14944 lt_prog_compiler_pic_CXX='+Z'
14948 lt_prog_compiler_wl_CXX='-Wl,'
14949 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14955 lt_prog_compiler_pic_CXX='+Z'
14964 # This is c89, which is MS Visual C++ (no shared libs)
14965 # Anyone wants to do a port?
14967 irix5* | irix6* | nonstopux*)
14968 case $cc_basename in
14970 lt_prog_compiler_wl_CXX='-Wl,'
14971 lt_prog_compiler_static_CXX='-non_shared'
14972 # CC pic flag -KPIC is the default.
14978 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14979 case $cc_basename in
14982 lt_prog_compiler_wl_CXX='--backend -Wl,'
14983 lt_prog_compiler_pic_CXX='-fPIC'
14986 # old Intel C++ for x86_64 which still supported -KPIC.
14987 lt_prog_compiler_wl_CXX='-Wl,'
14988 lt_prog_compiler_pic_CXX='-KPIC'
14989 lt_prog_compiler_static_CXX='-static'
14992 # Intel C++, used to be incompatible with GCC.
14993 # ICC 10 doesn't accept -KPIC any more.
14994 lt_prog_compiler_wl_CXX='-Wl,'
14995 lt_prog_compiler_pic_CXX='-fPIC'
14996 lt_prog_compiler_static_CXX='-static'
14999 # Portland Group C++ compiler
15000 lt_prog_compiler_wl_CXX='-Wl,'
15001 lt_prog_compiler_pic_CXX='-fpic'
15002 lt_prog_compiler_static_CXX='-Bstatic'
15006 # Make sure the PIC flag is empty. It appears that all Alpha
15007 # Linux and Compaq Tru64 Unix objects are PIC.
15008 lt_prog_compiler_pic_CXX=
15009 lt_prog_compiler_static_CXX='-non_shared'
15011 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15012 # IBM XL 8.0, 9.0 on PPC and BlueGene
15013 lt_prog_compiler_wl_CXX='-Wl,'
15014 lt_prog_compiler_pic_CXX='-qpic'
15015 lt_prog_compiler_static_CXX='-qstaticlink'
15018 case `$CC -V 2>&1 | sed 5q` in
15021 lt_prog_compiler_pic_CXX='-KPIC'
15022 lt_prog_compiler_static_CXX='-Bstatic'
15023 lt_prog_compiler_wl_CXX='-Qoption ld '
15034 case $cc_basename in
15036 lt_prog_compiler_pic_CXX='-W c,exportall'
15042 netbsd* | netbsdelf*-gnu)
15045 # QNX uses GNU C++, but need to define -shared option too, otherwise
15046 # it will coredump.
15047 lt_prog_compiler_pic_CXX='-fPIC -shared'
15049 osf3* | osf4* | osf5*)
15050 case $cc_basename in
15052 lt_prog_compiler_wl_CXX='--backend -Wl,'
15055 # Rational C++ 2.4.1
15056 lt_prog_compiler_pic_CXX='-pic'
15059 # Digital/Compaq C++
15060 lt_prog_compiler_wl_CXX='-Wl,'
15061 # Make sure the PIC flag is empty. It appears that all Alpha
15062 # Linux and Compaq Tru64 Unix objects are PIC.
15063 lt_prog_compiler_pic_CXX=
15064 lt_prog_compiler_static_CXX='-non_shared'
15073 case $cc_basename in
15075 # Sun C++ 4.2, 5.x and Centerline C++
15076 lt_prog_compiler_pic_CXX='-KPIC'
15077 lt_prog_compiler_static_CXX='-Bstatic'
15078 lt_prog_compiler_wl_CXX='-Qoption ld '
15081 # Green Hills C++ Compiler
15082 lt_prog_compiler_pic_CXX='-PIC'
15089 case $cc_basename in
15092 lt_prog_compiler_pic_CXX='-pic'
15093 lt_prog_compiler_static_CXX='-Bstatic'
15097 lt_prog_compiler_pic_CXX='-pic'
15103 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15104 case $cc_basename in
15106 lt_prog_compiler_wl_CXX='-Wl,'
15107 lt_prog_compiler_pic_CXX='-KPIC'
15108 lt_prog_compiler_static_CXX='-Bstatic'
15113 case $cc_basename in
15115 # NonStop-UX NCC 3.20
15116 lt_prog_compiler_pic_CXX='-KPIC'
15125 lt_prog_compiler_can_build_shared_CXX=no
15131 # For platforms which do not support PIC, -DPIC is meaningless:
15133 lt_prog_compiler_pic_CXX=
15136 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15141 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15142 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15143 $as_echo_n "(cached) " >&6
15145 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15148 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15149 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15152 # Check to make sure the PIC flag actually works.
15154 if test -n "$lt_prog_compiler_pic_CXX"; then
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15156 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15157 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15158 $as_echo_n "(cached) " >&6
15160 lt_cv_prog_compiler_pic_works_CXX=no
15161 ac_outfile=conftest.$ac_objext
15162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15163 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15164 # Insert the option either (1) after the last *FLAGS variable, or
15165 # (2) before a word containing "conftest.", or (3) at the end.
15166 # Note that $ac_compile itself does not contain backslashes and begins
15167 # with a dollar sign (not a hyphen), so the echo should work correctly.
15168 # The option is referenced via a variable to avoid confusing sed.
15169 lt_compile=`echo "$ac_compile" | $SED \
15170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15172 -e 's:$: $lt_compiler_flag:'`
15173 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15174 (eval "$lt_compile" 2>conftest.err)
15176 cat conftest.err >&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 if (exit $ac_status) && test -s "$ac_outfile"; then
15179 # The compiler can only warn and ignore the option if not recognized
15180 # So say no if there are warnings other than the usual output.
15181 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15183 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15184 lt_cv_prog_compiler_pic_works_CXX=yes
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15191 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15193 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15194 case $lt_prog_compiler_pic_CXX in
15196 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15199 lt_prog_compiler_pic_CXX=
15200 lt_prog_compiler_can_build_shared_CXX=no
15210 # Check to make sure the static flag actually works.
15212 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15214 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15215 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15216 $as_echo_n "(cached) " >&6
15218 lt_cv_prog_compiler_static_works_CXX=no
15219 save_LDFLAGS="$LDFLAGS"
15220 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15221 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15222 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15223 # The linker can only warn and ignore the option if not recognized
15224 # So say no if there are warnings
15225 if test -s conftest.err; then
15226 # Append any errors to the config.log.
15227 cat conftest.err 1>&5
15228 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15230 if diff conftest.exp conftest.er2 >/dev/null; then
15231 lt_cv_prog_compiler_static_works_CXX=yes
15234 lt_cv_prog_compiler_static_works_CXX=yes
15238 LDFLAGS="$save_LDFLAGS"
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15242 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15244 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15247 lt_prog_compiler_static_CXX=
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15254 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15255 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15256 $as_echo_n "(cached) " >&6
15258 lt_cv_prog_compiler_c_o_CXX=no
15259 $RM -r conftest 2>/dev/null
15263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15265 lt_compiler_flag="-o out/conftest2.$ac_objext"
15266 # Insert the option either (1) after the last *FLAGS variable, or
15267 # (2) before a word containing "conftest.", or (3) at the end.
15268 # Note that $ac_compile itself does not contain backslashes and begins
15269 # with a dollar sign (not a hyphen), so the echo should work correctly.
15270 lt_compile=`echo "$ac_compile" | $SED \
15271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15273 -e 's:$: $lt_compiler_flag:'`
15274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15275 (eval "$lt_compile" 2>out/conftest.err)
15277 cat out/conftest.err >&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15281 # The compiler can only warn and ignore the option if not recognized
15282 # So say no if there are warnings
15283 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15284 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15285 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15286 lt_cv_prog_compiler_c_o_CXX=yes
15291 # SGI C++ compiler will create directory out/ii_files/ for
15292 # template instantiation
15293 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15294 $RM out/* && rmdir out
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15301 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15306 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15307 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15308 $as_echo_n "(cached) " >&6
15310 lt_cv_prog_compiler_c_o_CXX=no
15311 $RM -r conftest 2>/dev/null
15315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15317 lt_compiler_flag="-o out/conftest2.$ac_objext"
15318 # Insert the option either (1) after the last *FLAGS variable, or
15319 # (2) before a word containing "conftest.", or (3) at the end.
15320 # Note that $ac_compile itself does not contain backslashes and begins
15321 # with a dollar sign (not a hyphen), so the echo should work correctly.
15322 lt_compile=`echo "$ac_compile" | $SED \
15323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15325 -e 's:$: $lt_compiler_flag:'`
15326 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15327 (eval "$lt_compile" 2>out/conftest.err)
15329 cat out/conftest.err >&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15333 # The compiler can only warn and ignore the option if not recognized
15334 # So say no if there are warnings
15335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15336 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15337 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15338 lt_cv_prog_compiler_c_o_CXX=yes
15343 # SGI C++ compiler will create directory out/ii_files/ for
15344 # template instantiation
15345 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15346 $RM out/* && rmdir out
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15353 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15358 hard_links="nottested"
15359 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15360 # do not overwrite the value of need_locks provided by the user
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15362 $as_echo_n "checking if we can lock with hard links... " >&6; }
15365 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15367 ln conftest.a conftest.b 2>&5 || hard_links=no
15368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15370 $as_echo "$hard_links" >&6; }
15371 if test "$hard_links" = no; then
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15373 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15383 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15385 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15386 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15389 # If we're using GNU nm, then we don't want the "-C" option.
15390 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15391 # Also, AIX nm treats weak defined symbols like other global defined
15392 # symbols, whereas GNU nm marks them as "W".
15393 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15394 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'
15396 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'
15400 export_symbols_cmds_CXX="$ltdll_cmds"
15402 cygwin* | mingw* | cegcc*)
15403 case $cc_basename in
15405 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15408 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'
15409 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15413 linux* | k*bsd*-gnu | gnu*)
15414 link_all_deplibs_CXX=no
15417 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15422 $as_echo "$ld_shlibs_CXX" >&6; }
15423 test "$ld_shlibs_CXX" = no && can_build_shared=no
15425 with_gnu_ld_CXX=$with_gnu_ld
15433 # Do we need to explicitly link libc?
15435 case "x$archive_cmds_need_lc_CXX" in
15437 # Assume -lc should be added
15438 archive_cmds_need_lc_CXX=yes
15440 if test "$enable_shared" = yes && test "$GCC" = yes; then
15441 case $archive_cmds_CXX in
15443 # FIXME: we may have to deal with multi-command sequences.
15446 # Test whether the compiler implicitly links with -lc since on some
15447 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15448 # to ld, don't add -lc before -lgcc.
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15450 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15451 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15452 $as_echo_n "(cached) " >&6
15455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15458 (eval $ac_compile) 2>&5
15460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15461 test $ac_status = 0; } 2>conftest.err; then
15464 libobjs=conftest.$ac_objext
15466 wl=$lt_prog_compiler_wl_CXX
15467 pic_flag=$lt_prog_compiler_pic_CXX
15473 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15474 allow_undefined_flag_CXX=
15475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15476 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15479 test $ac_status = 0; }
15481 lt_cv_archive_cmds_need_lc_CXX=no
15483 lt_cv_archive_cmds_need_lc_CXX=yes
15485 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15487 cat conftest.err 1>&5
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15493 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15494 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15563 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15565 library_names_spec=
15566 libname_spec='lib$name'
15570 postuninstall_cmds=
15574 shlibpath_overrides_runpath=unknown
15576 dynamic_linker="$host_os ld.so"
15577 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15578 need_lib_prefix=unknown
15579 hardcode_into_libs=no
15581 # when you set need_version to no, make sure it does not cause -set_version
15582 # flags to be left without arguments
15583 need_version=unknown
15587 version_type=linux # correct to gnu/linux during the next big refactor
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15589 shlibpath_var=LIBPATH
15591 # AIX 3 has no versioning support, so we append a major version to the name.
15592 soname_spec='${libname}${release}${shared_ext}$major'
15596 version_type=linux # correct to gnu/linux during the next big refactor
15599 hardcode_into_libs=yes
15600 if test "$host_cpu" = ia64; then
15601 # AIX 5 supports IA64
15602 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15603 shlibpath_var=LD_LIBRARY_PATH
15605 # With GCC up to 2.95.x, collect2 would create an import file
15606 # for dependence libraries. The import file would start with
15607 # the line `#! .'. This would cause the generated library to
15608 # depend on `.', always an invalid library. This was fixed in
15609 # development snapshots of GCC prior to 3.0.
15611 aix4 | aix4.[01] | aix4.[01].*)
15612 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15614 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15617 can_build_shared=no
15621 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15622 # soname into executable. Probably we can add versioning support to
15623 # collect2, so additional links can be useful in future.
15624 if test "$aix_use_runtimelinking" = yes; then
15625 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15626 # instead of lib<name>.a to let people know that these are not
15627 # typical AIX shared libraries.
15628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630 # We preserve .a as extension for shared libraries through AIX4.2
15631 # and later when we are not doing run time linking.
15632 library_names_spec='${libname}${release}.a $libname.a'
15633 soname_spec='${libname}${release}${shared_ext}$major'
15635 shlibpath_var=LIBPATH
15642 # Since July 2007 AmigaOS4 officially supports .so libraries.
15643 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647 library_names_spec='$libname.ixlibrary $libname.a'
15648 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15649 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'
15655 library_names_spec='${libname}${shared_ext}'
15656 dynamic_linker="$host_os ld.so"
15657 shlibpath_var=LIBRARY_PATH
15661 version_type=linux # correct to gnu/linux during the next big refactor
15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15664 soname_spec='${libname}${release}${shared_ext}$major'
15665 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15666 shlibpath_var=LD_LIBRARY_PATH
15667 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15668 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15669 # the default ld.so.conf also contains /usr/contrib/lib and
15670 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15671 # libtool to hard-code these into programs
15674 cygwin* | mingw* | pw32* | cegcc*)
15675 version_type=windows
15680 case $GCC,$cc_basename in
15683 library_names_spec='$libname.dll.a'
15684 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15685 postinstall_cmds='base_file=`basename \${file}`~
15686 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15687 dldir=$destdir/`dirname \$dlpath`~
15688 test -d \$dldir || mkdir -p \$dldir~
15689 $install_prog $dir/$dlname \$dldir/$dlname~
15690 chmod a+x \$dldir/$dlname~
15691 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15692 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15694 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15695 dlpath=$dir/\$dldll~
15697 shlibpath_overrides_runpath=yes
15701 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15702 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15706 # MinGW DLLs use traditional 'lib' prefix
15707 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15710 # pw32 DLLs use 'pw' prefix rather than 'lib'
15711 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15714 dynamic_linker='Win32 ld.exe'
15719 libname_spec='$name'
15720 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15721 library_names_spec='${libname}.dll.lib'
15725 sys_lib_search_path_spec=
15728 for lt_path in $LIB
15731 # Let DOS variable expansion print the short 8.3 style file name.
15732 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15733 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15736 # Convert to MSYS style.
15737 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15740 # Convert to unix form, then to dos form, then back to unix form
15741 # but this time dos style (no spaces!) so that the unix form looks
15742 # like /cygdrive/c/PROGRA~1:/cygdr...
15743 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15744 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15745 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15748 sys_lib_search_path_spec="$LIB"
15749 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15750 # It is most probably a Windows format PATH.
15751 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15753 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15755 # FIXME: find the short name or the path components, as spaces are
15756 # common. (e.g. "Program Files" -> "PROGRA~1")
15760 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15761 postinstall_cmds='base_file=`basename \${file}`~
15762 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15763 dldir=$destdir/`dirname \$dlpath`~
15764 test -d \$dldir || mkdir -p \$dldir~
15765 $install_prog $dir/$dlname \$dldir/$dlname'
15766 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15767 dlpath=$dir/\$dldll~
15769 shlibpath_overrides_runpath=yes
15770 dynamic_linker='Win32 link.exe'
15774 # Assume MSVC wrapper
15775 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15776 dynamic_linker='Win32 ld.exe'
15779 # FIXME: first we should search . and the directory the executable is in
15783 darwin* | rhapsody*)
15784 dynamic_linker="$host_os dyld"
15785 version_type=darwin
15788 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15789 soname_spec='${libname}${release}${major}$shared_ext'
15790 shlibpath_overrides_runpath=yes
15791 shlibpath_var=DYLD_LIBRARY_PATH
15792 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15794 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15798 version_type=linux # correct to gnu/linux during the next big refactor
15801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15802 soname_spec='${libname}${release}${shared_ext}$major'
15803 shlibpath_var=LD_LIBRARY_PATH
15806 freebsd* | dragonfly*)
15807 # DragonFly does not have aout. When/if they implement a new
15808 # versioning mechanism, adjust this.
15809 if test -x /usr/bin/objformat; then
15810 objformat=`/usr/bin/objformat`
15813 freebsd[23].*) objformat=aout ;;
15814 *) objformat=elf ;;
15817 version_type=freebsd-$objformat
15818 case $version_type in
15820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15825 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15829 shlibpath_var=LD_LIBRARY_PATH
15832 shlibpath_overrides_runpath=yes
15834 freebsd3.[01]* | freebsdelf3.[01]*)
15835 shlibpath_overrides_runpath=yes
15836 hardcode_into_libs=yes
15838 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15839 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15840 shlibpath_overrides_runpath=no
15841 hardcode_into_libs=yes
15843 *) # from 4.6 on, and DragonFly
15844 shlibpath_overrides_runpath=yes
15845 hardcode_into_libs=yes
15851 version_type=linux # correct to gnu/linux during the next big refactor
15854 dynamic_linker="$host_os runtime_loader"
15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15856 soname_spec='${libname}${release}${shared_ext}$major'
15857 shlibpath_var=LIBRARY_PATH
15858 shlibpath_overrides_runpath=yes
15859 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15860 hardcode_into_libs=yes
15863 hpux9* | hpux10* | hpux11*)
15864 # Give a soname corresponding to the major version so that dld.sl refuses to
15865 # link against other versions.
15872 hardcode_into_libs=yes
15873 dynamic_linker="$host_os dld.so"
15874 shlibpath_var=LD_LIBRARY_PATH
15875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15877 soname_spec='${libname}${release}${shared_ext}$major'
15878 if test "X$HPUX_IA64_MODE" = X32; then
15879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15887 hardcode_into_libs=yes
15888 dynamic_linker="$host_os dld.sl"
15889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892 soname_spec='${libname}${release}${shared_ext}$major'
15893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15898 dynamic_linker="$host_os dld.sl"
15899 shlibpath_var=SHLIB_PATH
15900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15902 soname_spec='${libname}${release}${shared_ext}$major'
15905 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15906 postinstall_cmds='chmod 555 $lib'
15907 # or fails outright, so override atomically:
15908 install_override_mode=555
15912 version_type=linux # correct to gnu/linux during the next big refactor
15915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15916 soname_spec='${libname}${release}${shared_ext}$major'
15917 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15918 shlibpath_var=LD_LIBRARY_PATH
15919 shlibpath_overrides_runpath=no
15920 hardcode_into_libs=yes
15923 irix5* | irix6* | nonstopux*)
15925 nonstopux*) version_type=nonstopux ;;
15927 if test "$lt_cv_prog_gnu_ld" = yes; then
15928 version_type=linux # correct to gnu/linux during the next big refactor
15935 soname_spec='${libname}${release}${shared_ext}$major'
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15938 irix5* | nonstopux*)
15939 libsuff= shlibsuff=
15942 case $LD in # libtool.m4 will add one of these switches to LD
15943 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15944 libsuff= shlibsuff= libmagic=32-bit;;
15945 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15946 libsuff=32 shlibsuff=N32 libmagic=N32;;
15947 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15948 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15949 *) libsuff= shlibsuff= libmagic=never-match;;
15953 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15954 shlibpath_overrides_runpath=no
15955 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15956 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15957 hardcode_into_libs=yes
15960 # No shared lib support for Linux oldld, aout, or coff.
15961 linux*oldld* | linux*aout* | linux*coff*)
15965 # This must be glibc/ELF.
15966 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15967 version_type=linux # correct to gnu/linux during the next big refactor
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971 soname_spec='${libname}${release}${shared_ext}$major'
15972 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15973 shlibpath_var=LD_LIBRARY_PATH
15974 shlibpath_overrides_runpath=no
15976 # Some binutils ld are patched to set DT_RUNPATH
15977 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15978 $as_echo_n "(cached) " >&6
15980 lt_cv_shlibpath_overrides_runpath=no
15981 save_LDFLAGS=$LDFLAGS
15982 save_libdir=$libdir
15983 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15984 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15986 /* end confdefs.h. */
15996 if ac_fn_cxx_try_link "$LINENO"; then :
15997 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15998 lt_cv_shlibpath_overrides_runpath=yes
16001 rm -f core conftest.err conftest.$ac_objext \
16002 conftest$ac_exeext conftest.$ac_ext
16003 LDFLAGS=$save_LDFLAGS
16004 libdir=$save_libdir
16008 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16010 # This implies no fast_install, which is unacceptable.
16011 # Some rework will be needed to allow for fast_install
16012 # before this can be enabled.
16013 hardcode_into_libs=yes
16015 # Append ld.so.conf contents to the search path
16016 if test -f /etc/ld.so.conf; then
16017 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' ' '`
16018 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16021 # We used to test for /lib/ld.so.1 and disable shared libraries on
16022 # powerpc, because MkLinux only supported shared libraries with the
16023 # GNU dynamic linker. Since this was broken with cross compilers,
16024 # most powerpc-linux boxes support dynamic linking these days and
16025 # people can always --disable-shared, the test was removed, and we
16026 # assume the GNU/Linux dynamic linker is in use.
16027 dynamic_linker='GNU/Linux ld.so'
16034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16035 soname_spec='${libname}${release}${shared_ext}$major'
16036 shlibpath_var=LD_LIBRARY_PATH
16037 shlibpath_overrides_runpath=no
16038 hardcode_into_libs=yes
16039 dynamic_linker='NetBSD ld.elf_so'
16046 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16049 dynamic_linker='NetBSD (a.out) ld.so'
16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16052 soname_spec='${libname}${release}${shared_ext}$major'
16053 dynamic_linker='NetBSD ld.elf_so'
16055 shlibpath_var=LD_LIBRARY_PATH
16056 shlibpath_overrides_runpath=yes
16057 hardcode_into_libs=yes
16061 version_type=linux # correct to gnu/linux during the next big refactor
16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16063 shlibpath_var=LD_LIBRARY_PATH
16064 shlibpath_overrides_runpath=yes
16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072 soname_spec='${libname}${release}${shared_ext}$major'
16073 shlibpath_var=LD_LIBRARY_PATH
16074 shlibpath_overrides_runpath=no
16075 hardcode_into_libs=yes
16076 dynamic_linker='ldqnx.so'
16081 sys_lib_dlsearch_path_spec="/usr/lib"
16083 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16085 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16086 *) need_version=no ;;
16088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16090 shlibpath_var=LD_LIBRARY_PATH
16091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16093 openbsd2.[89] | openbsd2.[89].*)
16094 shlibpath_overrides_runpath=no
16097 shlibpath_overrides_runpath=yes
16101 shlibpath_overrides_runpath=yes
16106 libname_spec='$name'
16109 library_names_spec='$libname${shared_ext} $libname.a'
16110 dynamic_linker='OS/2 ld.exe'
16111 shlibpath_var=LIBPATH
16114 osf3* | osf4* | osf5*)
16118 soname_spec='${libname}${release}${shared_ext}$major'
16119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16120 shlibpath_var=LD_LIBRARY_PATH
16121 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16122 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16130 version_type=linux # correct to gnu/linux during the next big refactor
16133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16134 soname_spec='${libname}${release}${shared_ext}$major'
16135 shlibpath_var=LD_LIBRARY_PATH
16136 shlibpath_overrides_runpath=yes
16137 hardcode_into_libs=yes
16138 # ldd complains unless libraries are executable
16139 postinstall_cmds='chmod +x $lib'
16144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16145 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16146 shlibpath_var=LD_LIBRARY_PATH
16147 shlibpath_overrides_runpath=yes
16148 if test "$with_gnu_ld" = yes; then
16155 version_type=linux # correct to gnu/linux during the next big refactor
16156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157 soname_spec='${libname}${release}${shared_ext}$major'
16158 shlibpath_var=LD_LIBRARY_PATH
16159 case $host_vendor in
16161 shlibpath_overrides_runpath=no
16163 runpath_var=LD_RUN_PATH
16171 shlibpath_overrides_runpath=no
16172 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16178 if test -d /usr/nec ;then
16179 version_type=linux # correct to gnu/linux during the next big refactor
16180 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16181 soname_spec='$libname${shared_ext}.$major'
16182 shlibpath_var=LD_LIBRARY_PATH
16186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16187 version_type=freebsd-elf
16190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16191 soname_spec='${libname}${release}${shared_ext}$major'
16192 shlibpath_var=LD_LIBRARY_PATH
16193 shlibpath_overrides_runpath=yes
16194 hardcode_into_libs=yes
16195 if test "$with_gnu_ld" = yes; then
16196 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16198 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16201 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16205 sys_lib_dlsearch_path_spec='/usr/lib'
16209 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16210 version_type=linux # correct to gnu/linux during the next big refactor
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214 shlibpath_var=LD_LIBRARY_PATH
16215 shlibpath_overrides_runpath=no
16216 hardcode_into_libs=yes
16220 version_type=linux # correct to gnu/linux during the next big refactor
16221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16222 soname_spec='${libname}${release}${shared_ext}$major'
16223 shlibpath_var=LD_LIBRARY_PATH
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16231 $as_echo "$dynamic_linker" >&6; }
16232 test "$dynamic_linker" = no && can_build_shared=no
16234 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16235 if test "$GCC" = yes; then
16236 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16239 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16240 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16242 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16243 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16284 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16285 hardcode_action_CXX=
16286 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16287 test -n "$runpath_var_CXX" ||
16288 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16290 # We can hardcode non-existent directories.
16291 if test "$hardcode_direct_CXX" != no &&
16292 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16293 # have to relink, otherwise we might link with an installed library
16294 # when we should be linking with a yet-to-be-installed one
16295 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16296 test "$hardcode_minus_L_CXX" != no; then
16297 # Linking always hardcodes the temporary library directory.
16298 hardcode_action_CXX=relink
16300 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16301 hardcode_action_CXX=immediate
16304 # We cannot hardcode anything, or else we can only hardcode existing
16306 hardcode_action_CXX=unsupported
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16309 $as_echo "$hardcode_action_CXX" >&6; }
16311 if test "$hardcode_action_CXX" = relink ||
16312 test "$inherit_rpath_CXX" = yes; then
16313 # Fast installation is not supported
16314 enable_fast_install=no
16315 elif test "$shlibpath_overrides_runpath" = yes ||
16316 test "$enable_shared" = no; then
16317 # Fast installation is not necessary
16318 enable_fast_install=needless
16327 fi # test -n "$compiler"
16330 CFLAGS=$lt_save_CFLAGS
16334 with_gnu_ld=$lt_save_with_gnu_ld
16335 lt_cv_path_LDCXX=$lt_cv_path_LD
16336 lt_cv_path_LD=$lt_save_path_LD
16337 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16338 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16339 fi # test "$_lt_caught_CXX_error" != yes
16342 ac_cpp='$CPP $CPPFLAGS'
16343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16361 ac_config_commands="$ac_config_commands libtool"
16366 # Only expand once:
16374 ac_cpp='$CPP $CPPFLAGS'
16375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16382 $as_echo_n "checking for library containing dlopen... " >&6; }
16383 if ${ac_cv_search_dlopen+:} false; then :
16384 $as_echo_n "(cached) " >&6
16386 ac_func_search_save_LIBS=$LIBS
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h. */
16390 /* Override any GCC internal prototype to avoid an error.
16391 Use char because int might match the return type of a GCC
16392 builtin and then its argument prototype would still apply. */
16405 for ac_lib in '' dl; do
16406 if test -z "$ac_lib"; then
16407 ac_res="none required"
16410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16412 if ac_fn_c_try_link "$LINENO"; then :
16413 ac_cv_search_dlopen=$ac_res
16415 rm -f core conftest.err conftest.$ac_objext \
16417 if ${ac_cv_search_dlopen+:} false; then :
16421 if ${ac_cv_search_dlopen+:} false; then :
16424 ac_cv_search_dlopen=no
16426 rm conftest.$ac_ext
16427 LIBS=$ac_func_search_save_LIBS
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16430 $as_echo "$ac_cv_search_dlopen" >&6; }
16431 ac_res=$ac_cv_search_dlopen
16432 if test "$ac_res" != no; then :
16433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16435 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16437 if test "$ac_cv_search_dlopen" != "none required" ; then
16438 LIBADD_DLOPEN="-ldl"
16440 libltdl_cv_lib_dl_dlopen="yes"
16441 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16444 /* end confdefs.h. */
16446 # include <dlfcn.h>
16457 if ac_fn_c_try_link "$LINENO"; then :
16459 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16461 libltdl_cv_func_dlopen="yes"
16462 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16465 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16466 if ${ac_cv_lib_svld_dlopen+:} false; then :
16467 $as_echo_n "(cached) " >&6
16469 ac_check_lib_save_LIBS=$LIBS
16470 LIBS="-lsvld $LIBS"
16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16474 /* Override any GCC internal prototype to avoid an error.
16475 Use char because int might match the return type of a GCC
16476 builtin and then its argument prototype would still apply. */
16489 if ac_fn_c_try_link "$LINENO"; then :
16490 ac_cv_lib_svld_dlopen=yes
16492 ac_cv_lib_svld_dlopen=no
16494 rm -f core conftest.err conftest.$ac_objext \
16495 conftest$ac_exeext conftest.$ac_ext
16496 LIBS=$ac_check_lib_save_LIBS
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16499 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16500 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16502 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16504 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16505 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16509 rm -f core conftest.err conftest.$ac_objext \
16510 conftest$ac_exeext conftest.$ac_ext
16513 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16515 lt_save_LIBS="$LIBS"
16516 LIBS="$LIBS $LIBADD_DLOPEN"
16517 for ac_func in dlerror
16519 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16520 if test "x$ac_cv_func_dlerror" = xyes; then :
16521 cat >>confdefs.h <<_ACEOF
16522 #define HAVE_DLERROR 1
16528 LIBS="$lt_save_LIBS"
16533 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16534 if test "x$ac_cv_func_shl_load" = xyes; then :
16536 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16538 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16541 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16542 if ${ac_cv_lib_dld_shl_load+:} false; then :
16543 $as_echo_n "(cached) " >&6
16545 ac_check_lib_save_LIBS=$LIBS
16547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548 /* end confdefs.h. */
16550 /* Override any GCC internal prototype to avoid an error.
16551 Use char because int might match the return type of a GCC
16552 builtin and then its argument prototype would still apply. */
16560 return shl_load ();
16565 if ac_fn_c_try_link "$LINENO"; then :
16566 ac_cv_lib_dld_shl_load=yes
16568 ac_cv_lib_dld_shl_load=no
16570 rm -f core conftest.err conftest.$ac_objext \
16571 conftest$ac_exeext conftest.$ac_ext
16572 LIBS=$ac_check_lib_save_LIBS
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16575 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16576 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16578 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16580 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16581 LIBADD_SHL_LOAD="-ldld"
16590 # We only want this for pre-Mac OS X 10.4.
16591 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16592 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16594 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16596 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16601 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16603 cygwin* | mingw* | os2* | pw32*)
16604 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16606 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16612 cat >>confdefs.h <<_ACEOF
16613 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16616 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16621 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16622 if ${ac_cv_lib_dld_dld_link+:} false; then :
16623 $as_echo_n "(cached) " >&6
16625 ac_check_lib_save_LIBS=$LIBS
16627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16628 /* end confdefs.h. */
16630 /* Override any GCC internal prototype to avoid an error.
16631 Use char because int might match the return type of a GCC
16632 builtin and then its argument prototype would still apply. */
16640 return dld_link ();
16645 if ac_fn_c_try_link "$LINENO"; then :
16646 ac_cv_lib_dld_dld_link=yes
16648 ac_cv_lib_dld_dld_link=no
16650 rm -f core conftest.err conftest.$ac_objext \
16651 conftest$ac_exeext conftest.$ac_ext
16652 LIBS=$ac_check_lib_save_LIBS
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16655 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16656 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16658 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16660 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16667 if test -n "$LT_DLLOADERS"
16669 for lt_loader in $LT_DLLOADERS; do
16670 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16673 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16678 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16682 ac_cpp='$CPP $CPPFLAGS'
16683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16690 if test x$use_libtool != xno; then
16691 DEFAULT_OBJECT_TYPE=".lo"
16692 DEFAULT_ARCHIVE_TYPE=".la"
16693 DEFAULT_SHARED_OBJECT_TYPE=".la"
16694 LIBTOOL="\$(LIBTOOL)"
16695 LIBTOOL_INSTALL_TARGET="libtool-install"
16696 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16697 LIBTOOL_CLEAN_TARGET="libtool-clean"
16698 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16699 FD_PLUGIN_DIR="src/plugins/fd"
16702 DEFAULT_OBJECT_TYPE=".o"
16703 DEFAULT_ARCHIVE_TYPE=".a"
16704 DEFAULT_SHARED_OBJECT_TYPE=".so"
16705 LIBTOOL="# \$(LIBTOOL)"
16706 LIBTOOL_INSTALL_TARGET=""
16707 LIBTOOL_UNINSTALL_TARGET=""
16708 LIBTOOL_CLEAN_TARGET=""
16709 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16724 # Check whether --enable-includes was given.
16725 if test "${enable_includes+set}" = set; then :
16726 enableval=$enable_includes;
16727 if test x$enableval = xyes; then
16728 install_includes=yes
16736 if test x$use_libtool != xno -a x$install_includes = xyes; then
16737 INCLUDE_INSTALL_TARGET="install-includes"
16738 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16740 INCLUDE_INSTALL_TARGET=""
16741 INCLUDE_UNINSTALL_TARGET=""
16749 *cygwin* ) CYGWIN=yes;;
16753 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16759 HAVE_SUN_OS_FALSE='#'
16761 HAVE_SUN_OS_TRUE='#'
16764 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16771 HAVE_SUN_OS_FALSE='#'
16773 HAVE_SUN_OS_TRUE='#'
16778 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16784 HAVE_HURD_OS_FALSE='#'
16786 HAVE_HURD_OS_TRUE='#'
16787 HAVE_HURD_OS_FALSE=
16789 $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16796 HAVE_HURD_OS_FALSE='#'
16798 HAVE_HURD_OS_TRUE='#'
16799 HAVE_HURD_OS_FALSE=
16803 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16809 HAVE_OSF1_OS_FALSE='#'
16811 HAVE_OSF1_OS_TRUE='#'
16812 HAVE_OSF1_OS_FALSE=
16814 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16821 HAVE_OSF1_OS_FALSE='#'
16823 HAVE_OSF1_OS_TRUE='#'
16824 HAVE_OSF1_OS_FALSE=
16828 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16834 HAVE_AIX_OS_FALSE='#'
16836 HAVE_AIX_OS_TRUE='#'
16839 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16846 HAVE_AIX_OS_FALSE='#'
16848 HAVE_AIX_OS_TRUE='#'
16853 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16859 HAVE_HPUX_OS_FALSE='#'
16861 HAVE_HPUX_OS_TRUE='#'
16862 HAVE_HPUX_OS_FALSE=
16864 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16871 HAVE_HPUX_OS_FALSE='#'
16873 HAVE_HPUX_OS_TRUE='#'
16874 HAVE_HPUX_OS_FALSE=
16878 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16883 HAVE_LINUX_OS_TRUE=
16884 HAVE_LINUX_OS_FALSE='#'
16886 HAVE_LINUX_OS_TRUE='#'
16887 HAVE_LINUX_OS_FALSE=
16889 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16895 HAVE_LINUX_OS_TRUE=
16896 HAVE_LINUX_OS_FALSE='#'
16898 HAVE_LINUX_OS_TRUE='#'
16899 HAVE_LINUX_OS_FALSE=
16903 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16908 HAVE_FREEBSD_OS_TRUE=
16909 HAVE_FREEBSD_OS_FALSE='#'
16911 HAVE_FREEBSD_OS_TRUE='#'
16912 HAVE_FREEBSD_OS_FALSE=
16914 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16920 HAVE_FREEBSD_OS_TRUE=
16921 HAVE_FREEBSD_OS_FALSE='#'
16923 HAVE_FREEBSD_OS_TRUE='#'
16924 HAVE_FREEBSD_OS_FALSE=
16928 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16933 HAVE_NETBSD_OS_TRUE=
16934 HAVE_NETBSD_OS_FALSE='#'
16936 HAVE_NETBSD_OS_TRUE='#'
16937 HAVE_NETBSD_OS_FALSE=
16939 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16945 HAVE_NETBSD_OS_TRUE=
16946 HAVE_NETBSD_OS_FALSE='#'
16948 HAVE_NETBSD_OS_TRUE='#'
16949 HAVE_NETBSD_OS_FALSE=
16953 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16958 HAVE_OPENBSD_OS_TRUE=
16959 HAVE_OPENBSD_OS_FALSE='#'
16961 HAVE_OPENBSD_OS_TRUE='#'
16962 HAVE_OPENBSD_OS_FALSE=
16964 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16970 HAVE_OPENBSD_OS_TRUE=
16971 HAVE_OPENBSD_OS_FALSE='#'
16973 HAVE_OPENBSD_OS_TRUE='#'
16974 HAVE_OPENBSD_OS_FALSE=
16978 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16984 HAVE_BSDI_OS_FALSE='#'
16986 HAVE_BSDI_OS_TRUE='#'
16987 HAVE_BSDI_OS_FALSE=
16989 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16996 HAVE_BSDI_OS_FALSE='#'
16998 HAVE_BSDI_OS_TRUE='#'
16999 HAVE_BSDI_OS_FALSE=
17003 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17009 HAVE_SGI_OS_FALSE='#'
17011 HAVE_SGI_OS_TRUE='#'
17014 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17021 HAVE_SGI_OS_FALSE='#'
17023 HAVE_SGI_OS_TRUE='#'
17028 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17034 HAVE_IRIX_OS_FALSE='#'
17036 HAVE_IRIX_OS_TRUE='#'
17037 HAVE_IRIX_OS_FALSE=
17039 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17046 HAVE_IRIX_OS_FALSE='#'
17048 HAVE_IRIX_OS_TRUE='#'
17049 HAVE_IRIX_OS_FALSE=
17053 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17058 HAVE_DARWIN_OS_TRUE=
17059 HAVE_DARWIN_OS_FALSE='#'
17061 HAVE_DARWIN_OS_TRUE='#'
17062 HAVE_DARWIN_OS_FALSE=
17064 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17070 HAVE_DARWIN_OS_TRUE=
17071 HAVE_DARWIN_OS_FALSE='#'
17073 HAVE_DARWIN_OS_TRUE='#'
17074 HAVE_DARWIN_OS_FALSE=
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17080 $as_echo_n "checking for Operating System Distribution... " >&6; }
17081 if test "x$DISTNAME" != "x"
17083 echo "distname set to $DISTNAME"
17084 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17087 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17090 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17093 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17096 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17099 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17102 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17105 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17108 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17111 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17114 elif test -f /etc/SuSE-release
17117 elif test -d /etc/SuSEconfig
17120 elif test -f /etc/mandrake-release
17123 elif test -f /etc/whitebox-release
17126 elif test -f /etc/redhat-release
17129 elif test -f /etc/gentoo-release
17132 elif test -f /etc/debian_version
17135 elif test -f /etc/slackware-version
17138 elif test x$host_vendor = xapple
17141 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17144 elif test -f /etc/engarde-version
17147 elif test -f /etc/arch-release
17150 elif test "$CYGWIN" = yes
17153 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17159 $as_echo "done" >&6; }
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17163 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17165 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17166 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17167 $as_echo_n "(cached) " >&6
17169 cat >conftest.make <<\_ACEOF
17172 @echo '@@@%%%=$(MAKE)=@@@%%%'
17174 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17175 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17176 *@@@%%%=?*=@@@%%%*)
17177 eval ac_cv_prog_make_${ac_make}_set=yes;;
17179 eval ac_cv_prog_make_${ac_make}_set=no;;
17181 rm -f conftest.make
17183 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17185 $as_echo "yes" >&6; }
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17189 $as_echo "no" >&6; }
17190 SET_MAKE="MAKE=${MAKE-make}"
17196 if test -n "$ac_aux_dir"; then
17197 case "$ac_aux_dir" in
17198 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17199 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17202 if test -z "$MKINSTALLDIRS"; then
17203 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17209 $as_echo_n "checking whether NLS is requested... " >&6; }
17210 # Check whether --enable-nls was given.
17211 if test "${enable_nls+set}" = set; then :
17212 enableval=$enable_nls; USE_NLS=$enableval
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17218 $as_echo "$USE_NLS" >&6; }
17225 # Prepare PATH_SEPARATOR.
17226 # The user is always right.
17227 if test "${PATH_SEPARATOR+set}" != set; then
17228 echo "#! /bin/sh" >conf$$.sh
17229 echo "exit 0" >>conf$$.sh
17231 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17239 # Find out how to test for executable files. Don't use a zero-byte file,
17240 # as systems may use methods other than mode bits to determine executability.
17241 cat >conf$$.file <<_ASEOF
17245 chmod +x conf$$.file
17246 if test -x conf$$.file >/dev/null 2>&1; then
17247 ac_executable_p="test -x"
17249 ac_executable_p="test -f"
17253 # Extract the first word of "msgfmt", so it can be a program name with args.
17254 set dummy msgfmt; ac_word=$2
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17256 $as_echo_n "checking for $ac_word... " >&6; }
17257 if ${ac_cv_path_MSGFMT+:} false; then :
17258 $as_echo_n "(cached) " >&6
17262 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17265 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17266 for ac_dir in $PATH; do
17268 test -z "$ac_dir" && ac_dir=.
17269 for ac_exec_ext in '' $ac_executable_extensions; do
17270 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17271 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17272 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17273 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17274 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17281 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17285 MSGFMT="$ac_cv_path_MSGFMT"
17286 if test "$MSGFMT" != ":"; then
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17288 $as_echo "$MSGFMT" >&6; }
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17291 $as_echo "no" >&6; }
17294 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17295 set dummy gmsgfmt; ac_word=$2
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17297 $as_echo_n "checking for $ac_word... " >&6; }
17298 if ${ac_cv_path_GMSGFMT+:} false; then :
17299 $as_echo_n "(cached) " >&6
17303 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17307 for as_dir in $PATH
17310 test -z "$as_dir" && as_dir=.
17311 for ac_exec_ext in '' $ac_executable_extensions; do
17312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17313 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17321 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17325 GMSGFMT=$ac_cv_path_GMSGFMT
17326 if test -n "$GMSGFMT"; then
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17328 $as_echo "$GMSGFMT" >&6; }
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17331 $as_echo "no" >&6; }
17337 # Prepare PATH_SEPARATOR.
17338 # The user is always right.
17339 if test "${PATH_SEPARATOR+set}" != set; then
17340 echo "#! /bin/sh" >conf$$.sh
17341 echo "exit 0" >>conf$$.sh
17343 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17351 # Find out how to test for executable files. Don't use a zero-byte file,
17352 # as systems may use methods other than mode bits to determine executability.
17353 cat >conf$$.file <<_ASEOF
17357 chmod +x conf$$.file
17358 if test -x conf$$.file >/dev/null 2>&1; then
17359 ac_executable_p="test -x"
17361 ac_executable_p="test -f"
17365 # Extract the first word of "xgettext", so it can be a program name with args.
17366 set dummy xgettext; ac_word=$2
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17368 $as_echo_n "checking for $ac_word... " >&6; }
17369 if ${ac_cv_path_XGETTEXT+:} false; then :
17370 $as_echo_n "(cached) " >&6
17372 case "$XGETTEXT" in
17374 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17377 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17378 for ac_dir in $PATH; do
17380 test -z "$ac_dir" && ac_dir=.
17381 for ac_exec_ext in '' $ac_executable_extensions; do
17382 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17383 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17384 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17385 (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
17386 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17393 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17397 XGETTEXT="$ac_cv_path_XGETTEXT"
17398 if test "$XGETTEXT" != ":"; then
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17400 $as_echo "$XGETTEXT" >&6; }
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17403 $as_echo "no" >&6; }
17409 # Prepare PATH_SEPARATOR.
17410 # The user is always right.
17411 if test "${PATH_SEPARATOR+set}" != set; then
17412 echo "#! /bin/sh" >conf$$.sh
17413 echo "exit 0" >>conf$$.sh
17415 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17423 # Find out how to test for executable files. Don't use a zero-byte file,
17424 # as systems may use methods other than mode bits to determine executability.
17425 cat >conf$$.file <<_ASEOF
17429 chmod +x conf$$.file
17430 if test -x conf$$.file >/dev/null 2>&1; then
17431 ac_executable_p="test -x"
17433 ac_executable_p="test -f"
17437 # Extract the first word of "msgmerge", so it can be a program name with args.
17438 set dummy msgmerge; ac_word=$2
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17440 $as_echo_n "checking for $ac_word... " >&6; }
17441 if ${ac_cv_path_MSGMERGE+:} false; then :
17442 $as_echo_n "(cached) " >&6
17444 case "$MSGMERGE" in
17446 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17449 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17450 for ac_dir in $PATH; do
17452 test -z "$ac_dir" && ac_dir=.
17453 for ac_exec_ext in '' $ac_executable_extensions; do
17454 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17455 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17456 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17457 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17464 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17468 MSGMERGE="$ac_cv_path_MSGMERGE"
17469 if test "$MSGMERGE" != ":"; then
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17471 $as_echo "$MSGMERGE" >&6; }
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17474 $as_echo "no" >&6; }
17478 if test "$GMSGFMT" != ":"; then
17479 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17480 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17483 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17485 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17490 if test "$XGETTEXT" != ":"; then
17491 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17492 (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
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17496 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17502 ac_config_commands="$ac_config_commands default-1"
17506 if test "X$prefix" = "XNONE"; then
17507 acl_final_prefix="$ac_default_prefix"
17509 acl_final_prefix="$prefix"
17511 if test "X$exec_prefix" = "XNONE"; then
17512 acl_final_exec_prefix='${prefix}'
17514 acl_final_exec_prefix="$exec_prefix"
17516 acl_save_prefix="$prefix"
17517 prefix="$acl_final_prefix"
17518 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17519 prefix="$acl_save_prefix"
17522 # Check whether --with-gnu-ld was given.
17523 if test "${with_gnu_ld+set}" = set; then :
17524 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17529 # Prepare PATH_SEPARATOR.
17530 # The user is always right.
17531 if test "${PATH_SEPARATOR+set}" != set; then
17532 echo "#! /bin/sh" >conf$$.sh
17533 echo "exit 0" >>conf$$.sh
17535 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17543 if test "$GCC" = yes; then
17544 # Check if gcc -print-prog-name=ld gives a path.
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17546 $as_echo_n "checking for ld used by GCC... " >&6; }
17549 # gcc leaves a trailing carriage return which upsets mingw
17550 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17552 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17555 # Accept absolute paths.
17556 [\\/]* | [A-Za-z]:[\\/]*)
17557 re_direlt='/[^/][^/]*/\.\./'
17558 # Canonicalize the path of ld
17559 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17560 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17561 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17563 test -z "$LD" && LD="$ac_prog"
17566 # If it fails, then pretend we aren't using GCC.
17570 # If it is relative, then search for the first ld in PATH.
17571 with_gnu_ld=unknown
17574 elif test "$with_gnu_ld" = yes; then
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17576 $as_echo_n "checking for GNU ld... " >&6; }
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17579 $as_echo_n "checking for non-GNU ld... " >&6; }
17581 if ${acl_cv_path_LD+:} false; then :
17582 $as_echo_n "(cached) " >&6
17584 if test -z "$LD"; then
17585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17586 for ac_dir in $PATH; do
17587 test -z "$ac_dir" && ac_dir=.
17588 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17589 acl_cv_path_LD="$ac_dir/$ac_prog"
17590 # Check to see if the program is GNU ld. I'd rather use --version,
17591 # but apparently some GNU ld's only accept -v.
17592 # Break only if it was the GNU/non-GNU ld that we prefer.
17593 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17594 *GNU* | *'with BFD'*)
17595 test "$with_gnu_ld" != no && break ;;
17597 test "$with_gnu_ld" != yes && break ;;
17603 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17607 LD="$acl_cv_path_LD"
17608 if test -n "$LD"; then
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17610 $as_echo "$LD" >&6; }
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17613 $as_echo "no" >&6; }
17615 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17617 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17618 if ${acl_cv_prog_gnu_ld+:} false; then :
17619 $as_echo_n "(cached) " >&6
17621 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17622 case `$LD -v 2>&1 </dev/null` in
17623 *GNU* | *'with BFD'*)
17624 acl_cv_prog_gnu_ld=yes ;;
17626 acl_cv_prog_gnu_ld=no ;;
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17630 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17631 with_gnu_ld=$acl_cv_prog_gnu_ld
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17637 $as_echo_n "checking for shared library run path origin... " >&6; }
17638 if ${acl_cv_rpath+:} false; then :
17639 $as_echo_n "(cached) " >&6
17642 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17643 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17645 rm -f ./conftest.sh
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17650 $as_echo "$acl_cv_rpath" >&6; }
17652 libext="$acl_cv_libext"
17653 shlibext="$acl_cv_shlibext"
17654 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17655 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17656 hardcode_direct="$acl_cv_hardcode_direct"
17657 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17658 # Check whether --enable-rpath was given.
17659 if test "${enable_rpath+set}" = set; then :
17660 enableval=$enable_rpath; :
17674 acl_save_prefix="$prefix"
17675 prefix="$acl_final_prefix"
17676 acl_save_exec_prefix="$exec_prefix"
17677 exec_prefix="$acl_final_exec_prefix"
17679 eval additional_includedir=\"$includedir\"
17680 eval additional_libdir=\"$libdir\"
17682 exec_prefix="$acl_save_exec_prefix"
17683 prefix="$acl_save_prefix"
17686 # Check whether --with-libiconv-prefix was given.
17687 if test "${with_libiconv_prefix+set}" = set; then :
17688 withval=$with_libiconv_prefix;
17689 if test "X$withval" = "Xno"; then
17692 if test "X$withval" = "X"; then
17694 acl_save_prefix="$prefix"
17695 prefix="$acl_final_prefix"
17696 acl_save_exec_prefix="$exec_prefix"
17697 exec_prefix="$acl_final_exec_prefix"
17699 eval additional_includedir=\"$includedir\"
17700 eval additional_libdir=\"$libdir\"
17702 exec_prefix="$acl_save_exec_prefix"
17703 prefix="$acl_save_prefix"
17706 additional_includedir="$withval/include"
17707 additional_libdir="$withval/lib"
17718 names_already_handled=
17719 names_next_round='iconv '
17720 while test -n "$names_next_round"; do
17721 names_this_round="$names_next_round"
17723 for name in $names_this_round; do
17725 for n in $names_already_handled; do
17726 if test "$n" = "$name"; then
17727 already_handled=yes
17731 if test -z "$already_handled"; then
17732 names_already_handled="$names_already_handled $name"
17733 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17734 eval value=\"\$HAVE_LIB$uppername\"
17735 if test -n "$value"; then
17736 if test "$value" = yes; then
17737 eval value=\"\$LIB$uppername\"
17738 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17739 eval value=\"\$LTLIB$uppername\"
17740 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17749 if test $use_additional = yes; then
17750 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17751 found_dir="$additional_libdir"
17752 found_so="$additional_libdir/lib$name.$shlibext"
17753 if test -f "$additional_libdir/lib$name.la"; then
17754 found_la="$additional_libdir/lib$name.la"
17757 if test -f "$additional_libdir/lib$name.$libext"; then
17758 found_dir="$additional_libdir"
17759 found_a="$additional_libdir/lib$name.$libext"
17760 if test -f "$additional_libdir/lib$name.la"; then
17761 found_la="$additional_libdir/lib$name.la"
17766 if test "X$found_dir" = "X"; then
17767 for x in $LDFLAGS $LTLIBICONV; do
17769 acl_save_prefix="$prefix"
17770 prefix="$acl_final_prefix"
17771 acl_save_exec_prefix="$exec_prefix"
17772 exec_prefix="$acl_final_exec_prefix"
17774 exec_prefix="$acl_save_exec_prefix"
17775 prefix="$acl_save_prefix"
17779 dir=`echo "X$x" | sed -e 's/^X-L//'`
17780 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17782 found_so="$dir/lib$name.$shlibext"
17783 if test -f "$dir/lib$name.la"; then
17784 found_la="$dir/lib$name.la"
17787 if test -f "$dir/lib$name.$libext"; then
17789 found_a="$dir/lib$name.$libext"
17790 if test -f "$dir/lib$name.la"; then
17791 found_la="$dir/lib$name.la"
17797 if test "X$found_dir" != "X"; then
17802 if test "X$found_dir" != "X"; then
17803 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17804 if test "X$found_so" != "X"; then
17805 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17806 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17809 for x in $ltrpathdirs; do
17810 if test "X$x" = "X$found_dir"; then
17815 if test -z "$haveit"; then
17816 ltrpathdirs="$ltrpathdirs $found_dir"
17818 if test "$hardcode_direct" = yes; then
17819 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17821 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17822 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17824 for x in $rpathdirs; do
17825 if test "X$x" = "X$found_dir"; then
17830 if test -z "$haveit"; then
17831 rpathdirs="$rpathdirs $found_dir"
17835 for x in $LDFLAGS $LIBICONV; do
17837 acl_save_prefix="$prefix"
17838 prefix="$acl_final_prefix"
17839 acl_save_exec_prefix="$exec_prefix"
17840 exec_prefix="$acl_final_exec_prefix"
17842 exec_prefix="$acl_save_exec_prefix"
17843 prefix="$acl_save_prefix"
17845 if test "X$x" = "X-L$found_dir"; then
17850 if test -z "$haveit"; then
17851 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17853 if test "$hardcode_minus_L" != no; then
17854 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17856 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17862 if test "X$found_a" != "X"; then
17863 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17865 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17868 additional_includedir=
17869 case "$found_dir" in
17871 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17872 additional_includedir="$basedir/include"
17875 if test "X$additional_includedir" != "X"; then
17876 if test "X$additional_includedir" != "X/usr/include"; then
17878 if test "X$additional_includedir" = "X/usr/local/include"; then
17879 if test -n "$GCC"; then
17881 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17885 if test -z "$haveit"; then
17886 for x in $CPPFLAGS $INCICONV; do
17888 acl_save_prefix="$prefix"
17889 prefix="$acl_final_prefix"
17890 acl_save_exec_prefix="$exec_prefix"
17891 exec_prefix="$acl_final_exec_prefix"
17893 exec_prefix="$acl_save_exec_prefix"
17894 prefix="$acl_save_prefix"
17896 if test "X$x" = "X-I$additional_includedir"; then
17901 if test -z "$haveit"; then
17902 if test -d "$additional_includedir"; then
17903 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17909 if test -n "$found_la"; then
17910 save_libdir="$libdir"
17911 case "$found_la" in
17912 */* | *\\*) . "$found_la" ;;
17913 *) . "./$found_la" ;;
17915 libdir="$save_libdir"
17916 for dep in $dependency_libs; do
17919 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17920 if test "X$additional_libdir" != "X/usr/lib"; then
17922 if test "X$additional_libdir" = "X/usr/local/lib"; then
17923 if test -n "$GCC"; then
17925 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17929 if test -z "$haveit"; then
17931 for x in $LDFLAGS $LIBICONV; do
17933 acl_save_prefix="$prefix"
17934 prefix="$acl_final_prefix"
17935 acl_save_exec_prefix="$exec_prefix"
17936 exec_prefix="$acl_final_exec_prefix"
17938 exec_prefix="$acl_save_exec_prefix"
17939 prefix="$acl_save_prefix"
17941 if test "X$x" = "X-L$additional_libdir"; then
17946 if test -z "$haveit"; then
17947 if test -d "$additional_libdir"; then
17948 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17952 for x in $LDFLAGS $LTLIBICONV; do
17954 acl_save_prefix="$prefix"
17955 prefix="$acl_final_prefix"
17956 acl_save_exec_prefix="$exec_prefix"
17957 exec_prefix="$acl_final_exec_prefix"
17959 exec_prefix="$acl_save_exec_prefix"
17960 prefix="$acl_save_prefix"
17962 if test "X$x" = "X-L$additional_libdir"; then
17967 if test -z "$haveit"; then
17968 if test -d "$additional_libdir"; then
17969 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17976 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17977 if test "$enable_rpath" != no; then
17979 for x in $rpathdirs; do
17980 if test "X$x" = "X$dir"; then
17985 if test -z "$haveit"; then
17986 rpathdirs="$rpathdirs $dir"
17989 for x in $ltrpathdirs; do
17990 if test "X$x" = "X$dir"; then
17995 if test -z "$haveit"; then
17996 ltrpathdirs="$ltrpathdirs $dir"
18001 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18004 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18007 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18008 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18014 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18015 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18021 if test "X$rpathdirs" != "X"; then
18022 if test -n "$hardcode_libdir_separator"; then
18024 for found_dir in $rpathdirs; do
18025 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18027 acl_save_libdir="$libdir"
18029 eval flag=\"$hardcode_libdir_flag_spec\"
18030 libdir="$acl_save_libdir"
18031 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18033 for found_dir in $rpathdirs; do
18034 acl_save_libdir="$libdir"
18035 libdir="$found_dir"
18036 eval flag=\"$hardcode_libdir_flag_spec\"
18037 libdir="$acl_save_libdir"
18038 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18042 if test "X$ltrpathdirs" != "X"; then
18043 for found_dir in $ltrpathdirs; do
18044 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18066 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18067 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18068 $as_echo_n "(cached) " >&6
18070 gt_save_CPPFLAGS="$CPPFLAGS"
18071 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18072 gt_save_LIBS="$LIBS"
18073 LIBS="$LIBS -framework CoreFoundation"
18074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18075 /* end confdefs.h. */
18076 #include <CFPreferences.h>
18080 CFPreferencesCopyAppValue(NULL, NULL)
18085 if ac_fn_c_try_link "$LINENO"; then :
18086 gt_cv_func_CFPreferencesCopyAppValue=yes
18088 gt_cv_func_CFPreferencesCopyAppValue=no
18090 rm -f core conftest.err conftest.$ac_objext \
18091 conftest$ac_exeext conftest.$ac_ext
18092 CPPFLAGS="$gt_save_CPPFLAGS"
18093 LIBS="$gt_save_LIBS"
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18096 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18097 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18099 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18103 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18104 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18105 $as_echo_n "(cached) " >&6
18107 gt_save_CPPFLAGS="$CPPFLAGS"
18108 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18109 gt_save_LIBS="$LIBS"
18110 LIBS="$LIBS -framework CoreFoundation"
18111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h. */
18113 #include <CFLocale.h>
18117 CFLocaleCopyCurrent();
18122 if ac_fn_c_try_link "$LINENO"; then :
18123 gt_cv_func_CFLocaleCopyCurrent=yes
18125 gt_cv_func_CFLocaleCopyCurrent=no
18127 rm -f core conftest.err conftest.$ac_objext \
18128 conftest$ac_exeext conftest.$ac_ext
18129 CPPFLAGS="$gt_save_CPPFLAGS"
18130 LIBS="$gt_save_LIBS"
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18133 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18134 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18136 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18140 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18141 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18148 $as_echo_n "checking whether NLS is requested... " >&6; }
18149 # Check whether --enable-nls was given.
18150 if test "${enable_nls+set}" = set; then :
18151 enableval=$enable_nls; USE_NLS=$enableval
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18157 $as_echo "$USE_NLS" >&6; }
18166 if test "$USE_NLS" = "yes"; then
18167 gt_use_preinstalled_gnugettext=no
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18175 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18176 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18177 $as_echo_n "(cached) " >&6
18179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18180 /* end confdefs.h. */
18181 #include <libintl.h>
18182 extern int _nl_msg_cat_cntr;
18183 extern int *_nl_domain_bindings;
18187 bindtextdomain ("", "");
18188 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18193 if ac_fn_c_try_link "$LINENO"; then :
18194 gt_cv_func_gnugettext1_libc=yes
18196 gt_cv_func_gnugettext1_libc=no
18198 rm -f core conftest.err conftest.$ac_objext \
18199 conftest$ac_exeext conftest.$ac_ext
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18202 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18204 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18210 am_save_CPPFLAGS="$CPPFLAGS"
18212 for element in $INCICONV; do
18214 for x in $CPPFLAGS; do
18216 acl_save_prefix="$prefix"
18217 prefix="$acl_final_prefix"
18218 acl_save_exec_prefix="$exec_prefix"
18219 exec_prefix="$acl_final_exec_prefix"
18221 exec_prefix="$acl_save_exec_prefix"
18222 prefix="$acl_save_prefix"
18224 if test "X$x" = "X$element"; then
18229 if test -z "$haveit"; then
18230 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18236 $as_echo_n "checking for iconv... " >&6; }
18237 if ${am_cv_func_iconv+:} false; then :
18238 $as_echo_n "(cached) " >&6
18241 am_cv_func_iconv="no, consider installing GNU libiconv"
18243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244 /* end confdefs.h. */
18245 #include <stdlib.h>
18250 iconv_t cd = iconv_open("","");
18251 iconv(cd,NULL,NULL,NULL,NULL);
18257 if ac_fn_c_try_link "$LINENO"; then :
18258 am_cv_func_iconv=yes
18260 rm -f core conftest.err conftest.$ac_objext \
18261 conftest$ac_exeext conftest.$ac_ext
18262 if test "$am_cv_func_iconv" != yes; then
18263 am_save_LIBS="$LIBS"
18264 LIBS="$LIBS $LIBICONV"
18265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266 /* end confdefs.h. */
18267 #include <stdlib.h>
18272 iconv_t cd = iconv_open("","");
18273 iconv(cd,NULL,NULL,NULL,NULL);
18279 if ac_fn_c_try_link "$LINENO"; then :
18280 am_cv_lib_iconv=yes
18281 am_cv_func_iconv=yes
18283 rm -f core conftest.err conftest.$ac_objext \
18284 conftest$ac_exeext conftest.$ac_ext
18285 LIBS="$am_save_LIBS"
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18290 $as_echo "$am_cv_func_iconv" >&6; }
18291 if test "$am_cv_func_iconv" = yes; then
18293 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18296 if test "$am_cv_lib_iconv" = yes; then
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18298 $as_echo_n "checking how to link with libiconv... " >&6; }
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18300 $as_echo "$LIBICONV" >&6; }
18302 CPPFLAGS="$am_save_CPPFLAGS"
18314 acl_save_prefix="$prefix"
18315 prefix="$acl_final_prefix"
18316 acl_save_exec_prefix="$exec_prefix"
18317 exec_prefix="$acl_final_exec_prefix"
18319 eval additional_includedir=\"$includedir\"
18320 eval additional_libdir=\"$libdir\"
18322 exec_prefix="$acl_save_exec_prefix"
18323 prefix="$acl_save_prefix"
18326 # Check whether --with-libintl-prefix was given.
18327 if test "${with_libintl_prefix+set}" = set; then :
18328 withval=$with_libintl_prefix;
18329 if test "X$withval" = "Xno"; then
18332 if test "X$withval" = "X"; then
18334 acl_save_prefix="$prefix"
18335 prefix="$acl_final_prefix"
18336 acl_save_exec_prefix="$exec_prefix"
18337 exec_prefix="$acl_final_exec_prefix"
18339 eval additional_includedir=\"$includedir\"
18340 eval additional_libdir=\"$libdir\"
18342 exec_prefix="$acl_save_exec_prefix"
18343 prefix="$acl_save_prefix"
18346 additional_includedir="$withval/include"
18347 additional_libdir="$withval/lib"
18358 names_already_handled=
18359 names_next_round='intl '
18360 while test -n "$names_next_round"; do
18361 names_this_round="$names_next_round"
18363 for name in $names_this_round; do
18365 for n in $names_already_handled; do
18366 if test "$n" = "$name"; then
18367 already_handled=yes
18371 if test -z "$already_handled"; then
18372 names_already_handled="$names_already_handled $name"
18373 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18374 eval value=\"\$HAVE_LIB$uppername\"
18375 if test -n "$value"; then
18376 if test "$value" = yes; then
18377 eval value=\"\$LIB$uppername\"
18378 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18379 eval value=\"\$LTLIB$uppername\"
18380 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18389 if test $use_additional = yes; then
18390 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18391 found_dir="$additional_libdir"
18392 found_so="$additional_libdir/lib$name.$shlibext"
18393 if test -f "$additional_libdir/lib$name.la"; then
18394 found_la="$additional_libdir/lib$name.la"
18397 if test -f "$additional_libdir/lib$name.$libext"; then
18398 found_dir="$additional_libdir"
18399 found_a="$additional_libdir/lib$name.$libext"
18400 if test -f "$additional_libdir/lib$name.la"; then
18401 found_la="$additional_libdir/lib$name.la"
18406 if test "X$found_dir" = "X"; then
18407 for x in $LDFLAGS $LTLIBINTL; do
18409 acl_save_prefix="$prefix"
18410 prefix="$acl_final_prefix"
18411 acl_save_exec_prefix="$exec_prefix"
18412 exec_prefix="$acl_final_exec_prefix"
18414 exec_prefix="$acl_save_exec_prefix"
18415 prefix="$acl_save_prefix"
18419 dir=`echo "X$x" | sed -e 's/^X-L//'`
18420 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18422 found_so="$dir/lib$name.$shlibext"
18423 if test -f "$dir/lib$name.la"; then
18424 found_la="$dir/lib$name.la"
18427 if test -f "$dir/lib$name.$libext"; then
18429 found_a="$dir/lib$name.$libext"
18430 if test -f "$dir/lib$name.la"; then
18431 found_la="$dir/lib$name.la"
18437 if test "X$found_dir" != "X"; then
18442 if test "X$found_dir" != "X"; then
18443 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18444 if test "X$found_so" != "X"; then
18445 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18446 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18449 for x in $ltrpathdirs; do
18450 if test "X$x" = "X$found_dir"; then
18455 if test -z "$haveit"; then
18456 ltrpathdirs="$ltrpathdirs $found_dir"
18458 if test "$hardcode_direct" = yes; then
18459 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18461 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18462 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18464 for x in $rpathdirs; do
18465 if test "X$x" = "X$found_dir"; then
18470 if test -z "$haveit"; then
18471 rpathdirs="$rpathdirs $found_dir"
18475 for x in $LDFLAGS $LIBINTL; do
18477 acl_save_prefix="$prefix"
18478 prefix="$acl_final_prefix"
18479 acl_save_exec_prefix="$exec_prefix"
18480 exec_prefix="$acl_final_exec_prefix"
18482 exec_prefix="$acl_save_exec_prefix"
18483 prefix="$acl_save_prefix"
18485 if test "X$x" = "X-L$found_dir"; then
18490 if test -z "$haveit"; then
18491 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18493 if test "$hardcode_minus_L" != no; then
18494 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18496 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18502 if test "X$found_a" != "X"; then
18503 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18505 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18508 additional_includedir=
18509 case "$found_dir" in
18511 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18512 additional_includedir="$basedir/include"
18515 if test "X$additional_includedir" != "X"; then
18516 if test "X$additional_includedir" != "X/usr/include"; then
18518 if test "X$additional_includedir" = "X/usr/local/include"; then
18519 if test -n "$GCC"; then
18521 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18525 if test -z "$haveit"; then
18526 for x in $CPPFLAGS $INCINTL; do
18528 acl_save_prefix="$prefix"
18529 prefix="$acl_final_prefix"
18530 acl_save_exec_prefix="$exec_prefix"
18531 exec_prefix="$acl_final_exec_prefix"
18533 exec_prefix="$acl_save_exec_prefix"
18534 prefix="$acl_save_prefix"
18536 if test "X$x" = "X-I$additional_includedir"; then
18541 if test -z "$haveit"; then
18542 if test -d "$additional_includedir"; then
18543 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18549 if test -n "$found_la"; then
18550 save_libdir="$libdir"
18551 case "$found_la" in
18552 */* | *\\*) . "$found_la" ;;
18553 *) . "./$found_la" ;;
18555 libdir="$save_libdir"
18556 for dep in $dependency_libs; do
18559 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18560 if test "X$additional_libdir" != "X/usr/lib"; then
18562 if test "X$additional_libdir" = "X/usr/local/lib"; then
18563 if test -n "$GCC"; then
18565 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18569 if test -z "$haveit"; then
18571 for x in $LDFLAGS $LIBINTL; do
18573 acl_save_prefix="$prefix"
18574 prefix="$acl_final_prefix"
18575 acl_save_exec_prefix="$exec_prefix"
18576 exec_prefix="$acl_final_exec_prefix"
18578 exec_prefix="$acl_save_exec_prefix"
18579 prefix="$acl_save_prefix"
18581 if test "X$x" = "X-L$additional_libdir"; then
18586 if test -z "$haveit"; then
18587 if test -d "$additional_libdir"; then
18588 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18592 for x in $LDFLAGS $LTLIBINTL; do
18594 acl_save_prefix="$prefix"
18595 prefix="$acl_final_prefix"
18596 acl_save_exec_prefix="$exec_prefix"
18597 exec_prefix="$acl_final_exec_prefix"
18599 exec_prefix="$acl_save_exec_prefix"
18600 prefix="$acl_save_prefix"
18602 if test "X$x" = "X-L$additional_libdir"; then
18607 if test -z "$haveit"; then
18608 if test -d "$additional_libdir"; then
18609 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18616 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18617 if test "$enable_rpath" != no; then
18619 for x in $rpathdirs; do
18620 if test "X$x" = "X$dir"; then
18625 if test -z "$haveit"; then
18626 rpathdirs="$rpathdirs $dir"
18629 for x in $ltrpathdirs; do
18630 if test "X$x" = "X$dir"; then
18635 if test -z "$haveit"; then
18636 ltrpathdirs="$ltrpathdirs $dir"
18641 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18644 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18647 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18648 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18654 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18655 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18661 if test "X$rpathdirs" != "X"; then
18662 if test -n "$hardcode_libdir_separator"; then
18664 for found_dir in $rpathdirs; do
18665 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18667 acl_save_libdir="$libdir"
18669 eval flag=\"$hardcode_libdir_flag_spec\"
18670 libdir="$acl_save_libdir"
18671 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18673 for found_dir in $rpathdirs; do
18674 acl_save_libdir="$libdir"
18675 libdir="$found_dir"
18676 eval flag=\"$hardcode_libdir_flag_spec\"
18677 libdir="$acl_save_libdir"
18678 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18682 if test "X$ltrpathdirs" != "X"; then
18683 for found_dir in $ltrpathdirs; do
18684 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18689 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18690 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18691 $as_echo_n "(cached) " >&6
18693 gt_save_CPPFLAGS="$CPPFLAGS"
18694 CPPFLAGS="$CPPFLAGS $INCINTL"
18695 gt_save_LIBS="$LIBS"
18696 LIBS="$LIBS $LIBINTL"
18697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18698 /* end confdefs.h. */
18699 #include <libintl.h>
18700 extern int _nl_msg_cat_cntr;
18705 const char *_nl_expand_alias (const char *);
18709 bindtextdomain ("", "");
18710 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18715 if ac_fn_c_try_link "$LINENO"; then :
18716 gt_cv_func_gnugettext1_libintl=yes
18718 gt_cv_func_gnugettext1_libintl=no
18720 rm -f core conftest.err conftest.$ac_objext \
18721 conftest$ac_exeext conftest.$ac_ext
18722 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18723 LIBS="$LIBS $LIBICONV"
18724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18725 /* end confdefs.h. */
18726 #include <libintl.h>
18727 extern int _nl_msg_cat_cntr;
18732 const char *_nl_expand_alias (const char *);
18736 bindtextdomain ("", "");
18737 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18742 if ac_fn_c_try_link "$LINENO"; then :
18743 LIBINTL="$LIBINTL $LIBICONV"
18744 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18745 gt_cv_func_gnugettext1_libintl=yes
18748 rm -f core conftest.err conftest.$ac_objext \
18749 conftest$ac_exeext conftest.$ac_ext
18751 CPPFLAGS="$gt_save_CPPFLAGS"
18752 LIBS="$gt_save_LIBS"
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18755 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18758 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18759 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18760 && test "$PACKAGE" != gettext-runtime \
18761 && test "$PACKAGE" != gettext-tools; }; then
18762 gt_use_preinstalled_gnugettext=yes
18771 if test -n "$INTL_MACOSX_LIBS"; then
18772 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18773 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18774 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18775 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18779 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18780 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18782 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18790 $as_echo_n "checking whether to use NLS... " >&6; }
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18792 $as_echo "$USE_NLS" >&6; }
18793 if test "$USE_NLS" = "yes"; then
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18795 $as_echo_n "checking where the gettext function comes from... " >&6; }
18796 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18797 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18798 gt_source="external libintl"
18803 gt_source="included intl directory"
18805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18806 $as_echo "$gt_source" >&6; }
18809 if test "$USE_NLS" = "yes"; then
18811 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18812 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18814 $as_echo_n "checking how to link with libintl... " >&6; }
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18816 $as_echo "$LIBINTL" >&6; }
18818 for element in $INCINTL; do
18820 for x in $CPPFLAGS; do
18822 acl_save_prefix="$prefix"
18823 prefix="$acl_final_prefix"
18824 acl_save_exec_prefix="$exec_prefix"
18825 exec_prefix="$acl_final_exec_prefix"
18827 exec_prefix="$acl_save_exec_prefix"
18828 prefix="$acl_save_prefix"
18830 if test "X$x" = "X$element"; then
18835 if test -z "$haveit"; then
18836 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18843 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18846 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18855 INTLLIBS="$LIBINTL"
18863 os_name=`uname -s 2>/dev/null`
18864 if test x${prefix} = xNONE ; then
18865 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18866 sysconfdir=/etc/bacula
18869 if test `eval echo ${libdir}` = NONE/lib ; then
18872 os_processor=`uname -p 2>/dev/null`
18873 case ${os_processor} in
18888 if test `eval echo ${includedir}` = NONE/include ; then
18889 includedir=/usr/include
18892 if test `eval echo ${datarootdir}` = NONE/share ; then
18893 datarootdir=/usr/share
18898 if test x${exec_prefix} = xNONE ; then
18899 exec_prefix=${prefix}
18902 sysconfdir=`eval echo ${sysconfdir}`
18903 datarootdir=`eval echo ${datarootdir}`
18904 docdir=`eval echo ${docdir}`
18905 htmldir=`eval echo ${htmldir}`
18906 libdir=`eval echo ${libdir}`
18907 includedir=`eval echo ${includedir}`
18908 localedir=`eval echo ${datarootdir}/locale`
18909 cat >>confdefs.h <<_ACEOF
18910 #define SYSCONFDIR "$sysconfdir"
18913 cat >>confdefs.h <<_ACEOF
18914 #define LOCALEDIR "$localedir"
18918 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18919 sbindir=${exec_prefix}/sbin
18921 sbindir=`eval echo ${sbindir}`
18923 if test x$mandir = x'${prefix}/man' ; then
18924 mandir=/usr/share/man
18927 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18928 htmldir=`eval echo ${docdir}html`
18931 if test x$docdir = x'/usr/share/doc/' ; then
18932 docdir=`eval echo ${docdir}bacula`
18936 for ac_prog in msgfmt
18938 # Extract the first word of "$ac_prog", so it can be a program name with args.
18939 set dummy $ac_prog; ac_word=$2
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18941 $as_echo_n "checking for $ac_word... " >&6; }
18942 if ${ac_cv_path_MSGFMT+:} false; then :
18943 $as_echo_n "(cached) " >&6
18947 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18951 for as_dir in $PATH
18954 test -z "$as_dir" && as_dir=.
18955 for ac_exec_ext in '' $ac_executable_extensions; do
18956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18957 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18968 MSGFMT=$ac_cv_path_MSGFMT
18969 if test -n "$MSGFMT"; then
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18971 $as_echo "$MSGFMT" >&6; }
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18974 $as_echo "no" >&6; }
18978 test -n "$MSGFMT" && break
18980 test -n "$MSGFMT" || MSGFMT="no"
18982 if test "$MSGFMT" = "no"
18984 echo 'msgfmt program not found, disabling NLS !'
18986 USE_INCLUDED_LIBINTL=no
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18990 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18991 if ${ac_cv_gnu_library_2+:} false; then :
18992 $as_echo_n "(cached) " >&6
18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h. */
18997 #include <features.h>
18998 #ifdef __GNU_LIBRARY__
18999 #if (__GLIBC__ >= 2)
19005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19006 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19007 ac_cv_gnu_library_2=yes
19009 ac_cv_gnu_library_2=no
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19017 $as_echo "$ac_cv_gnu_library_2" >&6; }
19019 GLIBC2="$ac_cv_gnu_library_2"
19022 if test -n "$ac_tool_prefix"; then
19023 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19024 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19026 $as_echo_n "checking for $ac_word... " >&6; }
19027 if ${ac_cv_prog_RANLIB+:} false; then :
19028 $as_echo_n "(cached) " >&6
19030 if test -n "$RANLIB"; then
19031 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19034 for as_dir in $PATH
19037 test -z "$as_dir" && as_dir=.
19038 for ac_exec_ext in '' $ac_executable_extensions; do
19039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19040 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19050 RANLIB=$ac_cv_prog_RANLIB
19051 if test -n "$RANLIB"; then
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19053 $as_echo "$RANLIB" >&6; }
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19056 $as_echo "no" >&6; }
19061 if test -z "$ac_cv_prog_RANLIB"; then
19062 ac_ct_RANLIB=$RANLIB
19063 # Extract the first word of "ranlib", so it can be a program name with args.
19064 set dummy ranlib; ac_word=$2
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19066 $as_echo_n "checking for $ac_word... " >&6; }
19067 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19068 $as_echo_n "(cached) " >&6
19070 if test -n "$ac_ct_RANLIB"; then
19071 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19074 for as_dir in $PATH
19077 test -z "$as_dir" && as_dir=.
19078 for ac_exec_ext in '' $ac_executable_extensions; do
19079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19080 ac_cv_prog_ac_ct_RANLIB="ranlib"
19081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19090 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19091 if test -n "$ac_ct_RANLIB"; then
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19093 $as_echo "$ac_ct_RANLIB" >&6; }
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19096 $as_echo "no" >&6; }
19099 if test "x$ac_ct_RANLIB" = x; then
19102 case $cross_compiling:$ac_tool_warned in
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19106 ac_tool_warned=yes ;;
19108 RANLIB=$ac_ct_RANLIB
19111 RANLIB="$ac_cv_prog_RANLIB"
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19116 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19117 if ${ac_cv_lib_cposix_strerror+:} false; then :
19118 $as_echo_n "(cached) " >&6
19120 ac_check_lib_save_LIBS=$LIBS
19121 LIBS="-lcposix $LIBS"
19122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19123 /* end confdefs.h. */
19125 /* Override any GCC internal prototype to avoid an error.
19126 Use char because int might match the return type of a GCC
19127 builtin and then its argument prototype would still apply. */
19135 return strerror ();
19140 if ac_fn_c_try_link "$LINENO"; then :
19141 ac_cv_lib_cposix_strerror=yes
19143 ac_cv_lib_cposix_strerror=no
19145 rm -f core conftest.err conftest.$ac_objext \
19146 conftest$ac_exeext conftest.$ac_ext
19147 LIBS=$ac_check_lib_save_LIBS
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19150 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19151 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19152 LIBS="$LIBS -lcposix"
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19158 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19159 if ${ac_cv_c_const+:} false; then :
19160 $as_echo_n "(cached) " >&6
19162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19163 /* end confdefs.h. */
19169 #ifndef __cplusplus
19170 /* Ultrix mips cc rejects this sort of thing. */
19171 typedef int charset[2];
19172 const charset cs = { 0, 0 };
19173 /* SunOS 4.1.1 cc rejects this. */
19174 char const *const *pcpcc;
19176 /* NEC SVR4.0.2 mips cc rejects this. */
19177 struct point {int x, y;};
19178 static struct point const zero = {0,0};
19179 /* AIX XL C 1.02.0.0 rejects this.
19180 It does not let you subtract one const X* pointer from another in
19181 an arm of an if-expression whose if-part is not a constant
19183 const char *g = "string";
19184 pcpcc = &g + (g ? g-g : 0);
19185 /* HPUX 7.0 cc rejects these. */
19187 ppc = (char**) pcpcc;
19188 pcpcc = (char const *const *) ppc;
19189 { /* SCO 3.2v4 cc rejects this sort of thing. */
19192 char const *s = 0 ? (char *) 0 : (char const *) 0;
19197 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19198 int x[] = {25, 17};
19199 const int *foo = &x[0];
19202 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19203 typedef const int *iptr;
19207 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19208 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19209 struct s { int j; const int *ap[3]; } bx;
19210 struct s *b = &bx; b->j = 5;
19212 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19213 const int foo = 10;
19214 if (!foo) return 0;
19216 return !cs[0] && !zero.x;
19223 if ac_fn_c_try_compile "$LINENO"; then :
19228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19231 $as_echo "$ac_cv_c_const" >&6; }
19232 if test $ac_cv_c_const = no; then
19234 $as_echo "#define const /**/" >>confdefs.h
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19240 $as_echo_n "checking for signed... " >&6; }
19241 if ${bh_cv_c_signed+:} false; then :
19242 $as_echo_n "(cached) " >&6
19244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19245 /* end confdefs.h. */
19255 if ac_fn_c_try_compile "$LINENO"; then :
19260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19263 $as_echo "$bh_cv_c_signed" >&6; }
19264 if test $bh_cv_c_signed = no; then
19266 $as_echo "#define signed /**/" >>confdefs.h
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19271 $as_echo_n "checking for inline... " >&6; }
19272 if ${ac_cv_c_inline+:} false; then :
19273 $as_echo_n "(cached) " >&6
19276 for ac_kw in inline __inline__ __inline; do
19277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h. */
19279 #ifndef __cplusplus
19281 static $ac_kw foo_t static_foo () {return 0; }
19282 $ac_kw foo_t foo () {return 0; }
19286 if ac_fn_c_try_compile "$LINENO"; then :
19287 ac_cv_c_inline=$ac_kw
19289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19290 test "$ac_cv_c_inline" != no && break
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19295 $as_echo "$ac_cv_c_inline" >&6; }
19297 case $ac_cv_c_inline in
19300 case $ac_cv_c_inline in
19302 *) ac_val=$ac_cv_c_inline;;
19304 cat >>confdefs.h <<_ACEOF
19305 #ifndef __cplusplus
19306 #define inline $ac_val
19312 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19313 if test "x$ac_cv_type_off_t" = xyes; then :
19317 cat >>confdefs.h <<_ACEOF
19318 #define off_t long int
19323 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19324 if test "x$ac_cv_type_size_t" = xyes; then :
19328 cat >>confdefs.h <<_ACEOF
19329 #define size_t unsigned int
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19336 $as_echo_n "checking for long long... " >&6; }
19337 if ${ac_cv_type_long_long+:} false; then :
19338 $as_echo_n "(cached) " >&6
19340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19341 /* end confdefs.h. */
19342 long long ll = 1LL; int i = 63;
19346 long long llmax = (long long) -1;
19347 return ll << i | ll >> i | llmax / ll | llmax % ll;
19352 if ac_fn_c_try_link "$LINENO"; then :
19353 ac_cv_type_long_long=yes
19355 ac_cv_type_long_long=no
19357 rm -f core conftest.err conftest.$ac_objext \
19358 conftest$ac_exeext conftest.$ac_ext
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19361 $as_echo "$ac_cv_type_long_long" >&6; }
19362 if test $ac_cv_type_long_long = yes; then
19364 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19370 $as_echo_n "checking for long double... " >&6; }
19371 if ${gt_cv_c_long_double+:} false; then :
19372 $as_echo_n "(cached) " >&6
19374 if test "$GCC" = yes; then
19375 gt_cv_c_long_double=yes
19377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19378 /* end confdefs.h. */
19380 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19381 long double foo = 0.0;
19382 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19383 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19393 if ac_fn_c_try_compile "$LINENO"; then :
19394 gt_cv_c_long_double=yes
19396 gt_cv_c_long_double=no
19398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19402 $as_echo "$gt_cv_c_long_double" >&6; }
19403 if test $gt_cv_c_long_double = yes; then
19405 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19411 $as_echo_n "checking for wchar_t... " >&6; }
19412 if ${gt_cv_c_wchar_t+:} false; then :
19413 $as_echo_n "(cached) " >&6
19415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19416 /* end confdefs.h. */
19417 #include <stddef.h>
19418 wchar_t foo = (wchar_t)'\0';
19427 if ac_fn_c_try_compile "$LINENO"; then :
19428 gt_cv_c_wchar_t=yes
19432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19435 $as_echo "$gt_cv_c_wchar_t" >&6; }
19436 if test $gt_cv_c_wchar_t = yes; then
19438 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19444 $as_echo_n "checking for wint_t... " >&6; }
19445 if ${gt_cv_c_wint_t+:} false; then :
19446 $as_echo_n "(cached) " >&6
19448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19449 /* end confdefs.h. */
19451 wint_t foo = (wchar_t)'\0';
19460 if ac_fn_c_try_compile "$LINENO"; then :
19465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19468 $as_echo "$gt_cv_c_wint_t" >&6; }
19469 if test $gt_cv_c_wint_t = yes; then
19471 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19477 $as_echo_n "checking for inttypes.h... " >&6; }
19478 if ${gl_cv_header_inttypes_h+:} false; then :
19479 $as_echo_n "(cached) " >&6
19481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19482 /* end confdefs.h. */
19483 #include <sys/types.h>
19484 #include <inttypes.h>
19488 uintmax_t i = (uintmax_t) -1;
19493 if ac_fn_c_try_compile "$LINENO"; then :
19494 gl_cv_header_inttypes_h=yes
19496 gl_cv_header_inttypes_h=no
19498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19501 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19502 if test $gl_cv_header_inttypes_h = yes; then
19504 cat >>confdefs.h <<_ACEOF
19505 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19512 $as_echo_n "checking for stdint.h... " >&6; }
19513 if ${gl_cv_header_stdint_h+:} false; then :
19514 $as_echo_n "(cached) " >&6
19516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19517 /* end confdefs.h. */
19518 #include <sys/types.h>
19519 #include <stdint.h>
19523 uintmax_t i = (uintmax_t) -1;
19528 if ac_fn_c_try_compile "$LINENO"; then :
19529 gl_cv_header_stdint_h=yes
19531 gl_cv_header_stdint_h=no
19533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19536 $as_echo "$gl_cv_header_stdint_h" >&6; }
19537 if test $gl_cv_header_stdint_h = yes; then
19539 cat >>confdefs.h <<_ACEOF
19540 #define HAVE_STDINT_H_WITH_UINTMAX 1
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19549 $as_echo_n "checking for intmax_t... " >&6; }
19550 if ${gt_cv_c_intmax_t+:} false; then :
19551 $as_echo_n "(cached) " >&6
19553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19554 /* end confdefs.h. */
19556 #include <stddef.h>
19557 #include <stdlib.h>
19558 #if HAVE_STDINT_H_WITH_UINTMAX
19559 #include <stdint.h>
19561 #if HAVE_INTTYPES_H_WITH_UINTMAX
19562 #include <inttypes.h>
19573 if ac_fn_c_try_compile "$LINENO"; then :
19574 gt_cv_c_intmax_t=yes
19576 gt_cv_c_intmax_t=no
19578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19581 $as_echo "$gt_cv_c_intmax_t" >&6; }
19582 if test $gt_cv_c_intmax_t = yes; then
19584 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19591 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19592 if ${gt_cv_func_printf_posix+:} false; then :
19593 $as_echo_n "(cached) " >&6
19596 if test "$cross_compiling" = yes; then :
19598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19599 /* end confdefs.h. */
19601 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19607 $EGREP "notposix" >/dev/null 2>&1; then :
19608 gt_cv_func_printf_posix="guessing no"
19610 gt_cv_func_printf_posix="guessing yes"
19616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19617 /* end confdefs.h. */
19620 #include <string.h>
19621 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19622 dollar expansion (possibly an autoconf bug). */
19623 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19624 static char buf[100];
19627 sprintf (buf, format, 33, 55);
19628 return (strcmp (buf, "55 33") != 0);
19631 if ac_fn_c_try_run "$LINENO"; then :
19632 gt_cv_func_printf_posix=yes
19634 gt_cv_func_printf_posix=no
19636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19637 conftest.$ac_objext conftest.beam conftest.$ac_ext
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19643 $as_echo "$gt_cv_func_printf_posix" >&6; }
19644 case $gt_cv_func_printf_posix in
19647 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19652 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19653 # for constant arguments. Useless!
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19655 $as_echo_n "checking for working alloca.h... " >&6; }
19656 if ${ac_cv_working_alloca_h+:} false; then :
19657 $as_echo_n "(cached) " >&6
19659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19660 /* end confdefs.h. */
19661 #include <alloca.h>
19665 char *p = (char *) alloca (2 * sizeof (int));
19671 if ac_fn_c_try_link "$LINENO"; then :
19672 ac_cv_working_alloca_h=yes
19674 ac_cv_working_alloca_h=no
19676 rm -f core conftest.err conftest.$ac_objext \
19677 conftest$ac_exeext conftest.$ac_ext
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19680 $as_echo "$ac_cv_working_alloca_h" >&6; }
19681 if test $ac_cv_working_alloca_h = yes; then
19683 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19688 $as_echo_n "checking for alloca... " >&6; }
19689 if ${ac_cv_func_alloca_works+:} false; then :
19690 $as_echo_n "(cached) " >&6
19692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19693 /* end confdefs.h. */
19695 # define alloca __builtin_alloca
19698 # include <malloc.h>
19699 # define alloca _alloca
19701 # ifdef HAVE_ALLOCA_H
19702 # include <alloca.h>
19707 # ifndef alloca /* predefined by HP cc +Olibcalls */
19708 void *alloca (size_t);
19718 char *p = (char *) alloca (1);
19724 if ac_fn_c_try_link "$LINENO"; then :
19725 ac_cv_func_alloca_works=yes
19727 ac_cv_func_alloca_works=no
19729 rm -f core conftest.err conftest.$ac_objext \
19730 conftest$ac_exeext conftest.$ac_ext
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19733 $as_echo "$ac_cv_func_alloca_works" >&6; }
19735 if test $ac_cv_func_alloca_works = yes; then
19737 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19740 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19741 # that cause trouble. Some versions do not even contain alloca or
19742 # contain a buggy version. If you still want to use their alloca,
19743 # use ar to extract alloca.o from them instead of compiling alloca.c.
19745 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19747 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19751 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19752 if ${ac_cv_os_cray+:} false; then :
19753 $as_echo_n "(cached) " >&6
19755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19756 /* end confdefs.h. */
19757 #if defined CRAY && ! defined CRAY2
19764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19765 $EGREP "webecray" >/dev/null 2>&1; then :
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19774 $as_echo "$ac_cv_os_cray" >&6; }
19775 if test $ac_cv_os_cray = yes; then
19776 for ac_func in _getb67 GETB67 getb67; do
19777 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19778 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19779 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19781 cat >>confdefs.h <<_ACEOF
19782 #define CRAY_STACKSEG_END $ac_func
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19792 $as_echo_n "checking stack direction for C alloca... " >&6; }
19793 if ${ac_cv_c_stack_direction+:} false; then :
19794 $as_echo_n "(cached) " >&6
19796 if test "$cross_compiling" = yes; then :
19797 ac_cv_c_stack_direction=0
19799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19800 /* end confdefs.h. */
19801 $ac_includes_default
19803 find_stack_direction (int *addr, int depth)
19805 int dir, dummy = 0;
19808 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19809 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19810 return dir + dummy;
19814 main (int argc, char **argv)
19816 return find_stack_direction (0, argc + !argv + 20) < 0;
19819 if ac_fn_c_try_run "$LINENO"; then :
19820 ac_cv_c_stack_direction=1
19822 ac_cv_c_stack_direction=-1
19824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19825 conftest.$ac_objext conftest.beam conftest.$ac_ext
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19830 $as_echo "$ac_cv_c_stack_direction" >&6; }
19831 cat >>confdefs.h <<_ACEOF
19832 #define STACK_DIRECTION $ac_cv_c_stack_direction
19841 for ac_header in $ac_header_list
19843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19844 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19846 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19847 cat >>confdefs.h <<_ACEOF
19848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19862 for ac_func in getpagesize
19864 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19865 if test "x$ac_cv_func_getpagesize" = xyes; then :
19866 cat >>confdefs.h <<_ACEOF
19867 #define HAVE_GETPAGESIZE 1
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19874 $as_echo_n "checking for working mmap... " >&6; }
19875 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19876 $as_echo_n "(cached) " >&6
19878 if test "$cross_compiling" = yes; then :
19879 ac_cv_func_mmap_fixed_mapped=no
19881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882 /* end confdefs.h. */
19883 $ac_includes_default
19884 /* malloc might have been renamed as rpl_malloc. */
19887 /* Thanks to Mike Haertel and Jim Avera for this test.
19888 Here is a matrix of mmap possibilities:
19889 mmap private not fixed
19890 mmap private fixed at somewhere currently unmapped
19891 mmap private fixed at somewhere already mapped
19892 mmap shared not fixed
19893 mmap shared fixed at somewhere currently unmapped
19894 mmap shared fixed at somewhere already mapped
19895 For private mappings, we should verify that changes cannot be read()
19896 back from the file, nor mmap's back from the file at a different
19897 address. (There have been systems where private was not correctly
19898 implemented like the infamous i386 svr4.0, and systems where the
19899 VM page cache was not coherent with the file system buffer cache
19900 like early versions of FreeBSD and possibly contemporary NetBSD.)
19901 For shared mappings, we should conversely verify that changes get
19902 propagated back to all the places they're supposed to be.
19904 Grep wants private fixed already mapped.
19905 The main things grep needs to know about mmap are:
19906 * does it exist and is it safe to write into the mmap'd area
19907 * how to use it (BSD variants) */
19910 #include <sys/mman.h>
19912 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19916 /* This mess was copied from the GNU getpagesize.h. */
19917 #ifndef HAVE_GETPAGESIZE
19918 # ifdef _SC_PAGESIZE
19919 # define getpagesize() sysconf(_SC_PAGESIZE)
19920 # else /* no _SC_PAGESIZE */
19921 # ifdef HAVE_SYS_PARAM_H
19922 # include <sys/param.h>
19923 # ifdef EXEC_PAGESIZE
19924 # define getpagesize() EXEC_PAGESIZE
19925 # else /* no EXEC_PAGESIZE */
19927 # define getpagesize() NBPG * CLSIZE
19930 # endif /* no CLSIZE */
19931 # else /* no NBPG */
19933 # define getpagesize() NBPC
19934 # else /* no NBPC */
19936 # define getpagesize() PAGESIZE
19937 # endif /* PAGESIZE */
19938 # endif /* no NBPC */
19939 # endif /* no NBPG */
19940 # endif /* no EXEC_PAGESIZE */
19941 # else /* no HAVE_SYS_PARAM_H */
19942 # define getpagesize() 8192 /* punt totally */
19943 # endif /* no HAVE_SYS_PARAM_H */
19944 # endif /* no _SC_PAGESIZE */
19946 #endif /* no HAVE_GETPAGESIZE */
19951 char *data, *data2, *data3;
19952 const char *cdata2;
19956 pagesize = getpagesize ();
19958 /* First, make a file with some known garbage in it. */
19959 data = (char *) malloc (pagesize);
19962 for (i = 0; i < pagesize; ++i)
19963 *(data + i) = rand ();
19965 fd = creat ("conftest.mmap", 0600);
19968 if (write (fd, data, pagesize) != pagesize)
19972 /* Next, check that the tail of a page is zero-filled. File must have
19973 non-zero length, otherwise we risk SIGBUS for entire page. */
19974 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19978 if (write (fd2, cdata2, 1) != 1)
19980 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19981 if (data2 == MAP_FAILED)
19983 for (i = 0; i < pagesize; ++i)
19987 if (munmap (data2, pagesize))
19990 /* Next, try to mmap the file at a fixed address which already has
19991 something else allocated at it. If we can, also make sure that
19992 we see the same garbage. */
19993 fd = open ("conftest.mmap", O_RDWR);
19996 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19997 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19999 for (i = 0; i < pagesize; ++i)
20000 if (*(data + i) != *(data2 + i))
20003 /* Finally, make sure that changes to the mapped area do not
20004 percolate back to the file as seen by read(). (This is a bug on
20005 some variants of i386 svr4.0.) */
20006 for (i = 0; i < pagesize; ++i)
20007 *(data2 + i) = *(data2 + i) + 1;
20008 data3 = (char *) malloc (pagesize);
20011 if (read (fd, data3, pagesize) != pagesize)
20013 for (i = 0; i < pagesize; ++i)
20014 if (*(data + i) != *(data3 + i))
20020 if ac_fn_c_try_run "$LINENO"; then :
20021 ac_cv_func_mmap_fixed_mapped=yes
20023 ac_cv_func_mmap_fixed_mapped=no
20025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20026 conftest.$ac_objext conftest.beam conftest.$ac_ext
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20031 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20032 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20034 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20037 rm -f conftest.mmap conftest.txt
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20041 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20042 if ${ac_cv_gnu_library_2_1+:} false; then :
20043 $as_echo_n "(cached) " >&6
20045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20046 /* end confdefs.h. */
20048 #include <features.h>
20049 #ifdef __GNU_LIBRARY__
20050 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20057 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20058 ac_cv_gnu_library_2_1=yes
20060 ac_cv_gnu_library_2_1=no
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20068 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20070 GLIBC21="$ac_cv_gnu_library_2_1"
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20076 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20077 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20078 $as_echo_n "(cached) " >&6
20081 if test "$cross_compiling" = yes; then :
20083 # Guess based on the CPU.
20084 case "$host_cpu" in
20085 alpha* | i3456786 | m68k | s390*)
20086 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20088 gt_cv_int_divbyzero_sigfpe="guessing no";;
20092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20093 /* end confdefs.h. */
20095 #include <stdlib.h>
20096 #include <signal.h>
20100 sigfpe_handler (int sig)
20102 sigfpe_handler (sig) int sig;
20105 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20106 exit (sig != SIGFPE);
20116 signal (SIGFPE, sigfpe_handler);
20117 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20118 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20119 signal (SIGTRAP, sigfpe_handler);
20121 /* Linux/SPARC yields signal SIGILL. */
20122 #if defined (__sparc__) && defined (__linux__)
20123 signal (SIGILL, sigfpe_handler);
20132 if ac_fn_c_try_run "$LINENO"; then :
20133 gt_cv_int_divbyzero_sigfpe=yes
20135 gt_cv_int_divbyzero_sigfpe=no
20137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20138 conftest.$ac_objext conftest.beam conftest.$ac_ext
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20144 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20145 case "$gt_cv_int_divbyzero_sigfpe" in
20150 cat >>confdefs.h <<_ACEOF
20151 #define INTDIV0_RAISES_SIGFPE $value
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20157 $as_echo_n "checking for unsigned long long... " >&6; }
20158 if ${ac_cv_type_unsigned_long_long+:} false; then :
20159 $as_echo_n "(cached) " >&6
20161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20162 /* end confdefs.h. */
20163 unsigned long long ull = 1ULL; int i = 63;
20167 unsigned long long ullmax = (unsigned long long) -1;
20168 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20173 if ac_fn_c_try_link "$LINENO"; then :
20174 ac_cv_type_unsigned_long_long=yes
20176 ac_cv_type_unsigned_long_long=no
20178 rm -f core conftest.err conftest.$ac_objext \
20179 conftest$ac_exeext conftest.$ac_ext
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20182 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20183 if test $ac_cv_type_unsigned_long_long = yes; then
20185 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20192 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20194 test $ac_cv_type_unsigned_long_long = yes \
20195 && ac_type='unsigned long long' \
20196 || ac_type='unsigned long'
20198 cat >>confdefs.h <<_ACEOF
20199 #define uintmax_t $ac_type
20204 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20210 $as_echo_n "checking for inttypes.h... " >&6; }
20211 if ${gt_cv_header_inttypes_h+:} false; then :
20212 $as_echo_n "(cached) " >&6
20215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20216 /* end confdefs.h. */
20217 #include <sys/types.h>
20218 #include <inttypes.h>
20227 if ac_fn_c_try_compile "$LINENO"; then :
20228 gt_cv_header_inttypes_h=yes
20230 gt_cv_header_inttypes_h=no
20232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20236 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20237 if test $gt_cv_header_inttypes_h = yes; then
20239 cat >>confdefs.h <<_ACEOF
20240 #define HAVE_INTTYPES_H 1
20247 if test $gt_cv_header_inttypes_h = yes; then
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20249 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20250 if ${gt_cv_inttypes_pri_broken+:} false; then :
20251 $as_echo_n "(cached) " >&6
20254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20255 /* end confdefs.h. */
20256 #include <inttypes.h>
20269 if ac_fn_c_try_compile "$LINENO"; then :
20270 gt_cv_inttypes_pri_broken=no
20272 gt_cv_inttypes_pri_broken=yes
20274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20278 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20280 if test "$gt_cv_inttypes_pri_broken" = yes; then
20282 cat >>confdefs.h <<_ACEOF
20283 #define PRI_MACROS_BROKEN 1
20289 for ac_header in stdint.h
20291 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20292 if test "x$ac_cv_header_stdint_h" = xyes; then :
20293 cat >>confdefs.h <<_ACEOF
20294 #define HAVE_STDINT_H 1
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20302 $as_echo_n "checking for SIZE_MAX... " >&6; }
20304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20305 /* end confdefs.h. */
20307 #include <limits.h>
20309 #include <stdint.h>
20316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20317 $EGREP "Found it" >/dev/null 2>&1; then :
20322 if test -z "$result"; then
20323 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20330 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20337 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20344 if test "$fits_in_uint" = 1; then
20345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20346 /* end confdefs.h. */
20347 #include <stddef.h>
20349 extern unsigned long foo;
20359 if ac_fn_c_try_compile "$LINENO"; then :
20362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20364 if test -z "$result"; then
20365 if test "$fits_in_uint" = 1; then
20366 result="$res_hi$res_lo"U
20368 result="$res_hi$res_lo"UL
20371 result='~(size_t)0'
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20375 $as_echo "$result" >&6; }
20376 if test "$result" != yes; then
20378 cat >>confdefs.h <<_ACEOF
20379 #define SIZE_MAX $result
20387 for ac_header in stdint.h
20389 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20390 if test "x$ac_cv_header_stdint_h" = xyes; then :
20391 cat >>confdefs.h <<_ACEOF
20392 #define HAVE_STDINT_H 1
20406 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20407 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20411 $as_echo "#define ptrdiff_t long" >>confdefs.h
20416 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20417 stdlib.h string.h unistd.h sys/param.h
20419 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20420 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20421 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20422 cat >>confdefs.h <<_ACEOF
20423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20430 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20431 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20432 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20435 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20436 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20437 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20438 cat >>confdefs.h <<_ACEOF
20439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20448 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20449 if ${ac_cv_have_decl__snprintf+:} false; then :
20450 $as_echo_n "(cached) " >&6
20452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20453 /* end confdefs.h. */
20460 char *p = (char *) _snprintf;
20467 if ac_fn_c_try_compile "$LINENO"; then :
20468 ac_cv_have_decl__snprintf=yes
20470 ac_cv_have_decl__snprintf=no
20472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20475 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20476 if test $ac_cv_have_decl__snprintf = yes; then
20482 cat >>confdefs.h <<_ACEOF
20483 #define HAVE_DECL__SNPRINTF $gt_value
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20489 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20490 if ${ac_cv_have_decl__snwprintf+:} false; then :
20491 $as_echo_n "(cached) " >&6
20493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20494 /* end confdefs.h. */
20501 char *p = (char *) _snwprintf;
20508 if ac_fn_c_try_compile "$LINENO"; then :
20509 ac_cv_have_decl__snwprintf=yes
20511 ac_cv_have_decl__snwprintf=no
20513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20516 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20517 if test $ac_cv_have_decl__snwprintf = yes; then
20523 cat >>confdefs.h <<_ACEOF
20524 #define HAVE_DECL__SNWPRINTF $gt_value
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20531 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20532 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20533 $as_echo_n "(cached) " >&6
20535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536 /* end confdefs.h. */
20542 #ifndef feof_unlocked
20543 char *p = (char *) feof_unlocked;
20550 if ac_fn_c_try_compile "$LINENO"; then :
20551 ac_cv_have_decl_feof_unlocked=yes
20553 ac_cv_have_decl_feof_unlocked=no
20555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20558 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20559 if test $ac_cv_have_decl_feof_unlocked = yes; then
20565 cat >>confdefs.h <<_ACEOF
20566 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20572 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20573 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20574 $as_echo_n "(cached) " >&6
20576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20577 /* end confdefs.h. */
20583 #ifndef fgets_unlocked
20584 char *p = (char *) fgets_unlocked;
20591 if ac_fn_c_try_compile "$LINENO"; then :
20592 ac_cv_have_decl_fgets_unlocked=yes
20594 ac_cv_have_decl_fgets_unlocked=no
20596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20599 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20600 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20606 cat >>confdefs.h <<_ACEOF
20607 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20613 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20614 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20615 $as_echo_n "(cached) " >&6
20617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20618 /* end confdefs.h. */
20624 #ifndef getc_unlocked
20625 char *p = (char *) getc_unlocked;
20632 if ac_fn_c_try_compile "$LINENO"; then :
20633 ac_cv_have_decl_getc_unlocked=yes
20635 ac_cv_have_decl_getc_unlocked=no
20637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20640 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20641 if test $ac_cv_have_decl_getc_unlocked = yes; then
20647 cat >>confdefs.h <<_ACEOF
20648 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20653 case $gt_cv_func_printf_posix in
20654 *yes) HAVE_POSIX_PRINTF=1 ;;
20655 *) HAVE_POSIX_PRINTF=0 ;;
20658 if test "$ac_cv_func_asprintf" = yes; then
20664 if test "$ac_cv_func_snprintf" = yes; then
20670 if test "$ac_cv_func_wprintf" = yes; then
20682 am_save_CPPFLAGS="$CPPFLAGS"
20684 for element in $INCICONV; do
20686 for x in $CPPFLAGS; do
20688 acl_save_prefix="$prefix"
20689 prefix="$acl_final_prefix"
20690 acl_save_exec_prefix="$exec_prefix"
20691 exec_prefix="$acl_final_exec_prefix"
20693 exec_prefix="$acl_save_exec_prefix"
20694 prefix="$acl_save_prefix"
20696 if test "X$x" = "X$element"; then
20701 if test -z "$haveit"; then
20702 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20708 $as_echo_n "checking for iconv... " >&6; }
20709 if ${am_cv_func_iconv+:} false; then :
20710 $as_echo_n "(cached) " >&6
20713 am_cv_func_iconv="no, consider installing GNU libiconv"
20715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20716 /* end confdefs.h. */
20717 #include <stdlib.h>
20722 iconv_t cd = iconv_open("","");
20723 iconv(cd,NULL,NULL,NULL,NULL);
20729 if ac_fn_c_try_link "$LINENO"; then :
20730 am_cv_func_iconv=yes
20732 rm -f core conftest.err conftest.$ac_objext \
20733 conftest$ac_exeext conftest.$ac_ext
20734 if test "$am_cv_func_iconv" != yes; then
20735 am_save_LIBS="$LIBS"
20736 LIBS="$LIBS $LIBICONV"
20737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20738 /* end confdefs.h. */
20739 #include <stdlib.h>
20744 iconv_t cd = iconv_open("","");
20745 iconv(cd,NULL,NULL,NULL,NULL);
20751 if ac_fn_c_try_link "$LINENO"; then :
20752 am_cv_lib_iconv=yes
20753 am_cv_func_iconv=yes
20755 rm -f core conftest.err conftest.$ac_objext \
20756 conftest$ac_exeext conftest.$ac_ext
20757 LIBS="$am_save_LIBS"
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20762 $as_echo "$am_cv_func_iconv" >&6; }
20763 if test "$am_cv_func_iconv" = yes; then
20765 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20768 if test "$am_cv_lib_iconv" = yes; then
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20770 $as_echo_n "checking how to link with libiconv... " >&6; }
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20772 $as_echo "$LIBICONV" >&6; }
20774 CPPFLAGS="$am_save_CPPFLAGS"
20781 if test "$am_cv_func_iconv" = yes; then
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20783 $as_echo_n "checking for iconv declaration... " >&6; }
20784 if ${am_cv_proto_iconv+:} false; then :
20785 $as_echo_n "(cached) " >&6
20788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20789 /* end confdefs.h. */
20791 #include <stdlib.h>
20797 #if defined(__STDC__) || defined(__cplusplus)
20798 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20811 if ac_fn_c_try_compile "$LINENO"; then :
20812 am_cv_proto_iconv_arg1=""
20814 am_cv_proto_iconv_arg1="const"
20816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20817 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);"
20820 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20822 }$am_cv_proto_iconv" >&5
20824 }$am_cv_proto_iconv" >&6; }
20826 cat >>confdefs.h <<_ACEOF
20827 #define ICONV_CONST $am_cv_proto_iconv_arg1
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20834 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20835 if ${am_cv_langinfo_codeset+:} false; then :
20836 $as_echo_n "(cached) " >&6
20838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20839 /* end confdefs.h. */
20840 #include <langinfo.h>
20844 char* cs = nl_langinfo(CODESET);
20849 if ac_fn_c_try_link "$LINENO"; then :
20850 am_cv_langinfo_codeset=yes
20852 am_cv_langinfo_codeset=no
20854 rm -f core conftest.err conftest.$ac_objext \
20855 conftest$ac_exeext conftest.$ac_ext
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20859 $as_echo "$am_cv_langinfo_codeset" >&6; }
20860 if test $am_cv_langinfo_codeset = yes; then
20862 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20866 if test $ac_cv_header_locale_h = yes; then
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20869 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20870 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20871 $as_echo_n "(cached) " >&6
20873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20874 /* end confdefs.h. */
20875 #include <locale.h>
20884 if ac_fn_c_try_link "$LINENO"; then :
20885 gt_cv_val_LC_MESSAGES=yes
20887 gt_cv_val_LC_MESSAGES=no
20889 rm -f core conftest.err conftest.$ac_objext \
20890 conftest$ac_exeext conftest.$ac_ext
20892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20893 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20894 if test $gt_cv_val_LC_MESSAGES = yes; then
20896 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20902 if test -n "$INTL_MACOSX_LIBS"; then
20903 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20906 for ac_prog in bison
20908 # Extract the first word of "$ac_prog", so it can be a program name with args.
20909 set dummy $ac_prog; ac_word=$2
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20911 $as_echo_n "checking for $ac_word... " >&6; }
20912 if ${ac_cv_prog_INTLBISON+:} false; then :
20913 $as_echo_n "(cached) " >&6
20915 if test -n "$INTLBISON"; then
20916 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20919 for as_dir in $PATH
20922 test -z "$as_dir" && as_dir=.
20923 for ac_exec_ext in '' $ac_executable_extensions; do
20924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20925 ac_cv_prog_INTLBISON="$ac_prog"
20926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20935 INTLBISON=$ac_cv_prog_INTLBISON
20936 if test -n "$INTLBISON"; then
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20938 $as_echo "$INTLBISON" >&6; }
20940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20941 $as_echo "no" >&6; }
20945 test -n "$INTLBISON" && break
20948 if test -z "$INTLBISON"; then
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20952 $as_echo_n "checking version of bison... " >&6; }
20953 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20954 case $ac_prog_version in
20955 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20956 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20957 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20958 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20961 $as_echo "$ac_prog_version" >&6; }
20963 if test $ac_verc_fail = yes; then
20982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20983 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20984 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20985 $as_echo_n "(cached) " >&6
20987 gt_save_CPPFLAGS="$CPPFLAGS"
20988 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20989 gt_save_LIBS="$LIBS"
20990 LIBS="$LIBS -framework CoreFoundation"
20991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20992 /* end confdefs.h. */
20993 #include <CFPreferences.h>
20997 CFPreferencesCopyAppValue(NULL, NULL)
21002 if ac_fn_c_try_link "$LINENO"; then :
21003 gt_cv_func_CFPreferencesCopyAppValue=yes
21005 gt_cv_func_CFPreferencesCopyAppValue=no
21007 rm -f core conftest.err conftest.$ac_objext \
21008 conftest$ac_exeext conftest.$ac_ext
21009 CPPFLAGS="$gt_save_CPPFLAGS"
21010 LIBS="$gt_save_LIBS"
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21013 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21014 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21016 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21020 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21021 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21022 $as_echo_n "(cached) " >&6
21024 gt_save_CPPFLAGS="$CPPFLAGS"
21025 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21026 gt_save_LIBS="$LIBS"
21027 LIBS="$LIBS -framework CoreFoundation"
21028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21029 /* end confdefs.h. */
21030 #include <CFLocale.h>
21034 CFLocaleCopyCurrent();
21039 if ac_fn_c_try_link "$LINENO"; then :
21040 gt_cv_func_CFLocaleCopyCurrent=yes
21042 gt_cv_func_CFLocaleCopyCurrent=no
21044 rm -f core conftest.err conftest.$ac_objext \
21045 conftest$ac_exeext conftest.$ac_ext
21046 CPPFLAGS="$gt_save_CPPFLAGS"
21047 LIBS="$gt_save_LIBS"
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21050 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21051 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21053 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21057 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21058 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21065 $as_echo_n "checking whether NLS is requested... " >&6; }
21066 # Check whether --enable-nls was given.
21067 if test "${enable_nls+set}" = set; then :
21068 enableval=$enable_nls; USE_NLS=$enableval
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21074 $as_echo "$USE_NLS" >&6; }
21079 BUILD_INCLUDED_LIBINTL=no
21080 USE_INCLUDED_LIBINTL=no
21086 if test "$USE_NLS" = "yes"; then
21087 gt_use_preinstalled_gnugettext=no
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21090 $as_echo_n "checking whether included gettext is requested... " >&6; }
21092 # Check whether --with-included-gettext was given.
21093 if test "${with_included_gettext+set}" = set; then :
21094 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21096 nls_cv_force_use_gnu_gettext=no
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21100 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21102 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21103 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21111 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21112 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21113 $as_echo_n "(cached) " >&6
21115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21116 /* end confdefs.h. */
21117 #include <libintl.h>
21118 extern int _nl_msg_cat_cntr;
21119 extern int *_nl_domain_bindings;
21123 bindtextdomain ("", "");
21124 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21129 if ac_fn_c_try_link "$LINENO"; then :
21130 gt_cv_func_gnugettext1_libc=yes
21132 gt_cv_func_gnugettext1_libc=no
21134 rm -f core conftest.err conftest.$ac_objext \
21135 conftest$ac_exeext conftest.$ac_ext
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21138 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21140 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21146 acl_save_prefix="$prefix"
21147 prefix="$acl_final_prefix"
21148 acl_save_exec_prefix="$exec_prefix"
21149 exec_prefix="$acl_final_exec_prefix"
21151 eval additional_includedir=\"$includedir\"
21152 eval additional_libdir=\"$libdir\"
21154 exec_prefix="$acl_save_exec_prefix"
21155 prefix="$acl_save_prefix"
21158 # Check whether --with-libintl-prefix was given.
21159 if test "${with_libintl_prefix+set}" = set; then :
21160 withval=$with_libintl_prefix;
21161 if test "X$withval" = "Xno"; then
21164 if test "X$withval" = "X"; then
21166 acl_save_prefix="$prefix"
21167 prefix="$acl_final_prefix"
21168 acl_save_exec_prefix="$exec_prefix"
21169 exec_prefix="$acl_final_exec_prefix"
21171 eval additional_includedir=\"$includedir\"
21172 eval additional_libdir=\"$libdir\"
21174 exec_prefix="$acl_save_exec_prefix"
21175 prefix="$acl_save_prefix"
21178 additional_includedir="$withval/include"
21179 additional_libdir="$withval/lib"
21190 names_already_handled=
21191 names_next_round='intl '
21192 while test -n "$names_next_round"; do
21193 names_this_round="$names_next_round"
21195 for name in $names_this_round; do
21197 for n in $names_already_handled; do
21198 if test "$n" = "$name"; then
21199 already_handled=yes
21203 if test -z "$already_handled"; then
21204 names_already_handled="$names_already_handled $name"
21205 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21206 eval value=\"\$HAVE_LIB$uppername\"
21207 if test -n "$value"; then
21208 if test "$value" = yes; then
21209 eval value=\"\$LIB$uppername\"
21210 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21211 eval value=\"\$LTLIB$uppername\"
21212 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21221 if test $use_additional = yes; then
21222 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21223 found_dir="$additional_libdir"
21224 found_so="$additional_libdir/lib$name.$shlibext"
21225 if test -f "$additional_libdir/lib$name.la"; then
21226 found_la="$additional_libdir/lib$name.la"
21229 if test -f "$additional_libdir/lib$name.$libext"; then
21230 found_dir="$additional_libdir"
21231 found_a="$additional_libdir/lib$name.$libext"
21232 if test -f "$additional_libdir/lib$name.la"; then
21233 found_la="$additional_libdir/lib$name.la"
21238 if test "X$found_dir" = "X"; then
21239 for x in $LDFLAGS $LTLIBINTL; do
21241 acl_save_prefix="$prefix"
21242 prefix="$acl_final_prefix"
21243 acl_save_exec_prefix="$exec_prefix"
21244 exec_prefix="$acl_final_exec_prefix"
21246 exec_prefix="$acl_save_exec_prefix"
21247 prefix="$acl_save_prefix"
21251 dir=`echo "X$x" | sed -e 's/^X-L//'`
21252 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21254 found_so="$dir/lib$name.$shlibext"
21255 if test -f "$dir/lib$name.la"; then
21256 found_la="$dir/lib$name.la"
21259 if test -f "$dir/lib$name.$libext"; then
21261 found_a="$dir/lib$name.$libext"
21262 if test -f "$dir/lib$name.la"; then
21263 found_la="$dir/lib$name.la"
21269 if test "X$found_dir" != "X"; then
21274 if test "X$found_dir" != "X"; then
21275 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21276 if test "X$found_so" != "X"; then
21277 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21278 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21281 for x in $ltrpathdirs; do
21282 if test "X$x" = "X$found_dir"; then
21287 if test -z "$haveit"; then
21288 ltrpathdirs="$ltrpathdirs $found_dir"
21290 if test "$hardcode_direct" = yes; then
21291 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21293 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21294 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21296 for x in $rpathdirs; do
21297 if test "X$x" = "X$found_dir"; then
21302 if test -z "$haveit"; then
21303 rpathdirs="$rpathdirs $found_dir"
21307 for x in $LDFLAGS $LIBINTL; do
21309 acl_save_prefix="$prefix"
21310 prefix="$acl_final_prefix"
21311 acl_save_exec_prefix="$exec_prefix"
21312 exec_prefix="$acl_final_exec_prefix"
21314 exec_prefix="$acl_save_exec_prefix"
21315 prefix="$acl_save_prefix"
21317 if test "X$x" = "X-L$found_dir"; then
21322 if test -z "$haveit"; then
21323 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21325 if test "$hardcode_minus_L" != no; then
21326 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21328 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21334 if test "X$found_a" != "X"; then
21335 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21337 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21340 additional_includedir=
21341 case "$found_dir" in
21343 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21344 additional_includedir="$basedir/include"
21347 if test "X$additional_includedir" != "X"; then
21348 if test "X$additional_includedir" != "X/usr/include"; then
21350 if test "X$additional_includedir" = "X/usr/local/include"; then
21351 if test -n "$GCC"; then
21353 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21357 if test -z "$haveit"; then
21358 for x in $CPPFLAGS $INCINTL; do
21360 acl_save_prefix="$prefix"
21361 prefix="$acl_final_prefix"
21362 acl_save_exec_prefix="$exec_prefix"
21363 exec_prefix="$acl_final_exec_prefix"
21365 exec_prefix="$acl_save_exec_prefix"
21366 prefix="$acl_save_prefix"
21368 if test "X$x" = "X-I$additional_includedir"; then
21373 if test -z "$haveit"; then
21374 if test -d "$additional_includedir"; then
21375 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21381 if test -n "$found_la"; then
21382 save_libdir="$libdir"
21383 case "$found_la" in
21384 */* | *\\*) . "$found_la" ;;
21385 *) . "./$found_la" ;;
21387 libdir="$save_libdir"
21388 for dep in $dependency_libs; do
21391 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21392 if test "X$additional_libdir" != "X/usr/lib"; then
21394 if test "X$additional_libdir" = "X/usr/local/lib"; then
21395 if test -n "$GCC"; then
21397 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21401 if test -z "$haveit"; then
21403 for x in $LDFLAGS $LIBINTL; do
21405 acl_save_prefix="$prefix"
21406 prefix="$acl_final_prefix"
21407 acl_save_exec_prefix="$exec_prefix"
21408 exec_prefix="$acl_final_exec_prefix"
21410 exec_prefix="$acl_save_exec_prefix"
21411 prefix="$acl_save_prefix"
21413 if test "X$x" = "X-L$additional_libdir"; then
21418 if test -z "$haveit"; then
21419 if test -d "$additional_libdir"; then
21420 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21424 for x in $LDFLAGS $LTLIBINTL; do
21426 acl_save_prefix="$prefix"
21427 prefix="$acl_final_prefix"
21428 acl_save_exec_prefix="$exec_prefix"
21429 exec_prefix="$acl_final_exec_prefix"
21431 exec_prefix="$acl_save_exec_prefix"
21432 prefix="$acl_save_prefix"
21434 if test "X$x" = "X-L$additional_libdir"; then
21439 if test -z "$haveit"; then
21440 if test -d "$additional_libdir"; then
21441 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21448 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21449 if test "$enable_rpath" != no; then
21451 for x in $rpathdirs; do
21452 if test "X$x" = "X$dir"; then
21457 if test -z "$haveit"; then
21458 rpathdirs="$rpathdirs $dir"
21461 for x in $ltrpathdirs; do
21462 if test "X$x" = "X$dir"; then
21467 if test -z "$haveit"; then
21468 ltrpathdirs="$ltrpathdirs $dir"
21473 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21476 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21479 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21480 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21486 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21487 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21493 if test "X$rpathdirs" != "X"; then
21494 if test -n "$hardcode_libdir_separator"; then
21496 for found_dir in $rpathdirs; do
21497 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21499 acl_save_libdir="$libdir"
21501 eval flag=\"$hardcode_libdir_flag_spec\"
21502 libdir="$acl_save_libdir"
21503 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21505 for found_dir in $rpathdirs; do
21506 acl_save_libdir="$libdir"
21507 libdir="$found_dir"
21508 eval flag=\"$hardcode_libdir_flag_spec\"
21509 libdir="$acl_save_libdir"
21510 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21514 if test "X$ltrpathdirs" != "X"; then
21515 for found_dir in $ltrpathdirs; do
21516 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21521 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21522 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21523 $as_echo_n "(cached) " >&6
21525 gt_save_CPPFLAGS="$CPPFLAGS"
21526 CPPFLAGS="$CPPFLAGS $INCINTL"
21527 gt_save_LIBS="$LIBS"
21528 LIBS="$LIBS $LIBINTL"
21529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21530 /* end confdefs.h. */
21531 #include <libintl.h>
21532 extern int _nl_msg_cat_cntr;
21537 const char *_nl_expand_alias (const char *);
21541 bindtextdomain ("", "");
21542 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21547 if ac_fn_c_try_link "$LINENO"; then :
21548 gt_cv_func_gnugettext1_libintl=yes
21550 gt_cv_func_gnugettext1_libintl=no
21552 rm -f core conftest.err conftest.$ac_objext \
21553 conftest$ac_exeext conftest.$ac_ext
21554 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21555 LIBS="$LIBS $LIBICONV"
21556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21557 /* end confdefs.h. */
21558 #include <libintl.h>
21559 extern int _nl_msg_cat_cntr;
21564 const char *_nl_expand_alias (const char *);
21568 bindtextdomain ("", "");
21569 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21574 if ac_fn_c_try_link "$LINENO"; then :
21575 LIBINTL="$LIBINTL $LIBICONV"
21576 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21577 gt_cv_func_gnugettext1_libintl=yes
21580 rm -f core conftest.err conftest.$ac_objext \
21581 conftest$ac_exeext conftest.$ac_ext
21583 CPPFLAGS="$gt_save_CPPFLAGS"
21584 LIBS="$gt_save_LIBS"
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21587 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21590 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21591 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21592 && test "$PACKAGE" != gettext-runtime \
21593 && test "$PACKAGE" != gettext-tools; }; then
21594 gt_use_preinstalled_gnugettext=yes
21602 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21603 nls_cv_use_gnu_gettext=yes
21607 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21608 BUILD_INCLUDED_LIBINTL=yes
21609 USE_INCLUDED_LIBINTL=yes
21610 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21611 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21612 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21616 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21617 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21622 if test -n "$INTL_MACOSX_LIBS"; then
21623 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21624 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21625 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21626 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21630 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21631 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21633 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21641 $as_echo_n "checking whether to use NLS... " >&6; }
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21643 $as_echo "$USE_NLS" >&6; }
21644 if test "$USE_NLS" = "yes"; then
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21646 $as_echo_n "checking where the gettext function comes from... " >&6; }
21647 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21648 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21649 gt_source="external libintl"
21654 gt_source="included intl directory"
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21657 $as_echo "$gt_source" >&6; }
21660 if test "$USE_NLS" = "yes"; then
21662 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21663 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21665 $as_echo_n "checking how to link with libintl... " >&6; }
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21667 $as_echo "$LIBINTL" >&6; }
21669 for element in $INCINTL; do
21671 for x in $CPPFLAGS; do
21673 acl_save_prefix="$prefix"
21674 prefix="$acl_final_prefix"
21675 acl_save_exec_prefix="$exec_prefix"
21676 exec_prefix="$acl_final_exec_prefix"
21678 exec_prefix="$acl_save_exec_prefix"
21679 prefix="$acl_save_prefix"
21681 if test "X$x" = "X$element"; then
21686 if test -z "$haveit"; then
21687 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21694 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21697 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21705 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21706 BUILD_INCLUDED_LIBINTL=yes
21713 nls_cv_header_intl=
21714 nls_cv_header_libgt=
21726 if test "$USE_INCLUDED_LIBINTL" = yes; then
21727 INTLOBJS="\$(GETTOBJS)"
21731 INTL_LIBTOOL_SUFFIX_PREFIX=
21735 INTLLIBS="$LIBINTL"
21744 support_smartalloc=yes
21745 support_readline=yes
21751 support_static_tools=no
21752 support_static_fd=no
21753 support_static_sd=no
21754 support_static_dir=no
21755 support_static_cons=no
21756 build_client_only=no
21760 batch_insert_db_backends=""
21764 # Check whether --enable-bat was given.
21765 if test "${enable_bat+set}" = set; then :
21766 enableval=$enable_bat;
21767 if test x$enableval = xyes; then
21769 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21779 if test x$support_bat = xyes; then
21780 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21782 if test $pkg = 0; then
21783 BAT_DIR=src/qt-console
21785 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21803 # Check whether --enable-smartalloc was given.
21804 if test "${enable_smartalloc+set}" = set; then :
21805 enableval=$enable_smartalloc;
21806 if test x$enableval = xno; then
21807 support_smartalloc=no
21814 if test x$support_smartalloc = xyes; then
21816 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21820 # Check whether --enable-lockmgr was given.
21821 if test "${enable_lockmgr+set}" = set; then :
21822 enableval=$enable_lockmgr;
21823 if test x$enableval = xyes; then
21824 support_lockmgr=yes
21831 if test x$support_lockmgr = xyes; then
21833 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21838 # Check whether --enable-static-tools was given.
21839 if test "${enable_static_tools+set}" = set; then :
21840 enableval=$enable_static_tools;
21841 if test x$enableval = xyes; then
21842 if test x$use_libtool = xyes; then
21843 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21844 please rerun configure with --disable-libtool" "$LINENO" 5
21846 support_static_tools=yes
21854 if test x$support_static_tools = xyes; then
21855 TTOOL_LDFLAGS="-static"
21859 # Check whether --enable-static-fd was given.
21860 if test "${enable_static_fd+set}" = set; then :
21861 enableval=$enable_static_fd;
21862 if test x$enableval = xyes; then
21863 if test x$use_libtool = xyes; then
21864 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21865 please rerun configure with --disable-libtool" "$LINENO" 5
21867 support_static_fd=yes
21875 if test x$support_static_fd = xyes; then
21876 STATIC_FD="static-bacula-fd"
21880 # Check whether --enable-static-sd was given.
21881 if test "${enable_static_sd+set}" = set; then :
21882 enableval=$enable_static_sd;
21883 if test x$enableval = xyes; then
21884 if test x$use_libtool = xyes; then
21885 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21886 please rerun configure with --disable-libtool" "$LINENO" 5
21888 support_static_sd=yes
21896 if test x$support_static_sd = xyes; then
21897 STATIC_SD="static-bacula-sd"
21901 # Check whether --enable-static-dir was given.
21902 if test "${enable_static_dir+set}" = set; then :
21903 enableval=$enable_static_dir;
21904 if test x$enableval = xyes; then
21905 if test x$use_libtool = xyes; then
21906 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21907 please rerun configure with --disable-libtool" "$LINENO" 5
21909 support_static_dir=yes
21917 if test x$support_static_dir = xyes; then
21918 STATIC_DIR="static-bacula-dir"
21922 # Check whether --enable-static-cons was given.
21923 if test "${enable_static_cons+set}" = set; then :
21924 enableval=$enable_static_cons;
21925 if test x$enableval = xyes; then
21926 if test x$use_libtool = xyes; then
21927 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21928 please rerun configure with --disable-libtool" "$LINENO" 5
21930 support_static_cons=yes
21938 if test x$support_static_cons = xyes; then
21939 STATIC_CONS="static-bconsole"
21943 # Check whether --enable-client-only was given.
21944 if test "${enable_client_only+set}" = set; then :
21945 enableval=$enable_client_only;
21946 if test x$enableval = xyes; then
21947 build_client_only=yes
21955 if test x$build_client_only = xno; then
21962 # Check whether --enable-build-dird was given.
21963 if test "${enable_build_dird+set}" = set; then :
21964 enableval=$enable_build_dird;
21965 if test x$enableval = xno; then
21973 DIRD_DIR="src/dird"
21974 DIR_TOOLS="DIRTOOLS"
21979 # Check whether --enable-build-stored was given.
21980 if test "${enable_build_stored+set}" = set; then :
21981 enableval=$enable_build_stored;
21982 if test x$enableval = xno; then
21989 if test x$build_stored = xyes; then
21990 STORED_DIR="src/stored"
21996 # Check whether --enable-conio was given.
21997 if test "${enable_conio+set}" = set; then :
21998 enableval=$enable_conio;
21999 if test x$enableval = xno; then
22009 # Check whether --enable-ipv6 was given.
22010 if test "${enable_ipv6+set}" = set; then :
22011 enableval=$enable_ipv6;
22012 if test x$enableval = xno; then
22020 if test x$support_ipv6 = xyes; then
22021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22022 /* end confdefs.h. */
22023 #include <sys/types.h>
22024 #include <sys/socket.h>
22025 #include <netinet/in.h>
22029 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22034 if ac_fn_c_try_link "$LINENO"; then :
22035 support_in6addr_any=yes
22037 support_in6addr_any=no
22039 rm -f core conftest.err conftest.$ac_objext \
22040 conftest$ac_exeext conftest.$ac_ext
22042 if test x$support_in6addr_any = xno ; then
22043 in6addr_any="const struct in6_addr in6addr_any"
22048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22049 /* end confdefs.h. */
22050 #include <sys/types.h>
22051 #include <sys/socket.h>
22052 #include <netinet/in.h>
22056 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22061 if ac_fn_c_try_link "$LINENO"; then :
22066 rm -f core conftest.err conftest.$ac_objext \
22067 conftest$ac_exeext conftest.$ac_ext
22070 if test x$support_ipv6 = xyes; then
22072 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22075 if test x$support_in6addr_any = xno ; then
22077 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22083 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22084 if test "x$ac_cv_header_curses_h" = xyes; then :
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22087 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22088 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22089 $as_echo_n "(cached) " >&6
22091 ac_check_lib_save_LIBS=$LIBS
22092 LIBS="-ltinfo $LIBS"
22093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22094 /* end confdefs.h. */
22096 /* Override any GCC internal prototype to avoid an error.
22097 Use char because int might match the return type of a GCC
22098 builtin and then its argument prototype would still apply. */
22111 if ac_fn_c_try_link "$LINENO"; then :
22112 ac_cv_lib_tinfo_tgetent=yes
22114 ac_cv_lib_tinfo_tgetent=no
22116 rm -f core conftest.err conftest.$ac_objext \
22117 conftest$ac_exeext conftest.$ac_ext
22118 LIBS=$ac_check_lib_save_LIBS
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22121 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22122 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22127 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22128 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22129 $as_echo_n "(cached) " >&6
22131 ac_check_lib_save_LIBS=$LIBS
22132 LIBS="-lncurses $LIBS"
22133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22134 /* end confdefs.h. */
22136 /* Override any GCC internal prototype to avoid an error.
22137 Use char because int might match the return type of a GCC
22138 builtin and then its argument prototype would still apply. */
22151 if ac_fn_c_try_link "$LINENO"; then :
22152 ac_cv_lib_ncurses_tgetent=yes
22154 ac_cv_lib_ncurses_tgetent=no
22156 rm -f core conftest.err conftest.$ac_objext \
22157 conftest$ac_exeext conftest.$ac_ext
22158 LIBS=$ac_check_lib_save_LIBS
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22161 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22162 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22163 TERM_LIB="-lncurses"
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22167 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22168 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22169 $as_echo_n "(cached) " >&6
22171 ac_check_lib_save_LIBS=$LIBS
22172 LIBS="-ltermcap $LIBS"
22173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22174 /* end confdefs.h. */
22176 /* Override any GCC internal prototype to avoid an error.
22177 Use char because int might match the return type of a GCC
22178 builtin and then its argument prototype would still apply. */
22191 if ac_fn_c_try_link "$LINENO"; then :
22192 ac_cv_lib_termcap_tgetent=yes
22194 ac_cv_lib_termcap_tgetent=no
22196 rm -f core conftest.err conftest.$ac_objext \
22197 conftest$ac_exeext conftest.$ac_ext
22198 LIBS=$ac_check_lib_save_LIBS
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22201 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22202 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22203 TERM_LIB="-ltermcap"
22214 for ac_header in curses.h
22216 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22217 if test "x$ac_cv_header_curses_h" = xyes; then :
22218 cat >>confdefs.h <<_ACEOF
22219 #define HAVE_CURSES_H 1
22226 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22227 if test "x$ac_cv_header_term_h" = xyes; then :
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22229 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22230 if ${ac_cv_lib_curses_tgetent+:} false; then :
22231 $as_echo_n "(cached) " >&6
22233 ac_check_lib_save_LIBS=$LIBS
22234 LIBS="-lcurses $LIBS"
22235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22236 /* end confdefs.h. */
22238 /* Override any GCC internal prototype to avoid an error.
22239 Use char because int might match the return type of a GCC
22240 builtin and then its argument prototype would still apply. */
22253 if ac_fn_c_try_link "$LINENO"; then :
22254 ac_cv_lib_curses_tgetent=yes
22256 ac_cv_lib_curses_tgetent=no
22258 rm -f core conftest.err conftest.$ac_objext \
22259 conftest$ac_exeext conftest.$ac_ext
22260 LIBS=$ac_check_lib_save_LIBS
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22263 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22264 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22265 TERM_LIB="-lcurses"
22279 if test x$support_conio = xyes; then
22280 if test x$TERM_LIB != x; then
22281 CONS_LIBS=$TERM_LIB
22285 support_readline=no
22287 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22290 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22295 # Check whether --enable-readline was given.
22296 if test "${enable_readline+set}" = set; then :
22297 enableval=$enable_readline;
22298 if test x$enableval = xno; then
22299 support_readline=no
22308 if test x$support_readline = xyes; then
22310 # Check whether --with-readline was given.
22311 if test "${with_readline+set}" = set; then :
22312 withval=$with_readline;
22313 case "$with_readline" in
22318 if test -f ${with_readline}/readline.h; then
22319 CONS_INC="-I${with_readline}"
22320 CONS_LDFLAGS="-L$with_readline"
22321 elif test -f ${with_readline}/include/readline/readline.h; then
22322 CONS_INC="-I${with_readline}/include/readline"
22323 CONS_LDFLAGS="-L${with_readline}/lib"
22324 with_readline="${with_readline}/include/readline"
22326 with_readline="/usr/include/readline"
22329 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22330 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22331 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22334 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22336 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22342 echo "readline.h not found. readline turned off ..."
22354 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22355 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22358 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22361 CONS_INC="-I/usr/include/readline"
22362 CONS_LIBS="-lreadline ${TERM_LIB}"
22366 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22367 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22368 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22371 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22374 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22375 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22376 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22377 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22382 echo "readline.h not found. readline turned off ..."
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22410 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22411 if ${ac_cv_header_stat_broken+:} false; then :
22412 $as_echo_n "(cached) " >&6
22414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22415 /* end confdefs.h. */
22416 #include <sys/types.h>
22417 #include <sys/stat.h>
22419 #if defined S_ISBLK && defined S_IFDIR
22420 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22423 #if defined S_ISBLK && defined S_IFCHR
22424 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22427 #if defined S_ISLNK && defined S_IFREG
22428 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22431 #if defined S_ISSOCK && defined S_IFREG
22432 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22436 if ac_fn_c_try_compile "$LINENO"; then :
22437 ac_cv_header_stat_broken=no
22439 ac_cv_header_stat_broken=yes
22441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22444 $as_echo "$ac_cv_header_stat_broken" >&6; }
22445 if test $ac_cv_header_stat_broken = yes; then
22447 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22451 ac_header_dirent=no
22452 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22453 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22455 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22456 if eval \${$as_ac_Header+:} false; then :
22457 $as_echo_n "(cached) " >&6
22459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h. */
22461 #include <sys/types.h>
22473 if ac_fn_c_try_compile "$LINENO"; then :
22474 eval "$as_ac_Header=yes"
22476 eval "$as_ac_Header=no"
22478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22480 eval ac_res=\$$as_ac_Header
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22482 $as_echo "$ac_res" >&6; }
22483 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22484 cat >>confdefs.h <<_ACEOF
22485 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22488 ac_header_dirent=$ac_hdr; break
22492 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22493 if test $ac_header_dirent = dirent.h; then
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22495 $as_echo_n "checking for library containing opendir... " >&6; }
22496 if ${ac_cv_search_opendir+:} false; then :
22497 $as_echo_n "(cached) " >&6
22499 ac_func_search_save_LIBS=$LIBS
22500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22501 /* end confdefs.h. */
22503 /* Override any GCC internal prototype to avoid an error.
22504 Use char because int might match the return type of a GCC
22505 builtin and then its argument prototype would still apply. */
22518 for ac_lib in '' dir; do
22519 if test -z "$ac_lib"; then
22520 ac_res="none required"
22523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22525 if ac_fn_c_try_link "$LINENO"; then :
22526 ac_cv_search_opendir=$ac_res
22528 rm -f core conftest.err conftest.$ac_objext \
22530 if ${ac_cv_search_opendir+:} false; then :
22534 if ${ac_cv_search_opendir+:} false; then :
22537 ac_cv_search_opendir=no
22539 rm conftest.$ac_ext
22540 LIBS=$ac_func_search_save_LIBS
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22543 $as_echo "$ac_cv_search_opendir" >&6; }
22544 ac_res=$ac_cv_search_opendir
22545 if test "$ac_res" != no; then :
22546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22552 $as_echo_n "checking for library containing opendir... " >&6; }
22553 if ${ac_cv_search_opendir+:} false; then :
22554 $as_echo_n "(cached) " >&6
22556 ac_func_search_save_LIBS=$LIBS
22557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22558 /* end confdefs.h. */
22560 /* Override any GCC internal prototype to avoid an error.
22561 Use char because int might match the return type of a GCC
22562 builtin and then its argument prototype would still apply. */
22575 for ac_lib in '' x; do
22576 if test -z "$ac_lib"; then
22577 ac_res="none required"
22580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22582 if ac_fn_c_try_link "$LINENO"; then :
22583 ac_cv_search_opendir=$ac_res
22585 rm -f core conftest.err conftest.$ac_objext \
22587 if ${ac_cv_search_opendir+:} false; then :
22591 if ${ac_cv_search_opendir+:} false; then :
22594 ac_cv_search_opendir=no
22596 rm conftest.$ac_ext
22597 LIBS=$ac_func_search_save_LIBS
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22600 $as_echo "$ac_cv_search_opendir" >&6; }
22601 ac_res=$ac_cv_search_opendir
22602 if test "$ac_res" != no; then :
22603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22609 for ac_func in strcasecmp select setenv putenv tcgetattr
22611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22612 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22613 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22614 cat >>confdefs.h <<_ACEOF
22615 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22621 for ac_func in lstat lchown lchmod futimes fchmod fchown
22623 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22624 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22625 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22626 cat >>confdefs.h <<_ACEOF
22627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22633 for ac_func in nanosleep nl_langinfo
22635 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22636 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22637 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22638 cat >>confdefs.h <<_ACEOF
22639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22645 for ac_func in be64toh htobe64
22647 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22648 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22649 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22650 cat >>confdefs.h <<_ACEOF
22651 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22657 for ac_header in varargs.h
22659 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22660 if test "x$ac_cv_header_varargs_h" = xyes; then :
22661 cat >>confdefs.h <<_ACEOF
22662 #define HAVE_VARARGS_H 1
22671 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22672 if test "x$ac_cv_func_socket" = xyes; then :
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22674 $as_echo "using libc's socket" >&6; }
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22677 $as_echo_n "checking for socket in -lxnet... " >&6; }
22678 if ${ac_cv_lib_xnet_socket+:} false; then :
22679 $as_echo_n "(cached) " >&6
22681 ac_check_lib_save_LIBS=$LIBS
22682 LIBS="-lxnet $LIBS"
22683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22684 /* end confdefs.h. */
22686 /* Override any GCC internal prototype to avoid an error.
22687 Use char because int might match the return type of a GCC
22688 builtin and then its argument prototype would still apply. */
22701 if ac_fn_c_try_link "$LINENO"; then :
22702 ac_cv_lib_xnet_socket=yes
22704 ac_cv_lib_xnet_socket=no
22706 rm -f core conftest.err conftest.$ac_objext \
22707 conftest$ac_exeext conftest.$ac_ext
22708 LIBS=$ac_check_lib_save_LIBS
22710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22711 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22712 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22713 cat >>confdefs.h <<_ACEOF
22714 #define HAVE_LIBXNET 1
22717 LIBS="-lxnet $LIBS"
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22722 $as_echo_n "checking for socket in -lsocket... " >&6; }
22723 if ${ac_cv_lib_socket_socket+:} false; then :
22724 $as_echo_n "(cached) " >&6
22726 ac_check_lib_save_LIBS=$LIBS
22727 LIBS="-lsocket $LIBS"
22728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22729 /* end confdefs.h. */
22731 /* Override any GCC internal prototype to avoid an error.
22732 Use char because int might match the return type of a GCC
22733 builtin and then its argument prototype would still apply. */
22746 if ac_fn_c_try_link "$LINENO"; then :
22747 ac_cv_lib_socket_socket=yes
22749 ac_cv_lib_socket_socket=no
22751 rm -f core conftest.err conftest.$ac_objext \
22752 conftest$ac_exeext conftest.$ac_ext
22753 LIBS=$ac_check_lib_save_LIBS
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22756 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22757 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22758 cat >>confdefs.h <<_ACEOF
22759 #define HAVE_LIBSOCKET 1
22762 LIBS="-lsocket $LIBS"
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22767 $as_echo_n "checking for socket in -linet... " >&6; }
22768 if ${ac_cv_lib_inet_socket+:} false; then :
22769 $as_echo_n "(cached) " >&6
22771 ac_check_lib_save_LIBS=$LIBS
22772 LIBS="-linet $LIBS"
22773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22774 /* end confdefs.h. */
22776 /* Override any GCC internal prototype to avoid an error.
22777 Use char because int might match the return type of a GCC
22778 builtin and then its argument prototype would still apply. */
22791 if ac_fn_c_try_link "$LINENO"; then :
22792 ac_cv_lib_inet_socket=yes
22794 ac_cv_lib_inet_socket=no
22796 rm -f core conftest.err conftest.$ac_objext \
22797 conftest$ac_exeext conftest.$ac_ext
22798 LIBS=$ac_check_lib_save_LIBS
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22801 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22802 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22803 cat >>confdefs.h <<_ACEOF
22804 #define HAVE_LIBINET 1
22807 LIBS="-linet $LIBS"
22817 # Check whether --with-tcp-wrappers was given.
22818 if test "${with_tcp_wrappers+set}" = set; then :
22819 withval=$with_tcp_wrappers;
22820 if test "x$withval" != "xno" ; then
22822 LIBS="$saved_LIBS -lwrap"
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22824 $as_echo_n "checking for library containing nanosleep... " >&6; }
22825 if ${ac_cv_search_nanosleep+:} false; then :
22826 $as_echo_n "(cached) " >&6
22828 ac_func_search_save_LIBS=$LIBS
22829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22830 /* end confdefs.h. */
22832 /* Override any GCC internal prototype to avoid an error.
22833 Use char because int might match the return type of a GCC
22834 builtin and then its argument prototype would still apply. */
22842 return nanosleep ();
22847 for ac_lib in '' rt; do
22848 if test -z "$ac_lib"; then
22849 ac_res="none required"
22852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22854 if ac_fn_c_try_link "$LINENO"; then :
22855 ac_cv_search_nanosleep=$ac_res
22857 rm -f core conftest.err conftest.$ac_objext \
22859 if ${ac_cv_search_nanosleep+:} false; then :
22863 if ${ac_cv_search_nanosleep+:} false; then :
22866 ac_cv_search_nanosleep=no
22868 rm conftest.$ac_ext
22869 LIBS=$ac_func_search_save_LIBS
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22872 $as_echo "$ac_cv_search_nanosleep" >&6; }
22873 ac_res=$ac_cv_search_nanosleep
22874 if test "$ac_res" != no; then :
22875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22880 $as_echo_n "checking for libwrap... " >&6; }
22881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22882 /* end confdefs.h. */
22884 #include <sys/types.h>
22886 int deny_severity = 0;
22887 int allow_severity = 0;
22888 struct request_info *req;
22900 if ac_fn_c_try_link "$LINENO"; then :
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22903 $as_echo "yes" >&6; }
22905 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22913 LIBS="$saved_LIBS -lwrap -lnsl"
22914 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22916 /* end confdefs.h. */
22918 #include <sys/types.h>
22920 int deny_severity = 0;
22921 int allow_severity = 0;
22922 struct request_info *req;
22934 if ac_fn_c_try_link "$LINENO"; then :
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22937 $as_echo "yes" >&6; }
22939 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22947 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22951 rm -f core conftest.err conftest.$ac_objext \
22952 conftest$ac_exeext conftest.$ac_ext
22956 rm -f core conftest.err conftest.$ac_objext \
22957 conftest$ac_exeext conftest.$ac_ext
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22965 $as_echo_n "checking for OpenSSL... " >&6; }
22967 # Check whether --with-openssl was given.
22968 if test "${with_openssl+set}" = set; then :
22969 withval=$with_openssl;
22970 with_openssl_directory=${withval}
22976 if test "x$with_openssl_directory" != "xno"; then
22977 OPENSSL_LIBS="-lssl -lcrypto"
22980 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22982 # Make sure the $with_openssl_directory also makes sense
22984 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22985 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22986 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22990 saved_LIBS="${LIBS}"
22991 saved_CFLAGS="${CFLAGS}"
22992 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22993 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22996 /* end confdefs.h. */
22998 #include <openssl/ssl.h>
23004 CRYPTO_set_id_callback(NULL);
23010 if ac_fn_c_try_link "$LINENO"; then :
23013 support_crypto="yes"
23018 support_crypto="no"
23022 rm -f core conftest.err conftest.$ac_objext \
23023 conftest$ac_exeext conftest.$ac_ext
23025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23026 /* end confdefs.h. */
23028 #include <openssl/evp.h>
23040 if ac_fn_c_try_link "$LINENO"; then :
23042 ac_cv_openssl_sha2="yes"
23046 ac_cv_openssl_sha2="no"
23050 rm -f core conftest.err conftest.$ac_objext \
23051 conftest$ac_exeext conftest.$ac_ext
23053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23054 /* end confdefs.h. */
23056 #include <openssl/evp.h>
23068 if ac_fn_c_try_link "$LINENO"; then :
23070 ac_cv_openssl_export="no"
23074 ac_cv_openssl_export="yes"
23078 rm -f core conftest.err conftest.$ac_objext \
23079 conftest$ac_exeext conftest.$ac_ext
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23082 $as_echo "$support_tls" >&6; }
23083 if test "$support_tls" = "yes"; then
23085 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23088 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23091 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23095 if test "$ac_cv_openssl_sha2" = "yes"; then
23097 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23101 if test "$ac_cv_openssl_export" = "yes"; then
23103 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23107 if test "$support_crypto" = "yes"; then
23108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23109 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23110 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23111 $as_echo_n "(cached) " >&6
23113 ac_check_lib_save_LIBS=$LIBS
23114 LIBS="-lcrypto $LIBS"
23115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23116 /* end confdefs.h. */
23118 /* Override any GCC internal prototype to avoid an error.
23119 Use char because int might match the return type of a GCC
23120 builtin and then its argument prototype would still apply. */
23124 char EVP_PKEY_encrypt_old ();
23128 return EVP_PKEY_encrypt_old ();
23133 if ac_fn_c_try_link "$LINENO"; then :
23134 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23136 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23138 rm -f core conftest.err conftest.$ac_objext \
23139 conftest$ac_exeext conftest.$ac_ext
23140 LIBS=$ac_check_lib_save_LIBS
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23143 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23144 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23146 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23152 LIBS="${saved_LIBS}"
23153 CFLAGS="${saved_CFLAGS}"
23156 support_crypto="no"
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23158 $as_echo "$support_tls" >&6; }
23161 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23170 $as_echo_n "checking for library containing dlopen... " >&6; }
23171 if ${ac_cv_search_dlopen+:} false; then :
23172 $as_echo_n "(cached) " >&6
23174 ac_func_search_save_LIBS=$LIBS
23175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23176 /* end confdefs.h. */
23178 /* Override any GCC internal prototype to avoid an error.
23179 Use char because int might match the return type of a GCC
23180 builtin and then its argument prototype would still apply. */
23193 for ac_lib in '' dl; do
23194 if test -z "$ac_lib"; then
23195 ac_res="none required"
23198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23200 if ac_fn_c_try_link "$LINENO"; then :
23201 ac_cv_search_dlopen=$ac_res
23203 rm -f core conftest.err conftest.$ac_objext \
23205 if ${ac_cv_search_dlopen+:} false; then :
23209 if ${ac_cv_search_dlopen+:} false; then :
23212 ac_cv_search_dlopen=no
23214 rm conftest.$ac_ext
23215 LIBS=$ac_func_search_save_LIBS
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23218 $as_echo "$ac_cv_search_dlopen" >&6; }
23219 ac_res=$ac_cv_search_dlopen
23220 if test "$ac_res" != no; then :
23221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23226 working_dir=`eval echo /opt/bacula/working`
23228 # Check whether --with-working-dir was given.
23229 if test "${with_working_dir+set}" = set; then :
23230 withval=$with_working_dir;
23231 if test "x$withval" != "xno" ; then
23232 working_dir=$withval
23243 # Check whether --with-archivedir was given.
23244 if test "${with_archivedir+set}" = set; then :
23245 withval=$with_archivedir;
23246 if test "x$withval" != "xno" ; then
23247 archivedir=$withval
23256 basename=`hostname`
23258 # Check whether --with-basename was given.
23259 if test "${with_basename+set}" = set; then :
23260 withval=$with_basename;
23261 if test "x$withval" != "xno" ; then
23271 hostname=`uname -n | cut -d '.' -f 1`
23272 if test x${hostname} = x ; then
23273 hostname="localhost"
23275 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23276 if test ! $? = 0; then
23277 hostname="localhost"
23280 # Check whether --with-hostname was given.
23281 if test "${with_hostname+set}" = set; then :
23282 withval=$with_hostname;
23283 if test "x$withval" != "xno" ; then
23294 scriptdir=`eval echo ${sysconfdir}`
23296 # Check whether --with-scriptdir was given.
23297 if test "${with_scriptdir+set}" = set; then :
23298 withval=$with_scriptdir;
23299 if test "x$withval" != "xno" ; then
23310 bsrdir=`eval echo /opt/bacula/bsr`
23312 # Check whether --with-bsrdir was given.
23313 if test "${with_bsrdir+set}" = set; then :
23314 withval=$with_bsrdir;
23315 if test "x$withval" != "xno" ; then
23325 logdir=`eval echo /opt/bacula/log`
23327 # Check whether --with-logdir was given.
23328 if test "${with_logdir+set}" = set; then :
23329 withval=$with_logdir;
23330 if test "x$withval" != "xno" ; then
23341 # ------------------------------------------
23342 # Where to place plugindir (plugin files)
23343 # ------------------------------------------
23344 plugindir=`eval echo ${libdir}`
23346 # Check whether --with-plugindir was given.
23347 if test "${with_plugindir+set}" = set; then :
23348 withval=$with_plugindir;
23349 if test "x$withval" != "xno" ; then
23360 dump_email=root@localhost
23362 # Check whether --with-dump-email was given.
23363 if test "${with_dump_email+set}" = set; then :
23364 withval=$with_dump_email;
23365 if test "x$withval" != "xno" ; then
23366 dump_email=$withval
23375 job_email=root@localhost
23377 # Check whether --with-job-email was given.
23378 if test "${with_job_email+set}" = set; then :
23379 withval=$with_job_email;
23380 if test "x$withval" != "xno" ; then
23390 smtp_host=localhost
23392 # Check whether --with-smtp_host was given.
23393 if test "${with_smtp_host+set}" = set; then :
23394 withval=$with_smtp_host;
23395 if test "x$withval" != "xno" ; then
23407 # Check whether --with-pid-dir was given.
23408 if test "${with_pid_dir+set}" = set; then :
23409 withval=$with_pid_dir;
23410 if test "x$withval" != "xno" ; then
23418 cat >>confdefs.h <<_ACEOF
23419 #define _PATH_BACULA_PIDDIR "$piddir"
23424 subsysdir=/var/run/subsys
23425 if test -d /var/run/subsys; then
23426 subsysdir=/var/run/subsys
23427 elif test -d /var/lock/subsys; then
23428 subsysdir=/var/lock/subsys
23430 subsysdir=/var/run/subsys
23433 # Check whether --with-subsys-dir was given.
23434 if test "${with_subsys_dir+set}" = set; then :
23435 withval=$with_subsys_dir;
23436 if test "x$withval" != "xno" ; then
23448 # Check whether --with-baseport was given.
23449 if test "${with_baseport+set}" = set; then :
23450 withval=$with_baseport;
23451 if test "x$withval" != "xno" ; then
23460 dir_port=`expr $baseport`
23461 fd_port=`expr $baseport + 1`
23462 sd_port=`expr $fd_port + 1`
23470 # Check whether --with-dir-password was given.
23471 if test "${with_dir_password+set}" = set; then :
23472 withval=$with_dir_password;
23473 if test "x$withval" != "xno" ; then
23474 dir_password=$withval
23481 if test "x$dir_password" = "x" ; then
23482 if test "x$OPENSSL" = "xnone" ; then
23483 key=`autoconf/randpass 33`
23485 key=`openssl rand -base64 33`
23492 # Check whether --with-fd-password was given.
23493 if test "${with_fd_password+set}" = set; then :
23494 withval=$with_fd_password;
23495 if test "x$withval" != "xno" ; then
23496 fd_password=$withval
23503 if test "x$fd_password" = "x" ; then
23504 if test "x$OPENSSL" = "xnone" ; then
23505 key=`autoconf/randpass 37`
23507 key=`openssl rand -base64 33`
23514 # Check whether --with-sd-password was given.
23515 if test "${with_sd_password+set}" = set; then :
23516 withval=$with_sd_password;
23517 if test "x$withval" != "xno" ; then
23518 sd_password=$withval
23525 if test "x$sd_password" = "x" ; then
23526 if test "x$OPENSSL" = "xnone" ; then
23527 key=`autoconf/randpass 41`
23529 key=`openssl rand -base64 33`
23536 # Check whether --with-mon-dir-password was given.
23537 if test "${with_mon_dir_password+set}" = set; then :
23538 withval=$with_mon_dir_password;
23539 if test "x$withval" != "xno" ; then
23540 mon_dir_password=$withval
23547 if test "x$mon_dir_password" = "x" ; then
23548 if test "x$OPENSSL" = "xnone" ; then
23549 key=`autoconf/randpass 33`
23551 key=`openssl rand -base64 33`
23553 mon_dir_password=$key
23558 # Check whether --with-mon-fd-password was given.
23559 if test "${with_mon_fd_password+set}" = set; then :
23560 withval=$with_mon_fd_password;
23561 if test "x$withval" != "xno" ; then
23562 mon_fd_password=$withval
23569 if test "x$mon_fd_password" = "x" ; then
23570 if test "x$OPENSSL" = "xnone" ; then
23571 key=`autoconf/randpass 37`
23573 key=`openssl rand -base64 33`
23575 mon_fd_password=$key
23580 # Check whether --with-mon-sd-password was given.
23581 if test "${with_mon_sd_password+set}" = set; then :
23582 withval=$with_mon_sd_password;
23583 if test "x$withval" != "xno" ; then
23584 mon_sd_password=$withval
23591 if test "x$mon_sd_password" = "x" ; then
23592 if test "x$OPENSSL" = "xnone" ; then
23593 key=`autoconf/randpass 41`
23595 key=`openssl rand -base64 33`
23597 mon_sd_password=$key
23609 # Check whether --with-db_name was given.
23610 if test "${with_db_name+set}" = set; then :
23611 withval=$with_db_name;
23612 if test "x$withval" != "x" ; then
23623 # Check whether --with-db_user was given.
23624 if test "${with_db_user+set}" = set; then :
23625 withval=$with_db_user;
23626 if test "x$withval" != "x" ; then
23637 # Check whether --with-db_password was given.
23638 if test "${with_db_password+set}" = set; then :
23639 withval=$with_db_password;
23640 if test "x$withval" != "x" ; then
23641 db_password=$withval
23651 # Check whether --with-db_port was given.
23652 if test "${with_db_port+set}" = set; then :
23653 withval=$with_db_port;
23654 if test "x$withval" != "x" ; then
23664 # Check whether --with-db_ssl_options was given.
23665 if test "${with_db_ssl_options+set}" = set; then :
23666 withval=$with_db_ssl_options;
23667 if test "x$withval" != "x" ; then
23668 db_ssl_options=$withval
23677 # Handle users and groups for each daemon
23681 # Check whether --with-dir_user was given.
23682 if test "${with_dir_user+set}" = set; then :
23683 withval=$with_dir_user;
23684 if test "x$withval" != "x" ; then
23694 # Check whether --with-dir_group was given.
23695 if test "${with_dir_group+set}" = set; then :
23696 withval=$with_dir_group;
23697 if test "x$withval" != "x" ; then
23707 # Check whether --with-sd_user was given.
23708 if test "${with_sd_user+set}" = set; then :
23709 withval=$with_sd_user;
23710 if test "x$withval" != "x" ; then
23720 # Check whether --with-sd_group was given.
23721 if test "${with_sd_group+set}" = set; then :
23722 withval=$with_sd_group;
23723 if test "x$withval" != "x" ; then
23733 # Check whether --with-fd_user was given.
23734 if test "${with_fd_user+set}" = set; then :
23735 withval=$with_fd_user;
23736 if test "x$withval" != "x" ; then
23746 # Check whether --with-fd_group was given.
23747 if test "${with_fd_group+set}" = set; then :
23748 withval=$with_fd_group;
23749 if test "x$withval" != "x" ; then
23766 # Check whether --with-sbin-perm was given.
23767 if test "${with_sbin_perm+set}" = set; then :
23768 withval=$with_sbin_perm;
23769 if test "x$withval" != "x" ; then
23779 support_batch_insert=yes
23780 # Check whether --enable-batch-insert was given.
23781 if test "${enable_batch_insert+set}" = set; then :
23782 enableval=$enable_batch_insert;
23783 if test x$enableval = xno; then
23784 support_batch_insert=no
23791 if test x$support_batch_insert = xyes; then
23793 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23802 $as_echo_n "checking for PostgreSQL support... " >&6; }
23804 # Check whether --with-postgresql was given.
23805 if test "${with_postgresql+set}" = set; then :
23806 withval=$with_postgresql;
23807 if test "$withval" != "no"; then
23808 if test "$withval" = "yes"; then
23809 PG_CONFIG=`which pg_config 2>/dev/null`
23810 if test -n "$PG_CONFIG"; then
23811 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23812 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23813 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23814 elif test -f /usr/local/include/libpq-fe.h; then
23815 POSTGRESQL_INCDIR=/usr/local/include
23816 if test -d /usr/local/lib64; then
23817 POSTGRESQL_LIBDIR=/usr/local/lib64
23819 POSTGRESQL_LIBDIR=/usr/local/lib
23821 POSTGRESQL_BINDIR=/usr/local/bin
23822 elif test -f /usr/include/libpq-fe.h; then
23823 POSTGRESQL_INCDIR=/usr/include
23824 if test -d /usr/lib64; then
23825 POSTGRESQL_LIBDIR=/usr/lib64
23827 POSTGRESQL_LIBDIR=/usr/lib
23829 POSTGRESQL_BINDIR=/usr/bin
23830 elif test -f /usr/include/pgsql/libpq-fe.h; then
23831 POSTGRESQL_INCDIR=/usr/include/pgsql
23832 if test -d /usr/lib64/pgsql; then
23833 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23835 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23837 POSTGRESQL_BINDIR=/usr/bin
23838 elif test -f /usr/include/postgresql/libpq-fe.h; then
23839 POSTGRESQL_INCDIR=/usr/include/postgresql
23840 if test -d /usr/lib64/postgresql; then
23841 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23843 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23845 POSTGRESQL_BINDIR=/usr/bin
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23848 $as_echo "no" >&6; }
23849 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23851 elif test -f $withval/include/libpq-fe.h; then
23852 POSTGRESQL_INCDIR=$withval/include
23853 POSTGRESQL_LIBDIR=$withval/lib
23854 POSTGRESQL_BINDIR=$withval/bin
23855 elif test -f $withval/include/postgresql/libpq-fe.h; then
23856 POSTGRESQL_INCDIR=$withval/include/postgresql
23857 if test -d $withval/lib64; then
23858 POSTGRESQL_LIBDIR=$withval/lib64
23860 POSTGRESQL_LIBDIR=$withval/lib
23862 POSTGRESQL_BINDIR=$withval/bin
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23865 $as_echo "no" >&6; }
23866 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23869 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23872 $as_echo "yes" >&6; }
23874 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23875 if test x$use_libtool != xno; then
23876 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23878 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23880 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23881 if test "x$ac_cv_func_crypt" = xyes; then :
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23885 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23886 if ${ac_cv_lib_crypt_crypt+:} false; then :
23887 $as_echo_n "(cached) " >&6
23889 ac_check_lib_save_LIBS=$LIBS
23890 LIBS="-lcrypt $LIBS"
23891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23892 /* end confdefs.h. */
23894 /* Override any GCC internal prototype to avoid an error.
23895 Use char because int might match the return type of a GCC
23896 builtin and then its argument prototype would still apply. */
23909 if ac_fn_c_try_link "$LINENO"; then :
23910 ac_cv_lib_crypt_crypt=yes
23912 ac_cv_lib_crypt_crypt=no
23914 rm -f core conftest.err conftest.$ac_objext \
23915 conftest$ac_exeext conftest.$ac_ext
23916 LIBS=$ac_check_lib_save_LIBS
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23919 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23920 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23921 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23926 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23927 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23929 if test -z "${db_backends}"; then
23930 db_backends="PostgreSQL"
23932 db_backends="${db_backends} PostgreSQL"
23934 if test -z "${DB_BACKENDS}"; then
23935 DB_BACKENDS="postgresql"
23937 DB_BACKENDS="${DB_BACKENDS} postgresql"
23940 if test "x$support_batch_insert" = "xyes"; then
23941 saved_LDFLAGS="${LDFLAGS}"
23942 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23943 saved_LIBS="${LIBS}"
23944 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23945 LIBS="${saved_LIBS} -lcrypt"
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23949 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23950 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23951 $as_echo_n "(cached) " >&6
23953 ac_check_lib_save_LIBS=$LIBS
23955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23956 /* end confdefs.h. */
23958 /* Override any GCC internal prototype to avoid an error.
23959 Use char because int might match the return type of a GCC
23960 builtin and then its argument prototype would still apply. */
23964 char PQisthreadsafe ();
23968 return PQisthreadsafe ();
23973 if ac_fn_c_try_link "$LINENO"; then :
23974 ac_cv_lib_pq_PQisthreadsafe=yes
23976 ac_cv_lib_pq_PQisthreadsafe=no
23978 rm -f core conftest.err conftest.$ac_objext \
23979 conftest$ac_exeext conftest.$ac_ext
23980 LIBS=$ac_check_lib_save_LIBS
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23983 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23984 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23986 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23991 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23992 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23993 $as_echo_n "(cached) " >&6
23995 ac_check_lib_save_LIBS=$LIBS
23997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23998 /* end confdefs.h. */
24000 /* Override any GCC internal prototype to avoid an error.
24001 Use char because int might match the return type of a GCC
24002 builtin and then its argument prototype would still apply. */
24006 char PQputCopyData ();
24010 return PQputCopyData ();
24015 if ac_fn_c_try_link "$LINENO"; then :
24016 ac_cv_lib_pq_PQputCopyData=yes
24018 ac_cv_lib_pq_PQputCopyData=no
24020 rm -f core conftest.err conftest.$ac_objext \
24021 conftest$ac_exeext conftest.$ac_ext
24022 LIBS=$ac_check_lib_save_LIBS
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24025 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24026 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24028 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24032 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24033 if test $support_batch_insert = yes ; then
24035 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24037 if test -z "${batch_insert_db_backends}"; then
24038 batch_insert_db_backends="PostgreSQL"
24040 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24045 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24047 echo "WARNING: Your PostgreSQL client library is too old to detect "
24048 echo "if it was compiled with --enable-thread-safety, consider to "
24049 echo "upgrade it in order to avoid problems with Batch insert mode"
24052 LDFLAGS="${saved_LDFLAGS}"
24053 LIBS="${saved_LIBS}"
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24057 $as_echo "no" >&6; }
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24063 $as_echo "no" >&6; }
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24075 $as_echo_n "checking for MySQL support... " >&6; }
24077 # Check whether --with-mysql was given.
24078 if test "${with_mysql+set}" = set; then :
24079 withval=$with_mysql;
24080 if test "$withval" != "no"; then
24081 if test "$withval" = "yes"; then
24083 # This code is very broken on older systems
24085 # MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24086 # if test "x${MYSQL_CONFIG}" != x; then
24087 # MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24088 # ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24089 # if test $? = 0 ; then
24090 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24091 # MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24093 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r | sed -e 's/.*-L//' -e 's/ .*//'`
24094 # MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24097 # if [ "x${MYSQL_LIB}" = x -o "x${MYSQL_INCDIR}" = x ]; then
24098 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24099 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24100 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24101 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24102 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24104 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24106 MYSQL_BINDIR=/usr/local/mysql/bin
24107 elif test -f /usr/include/mysql/mysql.h; then
24108 MYSQL_INCDIR=/usr/include/mysql
24109 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24110 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24111 MYSQL_LIBDIR=/usr/lib64/mysql
24112 elif test -f /usr/lib64/libmysqlclient_r.a \
24113 -o -f /usr/lib64/libmysqlclient_r.so; then
24114 MYSQL_LIBDIR=/usr/lib64
24115 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24116 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24117 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24118 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24119 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24120 MYSQL_LIBDIR=/usr/lib/mysql
24122 MYSQL_LIBDIR=/usr/lib
24124 MYSQL_BINDIR=/usr/bin
24125 elif test -f /usr/include/mysql.h; then
24126 MYSQL_INCDIR=/usr/include
24127 if test -f /usr/lib64/libmysqlclient_r.a \
24128 -o -f /usr/lib64/libmysqlclient_r.so; then
24129 MYSQL_LIBDIR=/usr/lib64
24131 MYSQL_LIBDIR=/usr/lib
24133 MYSQL_BINDIR=/usr/bin
24134 elif test -f /usr/local/include/mysql/mysql.h; then
24135 MYSQL_INCDIR=/usr/local/include/mysql
24136 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24137 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24138 MYSQL_LIBDIR=/usr/local/lib64/mysql
24140 MYSQL_LIBDIR=/usr/local/lib/mysql
24142 MYSQL_BINDIR=/usr/local/bin
24143 elif test -f /usr/local/include/mysql.h; then
24144 MYSQL_INCDIR=/usr/local/include
24145 if test -f /usr/local/lib64/libmysqlclient_r.a \
24146 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24147 MYSQL_LIBDIR=/usr/local/lib64
24149 MYSQL_LIBDIR=/usr/local/lib
24151 MYSQL_BINDIR=/usr/local/bin
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24154 $as_echo "no" >&6; }
24155 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24158 if test -f $withval/include/mysql/mysql.h; then
24159 MYSQL_INCDIR=$withval/include/mysql
24160 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24161 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24162 MYSQL_LIBDIR=$withval/lib64/mysql
24163 elif test -f $withval/lib64/libmysqlclient_r.a \
24164 -o -f $withval/lib64/libmysqlclient_r.so; then
24165 MYSQL_LIBDIR=$withval/lib64
24166 elif test -f $withval/lib/libmysqlclient_r.a \
24167 -o -f $withval/lib/libmysqlclient_r.so; then
24168 MYSQL_LIBDIR=$withval/lib
24170 MYSQL_LIBDIR=$withval/lib/mysql
24172 MYSQL_BINDIR=$withval/bin
24173 elif test -f $withval/include/mysql.h; then
24174 MYSQL_INCDIR=$withval/include
24175 if test -f $withval/lib64/libmysqlclient_r.a \
24176 -o -f $withval/lib64/libmysqlclient_r.so; then
24177 MYSQL_LIBDIR=$withval/lib64
24179 MYSQL_LIBDIR=$withval/lib
24181 MYSQL_BINDIR=$withval/bin
24182 elif test -f $withval/mysql.h; then
24183 MYSQL_INCDIR=$withval
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24185 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24186 case $MYSQL_INCDIR in
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24189 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24190 if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24191 -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24193 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24194 MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24196 MYSQL_BINDIR=$prefix/lib/mysql55/bin
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24200 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24201 if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24202 -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24204 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24205 MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24207 MYSQL_BINDIR=$prefix/lib/mysql51/bin
24210 if test -z "${MYSQL_LIBDIR}" ; then
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24212 $as_echo "no" >&6; }
24213 as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24217 $as_echo "no" >&6; }
24218 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24221 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24222 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24223 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24224 if test x$use_libtool != xno; then
24225 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24227 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24229 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24231 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24234 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24237 $as_echo "yes" >&6; }
24239 if test -z "${db_backends}" ; then
24240 db_backends="MySQL"
24242 db_backends="${db_backends} MySQL"
24244 if test -z "${DB_BACKENDS}" ; then
24245 DB_BACKENDS="mysql"
24247 DB_BACKENDS="${DB_BACKENDS} mysql"
24250 if test "x$support_batch_insert" = "xyes"; then
24251 saved_LDFLAGS="${LDFLAGS}"
24252 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24253 saved_LIBS="${LIBS}"
24254 LIBS="${saved_LIBS} -lz"
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24257 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24258 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24259 $as_echo_n "(cached) " >&6
24261 ac_check_lib_save_LIBS=$LIBS
24262 LIBS="-lmysqlclient_r $LIBS"
24263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24264 /* end confdefs.h. */
24266 /* Override any GCC internal prototype to avoid an error.
24267 Use char because int might match the return type of a GCC
24268 builtin and then its argument prototype would still apply. */
24272 char mysql_thread_safe ();
24276 return mysql_thread_safe ();
24281 if ac_fn_c_try_link "$LINENO"; then :
24282 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24284 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24286 rm -f core conftest.err conftest.$ac_objext \
24287 conftest$ac_exeext conftest.$ac_ext
24288 LIBS=$ac_check_lib_save_LIBS
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24291 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24292 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24294 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24298 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24299 if test -z "${batch_insert_db_backends}"; then
24300 batch_insert_db_backends="MySQL"
24302 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24306 LDFLAGS="${saved_LDFLAGS}"
24307 LIBS="${saved_LIBS}"
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24311 $as_echo "no" >&6; }
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24317 $as_echo "no" >&6; }
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24323 $as_echo_n "checking for MySQL embedded support... " >&6; }
24325 # Check whether --with-embedded-mysql was given.
24326 if test "${with_embedded_mysql+set}" = set; then :
24327 withval=$with_embedded_mysql;
24328 if test "$withval" != "no"; then
24329 if test "$withval" = "yes"; then
24330 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24331 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24332 if test -d /usr/local/mysql/lib64/mysql; then
24333 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24335 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24337 MYSQL_BINDIR=/usr/local/mysql/bin
24338 elif test -f /usr/include/mysql/mysql.h; then
24339 MYSQL_INCDIR=/usr/include/mysql
24340 if test -d /usr/lib64/mysql; then
24341 MYSQL_LIBDIR=/usr/lib64/mysql
24343 MYSQL_LIBDIR=/usr/lib/mysql
24345 MYSQL_BINDIR=/usr/bin
24346 elif test -f /usr/include/mysql.h; then
24347 MYSQL_INCDIR=/usr/include
24348 if test -d /usr/lib64; then
24349 MYSQL_LIBDIR=/usr/lib64
24351 MYSQL_LIBDIR=/usr/lib
24353 MYSQL_BINDIR=/usr/bin
24354 elif test -f /usr/local/include/mysql/mysql.h; then
24355 MYSQL_INCDIR=/usr/local/include/mysql
24356 if test -d /usr/local/lib64/mysql; then
24357 MYSQL_LIBDIR=/usr/local/lib64/mysql
24359 MYSQL_LIBDIR=/usr/local/lib/mysql
24361 MYSQL_BINDIR=/usr/local/bin
24362 elif test -f /usr/local/include/mysql.h; then
24363 MYSQL_INCDIR=/usr/local/include
24364 if test -d /usr/local/lib64; then
24365 MYSQL_LIBDIR=/usr/local/lib64
24367 MYSQL_LIBDIR=/usr/local/lib
24369 MYSQL_BINDIR=/usr/local/bin
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24372 $as_echo "no" >&6; }
24373 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24376 if test -f $withval/include/mysql/mysql.h; then
24377 MYSQL_INCDIR=$withval/include/mysql
24378 if test -d $withval/lib64/mysql; then
24379 MYSQL_LIBDIR=$withval/lib64/mysql
24381 MYSQL_LIBDIR=$withval/lib/mysql
24383 MYSQL_BINDIR=$withval/bin
24384 elif test -f $withval/include/mysql.h; then
24385 MYSQL_INCDIR=$withval/include
24386 if test -d $withval/lib64; then
24387 MYSQL_LIBDIR=$withval/lib64
24389 MYSQL_LIBDIR=$withval/lib
24391 MYSQL_BINDIR=$withval/bin
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24394 $as_echo "no" >&6; }
24395 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24398 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24399 if test x$use_libtool != xno; then
24400 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24402 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24404 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24405 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24408 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24411 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24414 $as_echo "yes" >&6; }
24416 if test -z "${db_backends}"; then
24417 db_backends="MySQL"
24419 db_backends="${db_backends} MySQL"
24421 if test -z "${DB_BACKENDS}"; then
24422 DB_BACKENDS="mysql"
24424 DB_BACKENDS="${DB_BACKENDS} mysql"
24427 if test "x$support_batch_insert" = "xyes"; then
24428 saved_LDFLAGS="${LDFLAGS}"
24429 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24430 saved_LIBS="${LIBS}"
24431 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24434 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24435 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24436 $as_echo_n "(cached) " >&6
24438 ac_check_lib_save_LIBS=$LIBS
24439 LIBS="-lmysqlclient_r $LIBS"
24440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24441 /* end confdefs.h. */
24443 /* Override any GCC internal prototype to avoid an error.
24444 Use char because int might match the return type of a GCC
24445 builtin and then its argument prototype would still apply. */
24449 char mysql_thread_safe ();
24453 return mysql_thread_safe ();
24458 if ac_fn_c_try_link "$LINENO"; then :
24459 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24461 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24463 rm -f core conftest.err conftest.$ac_objext \
24464 conftest$ac_exeext conftest.$ac_ext
24465 LIBS=$ac_check_lib_save_LIBS
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24468 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24469 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24471 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24475 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24476 if test -z "${batch_insert_db_backends}"; then
24477 batch_insert_db_backends="MySQL"
24479 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24483 LDFLAGS="${saved_LDFLAGS}"
24484 LIBS="${saved_LIBS}"
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24488 $as_echo "no" >&6; }
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24494 $as_echo "no" >&6; }
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24507 $as_echo_n "checking for SQLite3 support... " >&6; }
24509 # Check whether --with-sqlite3 was given.
24510 if test "${with_sqlite3+set}" = set; then :
24511 withval=$with_sqlite3;
24512 if test "$withval" != "no"; then
24513 if test "$withval" = "yes"; then
24514 if test -f /usr/local/include/sqlite3.h; then
24515 SQLITE_INCDIR=/usr/local/include
24516 if test -d /usr/local/lib64; then
24517 SQLITE_LIBDIR=/usr/local/lib64
24519 SQLITE_LIBDIR=/usr/local/lib
24521 SQLITE_BINDIR=/usr/local/bin
24522 elif test -f /usr/include/sqlite3.h; then
24523 SQLITE_INCDIR=/usr/include
24524 if test -d /usr/lib64; then
24525 SQLITE_LIBDIR=/usr/lib64
24527 SQLITE_LIBDIR=/usr/lib
24529 SQLITE_BINDIR=/usr/bin
24530 elif test -f $prefix/include/sqlite3.h; then
24531 SQLITE_INCDIR=$prefix/include
24532 if test -d $prefix/lib64; then
24533 SQLITE_LIBDIR=$prefix/lib64
24535 SQLITE_LIBDIR=$prefix/lib
24537 SQLITE_BINDIR=$prefix/bin
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24540 $as_echo "no" >&6; }
24541 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24544 if test -f $withval/sqlite3.h; then
24545 SQLITE_INCDIR=$withval
24546 SQLITE_LIBDIR=$withval
24547 SQLITE_BINDIR=$withval
24548 elif test -f $withval/include/sqlite3.h; then
24549 SQLITE_INCDIR=$withval/include
24550 if test -d $withval/lib64; then
24551 SQLITE_LIBDIR=$withval/lib64
24553 SQLITE_LIBDIR=$withval/lib
24555 SQLITE_BINDIR=$withval/bin
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24558 $as_echo "no" >&6; }
24559 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24562 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24563 if test x$use_libtool != xno; then
24564 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24566 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24568 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24569 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24572 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24575 $as_echo "yes" >&6; }
24577 if test -z "${db_backends}"; then
24578 db_backends="SQLite3"
24580 db_backends="${db_backends} SQLite3"
24582 if test -z "${DB_BACKENDS}"; then
24583 DB_BACKENDS="sqlite3"
24585 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24588 if test "x$support_batch_insert" = "xyes"; then
24589 saved_LDFLAGS="${LDFLAGS}"
24590 LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24593 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24594 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24595 $as_echo_n "(cached) " >&6
24597 ac_check_lib_save_LIBS=$LIBS
24598 LIBS="-lsqlite3 $LIBS"
24599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24600 /* end confdefs.h. */
24602 /* Override any GCC internal prototype to avoid an error.
24603 Use char because int might match the return type of a GCC
24604 builtin and then its argument prototype would still apply. */
24608 char sqlite3_threadsafe ();
24612 return sqlite3_threadsafe ();
24617 if ac_fn_c_try_link "$LINENO"; then :
24618 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24620 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24622 rm -f core conftest.err conftest.$ac_objext \
24623 conftest$ac_exeext conftest.$ac_ext
24624 LIBS=$ac_check_lib_save_LIBS
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24627 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24628 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24630 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24634 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24635 if test -z "${batch_insert_db_backends}"; then
24636 batch_insert_db_backends="SQLite3"
24638 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24642 LDFLAGS="${saved_LDFLAGS}"
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24646 $as_echo "no" >&6; }
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24652 $as_echo "no" >&6; }
24662 if test -z "${batch_insert_db_backends}"; then
24663 batch_insert_db_backends="None"
24666 if test "x${db_backends}" = "x" ; then
24669 echo "You have not specified either --enable-client-only or one of the"
24670 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24671 echo "This is not permitted. Please reconfigure."
24673 echo "Aborting the configuration ..."
24679 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24681 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24682 if test x$use_libtool = xno; then
24683 SHARED_CATALOG_TARGETS=""
24685 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24689 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24691 if test x$use_libtool = xno; then
24694 echo "You have specified two or more of the"
24695 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24696 echo "This is not permitted when not using libtool Please reconfigure."
24698 echo "Aborting the configuration ..."
24704 SHARED_CATALOG_TARGETS=""
24705 for db_type in ${DB_BACKENDS}
24707 if test -z "${SHARED_CATALOG_TARGETS}"; then
24708 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24710 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24716 if test x$use_libtool = xyes; then
24726 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24729 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24730 if test -z "$CCOPTS"; then
24731 CCOPTS='-g -O2 -Wall'
24738 largefile_support="no"
24740 # Check whether --enable-largefile was given.
24741 if test "${enable_largefile+set}" = set; then :
24742 enableval=$enable_largefile;
24745 if test "$enable_largefile" != no; then
24746 if test -n "$ac_tool_prefix"; then
24747 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24748 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24750 $as_echo_n "checking for $ac_word... " >&6; }
24751 if ${ac_cv_prog_GETCONF+:} false; then :
24752 $as_echo_n "(cached) " >&6
24754 if test -n "$GETCONF"; then
24755 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24758 for as_dir in $PATH
24761 test -z "$as_dir" && as_dir=.
24762 for ac_exec_ext in '' $ac_executable_extensions; do
24763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24764 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24774 GETCONF=$ac_cv_prog_GETCONF
24775 if test -n "$GETCONF"; then
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24777 $as_echo "$GETCONF" >&6; }
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24780 $as_echo "no" >&6; }
24785 if test -z "$ac_cv_prog_GETCONF"; then
24786 ac_ct_GETCONF=$GETCONF
24787 # Extract the first word of "getconf", so it can be a program name with args.
24788 set dummy getconf; ac_word=$2
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24790 $as_echo_n "checking for $ac_word... " >&6; }
24791 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24792 $as_echo_n "(cached) " >&6
24794 if test -n "$ac_ct_GETCONF"; then
24795 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24798 for as_dir in $PATH
24801 test -z "$as_dir" && as_dir=.
24802 for ac_exec_ext in '' $ac_executable_extensions; do
24803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24804 ac_cv_prog_ac_ct_GETCONF="getconf"
24805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24814 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24815 if test -n "$ac_ct_GETCONF"; then
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24817 $as_echo "$ac_ct_GETCONF" >&6; }
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24820 $as_echo "no" >&6; }
24823 if test "x$ac_ct_GETCONF" = x; then
24826 case $cross_compiling:$ac_tool_warned in
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24830 ac_tool_warned=yes ;;
24832 GETCONF=$ac_ct_GETCONF
24835 GETCONF="$ac_cv_prog_GETCONF"
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24839 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24840 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24841 $as_echo_n "(cached) " >&6
24843 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24844 ac_cv_sys_largefile_CFLAGS=no
24846 # IRIX 6.2 and later require cc -n32.
24847 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24848 if test "$GCC" != yes; then
24849 ac_cv_sys_largefile_CFLAGS=-n32
24852 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24854 /* end confdefs.h. */
24864 if ac_fn_c_try_link "$LINENO"; then :
24867 ac_cv_sys_largefile_CFLAGS=no
24869 rm -f core conftest.err conftest.$ac_objext \
24870 conftest$ac_exeext conftest.$ac_ext
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24876 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24878 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24879 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24880 $as_echo_n "(cached) " >&6
24882 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24883 ac_cv_sys_largefile_LDFLAGS=no
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24888 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24890 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24891 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24892 $as_echo_n "(cached) " >&6
24894 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24895 ac_cv_sys_largefile_LIBS=no
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24900 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24902 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24905 -D_FILE_OFFSET_BITS=*) ;;
24906 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24907 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24912 case "$CPPFLAGS" in
24913 '') CPPFLAGS="$ac_flag" ;;
24914 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24922 '') CFLAGS="$ac_flag" ;;
24923 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24928 case "$ac_cv_sys_largefile_LDFLAGS" in
24932 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24933 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24936 case "$ac_cv_sys_largefile_LIBS" in
24940 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24941 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24945 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24946 if ${ac_cv_sys_file_offset_bits+:} false; then :
24947 $as_echo_n "(cached) " >&6
24949 ac_cv_sys_file_offset_bits=no
24950 ac_cv_sys_file_offset_bits=64
24951 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24953 -D_FILE_OFFSET_BITS)
24954 ac_cv_sys_file_offset_bits=1 ;;
24955 -D_FILE_OFFSET_BITS=*)
24956 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24962 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24963 if test "$ac_cv_sys_file_offset_bits" != no; then
24965 cat >>confdefs.h <<_ACEOF
24966 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24971 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24972 if ${ac_cv_sys_largefile_source+:} false; then :
24973 $as_echo_n "(cached) " >&6
24975 ac_cv_sys_largefile_source=no
24976 ac_cv_sys_largefile_source=1
24977 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24979 -D_LARGEFILE_SOURCE)
24980 ac_cv_sys_largefile_source=1 ;;
24981 -D_LARGEFILE_SOURCE=*)
24982 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24988 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24989 if test "$ac_cv_sys_largefile_source" != no; then
24991 cat >>confdefs.h <<_ACEOF
24992 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24997 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24998 if ${ac_cv_sys_large_files+:} false; then :
24999 $as_echo_n "(cached) " >&6
25001 ac_cv_sys_large_files=no
25002 ac_cv_sys_large_files=1
25003 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25006 ac_cv_sys_large_files=1 ;;
25008 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25014 $as_echo "$ac_cv_sys_large_files" >&6; }
25015 if test "$ac_cv_sys_large_files" != no; then
25017 cat >>confdefs.h <<_ACEOF
25018 #define _LARGE_FILES $ac_cv_sys_large_files
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25026 $as_echo_n "checking for X... " >&6; }
25029 # Check whether --with-x was given.
25030 if test "${with_x+set}" = set; then :
25034 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25035 if test "x$with_x" = xno; then
25036 # The user explicitly disabled X.
25039 case $x_includes,$x_libraries in #(
25040 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25041 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25042 $as_echo_n "(cached) " >&6
25044 # One or both of the vars are not set, and there is no cached value.
25045 ac_x_includes=no ac_x_libraries=no
25046 rm -f -r conftest.dir
25047 if mkdir conftest.dir; then
25049 cat >Imakefile <<'_ACEOF'
25051 @echo incroot='${INCROOT}'
25053 @echo usrlibdir='${USRLIBDIR}'
25055 @echo libdir='${LIBDIR}'
25057 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25058 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25059 for ac_var in incroot usrlibdir libdir; do
25060 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25062 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25063 for ac_extension in a so sl dylib la dll; do
25064 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25065 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25066 ac_im_usrlibdir=$ac_im_libdir; break
25069 # Screen out bogus values from the imake configuration. They are
25070 # bogus both because they are the default anyway, and because
25071 # using them would break gcc on systems where it needs fixed includes.
25072 case $ac_im_incroot in
25073 /usr/include) ac_x_includes= ;;
25074 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25076 case $ac_im_usrlibdir in
25077 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25078 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25082 rm -f -r conftest.dir
25085 # Standard set of common directories for X headers.
25086 # Check X11 before X11Rn because it is often a symlink to the current release.
25100 /usr/local/X11/include
25101 /usr/local/X11R7/include
25102 /usr/local/X11R6/include
25103 /usr/local/X11R5/include
25104 /usr/local/X11R4/include
25106 /usr/local/include/X11
25107 /usr/local/include/X11R7
25108 /usr/local/include/X11R6
25109 /usr/local/include/X11R5
25110 /usr/local/include/X11R4
25114 /usr/XFree86/include/X11
25118 /usr/unsupported/include
25119 /usr/athena/include
25120 /usr/local/x11r5/include
25121 /usr/lpp/Xamples/include
25123 /usr/openwin/include
25124 /usr/openwin/share/include'
25126 if test "$ac_x_includes" = no; then
25127 # Guess where to find include files, by looking for Xlib.h.
25128 # First, try using that file with no special directory specified.
25129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25130 /* end confdefs.h. */
25131 #include <X11/Xlib.h>
25133 if ac_fn_c_try_cpp "$LINENO"; then :
25134 # We can compile using X headers with no special include directory.
25137 for ac_dir in $ac_x_header_dirs; do
25138 if test -r "$ac_dir/X11/Xlib.h"; then
25139 ac_x_includes=$ac_dir
25144 rm -f conftest.err conftest.i conftest.$ac_ext
25145 fi # $ac_x_includes = no
25147 if test "$ac_x_libraries" = no; then
25148 # Check for the libraries.
25149 # See if we find them without any special options.
25150 # Don't add to $LIBS permanently.
25153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25154 /* end confdefs.h. */
25155 #include <X11/Xlib.h>
25164 if ac_fn_c_try_link "$LINENO"; then :
25166 # We can link X programs with no special library path.
25170 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25172 # Don't even attempt the hair of trying to link an X program!
25173 for ac_extension in a so sl dylib la dll; do
25174 if test -r "$ac_dir/libX11.$ac_extension"; then
25175 ac_x_libraries=$ac_dir
25181 rm -f core conftest.err conftest.$ac_objext \
25182 conftest$ac_exeext conftest.$ac_ext
25183 fi # $ac_x_libraries = no
25185 case $ac_x_includes,$ac_x_libraries in #(
25186 no,* | *,no | *\'*)
25187 # Didn't find X, or a directory has "'" in its name.
25188 ac_cv_have_x="have_x=no";; #(
25190 # Record where we found X for the cache.
25191 ac_cv_have_x="have_x=yes\
25192 ac_x_includes='$ac_x_includes'\
25193 ac_x_libraries='$ac_x_libraries'"
25199 eval "$ac_cv_have_x"
25202 if test "$have_x" != yes; then
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25204 $as_echo "$have_x" >&6; }
25207 # If each of the values was on the command line, it overrides each guess.
25208 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25209 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25210 # Update the cache value to reflect the command line values.
25211 ac_cv_have_x="have_x=yes\
25212 ac_x_includes='$x_includes'\
25213 ac_x_libraries='$x_libraries'"
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25215 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25218 if test "$no_x" = yes; then
25219 # Not all programs may use this symbol, but it does not hurt to define it.
25221 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25223 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25225 if test -n "$x_includes"; then
25226 X_CFLAGS="$X_CFLAGS -I$x_includes"
25229 # It would also be nice to do this for all -L options, not just this one.
25230 if test -n "$x_libraries"; then
25231 X_LIBS="$X_LIBS -L$x_libraries"
25232 # For Solaris; some versions of Sun CC require a space after -R and
25233 # others require no space. Words are not sufficient . . . .
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25235 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25236 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25237 ac_xsave_c_werror_flag=$ac_c_werror_flag
25238 ac_c_werror_flag=yes
25239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25240 /* end confdefs.h. */
25250 if ac_fn_c_try_link "$LINENO"; then :
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25252 $as_echo "no" >&6; }
25253 X_LIBS="$X_LIBS -R$x_libraries"
25255 LIBS="$ac_xsave_LIBS -R $x_libraries"
25256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25257 /* end confdefs.h. */
25267 if ac_fn_c_try_link "$LINENO"; then :
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25269 $as_echo "yes" >&6; }
25270 X_LIBS="$X_LIBS -R $x_libraries"
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25273 $as_echo "neither works" >&6; }
25275 rm -f core conftest.err conftest.$ac_objext \
25276 conftest$ac_exeext conftest.$ac_ext
25278 rm -f core conftest.err conftest.$ac_objext \
25279 conftest$ac_exeext conftest.$ac_ext
25280 ac_c_werror_flag=$ac_xsave_c_werror_flag
25281 LIBS=$ac_xsave_LIBS
25284 # Check for system-dependent libraries X programs must link with.
25285 # Do this before checking for the system-independent R6 libraries
25286 # (-lICE), since we may need -lsocket or whatever for X linking.
25288 if test "$ISC" = yes; then
25289 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25291 # Martyn Johnson says this is needed for Ultrix, if the X
25292 # libraries were built with DECnet support. And Karl Berry says
25293 # the Alpha needs dnet_stub (dnet does not exist).
25294 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25296 /* end confdefs.h. */
25298 /* Override any GCC internal prototype to avoid an error.
25299 Use char because int might match the return type of a GCC
25300 builtin and then its argument prototype would still apply. */
25304 char XOpenDisplay ();
25308 return XOpenDisplay ();
25313 if ac_fn_c_try_link "$LINENO"; then :
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25317 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25318 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25319 $as_echo_n "(cached) " >&6
25321 ac_check_lib_save_LIBS=$LIBS
25322 LIBS="-ldnet $LIBS"
25323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25324 /* end confdefs.h. */
25326 /* Override any GCC internal prototype to avoid an error.
25327 Use char because int might match the return type of a GCC
25328 builtin and then its argument prototype would still apply. */
25336 return dnet_ntoa ();
25341 if ac_fn_c_try_link "$LINENO"; then :
25342 ac_cv_lib_dnet_dnet_ntoa=yes
25344 ac_cv_lib_dnet_dnet_ntoa=no
25346 rm -f core conftest.err conftest.$ac_objext \
25347 conftest$ac_exeext conftest.$ac_ext
25348 LIBS=$ac_check_lib_save_LIBS
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25351 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25352 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25353 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25356 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25358 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25359 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25360 $as_echo_n "(cached) " >&6
25362 ac_check_lib_save_LIBS=$LIBS
25363 LIBS="-ldnet_stub $LIBS"
25364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25365 /* end confdefs.h. */
25367 /* Override any GCC internal prototype to avoid an error.
25368 Use char because int might match the return type of a GCC
25369 builtin and then its argument prototype would still apply. */
25377 return dnet_ntoa ();
25382 if ac_fn_c_try_link "$LINENO"; then :
25383 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25385 ac_cv_lib_dnet_stub_dnet_ntoa=no
25387 rm -f core conftest.err conftest.$ac_objext \
25388 conftest$ac_exeext conftest.$ac_ext
25389 LIBS=$ac_check_lib_save_LIBS
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25392 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25393 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25394 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25399 rm -f core conftest.err conftest.$ac_objext \
25400 conftest$ac_exeext conftest.$ac_ext
25401 LIBS="$ac_xsave_LIBS"
25403 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25404 # to get the SysV transport functions.
25405 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25407 # The nsl library prevents programs from opening the X display
25408 # on Irix 5.2, according to T.E. Dickey.
25409 # The functions gethostbyname, getservbyname, and inet_addr are
25410 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25411 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25412 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25416 if test $ac_cv_func_gethostbyname = no; then
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25418 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25419 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25420 $as_echo_n "(cached) " >&6
25422 ac_check_lib_save_LIBS=$LIBS
25424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25425 /* end confdefs.h. */
25427 /* Override any GCC internal prototype to avoid an error.
25428 Use char because int might match the return type of a GCC
25429 builtin and then its argument prototype would still apply. */
25433 char gethostbyname ();
25437 return gethostbyname ();
25442 if ac_fn_c_try_link "$LINENO"; then :
25443 ac_cv_lib_nsl_gethostbyname=yes
25445 ac_cv_lib_nsl_gethostbyname=no
25447 rm -f core conftest.err conftest.$ac_objext \
25448 conftest$ac_exeext conftest.$ac_ext
25449 LIBS=$ac_check_lib_save_LIBS
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25452 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25453 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25454 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25457 if test $ac_cv_lib_nsl_gethostbyname = no; then
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25459 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25460 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25461 $as_echo_n "(cached) " >&6
25463 ac_check_lib_save_LIBS=$LIBS
25465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25466 /* end confdefs.h. */
25468 /* Override any GCC internal prototype to avoid an error.
25469 Use char because int might match the return type of a GCC
25470 builtin and then its argument prototype would still apply. */
25474 char gethostbyname ();
25478 return gethostbyname ();
25483 if ac_fn_c_try_link "$LINENO"; then :
25484 ac_cv_lib_bsd_gethostbyname=yes
25486 ac_cv_lib_bsd_gethostbyname=no
25488 rm -f core conftest.err conftest.$ac_objext \
25489 conftest$ac_exeext conftest.$ac_ext
25490 LIBS=$ac_check_lib_save_LIBS
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25493 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25494 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25495 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25501 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25502 # socket/setsockopt and other routines are undefined under SCO ODT
25503 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25504 # on later versions), says Simon Leinen: it contains gethostby*
25505 # variants that don't use the name server (or something). -lsocket
25506 # must be given before -lnsl if both are needed. We assume that
25507 # if connect needs -lnsl, so does gethostbyname.
25508 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25509 if test "x$ac_cv_func_connect" = xyes; then :
25513 if test $ac_cv_func_connect = no; then
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25515 $as_echo_n "checking for connect in -lsocket... " >&6; }
25516 if ${ac_cv_lib_socket_connect+:} false; then :
25517 $as_echo_n "(cached) " >&6
25519 ac_check_lib_save_LIBS=$LIBS
25520 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h. */
25524 /* Override any GCC internal prototype to avoid an error.
25525 Use char because int might match the return type of a GCC
25526 builtin and then its argument prototype would still apply. */
25539 if ac_fn_c_try_link "$LINENO"; then :
25540 ac_cv_lib_socket_connect=yes
25542 ac_cv_lib_socket_connect=no
25544 rm -f core conftest.err conftest.$ac_objext \
25545 conftest$ac_exeext conftest.$ac_ext
25546 LIBS=$ac_check_lib_save_LIBS
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25549 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25550 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25551 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25556 # Guillermo Gomez says -lposix is necessary on A/UX.
25557 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25558 if test "x$ac_cv_func_remove" = xyes; then :
25562 if test $ac_cv_func_remove = no; then
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25564 $as_echo_n "checking for remove in -lposix... " >&6; }
25565 if ${ac_cv_lib_posix_remove+:} false; then :
25566 $as_echo_n "(cached) " >&6
25568 ac_check_lib_save_LIBS=$LIBS
25569 LIBS="-lposix $LIBS"
25570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25571 /* end confdefs.h. */
25573 /* Override any GCC internal prototype to avoid an error.
25574 Use char because int might match the return type of a GCC
25575 builtin and then its argument prototype would still apply. */
25588 if ac_fn_c_try_link "$LINENO"; then :
25589 ac_cv_lib_posix_remove=yes
25591 ac_cv_lib_posix_remove=no
25593 rm -f core conftest.err conftest.$ac_objext \
25594 conftest$ac_exeext conftest.$ac_ext
25595 LIBS=$ac_check_lib_save_LIBS
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25598 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25599 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25600 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25605 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25606 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25607 if test "x$ac_cv_func_shmat" = xyes; then :
25611 if test $ac_cv_func_shmat = no; then
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25613 $as_echo_n "checking for shmat in -lipc... " >&6; }
25614 if ${ac_cv_lib_ipc_shmat+:} false; then :
25615 $as_echo_n "(cached) " >&6
25617 ac_check_lib_save_LIBS=$LIBS
25619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25620 /* end confdefs.h. */
25622 /* Override any GCC internal prototype to avoid an error.
25623 Use char because int might match the return type of a GCC
25624 builtin and then its argument prototype would still apply. */
25637 if ac_fn_c_try_link "$LINENO"; then :
25638 ac_cv_lib_ipc_shmat=yes
25640 ac_cv_lib_ipc_shmat=no
25642 rm -f core conftest.err conftest.$ac_objext \
25643 conftest$ac_exeext conftest.$ac_ext
25644 LIBS=$ac_check_lib_save_LIBS
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25647 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25648 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25649 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25655 # Check for libraries that X11R6 Xt/Xaw programs need.
25656 ac_save_LDFLAGS=$LDFLAGS
25657 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25658 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25659 # check for ICE first), but we must link in the order -lSM -lICE or
25660 # we get undefined symbols. So assume we have SM if we have ICE.
25661 # These have to be linked with before -lX11, unlike the other
25662 # libraries we check for below, so use a different variable.
25663 # John Interrante, Karl Berry
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25665 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25666 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25667 $as_echo_n "(cached) " >&6
25669 ac_check_lib_save_LIBS=$LIBS
25670 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25672 /* end confdefs.h. */
25674 /* Override any GCC internal prototype to avoid an error.
25675 Use char because int might match the return type of a GCC
25676 builtin and then its argument prototype would still apply. */
25680 char IceConnectionNumber ();
25684 return IceConnectionNumber ();
25689 if ac_fn_c_try_link "$LINENO"; then :
25690 ac_cv_lib_ICE_IceConnectionNumber=yes
25692 ac_cv_lib_ICE_IceConnectionNumber=no
25694 rm -f core conftest.err conftest.$ac_objext \
25695 conftest$ac_exeext conftest.$ac_ext
25696 LIBS=$ac_check_lib_save_LIBS
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25699 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25700 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25701 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25704 LDFLAGS=$ac_save_LDFLAGS
25742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25743 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25744 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25745 cat >>confdefs.h <<_ACEOF
25746 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25754 $as_echo_n "checking for ANSI C header files... " >&6; }
25755 if ${ac_cv_header_stdc+:} false; then :
25756 $as_echo_n "(cached) " >&6
25758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25759 /* end confdefs.h. */
25760 #include <stdlib.h>
25761 #include <stdarg.h>
25762 #include <string.h>
25773 if ac_fn_c_try_compile "$LINENO"; then :
25774 ac_cv_header_stdc=yes
25776 ac_cv_header_stdc=no
25778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25780 if test $ac_cv_header_stdc = yes; then
25781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25783 /* end confdefs.h. */
25784 #include <string.h>
25787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25788 $EGREP "memchr" >/dev/null 2>&1; then :
25791 ac_cv_header_stdc=no
25797 if test $ac_cv_header_stdc = yes; then
25798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25800 /* end confdefs.h. */
25801 #include <stdlib.h>
25804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25805 $EGREP "free" >/dev/null 2>&1; then :
25808 ac_cv_header_stdc=no
25814 if test $ac_cv_header_stdc = yes; then
25815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25816 if test "$cross_compiling" = yes; then :
25819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25820 /* end confdefs.h. */
25822 #include <stdlib.h>
25823 #if ((' ' & 0x0FF) == 0x020)
25824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25827 # define ISLOWER(c) \
25828 (('a' <= (c) && (c) <= 'i') \
25829 || ('j' <= (c) && (c) <= 'r') \
25830 || ('s' <= (c) && (c) <= 'z'))
25831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25839 for (i = 0; i < 256; i++)
25840 if (XOR (islower (i), ISLOWER (i))
25841 || toupper (i) != TOUPPER (i))
25846 if ac_fn_c_try_run "$LINENO"; then :
25849 ac_cv_header_stdc=no
25851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25852 conftest.$ac_objext conftest.beam conftest.$ac_ext
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25858 $as_echo "$ac_cv_header_stdc" >&6; }
25859 if test $ac_cv_header_stdc = yes; then
25861 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25866 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25867 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25868 $as_echo_n "(cached) " >&6
25870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25871 /* end confdefs.h. */
25872 #include <sys/types.h>
25876 return makedev(0, 0);
25881 if ac_fn_c_try_link "$LINENO"; then :
25882 ac_cv_header_sys_types_h_makedev=yes
25884 ac_cv_header_sys_types_h_makedev=no
25886 rm -f core conftest.err conftest.$ac_objext \
25887 conftest$ac_exeext conftest.$ac_ext
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25891 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25893 if test $ac_cv_header_sys_types_h_makedev = no; then
25894 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25895 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25897 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25903 if test $ac_cv_header_sys_mkdev_h = no; then
25904 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25905 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25907 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25915 ac_header_dirent=no
25916 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25917 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25919 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25920 if eval \${$as_ac_Header+:} false; then :
25921 $as_echo_n "(cached) " >&6
25923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25924 /* end confdefs.h. */
25925 #include <sys/types.h>
25937 if ac_fn_c_try_compile "$LINENO"; then :
25938 eval "$as_ac_Header=yes"
25940 eval "$as_ac_Header=no"
25942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25944 eval ac_res=\$$as_ac_Header
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25946 $as_echo "$ac_res" >&6; }
25947 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25948 cat >>confdefs.h <<_ACEOF
25949 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25952 ac_header_dirent=$ac_hdr; break
25956 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25957 if test $ac_header_dirent = dirent.h; then
25958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25959 $as_echo_n "checking for library containing opendir... " >&6; }
25960 if ${ac_cv_search_opendir+:} false; then :
25961 $as_echo_n "(cached) " >&6
25963 ac_func_search_save_LIBS=$LIBS
25964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25965 /* end confdefs.h. */
25967 /* Override any GCC internal prototype to avoid an error.
25968 Use char because int might match the return type of a GCC
25969 builtin and then its argument prototype would still apply. */
25982 for ac_lib in '' dir; do
25983 if test -z "$ac_lib"; then
25984 ac_res="none required"
25987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25989 if ac_fn_c_try_link "$LINENO"; then :
25990 ac_cv_search_opendir=$ac_res
25992 rm -f core conftest.err conftest.$ac_objext \
25994 if ${ac_cv_search_opendir+:} false; then :
25998 if ${ac_cv_search_opendir+:} false; then :
26001 ac_cv_search_opendir=no
26003 rm conftest.$ac_ext
26004 LIBS=$ac_func_search_save_LIBS
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26007 $as_echo "$ac_cv_search_opendir" >&6; }
26008 ac_res=$ac_cv_search_opendir
26009 if test "$ac_res" != no; then :
26010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26016 $as_echo_n "checking for library containing opendir... " >&6; }
26017 if ${ac_cv_search_opendir+:} false; then :
26018 $as_echo_n "(cached) " >&6
26020 ac_func_search_save_LIBS=$LIBS
26021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26022 /* end confdefs.h. */
26024 /* Override any GCC internal prototype to avoid an error.
26025 Use char because int might match the return type of a GCC
26026 builtin and then its argument prototype would still apply. */
26039 for ac_lib in '' x; do
26040 if test -z "$ac_lib"; then
26041 ac_res="none required"
26044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26046 if ac_fn_c_try_link "$LINENO"; then :
26047 ac_cv_search_opendir=$ac_res
26049 rm -f core conftest.err conftest.$ac_objext \
26051 if ${ac_cv_search_opendir+:} false; then :
26055 if ${ac_cv_search_opendir+:} false; then :
26058 ac_cv_search_opendir=no
26060 rm conftest.$ac_ext
26061 LIBS=$ac_func_search_save_LIBS
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26064 $as_echo "$ac_cv_search_opendir" >&6; }
26065 ac_res=$ac_cv_search_opendir
26066 if test "$ac_res" != no; then :
26067 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26074 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26075 if ${ac_cv_header_stat_broken+:} false; then :
26076 $as_echo_n "(cached) " >&6
26078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26079 /* end confdefs.h. */
26080 #include <sys/types.h>
26081 #include <sys/stat.h>
26083 #if defined S_ISBLK && defined S_IFDIR
26084 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26087 #if defined S_ISBLK && defined S_IFCHR
26088 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26091 #if defined S_ISLNK && defined S_IFREG
26092 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26095 #if defined S_ISSOCK && defined S_IFREG
26096 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26100 if ac_fn_c_try_compile "$LINENO"; then :
26101 ac_cv_header_stat_broken=no
26103 ac_cv_header_stat_broken=yes
26105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26108 $as_echo "$ac_cv_header_stat_broken" >&6; }
26109 if test $ac_cv_header_stat_broken = yes; then
26111 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26116 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26117 if ${ac_cv_header_sys_wait_h+:} false; then :
26118 $as_echo_n "(cached) " >&6
26120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26121 /* end confdefs.h. */
26122 #include <sys/types.h>
26123 #include <sys/wait.h>
26124 #ifndef WEXITSTATUS
26125 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26128 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26136 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26141 if ac_fn_c_try_compile "$LINENO"; then :
26142 ac_cv_header_sys_wait_h=yes
26144 ac_cv_header_sys_wait_h=no
26146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26149 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26150 if test $ac_cv_header_sys_wait_h = yes; then
26152 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26157 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26158 if ${ac_cv_header_time+:} false; then :
26159 $as_echo_n "(cached) " >&6
26161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26162 /* end confdefs.h. */
26163 #include <sys/types.h>
26164 #include <sys/time.h>
26170 if ((struct tm *) 0)
26176 if ac_fn_c_try_compile "$LINENO"; then :
26177 ac_cv_header_time=yes
26179 ac_cv_header_time=no
26181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26184 $as_echo "$ac_cv_header_time" >&6; }
26185 if test $ac_cv_header_time = yes; then
26187 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26191 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26192 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26194 cat >>confdefs.h <<_ACEOF
26195 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26199 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26204 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26205 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26207 cat >>confdefs.h <<_ACEOF
26208 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26212 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26215 case " $LIBOBJS " in
26216 *" fileblocks.$ac_objext "* ) ;;
26217 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26225 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26226 if ${ac_cv_struct_tm+:} false; then :
26227 $as_echo_n "(cached) " >&6
26229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26230 /* end confdefs.h. */
26231 #include <sys/types.h>
26238 int *p = &tm.tm_sec;
26244 if ac_fn_c_try_compile "$LINENO"; then :
26245 ac_cv_struct_tm=time.h
26247 ac_cv_struct_tm=sys/time.h
26249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26252 $as_echo "$ac_cv_struct_tm" >&6; }
26253 if test $ac_cv_struct_tm = sys/time.h; then
26255 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26259 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26260 #include <$ac_cv_struct_tm>
26263 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26265 cat >>confdefs.h <<_ACEOF
26266 #define HAVE_STRUCT_TM_TM_ZONE 1
26272 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26274 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26277 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26279 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26285 cat >>confdefs.h <<_ACEOF
26286 #define HAVE_DECL_TZNAME $ac_have_decl
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26290 $as_echo_n "checking for tzname... " >&6; }
26291 if ${ac_cv_var_tzname+:} false; then :
26292 $as_echo_n "(cached) " >&6
26294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26295 /* end confdefs.h. */
26297 #if !HAVE_DECL_TZNAME
26298 extern char *tzname[];
26304 return tzname[0][0];
26309 if ac_fn_c_try_link "$LINENO"; then :
26310 ac_cv_var_tzname=yes
26312 ac_cv_var_tzname=no
26314 rm -f core conftest.err conftest.$ac_objext \
26315 conftest$ac_exeext conftest.$ac_ext
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26318 $as_echo "$ac_cv_var_tzname" >&6; }
26319 if test $ac_cv_var_tzname = yes; then
26321 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26328 $as_echo_n "checking for utime.h... " >&6; }
26329 if ${ba_cv_header_utime_h+:} false; then :
26330 $as_echo_n "(cached) " >&6
26333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26334 /* end confdefs.h. */
26336 #include <sys/types.h>
26349 if ac_fn_c_try_compile "$LINENO"; then :
26351 ba_cv_header_utime_h=yes
26355 ba_cv_header_utime_h=no
26359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26364 $as_echo "$ba_cv_header_utime_h" >&6; }
26365 test $ba_cv_header_utime_h = yes &&
26366 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26370 $as_echo_n "checking for socklen_t... " >&6; }
26371 if ${ba_cv_header_socklen_t+:} false; then :
26372 $as_echo_n "(cached) " >&6
26375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26376 /* end confdefs.h. */
26378 #include <sys/types.h>
26379 #include <sys/socket.h>
26391 if ac_fn_c_try_compile "$LINENO"; then :
26393 ba_cv_header_socklen_t=yes
26397 ba_cv_header_socklen_t=no
26401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26406 $as_echo "$ba_cv_header_socklen_t" >&6; }
26407 test $ba_cv_header_socklen_t = yes &&
26408 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26412 ac_cpp='$CXXCPP $CPPFLAGS'
26413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26418 $as_echo_n "checking for ioctl_req_t... " >&6; }
26419 if ${ba_cv_header_ioctl_req_t+:} false; then :
26420 $as_echo_n "(cached) " >&6
26423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26424 /* end confdefs.h. */
26426 #include <unistd.h>
26427 #include <sys/types.h>
26428 #include <sys/ioctl.h>
26434 int (*d_ioctl)(int fd, unsigned long int request, ...);
26441 if ac_fn_cxx_try_compile "$LINENO"; then :
26443 ba_cv_header_ioctl_req_t=yes
26447 ba_cv_header_ioctl_req_t=no
26451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26456 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26457 test $ba_cv_header_ioctl_req_t = yes &&
26458 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26462 ac_cpp='$CPP $CPPFLAGS'
26463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26469 ac_cpp='$CXXCPP $CPPFLAGS'
26470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26475 $as_echo_n "checking for typeof... " >&6; }
26476 if ${ba_cv_have_typeof+:} false; then :
26477 $as_echo_n "(cached) " >&6
26480 if test "$cross_compiling" = yes; then :
26482 ba_cv_have_typeof=no
26486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26487 /* end confdefs.h. */
26489 main(){char *a = 0; a = (typeof a)a;}
26492 if ac_fn_cxx_try_run "$LINENO"; then :
26494 ba_cv_have_typeof=yes
26498 ba_cv_have_typeof=no
26501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26502 conftest.$ac_objext conftest.beam conftest.$ac_ext
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26509 $as_echo "$ba_cv_have_typeof" >&6; }
26510 test $ba_cv_have_typeof = yes &&
26511 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26514 ac_cpp='$CPP $CPPFLAGS'
26515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26521 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26522 if ${ac_cv_c_const+:} false; then :
26523 $as_echo_n "(cached) " >&6
26525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26526 /* end confdefs.h. */
26532 #ifndef __cplusplus
26533 /* Ultrix mips cc rejects this sort of thing. */
26534 typedef int charset[2];
26535 const charset cs = { 0, 0 };
26536 /* SunOS 4.1.1 cc rejects this. */
26537 char const *const *pcpcc;
26539 /* NEC SVR4.0.2 mips cc rejects this. */
26540 struct point {int x, y;};
26541 static struct point const zero = {0,0};
26542 /* AIX XL C 1.02.0.0 rejects this.
26543 It does not let you subtract one const X* pointer from another in
26544 an arm of an if-expression whose if-part is not a constant
26546 const char *g = "string";
26547 pcpcc = &g + (g ? g-g : 0);
26548 /* HPUX 7.0 cc rejects these. */
26550 ppc = (char**) pcpcc;
26551 pcpcc = (char const *const *) ppc;
26552 { /* SCO 3.2v4 cc rejects this sort of thing. */
26555 char const *s = 0 ? (char *) 0 : (char const *) 0;
26560 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26561 int x[] = {25, 17};
26562 const int *foo = &x[0];
26565 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26566 typedef const int *iptr;
26570 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26571 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26572 struct s { int j; const int *ap[3]; } bx;
26573 struct s *b = &bx; b->j = 5;
26575 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26576 const int foo = 10;
26577 if (!foo) return 0;
26579 return !cs[0] && !zero.x;
26586 if ac_fn_c_try_compile "$LINENO"; then :
26591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26594 $as_echo "$ac_cv_c_const" >&6; }
26595 if test $ac_cv_c_const = no; then
26597 $as_echo "#define const /**/" >>confdefs.h
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26603 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26604 if ${ac_cv_c_bigendian+:} false; then :
26605 $as_echo_n "(cached) " >&6
26607 ac_cv_c_bigendian=unknown
26608 # See if we're dealing with a universal compiler.
26609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26610 /* end confdefs.h. */
26611 #ifndef __APPLE_CC__
26612 not a universal capable compiler
26617 if ac_fn_c_try_compile "$LINENO"; then :
26619 # Check for potential -arch flags. It is not universal unless
26620 # there are at least two -arch flags with different values.
26623 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26624 if test -n "$ac_prev"; then
26626 i?86 | x86_64 | ppc | ppc64)
26627 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26630 ac_cv_c_bigendian=universal
26636 elif test "x$ac_word" = "x-arch"; then
26641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26642 if test $ac_cv_c_bigendian = unknown; then
26643 # See if sys/param.h defines the BYTE_ORDER macro.
26644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26645 /* end confdefs.h. */
26646 #include <sys/types.h>
26647 #include <sys/param.h>
26652 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26653 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26655 bogus endian macros
26662 if ac_fn_c_try_compile "$LINENO"; then :
26663 # It does; now see whether it defined to BIG_ENDIAN or not.
26664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26665 /* end confdefs.h. */
26666 #include <sys/types.h>
26667 #include <sys/param.h>
26672 #if BYTE_ORDER != BIG_ENDIAN
26680 if ac_fn_c_try_compile "$LINENO"; then :
26681 ac_cv_c_bigendian=yes
26683 ac_cv_c_bigendian=no
26685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26689 if test $ac_cv_c_bigendian = unknown; then
26690 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26692 /* end confdefs.h. */
26693 #include <limits.h>
26698 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26699 bogus endian macros
26706 if ac_fn_c_try_compile "$LINENO"; then :
26707 # It does; now see whether it defined to _BIG_ENDIAN or not.
26708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26709 /* end confdefs.h. */
26710 #include <limits.h>
26715 #ifndef _BIG_ENDIAN
26723 if ac_fn_c_try_compile "$LINENO"; then :
26724 ac_cv_c_bigendian=yes
26726 ac_cv_c_bigendian=no
26728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26732 if test $ac_cv_c_bigendian = unknown; then
26733 # Compile a test program.
26734 if test "$cross_compiling" = yes; then :
26735 # Try to guess by grepping values from an object file.
26736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26737 /* end confdefs.h. */
26738 short int ascii_mm[] =
26739 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26740 short int ascii_ii[] =
26741 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26742 int use_ascii (int i) {
26743 return ascii_mm[i] + ascii_ii[i];
26745 short int ebcdic_ii[] =
26746 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26747 short int ebcdic_mm[] =
26748 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26749 int use_ebcdic (int i) {
26750 return ebcdic_mm[i] + ebcdic_ii[i];
26757 return use_ascii (foo) == use_ebcdic (foo);
26762 if ac_fn_c_try_compile "$LINENO"; then :
26763 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26764 ac_cv_c_bigendian=yes
26766 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26767 if test "$ac_cv_c_bigendian" = unknown; then
26768 ac_cv_c_bigendian=no
26770 # finding both strings is unlikely to happen, but who knows?
26771 ac_cv_c_bigendian=unknown
26775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26778 /* end confdefs.h. */
26779 $ac_includes_default
26784 /* Are we little or big endian? From Harbison&Steele. */
26788 char c[sizeof (long int)];
26791 return u.c[sizeof (long int) - 1] == 1;
26797 if ac_fn_c_try_run "$LINENO"; then :
26798 ac_cv_c_bigendian=no
26800 ac_cv_c_bigendian=yes
26802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26803 conftest.$ac_objext conftest.beam conftest.$ac_ext
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26809 $as_echo "$ac_cv_c_bigendian" >&6; }
26810 case $ac_cv_c_bigendian in #(
26813 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26817 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26821 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26825 as_fn_error $? "unknown endianness
26826 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26831 $as_echo_n "checking how to get filesystem type... " >&6; }
26833 # The order of these tests is important.
26834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26835 /* end confdefs.h. */
26837 #include <sys/statvfs.h>
26838 #include <sys/fstyp.h>
26841 if ac_fn_c_try_cpp "$LINENO"; then :
26842 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26846 rm -f conftest.err conftest.i conftest.$ac_ext
26847 if test $fstype = no; then
26848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26849 /* end confdefs.h. */
26851 #include <sys/statfs.h>
26852 #include <sys/fstyp.h>
26855 if ac_fn_c_try_cpp "$LINENO"; then :
26856 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26860 rm -f conftest.err conftest.i conftest.$ac_ext
26862 if test $fstype = no; then
26863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26864 /* end confdefs.h. */
26866 #include <sys/statfs.h>
26867 #include <sys/vmount.h>
26870 if ac_fn_c_try_cpp "$LINENO"; then :
26871 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26875 rm -f conftest.err conftest.i conftest.$ac_ext
26877 if test $fstype = no; then
26878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26879 /* end confdefs.h. */
26881 #include <mntent.h>
26884 if ac_fn_c_try_cpp "$LINENO"; then :
26885 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26889 rm -f conftest.err conftest.i conftest.$ac_ext
26891 if test $fstype = no; then
26892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26893 /* end confdefs.h. */
26894 #include <sys/mount.h>
26897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26898 $EGREP "f_type;" >/dev/null 2>&1; then :
26899 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26905 if test $fstype = no; then
26906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26907 /* end confdefs.h. */
26909 #include <sys/mount.h>
26910 #include <sys/fs_types.h>
26913 if ac_fn_c_try_cpp "$LINENO"; then :
26914 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26918 rm -f conftest.err conftest.i conftest.$ac_ext
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26921 $as_echo "$fstype" >&6; }
26923 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26924 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26926 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26933 ac_cpp='$CXXCPP $CPPFLAGS'
26934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26938 for ac_func in backtrace
26940 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26941 if test "x$ac_cv_func_backtrace" = xyes; then :
26942 cat >>confdefs.h <<_ACEOF
26943 #define HAVE_BACKTRACE 1
26950 ac_cpp='$CPP $CPPFLAGS'
26951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26957 $as_echo_n "checking return type of signal handlers... " >&6; }
26958 if ${ac_cv_type_signal+:} false; then :
26959 $as_echo_n "(cached) " >&6
26961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962 /* end confdefs.h. */
26963 #include <sys/types.h>
26964 #include <signal.h>
26969 return *(signal (0, 0)) (0) == 1;
26974 if ac_fn_c_try_compile "$LINENO"; then :
26975 ac_cv_type_signal=int
26977 ac_cv_type_signal=void
26979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26982 $as_echo "$ac_cv_type_signal" >&6; }
26984 cat >>confdefs.h <<_ACEOF
26985 #define RETSIGTYPE $ac_cv_type_signal
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26991 $as_echo_n "checking for type of signal functions... " >&6; }
26992 if ${bash_cv_signal_vintage+:} false; then :
26993 $as_echo_n "(cached) " >&6
26996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26997 /* end confdefs.h. */
26998 #include <signal.h>
27004 struct sigaction sa;
27005 sigemptyset(&ss); sigsuspend(&ss);
27006 sigaction(SIGINT, &sa, (struct sigaction *) 0);
27007 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27013 if ac_fn_c_try_link "$LINENO"; then :
27014 bash_cv_signal_vintage="posix"
27017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27018 /* end confdefs.h. */
27019 #include <signal.h>
27024 int mask = sigmask(SIGINT);
27025 sigsetmask(mask); sigblock(mask); sigpause(mask);
27031 if ac_fn_c_try_link "$LINENO"; then :
27032 bash_cv_signal_vintage="4.2bsd"
27035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27036 /* end confdefs.h. */
27038 #include <signal.h>
27039 RETSIGTYPE foo() { }
27044 int mask = sigmask(SIGINT);
27045 sigset(SIGINT, foo); sigrelse(SIGINT);
27046 sighold(SIGINT); sigpause(SIGINT);
27052 if ac_fn_c_try_link "$LINENO"; then :
27053 bash_cv_signal_vintage="svr3"
27055 bash_cv_signal_vintage="v7"
27058 rm -f core conftest.err conftest.$ac_objext \
27059 conftest$ac_exeext conftest.$ac_ext
27062 rm -f core conftest.err conftest.$ac_objext \
27063 conftest$ac_exeext conftest.$ac_ext
27066 rm -f core conftest.err conftest.$ac_objext \
27067 conftest$ac_exeext conftest.$ac_ext
27071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27072 $as_echo "$bash_cv_signal_vintage" >&6; }
27073 if test "$bash_cv_signal_vintage" = "posix"; then
27074 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27076 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27077 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27079 elif test "$bash_cv_signal_vintage" = "svr3"; then
27080 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27084 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27085 if test "x$ac_cv_type_mode_t" = xyes; then :
27089 cat >>confdefs.h <<_ACEOF
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27096 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27097 if ${ac_cv_type_uid_t+:} false; then :
27098 $as_echo_n "(cached) " >&6
27100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27101 /* end confdefs.h. */
27102 #include <sys/types.h>
27105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27106 $EGREP "uid_t" >/dev/null 2>&1; then :
27107 ac_cv_type_uid_t=yes
27109 ac_cv_type_uid_t=no
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27115 $as_echo "$ac_cv_type_uid_t" >&6; }
27116 if test $ac_cv_type_uid_t = no; then
27118 $as_echo "#define uid_t int" >>confdefs.h
27121 $as_echo "#define gid_t int" >>confdefs.h
27125 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27126 if test "x$ac_cv_type_size_t" = xyes; then :
27130 cat >>confdefs.h <<_ACEOF
27131 #define size_t unsigned int
27136 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27137 if test "x$ac_cv_type_pid_t" = xyes; then :
27141 cat >>confdefs.h <<_ACEOF
27147 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27148 if test "x$ac_cv_type_off_t" = xyes; then :
27152 cat >>confdefs.h <<_ACEOF
27153 #define off_t long int
27159 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27160 if test "x$ac_cv_type_intptr_t" = xyes; then :
27162 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27165 for ac_type in 'int' 'long int' 'long long int'; do
27166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27167 /* end confdefs.h. */
27168 $ac_includes_default
27172 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27173 test_array [0] = 0;
27174 return test_array [0];
27180 if ac_fn_c_try_compile "$LINENO"; then :
27182 cat >>confdefs.h <<_ACEOF
27183 #define intptr_t $ac_type
27188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27189 test -z "$ac_type" && break
27195 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27196 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27198 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27201 for ac_type in 'unsigned int' 'unsigned long int' \
27202 'unsigned long long int'; do
27203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27204 /* end confdefs.h. */
27205 $ac_includes_default
27209 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27210 test_array [0] = 0;
27211 return test_array [0];
27217 if ac_fn_c_try_compile "$LINENO"; then :
27219 cat >>confdefs.h <<_ACEOF
27220 #define uintptr_t $ac_type
27225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27226 test -z "$ac_type" && break
27231 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27232 if test "x$ac_cv_type_ino_t" = xyes; then :
27236 cat >>confdefs.h <<_ACEOF
27237 #define ino_t unsigned long
27242 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27243 if test "x$ac_cv_type_dev_t" = xyes; then :
27247 cat >>confdefs.h <<_ACEOF
27248 #define dev_t unsigned long
27253 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27254 if test "x$ac_cv_type_daddr_t" = xyes; then :
27258 cat >>confdefs.h <<_ACEOF
27259 #define daddr_t long
27264 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27265 if test "x$ac_cv_type_major_t" = xyes; then :
27269 cat >>confdefs.h <<_ACEOF
27270 #define major_t int
27275 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27276 if test "x$ac_cv_type_minor_t" = xyes; then :
27280 cat >>confdefs.h <<_ACEOF
27281 #define minor_t int
27286 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27287 if test "x$ac_cv_type_ssize_t" = xyes; then :
27291 cat >>confdefs.h <<_ACEOF
27292 #define ssize_t int
27297 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27298 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27300 cat >>confdefs.h <<_ACEOF
27301 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27305 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27308 case " $LIBOBJS " in
27309 *" fileblocks.$ac_objext "* ) ;;
27310 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27317 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27318 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27320 cat >>confdefs.h <<_ACEOF
27321 #define HAVE_STRUCT_STAT_ST_RDEV 1
27325 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27331 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27332 if ${ac_cv_struct_tm+:} false; then :
27333 $as_echo_n "(cached) " >&6
27335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27336 /* end confdefs.h. */
27337 #include <sys/types.h>
27344 int *p = &tm.tm_sec;
27350 if ac_fn_c_try_compile "$LINENO"; then :
27351 ac_cv_struct_tm=time.h
27353 ac_cv_struct_tm=sys/time.h
27355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27358 $as_echo "$ac_cv_struct_tm" >&6; }
27359 if test $ac_cv_struct_tm = sys/time.h; then
27361 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27366 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27367 if ${ac_cv_c_const+:} false; then :
27368 $as_echo_n "(cached) " >&6
27370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27371 /* end confdefs.h. */
27377 #ifndef __cplusplus
27378 /* Ultrix mips cc rejects this sort of thing. */
27379 typedef int charset[2];
27380 const charset cs = { 0, 0 };
27381 /* SunOS 4.1.1 cc rejects this. */
27382 char const *const *pcpcc;
27384 /* NEC SVR4.0.2 mips cc rejects this. */
27385 struct point {int x, y;};
27386 static struct point const zero = {0,0};
27387 /* AIX XL C 1.02.0.0 rejects this.
27388 It does not let you subtract one const X* pointer from another in
27389 an arm of an if-expression whose if-part is not a constant
27391 const char *g = "string";
27392 pcpcc = &g + (g ? g-g : 0);
27393 /* HPUX 7.0 cc rejects these. */
27395 ppc = (char**) pcpcc;
27396 pcpcc = (char const *const *) ppc;
27397 { /* SCO 3.2v4 cc rejects this sort of thing. */
27400 char const *s = 0 ? (char *) 0 : (char const *) 0;
27405 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27406 int x[] = {25, 17};
27407 const int *foo = &x[0];
27410 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27411 typedef const int *iptr;
27415 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27416 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27417 struct s { int j; const int *ap[3]; } bx;
27418 struct s *b = &bx; b->j = 5;
27420 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27421 const int foo = 10;
27422 if (!foo) return 0;
27424 return !cs[0] && !zero.x;
27431 if ac_fn_c_try_compile "$LINENO"; then :
27436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27439 $as_echo "$ac_cv_c_const" >&6; }
27440 if test $ac_cv_c_const = no; then
27442 $as_echo "#define const /**/" >>confdefs.h
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27447 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27448 if ${ac_cv_c_restrict+:} false; then :
27449 $as_echo_n "(cached) " >&6
27451 ac_cv_c_restrict=no
27452 # The order here caters to the fact that C++ does not require restrict.
27453 for ac_kw in __restrict __restrict__ _Restrict restrict; do
27454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27455 /* end confdefs.h. */
27456 typedef int * int_ptr;
27457 int foo (int_ptr $ac_kw ip) {
27464 int * $ac_kw t = s;
27471 if ac_fn_c_try_compile "$LINENO"; then :
27472 ac_cv_c_restrict=$ac_kw
27474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27475 test "$ac_cv_c_restrict" != no && break
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27480 $as_echo "$ac_cv_c_restrict" >&6; }
27482 case $ac_cv_c_restrict in
27484 no) $as_echo "#define restrict /**/" >>confdefs.h
27486 *) cat >>confdefs.h <<_ACEOF
27487 #define restrict $ac_cv_c_restrict
27493 # The cast to long int works around a bug in the HP C Compiler
27494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27496 # This bug is HP SR number 8606223364.
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27498 $as_echo_n "checking size of char... " >&6; }
27499 if ${ac_cv_sizeof_char+:} false; then :
27500 $as_echo_n "(cached) " >&6
27502 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27505 if test "$ac_cv_type_char" = yes; then
27506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27508 as_fn_error 77 "cannot compute sizeof (char)
27509 See \`config.log' for more details" "$LINENO" 5; }
27511 ac_cv_sizeof_char=0
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27517 $as_echo "$ac_cv_sizeof_char" >&6; }
27521 cat >>confdefs.h <<_ACEOF
27522 #define SIZEOF_CHAR $ac_cv_sizeof_char
27526 # The cast to long int works around a bug in the HP C Compiler
27527 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27528 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27529 # This bug is HP SR number 8606223364.
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27531 $as_echo_n "checking size of short int... " >&6; }
27532 if ${ac_cv_sizeof_short_int+:} false; then :
27533 $as_echo_n "(cached) " >&6
27535 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27538 if test "$ac_cv_type_short_int" = yes; then
27539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27541 as_fn_error 77 "cannot compute sizeof (short int)
27542 See \`config.log' for more details" "$LINENO" 5; }
27544 ac_cv_sizeof_short_int=0
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27550 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27554 cat >>confdefs.h <<_ACEOF
27555 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27559 # The cast to long int works around a bug in the HP C Compiler
27560 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27561 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27562 # This bug is HP SR number 8606223364.
27563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27564 $as_echo_n "checking size of int... " >&6; }
27565 if ${ac_cv_sizeof_int+:} false; then :
27566 $as_echo_n "(cached) " >&6
27568 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27571 if test "$ac_cv_type_int" = yes; then
27572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27574 as_fn_error 77 "cannot compute sizeof (int)
27575 See \`config.log' for more details" "$LINENO" 5; }
27582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27583 $as_echo "$ac_cv_sizeof_int" >&6; }
27587 cat >>confdefs.h <<_ACEOF
27588 #define SIZEOF_INT $ac_cv_sizeof_int
27592 # The cast to long int works around a bug in the HP C Compiler
27593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27595 # This bug is HP SR number 8606223364.
27596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27597 $as_echo_n "checking size of long int... " >&6; }
27598 if ${ac_cv_sizeof_long_int+:} false; then :
27599 $as_echo_n "(cached) " >&6
27601 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27604 if test "$ac_cv_type_long_int" = yes; then
27605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27607 as_fn_error 77 "cannot compute sizeof (long int)
27608 See \`config.log' for more details" "$LINENO" 5; }
27610 ac_cv_sizeof_long_int=0
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27616 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27620 cat >>confdefs.h <<_ACEOF
27621 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27625 # The cast to long int works around a bug in the HP C Compiler
27626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27628 # This bug is HP SR number 8606223364.
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27630 $as_echo_n "checking size of long long int... " >&6; }
27631 if ${ac_cv_sizeof_long_long_int+:} false; then :
27632 $as_echo_n "(cached) " >&6
27634 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27637 if test "$ac_cv_type_long_long_int" = yes; then
27638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27640 as_fn_error 77 "cannot compute sizeof (long long int)
27641 See \`config.log' for more details" "$LINENO" 5; }
27643 ac_cv_sizeof_long_long_int=0
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27649 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27653 cat >>confdefs.h <<_ACEOF
27654 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27658 # The cast to long int works around a bug in the HP C Compiler
27659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27661 # This bug is HP SR number 8606223364.
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27663 $as_echo_n "checking size of int *... " >&6; }
27664 if ${ac_cv_sizeof_int_p+:} false; then :
27665 $as_echo_n "(cached) " >&6
27667 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27670 if test "$ac_cv_type_int_p" = yes; then
27671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27673 as_fn_error 77 "cannot compute sizeof (int *)
27674 See \`config.log' for more details" "$LINENO" 5; }
27676 ac_cv_sizeof_int_p=0
27681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27682 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27686 cat >>confdefs.h <<_ACEOF
27687 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27693 $as_echo_n "checking for u_int type... " >&6; }
27694 if ${ac_cv_have_u_int+:} false; then :
27695 $as_echo_n "(cached) " >&6
27698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27699 /* end confdefs.h. */
27701 #include <sys/types.h>
27713 if ac_fn_c_try_compile "$LINENO"; then :
27715 ac_cv_have_u_int="yes"
27719 ac_cv_have_u_int="no"
27723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27728 $as_echo "$ac_cv_have_u_int" >&6; }
27729 if test "x$ac_cv_have_u_int" = "xyes" ; then
27730 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27736 $as_echo_n "checking for intmax_t type... " >&6; }
27737 if ${ac_cv_have_intmax_t+:} false; then :
27738 $as_echo_n "(cached) " >&6
27741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27742 /* end confdefs.h. */
27744 #include <sys/types.h>
27756 if ac_fn_c_try_compile "$LINENO"; then :
27758 ac_cv_have_intmax_t="yes"
27762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27763 /* end confdefs.h. */
27765 #include <stdint.h>
27777 if ac_fn_c_try_compile "$LINENO"; then :
27779 ac_cv_have_intmax_t="yes"
27783 ac_cv_have_intmax_t="no"
27787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27796 $as_echo "$ac_cv_have_intmax_t" >&6; }
27797 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27798 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27804 $as_echo_n "checking for u_intmax_t type... " >&6; }
27805 if ${ac_cv_have_u_intmax_t+:} false; then :
27806 $as_echo_n "(cached) " >&6
27809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27810 /* end confdefs.h. */
27812 #include <sys/types.h>
27818 u_intmax_t a; a = 1;
27824 if ac_fn_c_try_compile "$LINENO"; then :
27826 ac_cv_have_u_intmax_t="yes"
27830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27831 /* end confdefs.h. */
27833 #include <stdint.h>
27839 u_intmax_t a; a = 1;
27845 if ac_fn_c_try_compile "$LINENO"; then :
27847 ac_cv_have_u_intmax_t="yes"
27851 ac_cv_have_u_intmax_t="no"
27855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27864 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27865 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27866 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27872 $as_echo_n "checking for intXX_t types... " >&6; }
27873 if ${ac_cv_have_intxx_t+:} false; then :
27874 $as_echo_n "(cached) " >&6
27877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27878 /* end confdefs.h. */
27880 #include <sys/types.h>
27886 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27892 if ac_fn_c_try_compile "$LINENO"; then :
27894 ac_cv_have_intxx_t="yes"
27898 ac_cv_have_intxx_t="no"
27902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27907 $as_echo "$ac_cv_have_intxx_t" >&6; }
27908 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27909 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27915 $as_echo_n "checking for int64_t type... " >&6; }
27916 if ${ac_cv_have_int64_t+:} false; then :
27917 $as_echo_n "(cached) " >&6
27920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27921 /* end confdefs.h. */
27923 #include <sys/types.h>
27935 if ac_fn_c_try_compile "$LINENO"; then :
27937 ac_cv_have_int64_t="yes"
27941 ac_cv_have_int64_t="no"
27945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27950 $as_echo "$ac_cv_have_int64_t" >&6; }
27951 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27952 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27958 $as_echo_n "checking for u_intXX_t types... " >&6; }
27959 if ${ac_cv_have_u_intxx_t+:} false; then :
27960 $as_echo_n "(cached) " >&6
27963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27964 /* end confdefs.h. */
27966 #include <sys/types.h>
27972 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27978 if ac_fn_c_try_compile "$LINENO"; then :
27980 ac_cv_have_u_intxx_t="yes"
27984 ac_cv_have_u_intxx_t="no"
27988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27993 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27994 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27995 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28001 $as_echo_n "checking for u_int64_t types... " >&6; }
28002 if ${ac_cv_have_u_int64_t+:} false; then :
28003 $as_echo_n "(cached) " >&6
28006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28007 /* end confdefs.h. */
28009 #include <sys/types.h>
28015 u_int64_t a; a = 1;
28021 if ac_fn_c_try_compile "$LINENO"; then :
28023 ac_cv_have_u_int64_t="yes"
28027 ac_cv_have_u_int64_t="no"
28031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28036 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28037 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28038 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28043 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28044 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28047 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28049 /* end confdefs.h. */
28051 #include <sys/bitypes.h>
28057 int8_t a; int16_t b; int32_t c;
28058 u_int8_t e; u_int16_t f; u_int32_t g;
28059 a = b = c = e = f = g = 1;
28065 if ac_fn_c_try_compile "$LINENO"; then :
28067 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28069 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28071 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28074 $as_echo "yes" >&6; }
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28079 $as_echo "no" >&6; }
28083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28086 if test -z "$have_u_intxx_t" ; then
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28088 $as_echo_n "checking for uintXX_t types... " >&6; }
28089 if ${ac_cv_have_uintxx_t+:} false; then :
28090 $as_echo_n "(cached) " >&6
28093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28094 /* end confdefs.h. */
28096 #include <sys/types.h>
28102 uint8_t a; uint16_t b;
28103 uint32_t c; a = b = c = 1;
28109 if ac_fn_c_try_compile "$LINENO"; then :
28111 ac_cv_have_uintxx_t="yes"
28115 ac_cv_have_uintxx_t="no"
28119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28124 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28125 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28126 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28131 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28132 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28135 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28137 /* end confdefs.h. */
28139 #include <sys/bitypes.h>
28145 int64_t a; u_int64_t b;
28152 if ac_fn_c_try_compile "$LINENO"; then :
28154 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28156 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28159 $as_echo "yes" >&6; }
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28164 $as_echo "no" >&6; }
28168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28171 if (test -z "$have_uintxx_t" && \
28172 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28175 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28177 /* end confdefs.h. */
28179 #include <sys/bitypes.h>
28185 uint8_t a; uint16_t b;
28186 uint32_t c; a = b = c = 1;
28192 if ac_fn_c_try_compile "$LINENO"; then :
28194 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28197 $as_echo "yes" >&6; }
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28202 $as_echo "no" >&6; }
28206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28225 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28226 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28227 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28228 cat >>confdefs.h <<_ACEOF
28229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28233 echo 'configure: cannot find needed function.'; exit 1
28239 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28242 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28244 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28249 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28252 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28254 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28259 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28260 if test "x$ac_cv_func_closefrom" = xyes; then :
28262 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28266 for ac_func in getpagesize
28268 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28269 if test "x$ac_cv_func_getpagesize" = xyes; then :
28270 cat >>confdefs.h <<_ACEOF
28271 #define HAVE_GETPAGESIZE 1
28274 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28279 for ac_func in malloc_trim
28281 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28282 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28283 cat >>confdefs.h <<_ACEOF
28284 #define HAVE_MALLOC_TRIM 1
28287 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28293 for ac_func in fchdir
28295 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28296 if test "x$ac_cv_func_fchdir" = xyes; then :
28297 cat >>confdefs.h <<_ACEOF
28298 #define HAVE_FCHDIR 1
28300 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28305 for ac_func in strtoll
28307 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28308 if test "x$ac_cv_func_strtoll" = xyes; then :
28309 cat >>confdefs.h <<_ACEOF
28310 #define HAVE_STRTOLL 1
28312 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28317 for ac_func in posix_fadvise
28319 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28320 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28321 cat >>confdefs.h <<_ACEOF
28322 #define HAVE_POSIX_FADVISE 1
28328 for ac_func in posix_fallocate
28330 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28331 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28332 cat >>confdefs.h <<_ACEOF
28333 #define HAVE_POSIX_FALLOCATE 1
28339 for ac_func in fdatasync
28341 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28342 if test "x$ac_cv_func_fdatasync" = xyes; then :
28343 cat >>confdefs.h <<_ACEOF
28344 #define HAVE_FDATASYNC 1
28351 for ac_func in chflags
28353 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28354 if test "x$ac_cv_func_chflags" = xyes; then :
28355 cat >>confdefs.h <<_ACEOF
28356 #define HAVE_CHFLAGS 1
28363 for ac_func in snprintf vsnprintf gethostid fseeko
28365 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28366 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28367 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28368 cat >>confdefs.h <<_ACEOF
28369 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28377 $as_echo_n "checking for va_copy... " >&6; }
28378 if ${ba_cv_va_copy+:} false; then :
28379 $as_echo_n "(cached) " >&6
28382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28383 /* end confdefs.h. */
28385 #include <stdarg.h>
28386 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28387 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28393 call_use_va_copy(1,2,3)
28399 if ac_fn_c_try_link "$LINENO"; then :
28409 rm -f core conftest.err conftest.$ac_objext \
28410 conftest$ac_exeext conftest.$ac_ext
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28415 $as_echo "$ba_cv_va_copy" >&6; }
28416 test $ba_cv_va_copy = yes &&
28417 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28420 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28423 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28424 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28425 cat >>confdefs.h <<_ACEOF
28426 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28433 # If resolver functions are not in libc check for -lnsl or -lresolv.
28434 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28435 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28437 $as_echo "using libc's resolver" >&6; }
28439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28440 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28441 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28442 $as_echo_n "(cached) " >&6
28444 ac_check_lib_save_LIBS=$LIBS
28446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28447 /* end confdefs.h. */
28449 /* Override any GCC internal prototype to avoid an error.
28450 Use char because int might match the return type of a GCC
28451 builtin and then its argument prototype would still apply. */
28455 char gethostbyname_r ();
28459 return gethostbyname_r ();
28464 if ac_fn_c_try_link "$LINENO"; then :
28465 ac_cv_lib_nsl_gethostbyname_r=yes
28467 ac_cv_lib_nsl_gethostbyname_r=no
28469 rm -f core conftest.err conftest.$ac_objext \
28470 conftest$ac_exeext conftest.$ac_ext
28471 LIBS=$ac_check_lib_save_LIBS
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28474 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28475 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28476 cat >>confdefs.h <<_ACEOF
28477 #define HAVE_LIBNSL 1
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28485 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28486 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28487 $as_echo_n "(cached) " >&6
28489 ac_check_lib_save_LIBS=$LIBS
28490 LIBS="-lresolv $LIBS"
28491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28492 /* end confdefs.h. */
28494 /* Override any GCC internal prototype to avoid an error.
28495 Use char because int might match the return type of a GCC
28496 builtin and then its argument prototype would still apply. */
28500 char gethostbyname_r ();
28504 return gethostbyname_r ();
28509 if ac_fn_c_try_link "$LINENO"; then :
28510 ac_cv_lib_resolv_gethostbyname_r=yes
28512 ac_cv_lib_resolv_gethostbyname_r=no
28514 rm -f core conftest.err conftest.$ac_objext \
28515 conftest$ac_exeext conftest.$ac_ext
28516 LIBS=$ac_check_lib_save_LIBS
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28519 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28520 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28521 cat >>confdefs.h <<_ACEOF
28522 #define HAVE_LIBRESOLV 1
28525 LIBS="-lresolv $LIBS"
28532 for ac_func in inet_pton
28534 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28535 if test "x$ac_cv_func_inet_pton" = xyes; then :
28536 cat >>confdefs.h <<_ACEOF
28537 #define HAVE_INET_PTON 1
28539 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28544 for ac_func in inet_ntop
28546 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28547 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28548 cat >>confdefs.h <<_ACEOF
28549 #define HAVE_INET_NTOP 1
28551 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28556 for ac_func in gethostbyname2
28558 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28559 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28560 cat >>confdefs.h <<_ACEOF
28561 #define HAVE_GETHOSTBYNAME2 1
28563 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28568 for ac_func in getnameinfo
28570 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28571 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28572 cat >>confdefs.h <<_ACEOF
28573 #define HAVE_GETNAMEINFO 1
28575 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28583 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28584 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28585 $as_echo_n "(cached) " >&6
28588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28589 /* end confdefs.h. */
28591 #include <sys/socket.h>
28597 struct sockaddr s; s.sa_len;
28603 if ac_fn_c_try_compile "$LINENO"; then :
28605 ac_cv_struct_sockaddr_sa_len=yes
28608 ac_cv_struct_sockaddr_sa_len=no
28612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28617 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28619 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28621 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28626 $as_echo_n "checking for working getaddrinfo... " >&6; }
28627 if ${ac_cv_working_getaddrinfo+:} false; then :
28628 $as_echo_n "(cached) " >&6
28631 if test "$cross_compiling" = yes; then :
28633 ac_cv_working_getaddrinfo="yes"
28637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28638 /* end confdefs.h. */
28641 #include <string.h>
28642 #include <sys/types.h>
28643 #include <sys/socket.h>
28646 struct addrinfo hints, *ai;
28649 memset(&hints, 0, sizeof(hints));
28650 hints.ai_family = AF_UNSPEC;
28651 hints.ai_socktype = SOCK_STREAM;
28652 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28656 if (ai->ai_addr->sa_family != AF_INET) {
28663 if ac_fn_c_try_run "$LINENO"; then :
28665 ac_cv_working_getaddrinfo="yes"
28669 ac_cv_working_getaddrinfo="no"
28672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28673 conftest.$ac_objext conftest.beam conftest.$ac_ext
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28680 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28681 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28682 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28684 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28689 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28690 if test "$ac_cv_func_gai_strerror" != "yes"; then
28691 ac_cv_working_getaddrinfo="no"
28694 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28699 for ac_func in strftime
28701 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28702 if test "x$ac_cv_func_strftime" = xyes; then :
28703 cat >>confdefs.h <<_ACEOF
28704 #define HAVE_STRFTIME 1
28708 # strftime is in -lintl on SCO UNIX.
28709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28710 $as_echo_n "checking for strftime in -lintl... " >&6; }
28711 if ${ac_cv_lib_intl_strftime+:} false; then :
28712 $as_echo_n "(cached) " >&6
28714 ac_check_lib_save_LIBS=$LIBS
28715 LIBS="-lintl $LIBS"
28716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28717 /* end confdefs.h. */
28719 /* Override any GCC internal prototype to avoid an error.
28720 Use char because int might match the return type of a GCC
28721 builtin and then its argument prototype would still apply. */
28729 return strftime ();
28734 if ac_fn_c_try_link "$LINENO"; then :
28735 ac_cv_lib_intl_strftime=yes
28737 ac_cv_lib_intl_strftime=no
28739 rm -f core conftest.err conftest.$ac_objext \
28740 conftest$ac_exeext conftest.$ac_ext
28741 LIBS=$ac_check_lib_save_LIBS
28743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28744 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28745 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28746 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28748 LIBS="-lintl $LIBS"
28754 for ac_func in vprintf
28756 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28757 if test "x$ac_cv_func_vprintf" = xyes; then :
28758 cat >>confdefs.h <<_ACEOF
28759 #define HAVE_VPRINTF 1
28762 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28763 if test "x$ac_cv_func__doprnt" = xyes; then :
28765 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28773 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28774 # for constant arguments. Useless!
28775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28776 $as_echo_n "checking for working alloca.h... " >&6; }
28777 if ${ac_cv_working_alloca_h+:} false; then :
28778 $as_echo_n "(cached) " >&6
28780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28781 /* end confdefs.h. */
28782 #include <alloca.h>
28786 char *p = (char *) alloca (2 * sizeof (int));
28792 if ac_fn_c_try_link "$LINENO"; then :
28793 ac_cv_working_alloca_h=yes
28795 ac_cv_working_alloca_h=no
28797 rm -f core conftest.err conftest.$ac_objext \
28798 conftest$ac_exeext conftest.$ac_ext
28800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28801 $as_echo "$ac_cv_working_alloca_h" >&6; }
28802 if test $ac_cv_working_alloca_h = yes; then
28804 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28809 $as_echo_n "checking for alloca... " >&6; }
28810 if ${ac_cv_func_alloca_works+:} false; then :
28811 $as_echo_n "(cached) " >&6
28813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28814 /* end confdefs.h. */
28816 # define alloca __builtin_alloca
28819 # include <malloc.h>
28820 # define alloca _alloca
28822 # ifdef HAVE_ALLOCA_H
28823 # include <alloca.h>
28828 # ifndef alloca /* predefined by HP cc +Olibcalls */
28829 void *alloca (size_t);
28839 char *p = (char *) alloca (1);
28845 if ac_fn_c_try_link "$LINENO"; then :
28846 ac_cv_func_alloca_works=yes
28848 ac_cv_func_alloca_works=no
28850 rm -f core conftest.err conftest.$ac_objext \
28851 conftest$ac_exeext conftest.$ac_ext
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28854 $as_echo "$ac_cv_func_alloca_works" >&6; }
28856 if test $ac_cv_func_alloca_works = yes; then
28858 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28861 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28862 # that cause trouble. Some versions do not even contain alloca or
28863 # contain a buggy version. If you still want to use their alloca,
28864 # use ar to extract alloca.o from them instead of compiling alloca.c.
28866 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28868 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28872 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28873 if ${ac_cv_os_cray+:} false; then :
28874 $as_echo_n "(cached) " >&6
28876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28877 /* end confdefs.h. */
28878 #if defined CRAY && ! defined CRAY2
28885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28886 $EGREP "webecray" >/dev/null 2>&1; then :
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28895 $as_echo "$ac_cv_os_cray" >&6; }
28896 if test $ac_cv_os_cray = yes; then
28897 for ac_func in _getb67 GETB67 getb67; do
28898 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28899 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28900 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28902 cat >>confdefs.h <<_ACEOF
28903 #define CRAY_STACKSEG_END $ac_func
28912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28913 $as_echo_n "checking stack direction for C alloca... " >&6; }
28914 if ${ac_cv_c_stack_direction+:} false; then :
28915 $as_echo_n "(cached) " >&6
28917 if test "$cross_compiling" = yes; then :
28918 ac_cv_c_stack_direction=0
28920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28921 /* end confdefs.h. */
28922 $ac_includes_default
28924 find_stack_direction (int *addr, int depth)
28926 int dir, dummy = 0;
28929 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
28930 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
28931 return dir + dummy;
28935 main (int argc, char **argv)
28937 return find_stack_direction (0, argc + !argv + 20) < 0;
28940 if ac_fn_c_try_run "$LINENO"; then :
28941 ac_cv_c_stack_direction=1
28943 ac_cv_c_stack_direction=-1
28945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28946 conftest.$ac_objext conftest.beam conftest.$ac_ext
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28951 $as_echo "$ac_cv_c_stack_direction" >&6; }
28952 cat >>confdefs.h <<_ACEOF
28953 #define STACK_DIRECTION $ac_cv_c_stack_direction
28959 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28960 # -lseq on Dynix/PTX, -lgen on Unixware.
28961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28962 $as_echo_n "checking for library containing getmntent... " >&6; }
28963 if ${ac_cv_search_getmntent+:} false; then :
28964 $as_echo_n "(cached) " >&6
28966 ac_func_search_save_LIBS=$LIBS
28967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28968 /* end confdefs.h. */
28970 /* Override any GCC internal prototype to avoid an error.
28971 Use char because int might match the return type of a GCC
28972 builtin and then its argument prototype would still apply. */
28980 return getmntent ();
28985 for ac_lib in '' sun seq gen; do
28986 if test -z "$ac_lib"; then
28987 ac_res="none required"
28990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28992 if ac_fn_c_try_link "$LINENO"; then :
28993 ac_cv_search_getmntent=$ac_res
28995 rm -f core conftest.err conftest.$ac_objext \
28997 if ${ac_cv_search_getmntent+:} false; then :
29001 if ${ac_cv_search_getmntent+:} false; then :
29004 ac_cv_search_getmntent=no
29006 rm conftest.$ac_ext
29007 LIBS=$ac_func_search_save_LIBS
29009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29010 $as_echo "$ac_cv_search_getmntent" >&6; }
29011 ac_res=$ac_cv_search_getmntent
29012 if test "$ac_res" != no; then :
29013 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29014 ac_cv_func_getmntent=yes
29016 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29019 ac_cv_func_getmntent=no
29023 for ac_func in getmntinfo
29025 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29026 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29027 cat >>confdefs.h <<_ACEOF
29028 #define HAVE_GETMNTINFO 1
29030 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29036 $as_echo_n "checking whether closedir returns void... " >&6; }
29037 if ${ac_cv_func_closedir_void+:} false; then :
29038 $as_echo_n "(cached) " >&6
29040 if test "$cross_compiling" = yes; then :
29041 ac_cv_func_closedir_void=yes
29043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29044 /* end confdefs.h. */
29045 $ac_includes_default
29046 #include <$ac_header_dirent>
29047 #ifndef __cplusplus
29054 return closedir (opendir (".")) != 0;
29059 if ac_fn_c_try_run "$LINENO"; then :
29060 ac_cv_func_closedir_void=no
29062 ac_cv_func_closedir_void=yes
29064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29065 conftest.$ac_objext conftest.beam conftest.$ac_ext
29069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29070 $as_echo "$ac_cv_func_closedir_void" >&6; }
29071 if test $ac_cv_func_closedir_void = yes; then
29073 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29078 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29079 if ${ac_cv_func_setpgrp_void+:} false; then :
29080 $as_echo_n "(cached) " >&6
29082 if test "$cross_compiling" = yes; then :
29083 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29086 /* end confdefs.h. */
29087 $ac_includes_default
29091 /* If this system has a BSD-style setpgrp which takes arguments,
29092 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29093 exit successfully. */
29094 return setpgrp (1,1) != -1;
29099 if ac_fn_c_try_run "$LINENO"; then :
29100 ac_cv_func_setpgrp_void=no
29102 ac_cv_func_setpgrp_void=yes
29104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29105 conftest.$ac_objext conftest.beam conftest.$ac_ext
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29110 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29111 if test $ac_cv_func_setpgrp_void = yes; then
29113 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29116 # AC_FUNC_FNMATCH dnl use local version
29118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29119 $as_echo_n "checking for gettext in -lintl... " >&6; }
29120 if ${ac_cv_lib_intl_gettext+:} false; then :
29121 $as_echo_n "(cached) " >&6
29123 ac_check_lib_save_LIBS=$LIBS
29124 LIBS="-lintl $LIBS"
29125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29126 /* end confdefs.h. */
29128 /* Override any GCC internal prototype to avoid an error.
29129 Use char because int might match the return type of a GCC
29130 builtin and then its argument prototype would still apply. */
29143 if ac_fn_c_try_link "$LINENO"; then :
29144 ac_cv_lib_intl_gettext=yes
29146 ac_cv_lib_intl_gettext=no
29148 rm -f core conftest.err conftest.$ac_objext \
29149 conftest$ac_exeext conftest.$ac_ext
29150 LIBS=$ac_check_lib_save_LIBS
29152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29153 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29154 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29155 LIBS="$LIBS -lintl"
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29160 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29161 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29162 $as_echo_n "(cached) " >&6
29164 ac_check_lib_save_LIBS=$LIBS
29166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29167 /* end confdefs.h. */
29169 /* Override any GCC internal prototype to avoid an error.
29170 Use char because int might match the return type of a GCC
29171 builtin and then its argument prototype would still apply. */
29179 return getpwnam ();
29184 if ac_fn_c_try_link "$LINENO"; then :
29185 ac_cv_lib_sun_getpwnam=yes
29187 ac_cv_lib_sun_getpwnam=no
29189 rm -f core conftest.err conftest.$ac_objext \
29190 conftest$ac_exeext conftest.$ac_ext
29191 LIBS=$ac_check_lib_save_LIBS
29193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29194 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29195 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29196 cat >>confdefs.h <<_ACEOF
29197 #define HAVE_LIBSUN 1
29205 for ac_header in zlib.h
29207 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29208 if test "x$ac_cv_header_zlib_h" = xyes; then :
29209 cat >>confdefs.h <<_ACEOF
29210 #define HAVE_ZLIB_H 1
29217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29218 $as_echo_n "checking for deflate in -lz... " >&6; }
29219 if ${ac_cv_lib_z_deflate+:} false; then :
29220 $as_echo_n "(cached) " >&6
29222 ac_check_lib_save_LIBS=$LIBS
29224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29225 /* end confdefs.h. */
29227 /* Override any GCC internal prototype to avoid an error.
29228 Use char because int might match the return type of a GCC
29229 builtin and then its argument prototype would still apply. */
29242 if ac_fn_c_try_link "$LINENO"; then :
29243 ac_cv_lib_z_deflate=yes
29245 ac_cv_lib_z_deflate=no
29247 rm -f core conftest.err conftest.$ac_objext \
29248 conftest$ac_exeext conftest.$ac_ext
29249 LIBS=$ac_check_lib_save_LIBS
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29252 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29253 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29258 if test x$ZLIBS = x-lz; then
29259 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29268 # Check whether --enable-afs was given.
29269 if test "${enable_afs+set}" = set; then :
29270 enableval=$enable_afs;
29271 if test x$enableval = xyes; then
29273 elif test x$enableval = xno; then
29282 if test x$support_afs = xyes -o x$support_afs = xauto; then
29284 # Check whether --with-afsdir was given.
29285 if test "${with_afsdir+set}" = set; then :
29286 withval=$with_afsdir; with_afsdir=$withval
29291 if test x$with_afsdir = x; then
29292 for root in /usr /usr/local; do
29293 if test -d ${root}/include/afs/ ; then
29294 with_afsdir=${root}
29297 if test -d ${root}/include/openafs/afs/ ; then
29298 with_afsdir=${root}
29304 if test -d ${with_afsdir}/include/afs/ ; then
29305 AFS_CFLAGS="-I${with_afsdir}/include"
29307 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29308 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29312 saved_CFLAGS="${CFLAGS}"
29313 saved_CPPFLAGS="${CPPFLAGS}"
29314 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29315 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29317 for ac_header in afs/afsint.h
29319 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29320 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29321 cat >>confdefs.h <<_ACEOF
29322 #define HAVE_AFS_AFSINT_H 1
29329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29330 /* end confdefs.h. */
29332 #include <afs/afsint.h>
29333 #include <afs/venus.h>
29336 if ac_fn_c_try_cpp "$LINENO"; then :
29338 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29342 rm -f conftest.err conftest.i conftest.$ac_ext
29344 CFLAGS="${saved_CFLAGS}"
29345 CPPFLAGS="${saved_CPPFLAGS}"
29347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29348 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29349 for dir in ${with_afsdir}/lib \
29350 ${with_afsdir}/lib/afs \
29351 ${with_afsdir}/lib/openafs \
29352 ${with_afsdir}/lib64 \
29353 ${with_afsdir}/lib64/afs \
29354 ${with_afsdir}/lib64/openafs
29356 for arch_type in .a .so
29358 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29360 if test $pkg = 0; then
29362 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29368 if test $have_afs = yes; then
29369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29370 $as_echo "yes" >&6; }
29372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29373 $as_echo "no" >&6; }
29376 if test x$support_afs = xyes -a $have_afs != yes; then
29377 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29378 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29380 if test $have_afs = yes; then
29382 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29385 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29394 # Check whether --enable-lzo was given.
29395 if test "${enable_lzo+set}" = set; then :
29396 enableval=$enable_lzo;
29397 if test x$enableval = xno; then
29410 if test x$support_lzo = xyes; then
29412 # Check whether --with-lzo was given.
29413 if test "${with_lzo+set}" = set; then :
29415 case "$with_lzo" in
29420 if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29421 LZO_INC="-I${with_lzo}/include"
29422 LZO_LDFLAGS="-L${with_lzo}/lib"
29423 with_lzo="${with_lzo}/include"
29425 with_lzo="/usr/include"
29428 as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29429 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29430 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29433 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29435 LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29441 echo "lzoconf.h not found. lzo turned off ..."
29453 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29454 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29456 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29457 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29460 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29461 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29462 $as_echo_n "(cached) " >&6
29464 ac_check_lib_save_LIBS=$LIBS
29465 LIBS="-llzo2 $LIBS"
29466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29467 /* end confdefs.h. */
29469 /* Override any GCC internal prototype to avoid an error.
29470 Use char because int might match the return type of a GCC
29471 builtin and then its argument prototype would still apply. */
29475 char lzo1x_1_compress ();
29479 return lzo1x_1_compress ();
29484 if ac_fn_c_try_link "$LINENO"; then :
29485 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29487 ac_cv_lib_lzo2_lzo1x_1_compress=no
29489 rm -f core conftest.err conftest.$ac_objext \
29490 conftest$ac_exeext conftest.$ac_ext
29491 LIBS=$ac_check_lib_save_LIBS
29493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29494 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29495 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29499 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29523 # Check whether --enable-acl was given.
29524 if test "${enable_acl+set}" = set; then :
29525 enableval=$enable_acl;
29526 if test x$enableval = xyes; then
29528 elif test x$enableval = xno; then
29537 have_extended_acl=no
29538 if test x$support_acl = xyes -o x$support_acl = xauto; then
29539 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29540 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29542 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29548 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29549 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29557 if test $have_acl = no; then
29558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29559 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29560 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29561 $as_echo_n "(cached) " >&6
29563 ac_check_lib_save_LIBS=$LIBS
29565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29566 /* end confdefs.h. */
29568 /* Override any GCC internal prototype to avoid an error.
29569 Use char because int might match the return type of a GCC
29570 builtin and then its argument prototype would still apply. */
29574 char acl_get_file ();
29578 return acl_get_file ();
29583 if ac_fn_c_try_link "$LINENO"; then :
29584 ac_cv_lib_acl_acl_get_file=yes
29586 ac_cv_lib_acl_acl_get_file=no
29588 rm -f core conftest.err conftest.$ac_objext \
29589 conftest$ac_exeext conftest.$ac_ext
29590 LIBS=$ac_check_lib_save_LIBS
29592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29593 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29594 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29597 if test $have_afs = yes; then
29598 if test -d /usr/lib64/; then
29599 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29601 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29604 FDLIBS="-lacl $FDLIBS"
29612 if test $have_acl = no -a \
29613 x${HAVE_OSF1_OS_TRUE} = x; then
29614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29615 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29616 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29617 $as_echo_n "(cached) " >&6
29619 ac_check_lib_save_LIBS=$LIBS
29620 LIBS="-lpacl $LIBS"
29621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29622 /* end confdefs.h. */
29624 /* Override any GCC internal prototype to avoid an error.
29625 Use char because int might match the return type of a GCC
29626 builtin and then its argument prototype would still apply. */
29630 char acl_get_file ();
29634 return acl_get_file ();
29639 if ac_fn_c_try_link "$LINENO"; then :
29640 ac_cv_lib_pacl_acl_get_file=yes
29642 ac_cv_lib_pacl_acl_get_file=no
29644 rm -f core conftest.err conftest.$ac_objext \
29645 conftest$ac_exeext conftest.$ac_ext
29646 LIBS=$ac_check_lib_save_LIBS
29648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29649 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29650 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29653 FDLIBS="-lpacl $FDLIBS"
29659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29660 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29661 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29662 if test $? = 0; then
29664 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29667 $as_echo "yes" >&6; }
29669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29670 $as_echo "no" >&6; }
29674 if test $have_acl = yes -a \
29675 x${HAVE_DARWIN_OS_TRUE} = x; then
29676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29677 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29678 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29679 if test $? = 0; then
29681 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29684 $as_echo "yes" >&6; }
29686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29687 $as_echo "no" >&6; }
29691 if test $have_acl = yes -a \
29692 x${HAVE_FREEBSD_OS_TRUE} = x; then
29693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29694 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29695 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29696 if test $? = 0; then
29698 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29701 $as_echo "yes" >&6; }
29703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29704 $as_echo "no" >&6; }
29708 if test $have_acl = no -a \
29709 x${HAVE_SUN_OS_TRUE} = x; then
29710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29711 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29712 if ${ac_cv_lib_sec_acltotext+:} false; then :
29713 $as_echo_n "(cached) " >&6
29715 ac_check_lib_save_LIBS=$LIBS
29717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29718 /* end confdefs.h. */
29720 /* Override any GCC internal prototype to avoid an error.
29721 Use char because int might match the return type of a GCC
29722 builtin and then its argument prototype would still apply. */
29730 return acltotext ();
29735 if ac_fn_c_try_link "$LINENO"; then :
29736 ac_cv_lib_sec_acltotext=yes
29738 ac_cv_lib_sec_acltotext=no
29740 rm -f core conftest.err conftest.$ac_objext \
29741 conftest$ac_exeext conftest.$ac_ext
29742 LIBS=$ac_check_lib_save_LIBS
29744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29745 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29746 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29749 FDLIBS="-lsec $FDLIBS"
29751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29752 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29753 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29754 $as_echo_n "(cached) " >&6
29756 ac_check_lib_save_LIBS=$LIBS
29758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29759 /* end confdefs.h. */
29761 /* Override any GCC internal prototype to avoid an error.
29762 Use char because int might match the return type of a GCC
29763 builtin and then its argument prototype would still apply. */
29767 char acl_totext ();
29771 return acl_totext ();
29776 if ac_fn_c_try_link "$LINENO"; then :
29777 ac_cv_lib_sec_acl_totext=yes
29779 ac_cv_lib_sec_acl_totext=no
29781 rm -f core conftest.err conftest.$ac_objext \
29782 conftest$ac_exeext conftest.$ac_ext
29783 LIBS=$ac_check_lib_save_LIBS
29785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29786 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29787 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29789 have_extended_acl=yes
29800 if test $have_acl = no -a \
29801 x${HAVE_AIX_OS_TRUE} = x; then
29802 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29803 if test "x$ac_cv_func_acl_get" = xyes; then :
29807 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29808 if test "x$ac_cv_func_aclx_get" = xyes; then :
29810 have_extended_acl=yes
29821 if test x$support_acl = xyes -a $have_acl != yes; then
29822 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29823 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29825 if test $have_acl = yes; then
29827 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29831 if test $have_extended_acl = yes; then
29833 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29840 # Check whether --enable-xattr was given.
29841 if test "${enable_xattr+set}" = set; then :
29842 enableval=$enable_xattr;
29843 if test x$enableval = xyes; then
29845 elif test x$enableval = xno; then
29854 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29855 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29856 x${HAVE_NETBSD_OS_TRUE} = x -o \
29857 x${HAVE_OPENBSD_OS_TRUE} = x; then
29858 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29859 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29861 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29866 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29867 if test "x$ac_cv_header_libutil_h" = xyes; then :
29869 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29874 for ac_func in extattr_get_link extattr_set_link extattr_list_link
29876 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29877 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29878 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29879 cat >>confdefs.h <<_ACEOF
29880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29885 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29888 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29891 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29899 if test $have_xattr = no; then
29900 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29902 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29903 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29904 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29905 cat >>confdefs.h <<_ACEOF
29906 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29911 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29914 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29917 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29926 if test $have_xattr = yes; then
29927 have_extattr_string_in_libc=no
29928 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29930 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29931 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29932 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29933 cat >>confdefs.h <<_ACEOF
29934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29937 have_extattr_string_in_libc=yes
29939 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29942 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29950 if test $have_extattr_string_in_libc = no; then
29951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29952 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29953 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29954 $as_echo_n "(cached) " >&6
29956 ac_check_lib_save_LIBS=$LIBS
29957 LIBS="-lutil $LIBS"
29958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29959 /* end confdefs.h. */
29961 /* Override any GCC internal prototype to avoid an error.
29962 Use char because int might match the return type of a GCC
29963 builtin and then its argument prototype would still apply. */
29967 char extattr_namespace_to_string extattr_string_to_namespace ();
29971 return extattr_namespace_to_string extattr_string_to_namespace ();
29976 if ac_fn_c_try_link "$LINENO"; then :
29977 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29979 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29981 rm -f core conftest.err conftest.$ac_objext \
29982 conftest$ac_exeext conftest.$ac_ext
29983 LIBS=$ac_check_lib_save_LIBS
29985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29986 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29987 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29990 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29993 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29995 FDLIBS="-lutil $FDLIBS"
30004 if test $have_xattr = no -a \
30005 x${HAVE_AIX_OS_TRUE} = x; then
30006 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30007 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30009 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30014 for ac_func in llistea lgetea lsetea
30016 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30017 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30018 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30019 cat >>confdefs.h <<_ACEOF
30020 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30025 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30028 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30031 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30039 if test $have_xattr = no; then
30040 for ac_func in listea getea setea
30042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30043 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30044 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30045 cat >>confdefs.h <<_ACEOF
30046 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30051 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30054 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30057 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30067 if test $have_xattr = no -a \
30068 x${HAVE_OSF1_OS_TRUE} = x; then
30069 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30070 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30072 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30077 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30080 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30081 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30082 cat >>confdefs.h <<_ACEOF
30083 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30088 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30091 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30094 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30097 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30100 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30109 if test $have_xattr = no -a \
30110 x${HAVE_SUN_OS_TRUE} = x; then
30111 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30112 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30114 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30119 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30120 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30122 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30127 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30128 if test "x$ac_cv_header_attr_h" = xyes; then :
30130 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30136 for ac_func in openat fstatat unlinkat fchownat futimesat
30138 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30139 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30140 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30141 cat >>confdefs.h <<_ACEOF
30142 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30147 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30150 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30153 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30156 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30159 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30167 if test $have_xattr = yes; then
30168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30169 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30170 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30171 $as_echo_n "(cached) " >&6
30173 ac_check_lib_save_LIBS=$LIBS
30174 LIBS="-lnvpair $LIBS"
30175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30176 /* end confdefs.h. */
30178 /* Override any GCC internal prototype to avoid an error.
30179 Use char because int might match the return type of a GCC
30180 builtin and then its argument prototype would still apply. */
30184 char nvlist_next_nvpair ();
30188 return nvlist_next_nvpair ();
30193 if ac_fn_c_try_link "$LINENO"; then :
30194 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30196 ac_cv_lib_nvpair_nvlist_next_nvpair=no
30198 rm -f core conftest.err conftest.$ac_objext \
30199 conftest$ac_exeext conftest.$ac_ext
30200 LIBS=$ac_check_lib_save_LIBS
30202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30203 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30204 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30207 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30209 FDLIBS="-lnvpair $FDLIBS"
30217 if test $have_xattr = no; then
30218 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30219 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30221 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30226 for ac_func in llistxattr lgetxattr lsetxattr
30228 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30229 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30230 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30231 cat >>confdefs.h <<_ACEOF
30232 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30237 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30240 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30243 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30251 if test $have_xattr = no; then
30252 for ac_func in listxattr getxattr setxattr
30254 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30255 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30256 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30257 cat >>confdefs.h <<_ACEOF
30258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30263 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30266 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30269 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30279 if test x$support_xattr = xyes -a $have_xattr != yes; then
30280 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30281 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30283 if test $have_xattr = yes; then
30285 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30293 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30294 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30295 $as_echo_n "(cached) " >&6
30297 ac_check_lib_save_LIBS=$LIBS
30298 LIBS="-lpthread $LIBS"
30299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30300 /* end confdefs.h. */
30302 /* Override any GCC internal prototype to avoid an error.
30303 Use char because int might match the return type of a GCC
30304 builtin and then its argument prototype would still apply. */
30308 char pthread_create ();
30312 return pthread_create ();
30317 if ac_fn_c_try_link "$LINENO"; then :
30318 ac_cv_lib_pthread_pthread_create=yes
30320 ac_cv_lib_pthread_pthread_create=no
30322 rm -f core conftest.err conftest.$ac_objext \
30323 conftest$ac_exeext conftest.$ac_ext
30324 LIBS=$ac_check_lib_save_LIBS
30326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30327 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30328 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30329 PTHREAD_LIB="-lpthread"
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30333 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30334 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30335 $as_echo_n "(cached) " >&6
30337 ac_check_lib_save_LIBS=$LIBS
30338 LIBS="-lpthreads $LIBS"
30339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30340 /* end confdefs.h. */
30342 /* Override any GCC internal prototype to avoid an error.
30343 Use char because int might match the return type of a GCC
30344 builtin and then its argument prototype would still apply. */
30348 char pthread_create ();
30352 return pthread_create ();
30357 if ac_fn_c_try_link "$LINENO"; then :
30358 ac_cv_lib_pthreads_pthread_create=yes
30360 ac_cv_lib_pthreads_pthread_create=no
30362 rm -f core conftest.err conftest.$ac_objext \
30363 conftest$ac_exeext conftest.$ac_ext
30364 LIBS=$ac_check_lib_save_LIBS
30366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30367 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30368 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30369 PTHREAD_LIB="-lpthreads"
30372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30373 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30374 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30375 $as_echo_n "(cached) " >&6
30377 ac_check_lib_save_LIBS=$LIBS
30379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30380 /* end confdefs.h. */
30382 /* Override any GCC internal prototype to avoid an error.
30383 Use char because int might match the return type of a GCC
30384 builtin and then its argument prototype would still apply. */
30388 char pthread_create ();
30392 return pthread_create ();
30397 if ac_fn_c_try_link "$LINENO"; then :
30398 ac_cv_lib_c_r_pthread_create=yes
30400 ac_cv_lib_c_r_pthread_create=no
30402 rm -f core conftest.err conftest.$ac_objext \
30403 conftest$ac_exeext conftest.$ac_ext
30404 LIBS=$ac_check_lib_save_LIBS
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30407 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30408 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30409 PTHREAD_LIB="-lc_r"
30412 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30413 if test "x$ac_cv_func_pthread_create" = xyes; then :
30430 for ac_header in sys/prctl.h sys/capability.h
30432 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30433 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30434 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30435 cat >>confdefs.h <<_ACEOF
30436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30443 for ac_func in prctl setreuid
30445 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30446 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30447 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30448 cat >>confdefs.h <<_ACEOF
30449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30456 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30457 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30458 $as_echo_n "(cached) " >&6
30460 ac_check_lib_save_LIBS=$LIBS
30462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30463 /* end confdefs.h. */
30465 /* Override any GCC internal prototype to avoid an error.
30466 Use char because int might match the return type of a GCC
30467 builtin and then its argument prototype would still apply. */
30471 char cap_set_proc ();
30475 return cap_set_proc ();
30480 if ac_fn_c_try_link "$LINENO"; then :
30481 ac_cv_lib_cap_cap_set_proc=yes
30483 ac_cv_lib_cap_cap_set_proc=no
30485 rm -f core conftest.err conftest.$ac_objext \
30486 conftest$ac_exeext conftest.$ac_ext
30487 LIBS=$ac_check_lib_save_LIBS
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30490 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30491 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30497 if test x$CAP_LIBS = x-lcap; then
30499 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30505 $as_echo "#define FDLIBS 1" >>confdefs.h
30508 CFLAGS=${CFLAGS--O}
30510 if test x$have_gcc = xyes ; then
30511 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30512 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30514 LDFLAGS=${LDFLAGS--O}
30515 CPPFLAGS="$CPPFLAGS"
30544 COMPRESS_MANPAGES=yes
30546 case "$DISTNAME" in
30549 PSCMD="ps -e -o pid,comm"
30550 PFILES="${PFILES} platforms/aix/Makefile"
30551 TAPEDRIVE="/dev/rmt0.1"
30555 PTHREAD_LIB="-lpthread -lexc"
30556 if test "${CC}" = "gcc" ; then
30563 TAPEDRIVE="/dev/nrmt0"
30566 DISTVER=`uname -a |awk '{print $3}'`
30567 TAPEDRIVE="/dev/nrmt0"
30568 PTHREAD_LIB="-pthread"
30569 CFLAGS="${CFLAGS} -pthread"
30570 PSCMD="ps -ax -o pid,command"
30573 PFILES="${PFILES} \
30574 platforms/bsdi/Makefile \
30575 platforms/bsdi/bacula-fd \
30576 platforms/bsdi/bacula-sd \
30577 platforms/bsdi/bacula-dir"
30578 largefile_support="yes"
30581 DISTVER=`uname -a |awk '{print $3}'`
30582 TAPEDRIVE="/dev/nrst0"
30584 WCFLAGS="-mwindows"
30585 WLDFLAGS="-mwindows"
30589 TAPEDRIVE="/dev/nst0"
30590 PSCMD="ps -e -o pid,command"
30592 PFILES="${PFILES} \
30593 platforms/darwin/Makefile"
30597 TAPEDRIVE="/dev/nst0"
30598 PSCMD="ps -e -o pid,command"
30600 PFILES="${PFILES} \
30601 platforms/osx/Makefile"
30604 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30607 DISTVER=`cat /etc/debian_version`
30608 if test -f /etc/lsb-release ; then
30610 if test "x$DISTRIB_ID" != "x" ; then
30611 DISTNAME=$DISTRIB_ID
30613 if test "x$DISTRIB_RELEASE" != "x" ; then
30614 DISTVER=$DISTRIB_RELEASE
30617 if test "$DISTNAME" = "Ubuntu" ; then
30620 TAPEDRIVE="/dev/nst0"
30621 PSCMD="ps -e -o pid,command"
30622 if test "$DISTNAME" = "ubuntu" ; then
30623 PFILES="${PFILES} \
30624 platforms/ubuntu/Makefile \
30625 platforms/ubuntu/bacula-fd \
30626 platforms/ubuntu/bacula-sd \
30627 platforms/ubuntu/bacula-dir"
30629 PFILES="${PFILES} \
30630 platforms/debian/Makefile \
30631 platforms/debian/bacula-fd \
30632 platforms/debian/bacula-sd \
30633 platforms/debian/bacula-dir"
30637 DISTVER=`uname -a |awk '{print $3}'`
30638 VER=`echo $DISTVER | cut -c 1`
30639 if test x$VER = x4 ; then
30640 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30641 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30645 TAPEDRIVE="/dev/nrsa0"
30646 PSCMD="ps -ax -o pid,command"
30647 PFILES="${PFILES} \
30648 platforms/freebsd/Makefile \
30649 platforms/freebsd/bacula-fd \
30650 platforms/freebsd/bacula-sd \
30651 platforms/freebsd/bacula-dir"
30652 largefile_support="yes"
30656 TAPEDRIVE="/dev/nst0"
30657 PSCMD="ps -e -o pid,command"
30658 PFILES="${PFILES} \
30659 platforms/hurd/Makefile \
30660 platforms/hurd/bacula-fd \
30661 platforms/hurd/bacula-sd \
30662 platforms/hurd/bacula-dir"
30665 PSCMD="UNIX95=1; ps -e -o pid,comm"
30666 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30668 TAPEDRIVE="/dev/rmt/0hnb"
30669 PTHREAD_LIB="-lpthread"
30670 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30675 TAPEDRIVE="/dev/rmt/0cbn"
30676 PSCMD="ps -e -o pid,comm"
30677 PFILES="${PFILES} \
30678 platforms/irix/Makefile \
30679 platforms/irix/bacula-fd \
30680 platforms/irix/bacula-sd \
30681 platforms/irix/bacula-dir"
30684 DISTVER=`uname -a |awk '{print $3}'`
30687 TAPEDRIVE="/dev/nrst0"
30688 PSCMD="ps -ax -o pid,command"
30689 PTHREAD_LIB="-pthread"
30690 CFLAGS="${CFLAGS} -pthread"
30693 DISTVER=`uname -a |awk '{print $3}'`
30696 TAPEDRIVE="/dev/nrst0"
30697 PSCMD="ps -ax -o pid,command"
30698 PTHREAD_LIB="-pthread"
30699 CFLAGS="${CFLAGS} -pthread"
30700 PFILES="${PFILES} \
30701 platforms/openbsd/Makefile \
30702 platforms/openbsd/bacula-fd \
30703 platforms/openbsd/bacula-sd \
30704 platforms/openbsd/bacula-dir"
30707 if test -f /etc/whitebox-release ; then
30708 f=/etc/whitebox-release
30710 f=/etc/redhat-release
30712 if test `cat $f | grep release |\
30713 cut -f 3 -d ' '`x = "Enterprise"x ; then
30714 DISTVER="Enterprise "`cat $f | grep release |\
30717 DISTVER=`cat /etc/redhat-release | grep release |\
30720 TAPEDRIVE="/dev/nst0"
30721 PSCMD="ps -e -o pid,command"
30722 PFILES="${PFILES} \
30723 platforms/redhat/Makefile \
30724 platforms/redhat/bacula-fd \
30725 platforms/redhat/bacula-sd \
30726 platforms/redhat/bacula-dir
30730 DISTVER=`cat /etc/mandrake-release | grep release |\
30732 TAPEDRIVE="/dev/nst0"
30733 PSCMD="ps -e -o pid,command"
30734 PFILES="${PFILES} \
30735 platforms/mandrake/Makefile \
30736 platforms/mandrake/bacula-fd \
30737 platforms/mandrake/bacula-sd \
30738 platforms/mandrake/bacula-dir \
30742 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30743 TAPEDRIVE="/dev/nst0"
30744 PSCMD="ps -e -o pid,command"
30745 PFILES="${PFILES} \
30746 platforms/gentoo/Makefile \
30747 platforms/gentoo/bacula-init \
30748 platforms/gentoo/bacula-fd \
30749 platforms/gentoo/bacula-sd \
30750 platforms/gentoo/bacula-dir"
30753 DISTVER=`cat /etc/slackware-version`
30754 TAPEDRIVE="/dev/nst0"
30755 PSCMD="ps -e -o pid,command"
30756 PFILES="${PFILES} \
30757 platforms/slackware/Makefile \
30758 platforms/slackware/rc.bacula-fd \
30759 platforms/slackware/rc.bacula-sd \
30760 platforms/slackware/rc.bacula-dir\
30761 platforms/slackware/functions.bacula"
30765 TAPEDRIVE="/dev/rmt/0cbn"
30766 PSCMD="ps -e -o pid,comm"
30767 PFILES="${PFILES} \
30768 platforms/solaris/Makefile \
30769 platforms/solaris/bacula-fd \
30770 platforms/solaris/bacula-sd \
30771 platforms/solaris/bacula-dir"
30775 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30777 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30781 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30787 LIBS="$LIBS -lresolv -lrt"
30790 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30792 TAPEDRIVE="/dev/nst0"
30793 PSCMD="ps -e -o pid,command"
30794 PFILES="${PFILES} \
30795 platforms/suse/Makefile \
30796 platforms/suse/bacula-fd \
30797 platforms/suse/bacula-sd \
30798 platforms/suse/bacula-dir \
30799 platforms/suse/bacula"
30804 TAPEDRIVE="/dev/nst0"
30805 PSCMD="ps -e -o pid,command"
30806 PFILES="${PFILES} \
30807 platforms/suse/Makefile \
30808 platforms/suse/bacula-fd \
30809 platforms/suse/bacula-sd \
30810 platforms/suse/bacula-dir"
30814 TAPEDRIVE="/dev/nst0"
30817 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30822 $as_echo_n "checking for systemd support... " >&6; }
30824 # Check whether --with-systemd was given.
30825 if test "${with_systemd+set}" = set; then :
30826 withval=$with_systemd;
30827 if test "$withval" != "no"; then
30828 if test "$withval" = "yes"; then
30829 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30831 SYSTEMD_UNITDIR="${withval}"
30834 PFILES="${PFILES} \
30835 platforms/systemd/Makefile \
30836 platforms/systemd/bacula-dir.service \
30837 platforms/systemd/bacula-fd.service \
30838 platforms/systemd/bacula-sd.service"
30840 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30843 $as_echo "yes" >&6; }
30844 support_systemd="yes"
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30847 $as_echo "no" >&6; }
30848 support_systemd="no"
30853 support_systemd="no"
30854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30855 $as_echo "no" >&6; }
30864 LIBS="$PTHREAD_LIB $LIBS"
30866 cat >>confdefs.h <<_ACEOF
30870 cat >>confdefs.h <<_ACEOF
30882 MCOMMON=./autoconf/Make.common
30885 if test "x${subsysdir}" = "x${sbindir}" ; then
30888 echo "You have set both --sbindir and --with-subsys-dir"
30889 echo " equal to: ${subsysdir} "
30890 echo "This is not permitted. Please reconfigure."
30892 echo "Aborting configuration ..."
30899 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/bat.pro.mingw64 src/qt-console/install_conf_file src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.pro.mingw32 src/qt-console/tray-monitor/tray-monitor.pro.mingw64 src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/cats/install-default-backend src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile po/Makefile.in updatedb/update_mysql_tables updatedb/update_sqlite3_tables updatedb/update_postgresql_tables updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 updatedb/update_mysql_tables_12_to_13 updatedb/update_postgresql_tables_12_to_13 updatedb/update_mysql_tables_13_to_14 updatedb/update_postgresql_tables_13_to_14 examples/nagios/check_bacula/Makefile platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec platforms/rpms/suse/bacula.spec platforms/rpms/suse/bacula-bat.spec platforms/rpms/suse/bacula-docs.spec platforms/rpms/suse/bacula-mtx.spec $PFILES"
30901 ac_config_commands="$ac_config_commands default"
30903 cat >confcache <<\_ACEOF
30904 # This file is a shell script that caches the results of configure
30905 # tests run on this system so they can be shared between configure
30906 # scripts and configure runs, see configure's option --config-cache.
30907 # It is not useful on other systems. If it contains results you don't
30908 # want to keep, you may remove or edit it.
30910 # config.status only pays attention to the cache file if you give it
30911 # the --recheck option to rerun configure.
30913 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30914 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30915 # following values.
30919 # The following way of writing the cache mishandles newlines in values,
30920 # but we know of no workaround that is simple, portable, and efficient.
30921 # So, we kill variables containing newlines.
30922 # Ultrix sh set writes to stderr and can't be redirected directly,
30923 # and sets the high bit in the cache file unless we assign to the vars.
30925 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30926 eval ac_val=\$$ac_var
30930 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30931 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30934 _ | IFS | as_nl) ;; #(
30935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30936 *) { eval $ac_var=; unset $ac_var;} ;;
30942 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30943 *${as_nl}ac_space=\ *)
30944 # `set' does not quote correctly, so add quotes: double-quote
30945 # substitution turns \\\\ into \\, and sed turns \\ into \.
30948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30951 # `set' quotes correctly as required by POSIX, so do not add quotes.
30952 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30961 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30963 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30965 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30966 if test -w "$cache_file"; then
30967 if test "x$cache_file" != "x/dev/null"; then
30968 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30969 $as_echo "$as_me: updating cache $cache_file" >&6;}
30970 if test ! -f "$cache_file" || test -h "$cache_file"; then
30971 cat confcache >"$cache_file"
30973 case $cache_file in #(
30975 mv -f confcache "$cache_file"$$ &&
30976 mv -f "$cache_file"$$ "$cache_file" ;; #(
30978 mv -f confcache "$cache_file" ;;
30983 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30984 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30989 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30990 # Let make expand exec_prefix.
30991 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30993 DEFS=-DHAVE_CONFIG_H
30998 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30999 # 1. Remove the extension, and $U if already installed.
31000 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31001 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31002 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31003 # will be set to the directory where LIBOBJS objects are built.
31004 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31005 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31007 LIBOBJS=$ac_libobjs
31009 LTLIBOBJS=$ac_ltlibobjs
31014 : "${CONFIG_STATUS=./config.status}"
31016 ac_clean_files_save=$ac_clean_files
31017 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31019 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31021 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31023 # Generated by $as_me.
31024 # Run this file to recreate the current configuration.
31025 # Compiler output produced by configure, useful for debugging
31026 # configure, is in config.log if it exists.
31029 ac_cs_recheck=false
31032 SHELL=\${CONFIG_SHELL-$SHELL}
31035 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31036 ## -------------------- ##
31037 ## M4sh Initialization. ##
31038 ## -------------------- ##
31040 # Be more Bourne compatible
31041 DUALCASE=1; export DUALCASE # for MKS sh
31042 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31045 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31046 # is contrary to our usage. Disable this feature.
31047 alias -g '${1+"$@"}'='"$@"'
31048 setopt NO_GLOB_SUBST
31050 case `(set -o) 2>/dev/null` in #(
31062 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31063 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31064 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31065 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31066 # Prefer a ksh shell builtin over an external printf program on Solaris,
31067 # but without wasting forks for bash or zsh.
31068 if test -z "$BASH_VERSION$ZSH_VERSION" \
31069 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31070 as_echo='print -r --'
31071 as_echo_n='print -rn --'
31072 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31073 as_echo='printf %s\n'
31074 as_echo_n='printf %s'
31076 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31077 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31078 as_echo_n='/usr/ucb/echo -n'
31080 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31081 as_echo_n_body='eval
31085 expr "X$arg" : "X\\(.*\\)$as_nl";
31086 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31088 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31090 export as_echo_n_body
31091 as_echo_n='sh -c $as_echo_n_body as_echo'
31093 export as_echo_body
31094 as_echo='sh -c $as_echo_body as_echo'
31097 # The user is always right.
31098 if test "${PATH_SEPARATOR+set}" != set; then
31100 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31101 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31108 # We need space, tab and new line, in precisely that order. Quoting is
31109 # there to prevent editors from complaining about space-tab.
31110 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31111 # splitting by setting IFS to empty value.)
31114 # Find who we are. Look in the path if we contain no directory separator.
31117 *[\\/]* ) as_myself=$0 ;;
31118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31119 for as_dir in $PATH
31122 test -z "$as_dir" && as_dir=.
31123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31129 # We did not find ourselves, most probably we were run as `sh COMMAND'
31130 # in which case we are not to be found in the path.
31131 if test "x$as_myself" = x; then
31134 if test ! -f "$as_myself"; then
31135 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31139 # Unset variables that we do not need and which cause bugs (e.g. in
31140 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31141 # suppresses any "Segmentation fault" message there. '((' could
31142 # trigger a bug in pdksh 5.2.14.
31143 for as_var in BASH_ENV ENV MAIL MAILPATH
31144 do eval test x\${$as_var+set} = xset \
31145 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31158 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31161 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31162 # ----------------------------------------
31163 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31164 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31165 # script with STATUS, using 1 if that was 0.
31168 as_status=$1; test $as_status -eq 0 && as_status=1
31170 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31171 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31173 $as_echo "$as_me: error: $2" >&2
31174 as_fn_exit $as_status
31178 # as_fn_set_status STATUS
31179 # -----------------------
31180 # Set $? to STATUS, without forking.
31181 as_fn_set_status ()
31184 } # as_fn_set_status
31186 # as_fn_exit STATUS
31187 # -----------------
31188 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31192 as_fn_set_status $1
31198 # Portably unset VAR.
31201 { eval $1=; unset $1;}
31203 as_unset=as_fn_unset
31204 # as_fn_append VAR VALUE
31205 # ----------------------
31206 # Append the text in VALUE to the end of the definition contained in VAR. Take
31207 # advantage of any shell optimizations that allow amortized linear growth over
31208 # repeated appends, instead of the typical quadratic growth present in naive
31210 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31211 eval 'as_fn_append ()
31222 # as_fn_arith ARG...
31223 # ------------------
31224 # Perform arithmetic evaluation on the ARGs, and store the result in the
31225 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31226 # must be portable across $(()) and expr.
31227 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31228 eval 'as_fn_arith ()
31235 as_val=`expr "$@" || test $? -eq 1`
31240 if expr a : '\(a\)' >/dev/null 2>&1 &&
31241 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31247 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31248 as_basename=basename
31253 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31259 as_me=`$as_basename -- "$0" ||
31260 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31261 X"$0" : 'X\(//\)$' \| \
31262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31264 sed '/^.*\/\([^/][^/]*\)\/*$/{
31278 # Avoid depending upon Character Ranges.
31279 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31280 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31281 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31282 as_cr_digits='0123456789'
31283 as_cr_alnum=$as_cr_Letters$as_cr_digits
31285 ECHO_C= ECHO_N= ECHO_T=
31286 case `echo -n x` in #(((((
31288 case `echo 'xy\c'` in
31289 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31291 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31298 rm -f conf$$ conf$$.exe conf$$.file
31299 if test -d conf$$.dir; then
31300 rm -f conf$$.dir/conf$$.file
31303 mkdir conf$$.dir 2>/dev/null
31305 if (echo >conf$$.file) 2>/dev/null; then
31306 if ln -s conf$$.file conf$$ 2>/dev/null; then
31308 # ... but there are two gotchas:
31309 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31310 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31311 # In both cases, we have to default to `cp -pR'.
31312 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31314 elif ln conf$$.file conf$$ 2>/dev/null; then
31322 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31323 rmdir conf$$.dir 2>/dev/null
31328 # Create "$as_dir" as a directory, including parents if necessary.
31333 -*) as_dir=./$as_dir;;
31335 test -d "$as_dir" || eval $as_mkdir_p || {
31339 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31340 *) as_qdir=$as_dir;;
31342 as_dirs="'$as_qdir' $as_dirs"
31343 as_dir=`$as_dirname -- "$as_dir" ||
31344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31345 X"$as_dir" : 'X\(//\)[^/]' \| \
31346 X"$as_dir" : 'X\(//\)$' \| \
31347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31348 $as_echo X"$as_dir" |
31349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31353 /^X\(\/\/\)[^/].*/{
31366 test -d "$as_dir" && break
31368 test -z "$as_dirs" || eval "mkdir $as_dirs"
31369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31373 if mkdir -p . 2>/dev/null; then
31374 as_mkdir_p='mkdir -p "$as_dir"'
31376 test -d ./-p && rmdir ./-p
31381 # as_fn_executable_p FILE
31382 # -----------------------
31383 # Test if FILE is an executable regular file.
31384 as_fn_executable_p ()
31386 test -f "$1" && test -x "$1"
31387 } # as_fn_executable_p
31388 as_test_x='test -x'
31389 as_executable_p=as_fn_executable_p
31391 # Sed expression to map a string onto a valid CPP name.
31392 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31394 # Sed expression to map a string onto a valid variable name.
31395 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31399 ## ----------------------------------- ##
31400 ## Main body of $CONFIG_STATUS script. ##
31401 ## ----------------------------------- ##
31403 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31406 # Save the log message, to keep $0 and so on meaningful, and to
31407 # report actual input values of CONFIG_FILES etc. instead of their
31408 # values after options handling.
31410 This file was extended by bacula $as_me 7.2.0, which was
31411 generated by GNU Autoconf 2.69. Invocation command line was
31413 CONFIG_FILES = $CONFIG_FILES
31414 CONFIG_HEADERS = $CONFIG_HEADERS
31415 CONFIG_LINKS = $CONFIG_LINKS
31416 CONFIG_COMMANDS = $CONFIG_COMMANDS
31419 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31424 case $ac_config_files in *"
31425 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31428 case $ac_config_headers in *"
31429 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31434 # Files that config.status was made for.
31435 config_files="$ac_config_files"
31436 config_headers="$ac_config_headers"
31437 config_commands="$ac_config_commands"
31441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31443 \`$as_me' instantiates files and other configuration actions
31444 from templates according to the current configuration. Unless the files
31445 and actions are specified as TAGs, all are instantiated by default.
31447 Usage: $0 [OPTION]... [TAG]...
31449 -h, --help print this help, then exit
31450 -V, --version print version number and configuration settings, then exit
31451 --config print configuration, then exit
31452 -q, --quiet, --silent
31453 do not print progress messages
31454 -d, --debug don't remove temporary files
31455 --recheck update $as_me by reconfiguring in the same conditions
31456 --file=FILE[:TEMPLATE]
31457 instantiate the configuration file FILE
31458 --header=FILE[:TEMPLATE]
31459 instantiate the configuration header FILE
31461 Configuration files:
31464 Configuration headers:
31467 Configuration commands:
31470 Report bugs to the package provider."
31473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31474 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31476 bacula config.status 7.2.0
31477 configured by $0, generated by GNU Autoconf 2.69,
31478 with options \\"\$ac_cs_config\\"
31480 Copyright (C) 2012 Free Software Foundation, Inc.
31481 This config.status script is free software; the Free Software Foundation
31482 gives unlimited permission to copy, distribute and modify it."
31488 test -n "\$AWK" || AWK=awk
31491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31492 # The default lists apply if the user does not specify any file.
31498 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31499 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31503 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31515 # Handling of the options.
31516 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31518 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31519 $as_echo "$ac_cs_version"; exit ;;
31520 --config | --confi | --conf | --con | --co | --c )
31521 $as_echo "$ac_cs_config"; exit ;;
31522 --debug | --debu | --deb | --de | --d | -d )
31524 --file | --fil | --fi | --f )
31527 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31528 '') as_fn_error $? "missing file argument" ;;
31530 as_fn_append CONFIG_FILES " '$ac_optarg'"
31531 ac_need_defaults=false;;
31532 --header | --heade | --head | --hea )
31535 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31537 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31538 ac_need_defaults=false;;
31540 # Conflict between --help and --header
31541 as_fn_error $? "ambiguous option: \`$1'
31542 Try \`$0 --help' for more information.";;
31543 --help | --hel | -h )
31544 $as_echo "$ac_cs_usage"; exit ;;
31545 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31546 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31549 # This is an error.
31550 -*) as_fn_error $? "unrecognized option: \`$1'
31551 Try \`$0 --help' for more information." ;;
31553 *) as_fn_append ac_config_targets " $1"
31554 ac_need_defaults=false ;;
31560 ac_configure_extra_args=
31562 if $ac_cs_silent; then
31564 ac_configure_extra_args="$ac_configure_extra_args --silent"
31568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31569 if \$ac_cs_recheck; then
31570 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31572 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31573 CONFIG_SHELL='$SHELL'
31574 export CONFIG_SHELL
31579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31583 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31584 ## Running $as_me. ##
31590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31596 # The HP-UX ksh and POSIX shell print the target directory to stdout
31597 # if CDPATH is set.
31598 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31600 sed_quote_subst='$sed_quote_subst'
31601 double_quote_subst='$double_quote_subst'
31602 delay_variable_subst='$delay_variable_subst'
31603 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31604 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31605 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31606 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31607 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31608 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31609 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31610 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31611 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31612 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31613 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31614 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31615 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31616 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31617 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31618 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31619 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31620 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31621 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31622 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31623 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31624 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31625 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31626 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31627 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31628 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31629 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31630 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31631 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31632 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31633 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31634 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31635 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31636 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31637 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31638 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31639 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31640 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31641 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31642 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31643 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31644 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31645 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31646 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31647 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31648 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31649 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31650 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31651 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31652 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31653 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31654 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31655 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31656 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31657 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31658 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31659 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"`'
31660 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31661 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31662 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31663 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31664 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31665 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31666 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31667 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31668 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31669 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31670 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31671 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31672 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31673 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31674 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31675 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31676 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31677 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31678 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31679 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31680 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31681 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31682 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31683 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31684 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31685 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31686 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31687 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31688 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31689 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31690 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31691 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31692 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31693 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31694 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31695 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31696 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31697 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31698 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31699 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31700 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31701 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31702 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31703 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31704 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31705 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31706 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31707 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31708 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31709 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31710 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31711 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31712 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31713 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31714 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31715 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31716 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31717 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31718 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31719 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31720 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31721 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31722 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31723 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31724 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31725 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31726 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31727 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31728 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31729 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31730 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31731 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31732 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31733 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31734 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31735 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31736 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31737 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31738 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31739 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31740 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31741 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31742 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31743 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31744 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31745 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31746 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31747 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31748 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31749 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31750 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31751 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31752 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31753 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31754 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31755 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31756 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31757 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31758 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31759 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31760 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31761 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31762 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31763 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31764 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31765 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31766 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31767 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31768 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31769 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31770 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31771 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31772 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31773 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31774 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31775 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31776 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31777 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31778 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31779 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31780 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31781 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31782 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31783 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31784 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31785 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31786 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31789 LTCFLAGS='$LTCFLAGS'
31790 compiler='$compiler_DEFAULT'
31792 # A function that is used when there is no print builtin or printf.
31793 func_fallback_echo ()
31795 eval 'cat <<_LTECHO_EOF
31800 # Quote evaled strings.
31815 deplibs_check_method \
31820 sharedlib_from_linklib_cmd \
31823 archiver_list_spec \
31829 lt_cv_sys_global_symbol_pipe \
31830 lt_cv_sys_global_symbol_to_cdecl \
31831 lt_cv_sys_global_symbol_to_c_name_address \
31832 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31833 nm_file_list_spec \
31834 lt_prog_compiler_no_builtin_flag \
31835 lt_prog_compiler_pic \
31836 lt_prog_compiler_wl \
31837 lt_prog_compiler_static \
31838 lt_cv_prog_compiler_c_o \
31847 export_dynamic_flag_spec \
31848 whole_archive_flag_spec \
31849 compiler_needs_object \
31851 allow_undefined_flag \
31852 no_undefined_flag \
31853 hardcode_libdir_flag_spec \
31854 hardcode_libdir_separator \
31858 variables_saved_for_relink \
31860 library_names_spec \
31862 install_override_mode \
31866 compiler_lib_search_dirs \
31871 compiler_lib_search_path \
31875 lt_prog_compiler_no_builtin_flag_CXX \
31876 lt_prog_compiler_pic_CXX \
31877 lt_prog_compiler_wl_CXX \
31878 lt_prog_compiler_static_CXX \
31879 lt_cv_prog_compiler_c_o_CXX \
31880 export_dynamic_flag_spec_CXX \
31881 whole_archive_flag_spec_CXX \
31882 compiler_needs_object_CXX \
31884 allow_undefined_flag_CXX \
31885 no_undefined_flag_CXX \
31886 hardcode_libdir_flag_spec_CXX \
31887 hardcode_libdir_separator_CXX \
31888 exclude_expsyms_CXX \
31889 include_expsyms_CXX \
31890 file_list_spec_CXX \
31891 compiler_lib_search_dirs_CXX \
31892 predep_objects_CXX \
31893 postdep_objects_CXX \
31896 compiler_lib_search_path_CXX; do
31897 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31898 *[\\\\\\\`\\"\\\$]*)
31899 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31902 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31907 # Double-quote double-evaled strings.
31908 for var in reload_cmds \
31909 old_postinstall_cmds \
31910 old_postuninstall_cmds \
31912 extract_expsyms_cmds \
31913 old_archive_from_new_cmds \
31914 old_archive_from_expsyms_cmds \
31916 archive_expsym_cmds \
31918 module_expsym_cmds \
31919 export_symbols_cmds \
31923 postuninstall_cmds \
31925 sys_lib_search_path_spec \
31926 sys_lib_dlsearch_path_spec \
31928 old_archive_cmds_CXX \
31929 old_archive_from_new_cmds_CXX \
31930 old_archive_from_expsyms_cmds_CXX \
31932 archive_expsym_cmds_CXX \
31934 module_expsym_cmds_CXX \
31935 export_symbols_cmds_CXX \
31937 postlink_cmds_CXX; do
31938 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31939 *[\\\\\\\`\\"\\\$]*)
31940 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31943 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31948 ac_aux_dir='$ac_aux_dir'
31949 xsi_shell='$xsi_shell'
31950 lt_shell_append='$lt_shell_append'
31952 # See if we are running on zsh, and set the options which allow our
31953 # commands through without removal of \ escapes INIT.
31954 if test -n "\${ZSH_VERSION+set}" ; then
31955 setopt NO_GLOB_SUBST
31961 TIMESTAMP='$TIMESTAMP'
31969 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31970 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31972 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31973 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31974 LINGUAS="${LINGUAS-%UNSET%}"
31979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31981 # Handling of arguments.
31982 for ac_config_target in $ac_config_targets
31984 case $ac_config_target in
31985 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31986 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31987 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31988 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31989 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31990 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31991 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31992 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31993 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31994 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31995 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31996 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31997 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31998 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31999 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32000 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32001 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32002 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32003 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32004 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32005 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32006 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32007 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32008 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32009 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32010 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32011 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32012 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32013 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32014 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32015 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32016 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32017 "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32018 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32019 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32020 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32021 "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32022 "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32023 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32024 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32025 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32026 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32027 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32028 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32029 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32030 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32031 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32032 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32033 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32034 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32035 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32036 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32037 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32038 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32039 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32040 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32041 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32042 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32043 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32044 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32045 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32046 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32047 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32048 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32049 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32050 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32051 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32052 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32053 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32054 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32055 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32056 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32057 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32058 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32059 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32060 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32061 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32062 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32063 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32064 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32065 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32066 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32067 "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32068 "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32069 "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32070 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32071 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32072 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32073 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32074 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32075 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32076 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32077 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32078 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32079 "updatedb/update_mysql_tables_12_to_13") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_13" ;;
32080 "updatedb/update_postgresql_tables_12_to_13") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_13" ;;
32081 "updatedb/update_mysql_tables_13_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_13_to_14" ;;
32082 "updatedb/update_postgresql_tables_13_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_13_to_14" ;;
32083 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32084 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32085 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32086 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32087 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32088 "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32089 "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32090 "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32091 "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32092 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32093 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32095 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32100 # If the user did not use the arguments to specify the items to instantiate,
32101 # then the envvar interface is used. Set only those that are not.
32102 # We use the long form for the default assignment because of an extremely
32103 # bizarre bug on SunOS 4.1.3.
32104 if $ac_need_defaults; then
32105 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32106 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32107 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32110 # Have a temporary directory for convenience. Make it in the build tree
32111 # simply because there is no reason against having it here, and in addition,
32112 # creating and moving files from /tmp can sometimes cause problems.
32113 # Hook for its removal unless debugging.
32114 # Note that there is a small window in which the directory will not be cleaned:
32115 # after its creation but before its name has been assigned to `$tmp'.
32119 trap 'exit_status=$?
32120 : "${ac_tmp:=$tmp}"
32121 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32123 trap 'as_fn_exit 1' 1 2 13 15
32125 # Create a (secure) tmp directory for tmp files.
32128 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32132 tmp=./conf$$-$RANDOM
32133 (umask 077 && mkdir "$tmp")
32134 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32137 # Set up the scripts for CONFIG_FILES section.
32138 # No need to generate them if there are no CONFIG_FILES.
32139 # This happens for instance with `./config.status config.h'.
32140 if test -n "$CONFIG_FILES"; then
32142 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32143 ac_cs_awk_getline=:
32144 ac_cs_awk_pipe_init=
32145 ac_cs_awk_read_file='
32146 while ((getline aline < (F[key])) > 0)
32149 ac_cs_awk_pipe_fini=
32151 ac_cs_awk_getline=false
32152 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32153 ac_cs_awk_read_file='
32155 print "cat " F[key] " &&"
32156 '$ac_cs_awk_pipe_init
32157 # The final `:' finishes the AND list.
32158 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32160 ac_cr=`echo X | tr X '\015'`
32161 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32162 # But we know of no other shell where ac_cr would be empty at this
32163 # point, so we can use a bashism as a fallback.
32164 if test "x$ac_cr" = x; then
32165 eval ac_cr=\$\'\\r\'
32167 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32168 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32171 ac_cs_awk_cr=$ac_cr
32174 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32177 # Create commands to substitute file output variables.
32179 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32180 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32181 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32184 } >conf$$files.sh &&
32185 . ./conf$$files.sh ||
32186 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32187 rm -f conf$$files.sh
32190 echo "cat >conf$$subs.awk <<_ACEOF" &&
32191 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32193 } >conf$$subs.sh ||
32194 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32195 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32197 for ac_last_try in false false false false false :; do
32198 . ./conf$$subs.sh ||
32199 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32201 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32202 if test $ac_delim_n = $ac_delim_num; then
32204 elif $ac_last_try; then
32205 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32207 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32210 rm -f conf$$subs.sh
32212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32213 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32217 s/^/S["/; s/!.*/"]=/
32227 s/\(.\{148\}\)..*/\1/
32229 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32234 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32241 s/\(.\{148\}\)..*/\1/
32243 s/["\\]/\\&/g; s/^/"/; s/$/"/
32247 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32252 ' <conf$$subs.awk | sed '
32257 ' >>$CONFIG_STATUS || ac_write_fail=1
32258 rm -f conf$$subs.awk
32259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32261 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32262 for (key in S) S_is_set[key] = 1
32264 \$ac_cs_awk_pipe_init
32268 nfields = split(line, field, "@")
32270 len = length(field[1])
32271 for (i = 2; i < nfields; i++) {
32273 keylen = length(key)
32274 if (S_is_set[key]) {
32276 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32277 len += length(value) + length(field[++i])
32282 if (nfields == 3 && !substed) {
32284 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32285 \$ac_cs_awk_read_file
32291 \$ac_cs_awk_pipe_fini
32294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32295 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32296 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32299 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32300 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32303 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32304 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32305 # trailing colons and then remove the whole line if VPATH becomes empty
32306 # (actually we leave an empty line to preserve line numbers).
32307 if test "x$srcdir" = x.; then
32308 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32327 fi # test -n "$CONFIG_FILES"
32329 # Set up the scripts for CONFIG_HEADERS section.
32330 # No need to generate them if there are no CONFIG_HEADERS.
32331 # This happens for instance with `./config.status Makefile'.
32332 if test -n "$CONFIG_HEADERS"; then
32333 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32337 # Transform confdefs.h into an awk script `defines.awk', embedded as
32338 # here-document in config.status, that substitutes the proper values into
32339 # config.h.in to produce config.h.
32341 # Create a delimiter string that does not exist in confdefs.h, to ease
32342 # handling of long lines.
32344 for ac_last_try in false false :; do
32345 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32346 if test -z "$ac_tt"; then
32348 elif $ac_last_try; then
32349 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32351 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32355 # For the awk script, D is an array of macro values keyed by name,
32356 # likewise P contains macro parameters if any. Preserve backslash
32357 # newline sequences.
32359 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32361 s/.\{148\}/&'"$ac_delim"'/g
32364 s/^[ ]*#[ ]*define[ ][ ]*/ /
32371 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32373 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32377 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32378 D["\1"]=" \3\\\\\\n"\\/p
32380 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32385 s/.\{148\}/&'"$ac_delim"'/g
32390 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32393 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32395 ' <confdefs.h | sed '
32396 s/'"$ac_delim"'/"\\\
32397 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32400 for (key in D) D_is_set[key] = 1
32403 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32405 split(line, arg, " ")
32406 if (arg[1] == "#") {
32410 defundef = substr(arg[1], 2)
32413 split(mac1, mac2, "(") #)
32415 prefix = substr(line, 1, index(line, defundef) - 1)
32416 if (D_is_set[macro]) {
32417 # Preserve the white space surrounding the "#".
32418 print prefix "define", macro P[macro] D[macro]
32421 # Replace #undef with comments. This is necessary, for example,
32422 # in the case of _POSIX_SOURCE, which is predefined and required
32423 # on some systems where configure will not decide to define it.
32424 if (defundef == "undef") {
32425 print "/*", prefix defundef, macro, "*/"
32433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32434 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32435 fi # test -n "$CONFIG_HEADERS"
32438 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32443 :[FHLC]) ac_mode=$ac_tag; continue;;
32445 case $ac_mode$ac_tag in
32447 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32448 :[FH]-) ac_tag=-:-;;
32449 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32466 -) ac_f="$ac_tmp/stdin";;
32467 *) # Look for the file first in the build tree, then in the source tree
32468 # (if the path is not absolute). The absolute path cannot be DOS-style,
32469 # because $ac_f cannot contain `:'.
32473 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32475 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32477 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32478 as_fn_append ac_file_inputs " '$ac_f'"
32481 # Let's still pretend it is `configure' which instantiates (i.e., don't
32482 # use $as_me), people would be surprised to read:
32483 # /* config.h. Generated by config.status. */
32484 configure_input='Generated from '`
32485 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32487 if test x"$ac_file" != x-; then
32488 configure_input="$ac_file. $configure_input"
32489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32490 $as_echo "$as_me: creating $ac_file" >&6;}
32492 # Neutralize special characters interpreted by sed in replacement strings.
32493 case $configure_input in #(
32494 *\&* | *\|* | *\\* )
32495 ac_sed_conf_input=`$as_echo "$configure_input" |
32496 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32497 *) ac_sed_conf_input=$configure_input;;
32501 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32507 ac_dir=`$as_dirname -- "$ac_file" ||
32508 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32509 X"$ac_file" : 'X\(//\)[^/]' \| \
32510 X"$ac_file" : 'X\(//\)$' \| \
32511 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32512 $as_echo X"$ac_file" |
32513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32517 /^X\(\/\/\)[^/].*/{
32530 as_dir="$ac_dir"; as_fn_mkdir_p
32534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32537 # A ".." for each directory in $ac_dir_suffix.
32538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32539 case $ac_top_builddir_sub in
32540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32544 ac_abs_top_builddir=$ac_pwd
32545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32546 # for backward compatibility:
32547 ac_top_builddir=$ac_top_build_prefix
32550 .) # We are building in place.
32552 ac_top_srcdir=$ac_top_builddir_sub
32553 ac_abs_top_srcdir=$ac_pwd ;;
32554 [\\/]* | ?:[\\/]* ) # Absolute name.
32555 ac_srcdir=$srcdir$ac_dir_suffix;
32556 ac_top_srcdir=$srcdir
32557 ac_abs_top_srcdir=$srcdir ;;
32558 *) # Relative name.
32559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32560 ac_top_srcdir=$ac_top_build_prefix$srcdir
32561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32573 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32574 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32579 # If the template does not know about datarootdir, expand it.
32580 # FIXME: This hack should be removed a few years after 2.60.
32581 ac_datarootdir_hack=; ac_datarootdir_seen=
32592 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32593 *datarootdir*) ac_datarootdir_seen=yes;;
32594 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32596 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32599 ac_datarootdir_hack='
32600 s&@datadir@&$datadir&g
32601 s&@docdir@&$docdir&g
32602 s&@infodir@&$infodir&g
32603 s&@localedir@&$localedir&g
32604 s&@mandir@&$mandir&g
32605 s&\\\${datarootdir}&$datarootdir&g' ;;
32609 # Neutralize VPATH when `$srcdir' = `.'.
32610 # Shell code in configure.ac might set extrasub.
32611 # FIXME: do we really want to maintain this feature?
32612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32613 ac_sed_extra="$ac_vpsub
32616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32618 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32619 s|@configure_input@|$ac_sed_conf_input|;t t
32620 s&@top_builddir@&$ac_top_builddir_sub&;t t
32621 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32622 s&@srcdir@&$ac_srcdir&;t t
32623 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32624 s&@top_srcdir@&$ac_top_srcdir&;t t
32625 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32626 s&@builddir@&$ac_builddir&;t t
32627 s&@abs_builddir@&$ac_abs_builddir&;t t
32628 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32629 s&@INSTALL@&$ac_INSTALL&;t t
32630 $ac_datarootdir_hack
32632 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32633 if $ac_cs_awk_getline; then
32634 $AWK -f "$ac_tmp/subs.awk"
32636 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32638 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32640 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32641 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32642 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32643 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32645 which seems to be undefined. Please make sure it is defined" >&5
32646 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32647 which seems to be undefined. Please make sure it is defined" >&2;}
32649 rm -f "$ac_tmp/stdin"
32651 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32652 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32654 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32660 if test x"$ac_file" != x-; then
32662 $as_echo "/* $configure_input */" \
32663 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32664 } >"$ac_tmp/config.h" \
32665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32666 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32667 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32668 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32671 mv "$ac_tmp/config.h" "$ac_file" \
32672 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32675 $as_echo "/* $configure_input */" \
32676 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32677 || as_fn_error $? "could not create -" "$LINENO" 5
32681 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32682 $as_echo "$as_me: executing $ac_file commands" >&6;}
32687 case $ac_file$ac_mode in
32690 # See if we are running on zsh, and set the options which allow our
32691 # commands through without removal of \ escapes.
32692 if test -n "${ZSH_VERSION+set}" ; then
32693 setopt NO_GLOB_SUBST
32696 cfgfile="${ofile}T"
32697 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32700 cat <<_LT_EOF >> "$cfgfile"
32703 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32704 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32705 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32706 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32708 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32709 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32711 # Written by Gordon Matzigkeit, 1996
32713 # This file is part of GNU Libtool.
32715 # GNU Libtool is free software; you can redistribute it and/or
32716 # modify it under the terms of the GNU General Public License as
32717 # published by the Free Software Foundation; either version 2 of
32718 # the License, or (at your option) any later version.
32720 # As a special exception to the GNU General Public License,
32721 # if you distribute this file as part of a program or library that
32722 # is built using GNU Libtool, you may include this file under the
32723 # same distribution terms that you use for the rest of that program.
32725 # GNU Libtool is distributed in the hope that it will be useful,
32726 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32727 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32728 # GNU General Public License for more details.
32730 # You should have received a copy of the GNU General Public License
32731 # along with GNU Libtool; see the file COPYING. If not, a copy
32732 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32733 # obtained by writing to the Free Software Foundation, Inc.,
32734 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32737 # The names of the tagged configurations supported by this script.
32738 available_tags="CXX "
32740 # ### BEGIN LIBTOOL CONFIG
32742 # Which release of libtool.m4 was used?
32743 macro_version=$macro_version
32744 macro_revision=$macro_revision
32746 # Whether or not to build shared libraries.
32747 build_libtool_libs=$enable_shared
32749 # Whether or not to build static libraries.
32750 build_old_libs=$enable_static
32752 # What type of objects to build.
32755 # Whether or not to optimize for fast installation.
32756 fast_install=$enable_fast_install
32758 # Shell to use when invoking shell scripts.
32761 # An echo program that protects backslashes.
32764 # The PATH separator for the build system.
32765 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32768 host_alias=$host_alias
32772 # The build system.
32773 build_alias=$build_alias
32777 # A sed program that does not truncate output.
32780 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32781 Xsed="\$SED -e 1s/^X//"
32783 # A grep program that handles long lines.
32789 # A literal string matcher.
32792 # A BSD- or MS-compatible name lister.
32795 # Whether we need soft or hard links.
32798 # What is the maximum length of a command?
32799 max_cmd_len=$max_cmd_len
32801 # Object file suffix (normally "o").
32804 # Executable file suffix (normally "").
32807 # whether the shell understands "unset".
32810 # turn spaces into newlines.
32813 # turn newlines into spaces.
32816 # convert \$build file names to \$host format.
32817 to_host_file_cmd=$lt_cv_to_host_file_cmd
32819 # convert \$build files to toolchain format.
32820 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32822 # An object symbol dumper.
32823 OBJDUMP=$lt_OBJDUMP
32825 # Method to check whether dependent libraries are shared objects.
32826 deplibs_check_method=$lt_deplibs_check_method
32828 # Command to use when deplibs_check_method = "file_magic".
32829 file_magic_cmd=$lt_file_magic_cmd
32831 # How to find potential files when deplibs_check_method = "file_magic".
32832 file_magic_glob=$lt_file_magic_glob
32834 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32835 want_nocaseglob=$lt_want_nocaseglob
32837 # DLL creation program.
32838 DLLTOOL=$lt_DLLTOOL
32840 # Command to associate shared and link libraries.
32841 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32846 # Flags to create an archive.
32847 AR_FLAGS=$lt_AR_FLAGS
32849 # How to feed a file listing to the archiver.
32850 archiver_list_spec=$lt_archiver_list_spec
32852 # A symbol stripping program.
32855 # Commands used to install an old-style archive.
32857 old_postinstall_cmds=$lt_old_postinstall_cmds
32858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32860 # Whether to use a lock for old archive extraction.
32861 lock_old_archive_extraction=$lock_old_archive_extraction
32866 # LTCC compiler flags.
32867 LTCFLAGS=$lt_CFLAGS
32869 # Take the output of nm and produce a listing of raw symbols and C names.
32870 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32872 # Transform the output of nm in a proper C declaration.
32873 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32875 # Transform the output of nm in a C name address pair.
32876 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32878 # Transform the output of nm in a C name address pair when lib prefix is needed.
32879 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32881 # Specify filename containing input files for \$NM.
32882 nm_file_list_spec=$lt_nm_file_list_spec
32884 # The root where to search for dependent libraries,and in which our libraries should be installed.
32885 lt_sysroot=$lt_sysroot
32887 # The name of the directory that contains temporary libtool files.
32890 # Used to examine libraries when file_magic_cmd begins with "file".
32891 MAGIC_CMD=$MAGIC_CMD
32893 # Must we lock files when doing compilation?
32894 need_locks=$lt_need_locks
32897 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32899 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32900 DSYMUTIL=$lt_DSYMUTIL
32902 # Tool to change global to local symbols on Mac OS X.
32905 # Tool to manipulate fat objects and archives on Mac OS X.
32908 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32911 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32912 OTOOL64=$lt_OTOOL64
32914 # Old archive suffix (normally "a").
32917 # Shared library suffix (normally ".so").
32918 shrext_cmds=$lt_shrext_cmds
32920 # The commands to extract the exported symbol list from a shared archive.
32921 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32923 # Variables whose values should be saved in libtool wrapper scripts and
32924 # restored at link time.
32925 variables_saved_for_relink=$lt_variables_saved_for_relink
32927 # Do we need the "lib" prefix for modules?
32928 need_lib_prefix=$need_lib_prefix
32930 # Do we need a version for libraries?
32931 need_version=$need_version
32933 # Library versioning type.
32934 version_type=$version_type
32936 # Shared library runtime path variable.
32937 runpath_var=$runpath_var
32939 # Shared library path variable.
32940 shlibpath_var=$shlibpath_var
32942 # Is shlibpath searched before the hard-coded library search path?
32943 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32945 # Format of library name prefix.
32946 libname_spec=$lt_libname_spec
32948 # List of archive names. First name is the real one, the rest are links.
32949 # The last name is the one that the linker finds with -lNAME
32950 library_names_spec=$lt_library_names_spec
32952 # The coded name of the library, if different from the real name.
32953 soname_spec=$lt_soname_spec
32955 # Permission mode override for installation of shared libraries.
32956 install_override_mode=$lt_install_override_mode
32958 # Command to use after installation of a shared archive.
32959 postinstall_cmds=$lt_postinstall_cmds
32961 # Command to use after uninstallation of a shared archive.
32962 postuninstall_cmds=$lt_postuninstall_cmds
32964 # Commands used to finish a libtool library installation in a directory.
32965 finish_cmds=$lt_finish_cmds
32967 # As "finish_cmds", except a single script fragment to be evaled but
32969 finish_eval=$lt_finish_eval
32971 # Whether we should hardcode library paths into libraries.
32972 hardcode_into_libs=$hardcode_into_libs
32974 # Compile-time system search path for libraries.
32975 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32977 # Run-time system search path for libraries.
32978 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32980 # Whether dlopen is supported.
32981 dlopen_support=$enable_dlopen
32983 # Whether dlopen of programs is supported.
32984 dlopen_self=$enable_dlopen_self
32986 # Whether dlopen of statically linked programs is supported.
32987 dlopen_self_static=$enable_dlopen_self_static
32989 # Commands to strip libraries.
32990 old_striplib=$lt_old_striplib
32991 striplib=$lt_striplib
32994 # The linker used to build libraries.
32997 # How to create reloadable object files.
32998 reload_flag=$lt_reload_flag
32999 reload_cmds=$lt_reload_cmds
33001 # Commands used to build an old-style archive.
33002 old_archive_cmds=$lt_old_archive_cmds
33004 # A language specific compiler.
33007 # Is the compiler the GNU compiler?
33010 # Compiler flag to turn off builtin functions.
33011 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33013 # Additional compiler flags for building library objects.
33014 pic_flag=$lt_lt_prog_compiler_pic
33016 # How to pass a linker flag through the compiler.
33017 wl=$lt_lt_prog_compiler_wl
33019 # Compiler flag to prevent dynamic linking.
33020 link_static_flag=$lt_lt_prog_compiler_static
33022 # Does compiler simultaneously support -c and -o options?
33023 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33025 # Whether or not to add -lc for building shared libraries.
33026 build_libtool_need_lc=$archive_cmds_need_lc
33028 # Whether or not to disallow shared libs when runtime libs are static.
33029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33031 # Compiler flag to allow reflexive dlopens.
33032 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33034 # Compiler flag to generate shared objects directly from archives.
33035 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33037 # Whether the compiler copes with passing no objects directly.
33038 compiler_needs_object=$lt_compiler_needs_object
33040 # Create an old-style archive from a shared archive.
33041 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33043 # Create a temporary old-style archive to link instead of a shared archive.
33044 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33046 # Commands used to build a shared archive.
33047 archive_cmds=$lt_archive_cmds
33048 archive_expsym_cmds=$lt_archive_expsym_cmds
33050 # Commands used to build a loadable module if different from building
33051 # a shared archive.
33052 module_cmds=$lt_module_cmds
33053 module_expsym_cmds=$lt_module_expsym_cmds
33055 # Whether we are building with GNU ld or not.
33056 with_gnu_ld=$lt_with_gnu_ld
33058 # Flag that allows shared libraries with undefined symbols to be built.
33059 allow_undefined_flag=$lt_allow_undefined_flag
33061 # Flag that enforces no undefined symbols.
33062 no_undefined_flag=$lt_no_undefined_flag
33064 # Flag to hardcode \$libdir into a binary during linking.
33065 # This must work even if \$libdir does not exist
33066 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33068 # Whether we need a single "-rpath" flag with a separated argument.
33069 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33071 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33072 # DIR into the resulting binary.
33073 hardcode_direct=$hardcode_direct
33075 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33076 # DIR into the resulting binary and the resulting library dependency is
33077 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33078 # library is relocated.
33079 hardcode_direct_absolute=$hardcode_direct_absolute
33081 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33082 # into the resulting binary.
33083 hardcode_minus_L=$hardcode_minus_L
33085 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33086 # into the resulting binary.
33087 hardcode_shlibpath_var=$hardcode_shlibpath_var
33089 # Set to "yes" if building a shared library automatically hardcodes DIR
33090 # into the library and all subsequent libraries and executables linked
33092 hardcode_automatic=$hardcode_automatic
33094 # Set to yes if linker adds runtime paths of dependent libraries
33095 # to runtime path list.
33096 inherit_rpath=$inherit_rpath
33098 # Whether libtool must link a program against all its dependency libraries.
33099 link_all_deplibs=$link_all_deplibs
33101 # Set to "yes" if exported symbols are required.
33102 always_export_symbols=$always_export_symbols
33104 # The commands to list exported symbols.
33105 export_symbols_cmds=$lt_export_symbols_cmds
33107 # Symbols that should not be listed in the preloaded symbols.
33108 exclude_expsyms=$lt_exclude_expsyms
33110 # Symbols that must always be exported.
33111 include_expsyms=$lt_include_expsyms
33113 # Commands necessary for linking programs (against libraries) with templates.
33114 prelink_cmds=$lt_prelink_cmds
33116 # Commands necessary for finishing linking programs.
33117 postlink_cmds=$lt_postlink_cmds
33119 # Specify filename containing input files.
33120 file_list_spec=$lt_file_list_spec
33122 # How to hardcode a shared library path into an executable.
33123 hardcode_action=$hardcode_action
33125 # The directories searched by this compiler when creating a shared library.
33126 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33128 # Dependencies to place before and after the objects being linked to
33129 # create a shared library.
33130 predep_objects=$lt_predep_objects
33131 postdep_objects=$lt_postdep_objects
33132 predeps=$lt_predeps
33133 postdeps=$lt_postdeps
33135 # The library search path used internally by the compiler when linking
33136 # a shared library.
33137 compiler_lib_search_path=$lt_compiler_lib_search_path
33139 # ### END LIBTOOL CONFIG
33145 cat <<\_LT_EOF >> "$cfgfile"
33146 # AIX sometimes has problems with the GCC collect2 program. For some
33147 # reason, if we set the COLLECT_NAMES environment variable, the problems
33148 # vanish in a puff of smoke.
33149 if test "X${COLLECT_NAMES+set}" != Xset; then
33151 export COLLECT_NAMES
33158 ltmain="$ac_aux_dir/ltmain.sh"
33161 # We use sed instead of cat because bash on DJGPP gets confused if
33162 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33163 # text mode, it properly converts lines to CR/LF. This bash problem
33164 # is reportedly fixed, but why not run on old versions too?
33165 sed '$q' "$ltmain" >> "$cfgfile" \
33166 || (rm -f "$cfgfile"; exit 1)
33168 if test x"$xsi_shell" = xyes; then
33169 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33173 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33174 \ * ) func_dirname_result="${3}" ;;\
33176 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33177 && mv -f "$cfgfile.tmp" "$cfgfile" \
33178 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33179 test 0 -eq $? || _lt_function_replace_fail=:
33182 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33185 \ func_basename_result="${1##*/}"\
33186 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33187 && mv -f "$cfgfile.tmp" "$cfgfile" \
33188 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33189 test 0 -eq $? || _lt_function_replace_fail=:
33192 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33193 func_dirname_and_basename ()\
33196 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33197 \ * ) func_dirname_result="${3}" ;;\
33199 \ func_basename_result="${1##*/}"\
33200 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33201 && mv -f "$cfgfile.tmp" "$cfgfile" \
33202 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33203 test 0 -eq $? || _lt_function_replace_fail=:
33206 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33209 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33210 \ # positional parameters, so assign one to ordinary parameter first.\
33211 \ func_stripname_result=${3}\
33212 \ func_stripname_result=${func_stripname_result#"${1}"}\
33213 \ func_stripname_result=${func_stripname_result%"${2}"}\
33214 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33215 && mv -f "$cfgfile.tmp" "$cfgfile" \
33216 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33217 test 0 -eq $? || _lt_function_replace_fail=:
33220 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33221 func_split_long_opt ()\
33223 \ func_split_long_opt_name=${1%%=*}\
33224 \ func_split_long_opt_arg=${1#*=}\
33225 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33226 && mv -f "$cfgfile.tmp" "$cfgfile" \
33227 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33228 test 0 -eq $? || _lt_function_replace_fail=:
33231 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33232 func_split_short_opt ()\
33234 \ func_split_short_opt_arg=${1#??}\
33235 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33236 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33237 && mv -f "$cfgfile.tmp" "$cfgfile" \
33238 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33239 test 0 -eq $? || _lt_function_replace_fail=:
33242 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33246 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33247 \ *) func_lo2o_result=${1} ;;\
33249 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33250 && mv -f "$cfgfile.tmp" "$cfgfile" \
33251 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33252 test 0 -eq $? || _lt_function_replace_fail=:
33255 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33258 func_xform_result=${1%.*}.lo\
33259 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33260 && mv -f "$cfgfile.tmp" "$cfgfile" \
33261 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33262 test 0 -eq $? || _lt_function_replace_fail=:
33265 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33268 func_arith_result=$(( $* ))\
33269 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33270 && mv -f "$cfgfile.tmp" "$cfgfile" \
33271 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33272 test 0 -eq $? || _lt_function_replace_fail=:
33275 sed -e '/^func_len ()$/,/^} # func_len /c\
33278 func_len_result=${#1}\
33279 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33280 && mv -f "$cfgfile.tmp" "$cfgfile" \
33281 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33282 test 0 -eq $? || _lt_function_replace_fail=:
33286 if test x"$lt_shell_append" = xyes; then
33287 sed -e '/^func_append ()$/,/^} # func_append /c\
33290 eval "${1}+=\\${2}"\
33291 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33292 && mv -f "$cfgfile.tmp" "$cfgfile" \
33293 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33294 test 0 -eq $? || _lt_function_replace_fail=:
33297 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33298 func_append_quoted ()\
33300 \ func_quote_for_eval "${2}"\
33301 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33302 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33303 && mv -f "$cfgfile.tmp" "$cfgfile" \
33304 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33305 test 0 -eq $? || _lt_function_replace_fail=:
33308 # Save a `func_append' function call where possible by direct use of '+='
33309 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33310 && mv -f "$cfgfile.tmp" "$cfgfile" \
33311 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33312 test 0 -eq $? || _lt_function_replace_fail=:
33314 # Save a `func_append' function call even when '+=' is not available
33315 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33316 && mv -f "$cfgfile.tmp" "$cfgfile" \
33317 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33318 test 0 -eq $? || _lt_function_replace_fail=:
33321 if test x"$_lt_function_replace_fail" = x":"; then
33322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33323 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33327 mv -f "$cfgfile" "$ofile" ||
33328 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33332 cat <<_LT_EOF >> "$ofile"
33334 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33336 # The linker used to build libraries.
33339 # How to create reloadable object files.
33340 reload_flag=$lt_reload_flag_CXX
33341 reload_cmds=$lt_reload_cmds_CXX
33343 # Commands used to build an old-style archive.
33344 old_archive_cmds=$lt_old_archive_cmds_CXX
33346 # A language specific compiler.
33347 CC=$lt_compiler_CXX
33349 # Is the compiler the GNU compiler?
33352 # Compiler flag to turn off builtin functions.
33353 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33355 # Additional compiler flags for building library objects.
33356 pic_flag=$lt_lt_prog_compiler_pic_CXX
33358 # How to pass a linker flag through the compiler.
33359 wl=$lt_lt_prog_compiler_wl_CXX
33361 # Compiler flag to prevent dynamic linking.
33362 link_static_flag=$lt_lt_prog_compiler_static_CXX
33364 # Does compiler simultaneously support -c and -o options?
33365 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33367 # Whether or not to add -lc for building shared libraries.
33368 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33370 # Whether or not to disallow shared libs when runtime libs are static.
33371 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33373 # Compiler flag to allow reflexive dlopens.
33374 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33376 # Compiler flag to generate shared objects directly from archives.
33377 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33379 # Whether the compiler copes with passing no objects directly.
33380 compiler_needs_object=$lt_compiler_needs_object_CXX
33382 # Create an old-style archive from a shared archive.
33383 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33385 # Create a temporary old-style archive to link instead of a shared archive.
33386 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33388 # Commands used to build a shared archive.
33389 archive_cmds=$lt_archive_cmds_CXX
33390 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33392 # Commands used to build a loadable module if different from building
33393 # a shared archive.
33394 module_cmds=$lt_module_cmds_CXX
33395 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33397 # Whether we are building with GNU ld or not.
33398 with_gnu_ld=$lt_with_gnu_ld_CXX
33400 # Flag that allows shared libraries with undefined symbols to be built.
33401 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33403 # Flag that enforces no undefined symbols.
33404 no_undefined_flag=$lt_no_undefined_flag_CXX
33406 # Flag to hardcode \$libdir into a binary during linking.
33407 # This must work even if \$libdir does not exist
33408 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33410 # Whether we need a single "-rpath" flag with a separated argument.
33411 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33413 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33414 # DIR into the resulting binary.
33415 hardcode_direct=$hardcode_direct_CXX
33417 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33418 # DIR into the resulting binary and the resulting library dependency is
33419 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33420 # library is relocated.
33421 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33423 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33424 # into the resulting binary.
33425 hardcode_minus_L=$hardcode_minus_L_CXX
33427 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33428 # into the resulting binary.
33429 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33431 # Set to "yes" if building a shared library automatically hardcodes DIR
33432 # into the library and all subsequent libraries and executables linked
33434 hardcode_automatic=$hardcode_automatic_CXX
33436 # Set to yes if linker adds runtime paths of dependent libraries
33437 # to runtime path list.
33438 inherit_rpath=$inherit_rpath_CXX
33440 # Whether libtool must link a program against all its dependency libraries.
33441 link_all_deplibs=$link_all_deplibs_CXX
33443 # Set to "yes" if exported symbols are required.
33444 always_export_symbols=$always_export_symbols_CXX
33446 # The commands to list exported symbols.
33447 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33449 # Symbols that should not be listed in the preloaded symbols.
33450 exclude_expsyms=$lt_exclude_expsyms_CXX
33452 # Symbols that must always be exported.
33453 include_expsyms=$lt_include_expsyms_CXX
33455 # Commands necessary for linking programs (against libraries) with templates.
33456 prelink_cmds=$lt_prelink_cmds_CXX
33458 # Commands necessary for finishing linking programs.
33459 postlink_cmds=$lt_postlink_cmds_CXX
33461 # Specify filename containing input files.
33462 file_list_spec=$lt_file_list_spec_CXX
33464 # How to hardcode a shared library path into an executable.
33465 hardcode_action=$hardcode_action_CXX
33467 # The directories searched by this compiler when creating a shared library.
33468 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33470 # Dependencies to place before and after the objects being linked to
33471 # create a shared library.
33472 predep_objects=$lt_predep_objects_CXX
33473 postdep_objects=$lt_postdep_objects_CXX
33474 predeps=$lt_predeps_CXX
33475 postdeps=$lt_postdeps_CXX
33477 # The library search path used internally by the compiler when linking
33478 # a shared library.
33479 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33481 # ### END LIBTOOL TAG CONFIG: CXX
33486 for ac_file in $CONFIG_FILES; do
33487 # Support "outfile[:infile[:infile...]]"
33489 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33491 # PO directories have a Makefile.in generated from Makefile.in.in.
33492 case "$ac_file" in */Makefile.in)
33493 # Adjust a relative srcdir.
33494 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33495 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33496 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33497 # In autoconf-2.13 it is called $ac_given_srcdir.
33498 # In autoconf-2.50 it is called $srcdir.
33499 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33500 case "$ac_given_srcdir" in
33501 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33502 /*) top_srcdir="$ac_given_srcdir" ;;
33503 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33505 # Treat a directory as a PO directory if and only if it has a
33506 # POTFILES.in file. This allows packages to have multiple PO
33507 # directories under different names or in different locations.
33508 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33509 rm -f "$ac_dir/POTFILES"
33510 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33511 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33512 POMAKEFILEDEPS="POTFILES.in"
33513 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33514 # on $ac_dir but don't depend on user-specified configuration
33516 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33517 # The LINGUAS file contains the set of available languages.
33518 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33519 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33521 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33522 # Hide the ALL_LINGUAS assigment from automake.
33523 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33524 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33526 # The set of available languages was given in configure.in.
33527 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33530 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33531 # Compute UPDATEPOFILES
33532 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33533 # Compute DUMMYPOFILES
33534 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33536 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33537 case "$ac_given_srcdir" in
33539 *) srcdirpre='$(srcdir)/' ;;
33545 for lang in $ALL_LINGUAS; do
33546 POFILES="$POFILES $srcdirpre$lang.po"
33547 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33548 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33549 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33551 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33552 # environment variable.
33554 if test -n "$ALL_LINGUAS"; then
33555 for presentlang in $ALL_LINGUAS; do
33557 if test "%UNSET%" != "$LINGUAS"; then
33558 desiredlanguages="$LINGUAS"
33560 desiredlanguages="$ALL_LINGUAS"
33562 for desiredlang in $desiredlanguages; do
33563 # Use the presentlang catalog if desiredlang is
33564 # a. equal to presentlang, or
33565 # b. a variant of presentlang (because in this case,
33566 # presentlang can be used as a fallback for messages
33567 # which are not translated in the desiredlang catalog).
33568 case "$desiredlang" in
33569 "$presentlang"*) useit=yes;;
33572 if test $useit = yes; then
33573 INST_LINGUAS="$INST_LINGUAS $presentlang"
33578 if test -n "$INST_LINGUAS"; then
33579 for lang in $INST_LINGUAS; do
33580 CATALOGS="$CATALOGS $lang.gmo"
33583 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33584 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"
33585 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33586 if test -f "$f"; then
33588 *.orig | *.bak | *~) ;;
33589 *) cat "$f" >> "$ac_dir/Makefile" ;;
33606 ac_clean_files=$ac_clean_files_save
33608 test $ac_write_fail = 0 ||
33609 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33612 # configure is writing to config.log, and then calls config.status.
33613 # config.status does its own redirection, appending to config.log.
33614 # Unfortunately, on DOS this fails, as config.log is still kept open
33615 # by configure, so config.status won't be able to write to it; its
33616 # output is simply discarded. So we exec the FD to /dev/null,
33617 # effectively closing config.log, so it can be properly (re)opened and
33618 # appended to by config.status. When coming back to configure, we
33619 # need to make the FD available again.
33620 if test "$no_create" != yes; then
33622 ac_config_status_args=
33623 test "$silent" = yes &&
33624 ac_config_status_args="$ac_config_status_args --quiet"
33626 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33629 # would make configure fail if this is the last instruction.
33630 $ac_cs_success || as_fn_exit 1
33632 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33634 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33638 if test "${support_bat}" = "yes" ; then
33639 if test "x$QMAKE" = "xnone"; then
33640 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33644 echo "Creating bat Makefile"
33650 ${MAKE:-make} clean
33654 if test X"$GCC" = "Xyes" ; then
33655 echo "Doing make of dependencies"
33656 ${MAKE:-make} depend
33660 chmod 755 install_conf_file build-depkgs-qt-console
33664 chmod 755 bacula btraceback mtx-changer
33665 chmod 755 dvd-handler dvd-simulator
33666 chmod 755 bconsole disk-changer devel_bacula logrotate
33670 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33671 chmod 755 $c/update_postgresql_tables_10_to_11
33672 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33673 chmod 755 $c/update_postgresql_tables_11_to_12
33678 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33679 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33681 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33682 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33684 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33685 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33687 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33688 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33690 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33691 chmod 755 $c/sqlite
33694 chmod 755 $c/install-default-backend
33696 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33697 largefile_support="yes"
33700 if test X"$GCC" = "Xyes" ; then
33701 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33702 if test "x${CCVERSION}" = "x" ; then
33703 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33705 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33706 if test x"${CXXVERSION}" = x ; then
33707 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33711 # clean up any old junk
33715 ${MAKE:-make} clean
33718 Configuration on `date`:
33720 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33721 Bacula version: ${BACULA} ${VERSION} (${DATE})
33722 Source code location: ${srcdir}
33723 Install binaries: ${sbindir}
33724 Install libraries: ${libdir}
33725 Install config files: ${sysconfdir}
33726 Scripts directory: ${scriptdir}
33727 Archive directory: ${archivedir}
33728 Working directory: ${working_dir}
33729 PID directory: ${piddir}
33730 Subsys directory: ${subsysdir}
33731 Man directory: ${mandir}
33732 Data directory: ${datarootdir}
33733 Plugin directory: ${plugindir}
33734 C Compiler: ${CC} ${CCVERSION}
33735 C++ Compiler: ${CXX} ${CXXVERSION}
33736 Compiler flags: ${WCFLAGS} ${CFLAGS}
33737 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33739 Statically Linked Tools: ${support_static_tools}
33740 Statically Linked FD: ${support_static_fd}
33741 Statically Linked SD: ${support_static_sd}
33742 Statically Linked DIR: ${support_static_dir}
33743 Statically Linked CONS: ${support_static_cons}
33744 Database backends: ${db_backends}
33745 Database port: ${db_port}
33746 Database name: ${db_name}
33747 Database user: ${db_user}
33748 Database SSL options: ${db_ssl_options}
33750 Job Output Email: ${job_email}
33751 Traceback Email: ${dump_email}
33752 SMTP Host Address: ${smtp_host}
33754 Director Port: ${dir_port}
33755 File daemon Port: ${fd_port}
33756 Storage daemon Port: ${sd_port}
33758 Director User: ${dir_user}
33759 Director Group: ${dir_group}
33760 Storage Daemon User: ${sd_user}
33761 Storage DaemonGroup: ${sd_group}
33762 File Daemon User: ${fd_user}
33763 File Daemon Group: ${fd_group}
33765 Large file support: $largefile_support
33766 Bacula conio support: ${got_conio} ${CONS_LIBS}
33767 readline support: ${got_readline} ${PRTREADLINE_SRC}
33768 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33769 TLS support: ${support_tls}
33770 Encryption support: ${support_crypto}
33771 ZLIB support: ${have_zlib}
33772 LZO support: ${have_lzo}
33773 enable-smartalloc: ${support_smartalloc}
33774 enable-lockmgr: ${support_lockmgr}
33775 bat support: ${support_bat}
33776 client-only: ${build_client_only}
33777 build-dird: ${build_dird}
33778 build-stored: ${build_stored}
33779 Plugin support: ${have_plugins}
33780 AFS support: ${have_afs}
33781 ACL support: ${have_acl}
33782 XATTR support: ${have_xattr}
33783 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
33784 Batch insert enabled: ${batch_insert_db_backends}
33788 # create a small shell script useful for support with
33789 # configure options and config.out info
33790 cat > scripts/bacula_config << EOF
33793 $ $0 $ac_configure_args
33795 cat config.out >> scripts/bacula_config
33796 echo __EOC__ >> scripts/bacula_config
33797 chmod 755 scripts/bacula_config