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
733 INTL_LIBTOOL_SUFFIX_PREFIX
740 BUILD_INCLUDED_LIBINTL
771 HAVE_OPENBSD_OS_FALSE
775 HAVE_FREEBSD_OS_FALSE
789 INCLUDE_UNINSTALL_TARGET
790 INCLUDE_INSTALL_TARGET
794 LIBTOOL_UNINSTALL_TARGET
795 LIBTOOL_INSTALL_TARGET
796 DEFAULT_SHARED_OBJECT_TYPE
875 LIBBACFIND_LT_RELEASE
876 LIBBACCATS_LT_RELEASE
920 program_transform_name
931 ac_subst_files='MCOMMON'
933 enable_option_checking
947 with_included_gettext
982 with_mon_dir_password
1011 ac_precious_vars='build_alias
1027 # Initialize some variables set by options.
1029 ac_init_version=false
1030 ac_unrecognized_opts=
1031 ac_unrecognized_sep=
1032 # The variables have the same names as the options, with
1033 # dashes changed to underlines.
1034 cache_file=/dev/null
1041 program_transform_name=s,x,x,
1049 # Installation directory options.
1050 # These are left unexpanded so users can "make install exec_prefix=/foo"
1051 # and all the variables that are supposed to be based on exec_prefix
1052 # by default will actually change.
1053 # Use braces instead of parens because sh, perl, etc. also accept them.
1054 # (The list follows the same order as the GNU Coding Standards.)
1055 bindir='${exec_prefix}/bin'
1056 sbindir='${exec_prefix}/sbin'
1057 libexecdir='${exec_prefix}/libexec'
1058 datarootdir='${prefix}/share'
1059 datadir='${datarootdir}'
1060 sysconfdir='${prefix}/etc'
1061 sharedstatedir='${prefix}/com'
1062 localstatedir='${prefix}/var'
1063 includedir='${prefix}/include'
1064 oldincludedir='/usr/include'
1065 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1066 infodir='${datarootdir}/info'
1071 libdir='${exec_prefix}/lib'
1072 localedir='${datarootdir}/locale'
1073 mandir='${datarootdir}/man'
1079 # If the previous option needs an argument, assign it.
1080 if test -n "$ac_prev"; then
1081 eval $ac_prev=\$ac_option
1087 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1092 # Accept the important Cygnus configure options, so we can diagnose typos.
1094 case $ac_dashdash$ac_option in
1098 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1101 bindir=$ac_optarg ;;
1103 -build | --build | --buil | --bui | --bu)
1104 ac_prev=build_alias ;;
1105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1106 build_alias=$ac_optarg ;;
1108 -cache-file | --cache-file | --cache-fil | --cache-fi \
1109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1110 ac_prev=cache_file ;;
1111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1113 cache_file=$ac_optarg ;;
1115 --config-cache | -C)
1116 cache_file=config.cache ;;
1118 -datadir | --datadir | --datadi | --datad)
1120 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1121 datadir=$ac_optarg ;;
1123 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1124 | --dataroo | --dataro | --datar)
1125 ac_prev=datarootdir ;;
1126 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1127 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1128 datarootdir=$ac_optarg ;;
1130 -disable-* | --disable-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error $? "invalid feature name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1139 "enable_$ac_useropt"
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1144 eval enable_$ac_useropt=no ;;
1146 -docdir | --docdir | --docdi | --doc | --do)
1148 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1149 docdir=$ac_optarg ;;
1151 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1153 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1154 dvidir=$ac_optarg ;;
1156 -enable-* | --enable-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid feature name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1165 "enable_$ac_useropt"
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1170 eval enable_$ac_useropt=\$ac_optarg ;;
1172 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1173 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1174 | --exec | --exe | --ex)
1175 ac_prev=exec_prefix ;;
1176 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1177 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1178 | --exec=* | --exe=* | --ex=*)
1179 exec_prefix=$ac_optarg ;;
1181 -gas | --gas | --ga | --g)
1182 # Obsolete; use --with-gas.
1185 -help | --help | --hel | --he | -h)
1186 ac_init_help=long ;;
1187 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1188 ac_init_help=recursive ;;
1189 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1190 ac_init_help=short ;;
1192 -host | --host | --hos | --ho)
1193 ac_prev=host_alias ;;
1194 -host=* | --host=* | --hos=* | --ho=*)
1195 host_alias=$ac_optarg ;;
1197 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1199 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1201 htmldir=$ac_optarg ;;
1203 -includedir | --includedir | --includedi | --included | --include \
1204 | --includ | --inclu | --incl | --inc)
1205 ac_prev=includedir ;;
1206 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1207 | --includ=* | --inclu=* | --incl=* | --inc=*)
1208 includedir=$ac_optarg ;;
1210 -infodir | --infodir | --infodi | --infod | --info | --inf)
1212 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1213 infodir=$ac_optarg ;;
1215 -libdir | --libdir | --libdi | --libd)
1217 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1218 libdir=$ac_optarg ;;
1220 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1221 | --libexe | --libex | --libe)
1222 ac_prev=libexecdir ;;
1223 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1224 | --libexe=* | --libex=* | --libe=*)
1225 libexecdir=$ac_optarg ;;
1227 -localedir | --localedir | --localedi | --localed | --locale)
1228 ac_prev=localedir ;;
1229 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1230 localedir=$ac_optarg ;;
1232 -localstatedir | --localstatedir | --localstatedi | --localstated \
1233 | --localstate | --localstat | --localsta | --localst | --locals)
1234 ac_prev=localstatedir ;;
1235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1236 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1237 localstatedir=$ac_optarg ;;
1239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1242 mandir=$ac_optarg ;;
1244 -nfp | --nfp | --nf)
1245 # Obsolete; use --without-fp.
1248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1249 | --no-cr | --no-c | -n)
1252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1256 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1257 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1258 | --oldin | --oldi | --old | --ol | --o)
1259 ac_prev=oldincludedir ;;
1260 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1261 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1262 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1263 oldincludedir=$ac_optarg ;;
1265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1268 prefix=$ac_optarg ;;
1270 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1271 | --program-pre | --program-pr | --program-p)
1272 ac_prev=program_prefix ;;
1273 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1274 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1275 program_prefix=$ac_optarg ;;
1277 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1278 | --program-suf | --program-su | --program-s)
1279 ac_prev=program_suffix ;;
1280 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1281 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1282 program_suffix=$ac_optarg ;;
1284 -program-transform-name | --program-transform-name \
1285 | --program-transform-nam | --program-transform-na \
1286 | --program-transform-n | --program-transform- \
1287 | --program-transform | --program-transfor \
1288 | --program-transfo | --program-transf \
1289 | --program-trans | --program-tran \
1290 | --progr-tra | --program-tr | --program-t)
1291 ac_prev=program_transform_name ;;
1292 -program-transform-name=* | --program-transform-name=* \
1293 | --program-transform-nam=* | --program-transform-na=* \
1294 | --program-transform-n=* | --program-transform-=* \
1295 | --program-transform=* | --program-transfor=* \
1296 | --program-transfo=* | --program-transf=* \
1297 | --program-trans=* | --program-tran=* \
1298 | --progr-tra=* | --program-tr=* | --program-t=*)
1299 program_transform_name=$ac_optarg ;;
1301 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1303 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1304 pdfdir=$ac_optarg ;;
1306 -psdir | --psdir | --psdi | --psd | --ps)
1308 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1312 | -silent | --silent | --silen | --sile | --sil)
1315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1319 sbindir=$ac_optarg ;;
1321 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1323 | --sharedst | --shareds | --shared | --share | --shar \
1325 ac_prev=sharedstatedir ;;
1326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1330 sharedstatedir=$ac_optarg ;;
1332 -site | --site | --sit)
1334 -site=* | --site=* | --sit=*)
1337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1340 srcdir=$ac_optarg ;;
1342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1343 | --syscon | --sysco | --sysc | --sys | --sy)
1344 ac_prev=sysconfdir ;;
1345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1347 sysconfdir=$ac_optarg ;;
1349 -target | --target | --targe | --targ | --tar | --ta | --t)
1350 ac_prev=target_alias ;;
1351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1352 target_alias=$ac_optarg ;;
1354 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1357 -version | --version | --versio | --versi | --vers | -V)
1358 ac_init_version=: ;;
1361 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1362 # Reject names that are not valid shell variable names.
1363 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1364 as_fn_error $? "invalid package name: $ac_useropt"
1365 ac_useropt_orig=$ac_useropt
1366 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367 case $ac_user_opts in
1371 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1372 ac_unrecognized_sep=', ';;
1374 eval with_$ac_useropt=\$ac_optarg ;;
1376 -without-* | --without-*)
1377 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1378 # Reject names that are not valid shell variable names.
1379 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1380 as_fn_error $? "invalid package name: $ac_useropt"
1381 ac_useropt_orig=$ac_useropt
1382 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1383 case $ac_user_opts in
1387 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1388 ac_unrecognized_sep=', ';;
1390 eval with_$ac_useropt=no ;;
1393 # Obsolete; use --with-x.
1396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1397 | --x-incl | --x-inc | --x-in | --x-i)
1398 ac_prev=x_includes ;;
1399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1401 x_includes=$ac_optarg ;;
1403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1405 ac_prev=x_libraries ;;
1406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1408 x_libraries=$ac_optarg ;;
1410 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1411 Try \`$0 --help' for more information"
1415 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1416 # Reject names that are not valid shell variable names.
1417 case $ac_envvar in #(
1418 '' | [0-9]* | *[!_$as_cr_alnum]* )
1419 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1421 eval $ac_envvar=\$ac_optarg
1422 export $ac_envvar ;;
1425 # FIXME: should be removed in autoconf 3.0.
1426 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1427 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1428 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1429 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1435 if test -n "$ac_prev"; then
1436 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1437 as_fn_error $? "missing argument to $ac_option"
1440 if test -n "$ac_unrecognized_opts"; then
1441 case $enable_option_checking in
1443 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1444 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1448 # Check all directory arguments for consistency.
1449 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1450 datadir sysconfdir sharedstatedir localstatedir includedir \
1451 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1452 libdir localedir mandir
1454 eval ac_val=\$$ac_var
1455 # Remove trailing slashes.
1458 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1459 eval $ac_var=\$ac_val;;
1461 # Be sure to have absolute directory names.
1463 [\\/$]* | ?:[\\/]* ) continue;;
1464 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1466 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1469 # There might be people who depend on the old broken behavior: `$host'
1470 # used to hold the argument of --host etc.
1471 # FIXME: To remove some day.
1474 target=$target_alias
1476 # FIXME: To remove some day.
1477 if test "x$host_alias" != x; then
1478 if test "x$build_alias" = x; then
1479 cross_compiling=maybe
1480 elif test "x$build_alias" != "x$host_alias"; then
1486 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1488 test "$silent" = yes && exec 6>/dev/null
1491 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1492 ac_ls_di=`ls -di .` &&
1493 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1494 as_fn_error $? "working directory cannot be determined"
1495 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1496 as_fn_error $? "pwd does not report name of working directory"
1499 # Find the source files, if location was not specified.
1500 if test -z "$srcdir"; then
1501 ac_srcdir_defaulted=yes
1502 # Try the directory containing this script, then the parent directory.
1503 ac_confdir=`$as_dirname -- "$as_myself" ||
1504 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1505 X"$as_myself" : 'X\(//\)[^/]' \| \
1506 X"$as_myself" : 'X\(//\)$' \| \
1507 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1508 $as_echo X"$as_myself" |
1509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1527 if test ! -r "$srcdir/$ac_unique_file"; then
1531 ac_srcdir_defaulted=no
1533 if test ! -r "$srcdir/$ac_unique_file"; then
1534 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1535 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1537 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1539 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1541 # When building in place, set srcdir=.
1542 if test "$ac_abs_confdir" = "$ac_pwd"; then
1545 # Remove unnecessary trailing slashes from srcdir.
1546 # Double slashes in file names in object file debugging info
1547 # mess up M-x gdb in Emacs.
1549 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1551 for ac_var in $ac_precious_vars; do
1552 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1553 eval ac_env_${ac_var}_value=\$${ac_var}
1554 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1555 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1559 # Report the --help message.
1561 if test "$ac_init_help" = "long"; then
1562 # Omit some internal or obsolete options to make the list less imposing.
1563 # This message is too long to be a string in the A/UX 3.1 sh.
1565 \`configure' configures bacula 7.2.0 to adapt to many kinds of systems.
1567 Usage: $0 [OPTION]... [VAR=VALUE]...
1569 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1570 VAR=VALUE. See below for descriptions of some of the useful variables.
1572 Defaults for the options are specified in brackets.
1575 -h, --help display this help and exit
1576 --help=short display options specific to this package
1577 --help=recursive display the short help of all the included packages
1578 -V, --version display version information and exit
1579 -q, --quiet, --silent do not print \`checking ...' messages
1580 --cache-file=FILE cache test results in FILE [disabled]
1581 -C, --config-cache alias for \`--cache-file=config.cache'
1582 -n, --no-create do not create output files
1583 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1585 Installation directories:
1586 --prefix=PREFIX install architecture-independent files in PREFIX
1587 [$ac_default_prefix]
1588 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1591 By default, \`make install' will install all the files in
1592 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1593 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1594 for instance \`--prefix=\$HOME'.
1596 For better control, use the options below.
1598 Fine tuning of the installation directories:
1599 --bindir=DIR user executables [EPREFIX/bin]
1600 --sbindir=DIR system admin executables [EPREFIX/sbin]
1601 --libexecdir=DIR program executables [EPREFIX/libexec]
1602 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1603 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1604 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1605 --libdir=DIR object code libraries [EPREFIX/lib]
1606 --includedir=DIR C header files [PREFIX/include]
1607 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1608 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1609 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1610 --infodir=DIR info documentation [DATAROOTDIR/info]
1611 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1612 --mandir=DIR man documentation [DATAROOTDIR/man]
1613 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1614 --htmldir=DIR html documentation [DOCDIR]
1615 --dvidir=DIR dvi documentation [DOCDIR]
1616 --pdfdir=DIR pdf documentation [DOCDIR]
1617 --psdir=DIR ps documentation [DOCDIR]
1623 --x-includes=DIR X include files are in DIR
1624 --x-libraries=DIR X library files are in DIR
1627 --build=BUILD configure for building on BUILD [guessed]
1628 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1632 if test -n "$ac_init_help"; then
1633 case $ac_init_help in
1634 short | recursive ) echo "Configuration of bacula 7.2.0:";;
1639 --disable-option-checking ignore unrecognized --enable/--with options
1640 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1641 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1642 --enable-libtool enable building using GNU libtool [default=yes]
1643 --enable-shared[=PKGS] build shared libraries [default=yes]
1644 --enable-static[=PKGS] build static libraries [default=no]
1645 --enable-fast-install[=PKGS]
1646 optimize for fast installation [default=yes]
1647 --disable-libtool-lock avoid locking (might break parallel builds)
1648 --enable-includes enable installing of include files [default=no]
1649 --disable-nls do not use Native Language Support
1650 --disable-rpath do not hardcode runtime library paths
1651 --enable-bat enable build of bat Qt4 GUI [default=no]
1652 --enable-smartalloc enable smartalloc debugging support [default=no]
1653 --enable-lockmgr enable lock manager support [default=no]
1654 --enable-static-tools enable static tape tools [default=no]
1655 --enable-static-fd enable static File daemon [default=no]
1656 --enable-static-sd enable static Storage daemon [default=no]
1657 --enable-static-dir enable static Director [default=no]
1658 --enable-static-cons enable static Console [default=no]
1659 --enable-client-only build client (File daemon) only [default=no]
1660 --enable-build-dird enable building of dird (Director) [default=yes]
1661 --enable-build-stored enable building of stored (Storage daemon)
1663 --disable-conio disable conio support [default=no]
1664 --enable-ipv6 enable ipv6 support [default=yes]
1665 --disable-readline disable readline support [default=yes]
1666 --enable-batch-insert enable the DB batch insert code [default=yes]
1667 --disable-largefile omit support for large files
1668 --disable-afs disable afs support [default=auto]
1669 --disable-lzo disable lzo support [default=yes]
1670 --disable-acl disable acl support [default=auto]
1671 --disable-xattr disable xattr support [default=auto]
1674 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1675 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1676 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1678 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1679 --with-sysroot=DIR Search for dependent libraries within DIR
1680 (or the compiler's sysroot if not specified).
1681 --with-gnu-ld assume the C compiler uses GNU ld default=no
1682 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1683 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1684 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1685 --without-libintl-prefix don't search for libintl in includedir and libdir
1686 --with-included-gettext use the GNU gettext library included here
1687 --with-readline[=DIR] specify readline library directory
1688 --with-tcp-wrappers[=DIR]
1689 enable tcpwrappers support
1690 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1691 --with-working-dir=PATH specify path of Bacula working directory
1692 --with-archivedir=PATH specify path of SD archive directory
1693 --with-basename=RESNAME specify base resource name for daemons
1694 --with-hostname=RESNAME specify host name for daemons
1695 --with-scriptdir=PATH specify path of Bacula scripts directory
1696 --with-bsrdir=PATH specify path of Bacula bsrs directory
1697 --with-logdir=PATH specify path of Bacula logs directory
1698 --with-plugindir=PATH specify path of Bacula plugins directory
1699 --with-dump-email=EMAIL dump email address
1700 --with-job-email=EMAIL job output email address
1701 --with-smtp-host=HOST SMTP mail host address
1702 --with-pid-dir=PATH specify location of Bacula pid files
1703 --with-subsys-dir=PATH specify location of Bacula subsys file
1704 --with-baseport=PORT specify base port address for daemons
1705 --with-dir-password=PASSWORD
1706 specify Director's password
1707 --with-fd-password=PASSWORD
1708 specify Client's password
1709 --with-sd-password=PASSWORD
1710 specify Storage daemon's password
1711 --with-mon-dir-password=PASSWORD
1712 specify Director's password used by the monitor
1713 --with-mon-fd-password=PASSWORD
1714 specify Client's password used by the monitor
1715 --with-mon-sd-password=PASSWORD
1716 specify Storage daemon's password used by the
1718 --with-db-name=DBNAME specify database name [default=bacula]
1719 --with-db-user=UNAME specify database user [default=bacula]
1720 --with-db-password=PWD specify database password [default=*none*]
1721 --with-db-port=DBPORT specify a database port [default=null]
1722 --with-dir-user=USER specify user for Director daemon
1723 --with-dir-group=GROUP specify group for Director daemon
1724 --with-sd-user=USER specify user for Storage daemon
1725 --with-sd-group=GROUP specify group for Storage daemon
1726 --with-fd-user=USER specify user for File daemon
1727 --with-fd-group=GROUP specify group for File daemon
1728 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1729 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1730 base install directory, [default=/usr/local/pgsql]
1731 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1732 directory, default is to search through a number of
1733 common places for the MySQL files.
1734 --with-embedded-mysql[=DIR]
1735 Include MySQL support. DIR is the MySQL base install
1736 directory, default is to search through a number of
1737 common places for the MySQL files.
1738 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1739 install directory, default is to search through a
1740 number of common places for the SQLite3 files.
1741 --with-x use the X Window System
1742 --with-afsdir[=DIR] Directory holding AFS includes/libs
1743 --with-lzo[=DIR] specify lzo library directory
1744 --with-systemd[=UNITDIR]
1745 Include systemd support. UNITDIR is where systemd
1746 system .service files are located, default is to ask
1749 Some influential environment variables:
1750 CC C compiler command
1751 CFLAGS C compiler flags
1752 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1753 nonstandard directory <lib dir>
1754 LIBS libraries to pass to the linker, e.g. -l<library>
1755 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1756 you have headers in a nonstandard directory <include dir>
1757 CXX C++ compiler command
1758 CXXFLAGS C++ compiler flags
1760 CXXCPP C++ preprocessor
1761 XMKMF Path to xmkmf, Makefile generator for X Window System
1763 Use these variables to override the choices made by `configure' or to help
1764 it to find libraries and programs with nonstandard names/locations.
1766 Report bugs to the package provider.
1771 if test "$ac_init_help" = "recursive"; then
1772 # If there are subdirs, report their specific --help.
1773 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1774 test -d "$ac_dir" ||
1775 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1783 # A ".." for each directory in $ac_dir_suffix.
1784 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1785 case $ac_top_builddir_sub in
1786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1790 ac_abs_top_builddir=$ac_pwd
1791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1792 # for backward compatibility:
1793 ac_top_builddir=$ac_top_build_prefix
1796 .) # We are building in place.
1798 ac_top_srcdir=$ac_top_builddir_sub
1799 ac_abs_top_srcdir=$ac_pwd ;;
1800 [\\/]* | ?:[\\/]* ) # Absolute name.
1801 ac_srcdir=$srcdir$ac_dir_suffix;
1802 ac_top_srcdir=$srcdir
1803 ac_abs_top_srcdir=$srcdir ;;
1805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1806 ac_top_srcdir=$ac_top_build_prefix$srcdir
1807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1811 cd "$ac_dir" || { ac_status=$?; continue; }
1812 # Check for guested configure.
1813 if test -f "$ac_srcdir/configure.gnu"; then
1815 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1816 elif test -f "$ac_srcdir/configure"; then
1818 $SHELL "$ac_srcdir/configure" --help=recursive
1820 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1822 cd "$ac_pwd" || { ac_status=$?; break; }
1826 test -n "$ac_init_help" && exit $ac_status
1827 if $ac_init_version; then
1829 bacula configure 7.2.0
1830 generated by GNU Autoconf 2.69
1832 Copyright (C) 2012 Free Software Foundation, Inc.
1833 This configure script is free software; the Free Software Foundation
1834 gives unlimited permission to copy, distribute and modify it.
1839 ## ------------------------ ##
1840 ## Autoconf initialization. ##
1841 ## ------------------------ ##
1843 # ac_fn_c_try_compile LINENO
1844 # --------------------------
1845 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_c_try_compile ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 rm -f conftest.$ac_objext
1850 if { { ac_try="$ac_compile"
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_compile") 2>conftest.err
1859 if test -s conftest.err; then
1860 grep -v '^ *+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && {
1866 test -z "$ac_c_werror_flag" ||
1867 test ! -s conftest.err
1868 } && test -s conftest.$ac_objext; then :
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1879 } # ac_fn_c_try_compile
1881 # ac_fn_cxx_try_compile LINENO
1882 # ----------------------------
1883 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_cxx_try_compile ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 rm -f conftest.$ac_objext
1888 if { { ac_try="$ac_compile"
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_compile") 2>conftest.err
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && {
1904 test -z "$ac_cxx_werror_flag" ||
1905 test ! -s conftest.err
1906 } && test -s conftest.$ac_objext; then :
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1917 } # ac_fn_cxx_try_compile
1919 # ac_fn_c_try_cpp LINENO
1920 # ----------------------
1921 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if { { ac_try="$ac_cpp conftest.$ac_ext"
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } > conftest.i && {
1941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1942 test ! -s conftest.err
1946 $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1956 # ac_fn_c_try_link LINENO
1957 # -----------------------
1958 # Try to link conftest.$ac_ext, and return whether this succeeded.
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 rm -f conftest.$ac_objext conftest$ac_exeext
1963 if { { ac_try="$ac_link"
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966 *) ac_try_echo=$ac_try;;
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 $as_echo "$ac_try_echo"; } >&5
1970 (eval "$ac_link") 2>conftest.err
1972 if test -s conftest.err; then
1973 grep -v '^ *+' conftest.err >conftest.er1
1974 cat conftest.er1 >&5
1975 mv -f conftest.er1 conftest.err
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && {
1979 test -z "$ac_c_werror_flag" ||
1980 test ! -s conftest.err
1981 } && test -s conftest$ac_exeext && {
1982 test "$cross_compiling" = yes ||
1983 test -x conftest$ac_exeext
1987 $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1992 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1993 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1994 # interfere with the next link command; also delete a directory that is
1995 # left behind by Apple's compiler. We do this before executing the actions.
1996 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 as_fn_set_status $ac_retval
2000 } # ac_fn_c_try_link
2002 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2003 # -------------------------------------------------------
2004 # Tests whether HEADER exists and can be compiled using the include files in
2005 # INCLUDES, setting the cache variable VAR accordingly.
2006 ac_fn_c_check_header_compile ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2019 if ac_fn_c_try_compile "$LINENO"; then :
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 } # ac_fn_c_check_header_compile
2033 # ac_fn_c_try_run LINENO
2034 # ----------------------
2035 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2036 # that executables *can* be run.
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 if { { ac_try="$ac_link"
2042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2043 *) ac_try_echo=$ac_try;;
2045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2046 $as_echo "$ac_try_echo"; } >&5
2047 (eval "$ac_link") 2>&5
2049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2050 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2051 { { case "(($ac_try" in
2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053 *) ac_try_echo=$ac_try;;
2055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 $as_echo "$ac_try_echo"; } >&5
2057 (eval "$ac_try") 2>&5
2059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060 test $ac_status = 0; }; }; then :
2063 $as_echo "$as_me: program exited with status $ac_status" >&5
2064 $as_echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2067 ac_retval=$ac_status
2069 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 as_fn_set_status $ac_retval
2075 # ac_fn_c_check_func LINENO FUNC VAR
2076 # ----------------------------------
2077 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2078 ac_fn_c_check_func ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if eval \${$3+:} false; then :
2084 $as_echo_n "(cached) " >&6
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2088 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2090 #define $2 innocuous_$2
2092 /* System header to define __stub macros and hopefully few prototypes,
2093 which can conflict with char $2 (); below.
2094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2095 <limits.h> exists even on freestanding compilers. */
2098 # include <limits.h>
2100 # include <assert.h>
2105 /* Override any GCC internal prototype to avoid an error.
2106 Use char because int might match the return type of a GCC
2107 builtin and then its argument prototype would still apply. */
2112 /* The GNU C library defines this for functions which it implements
2113 to always fail with ENOSYS. Some functions are actually named
2114 something starting with __ and the normal name is an alias. */
2115 #if defined __stub_$2 || defined __stub___$2
2127 if ac_fn_c_try_link "$LINENO"; then :
2132 rm -f core conftest.err conftest.$ac_objext \
2133 conftest$ac_exeext conftest.$ac_ext
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140 } # ac_fn_c_check_func
2142 # ac_fn_cxx_try_cpp LINENO
2143 # ------------------------
2144 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2145 ac_fn_cxx_try_cpp ()
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if { { ac_try="$ac_cpp conftest.$ac_ext"
2150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151 *) ac_try_echo=$ac_try;;
2153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2154 $as_echo "$ac_try_echo"; } >&5
2155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2157 if test -s conftest.err; then
2158 grep -v '^ *+' conftest.err >conftest.er1
2159 cat conftest.er1 >&5
2160 mv -f conftest.er1 conftest.err
2162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2163 test $ac_status = 0; } > conftest.i && {
2164 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2165 test ! -s conftest.err
2169 $as_echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 as_fn_set_status $ac_retval
2177 } # ac_fn_cxx_try_cpp
2179 # ac_fn_cxx_try_link LINENO
2180 # -------------------------
2181 # Try to link conftest.$ac_ext, and return whether this succeeded.
2182 ac_fn_cxx_try_link ()
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 rm -f conftest.$ac_objext conftest$ac_exeext
2186 if { { ac_try="$ac_link"
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 $as_echo "$ac_try_echo"; } >&5
2193 (eval "$ac_link") 2>conftest.err
2195 if test -s conftest.err; then
2196 grep -v '^ *+' conftest.err >conftest.er1
2197 cat conftest.er1 >&5
2198 mv -f conftest.er1 conftest.err
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; } && {
2202 test -z "$ac_cxx_werror_flag" ||
2203 test ! -s conftest.err
2204 } && test -s conftest$ac_exeext && {
2205 test "$cross_compiling" = yes ||
2206 test -x conftest$ac_exeext
2210 $as_echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2215 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2216 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2217 # interfere with the next link command; also delete a directory that is
2218 # left behind by Apple's compiler. We do this before executing the actions.
2219 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221 as_fn_set_status $ac_retval
2223 } # ac_fn_cxx_try_link
2225 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2226 # ---------------------------------------------
2227 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2229 ac_fn_c_check_decl ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 as_decl_name=`echo $2|sed 's/ *(.*//'`
2233 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2235 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2236 if eval \${$3+:} false; then :
2237 $as_echo_n "(cached) " >&6
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2245 #ifndef $as_decl_name
2247 (void) $as_decl_use;
2249 (void) $as_decl_name;
2257 if ac_fn_c_try_compile "$LINENO"; then :
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269 } # ac_fn_c_check_decl
2271 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2272 # -------------------------------------------
2273 # Tests whether TYPE exists after having included INCLUDES, setting cache
2274 # variable VAR accordingly.
2275 ac_fn_c_check_type ()
2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279 $as_echo_n "checking for $2... " >&6; }
2280 if eval \${$3+:} false; then :
2281 $as_echo_n "(cached) " >&6
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2296 if ac_fn_c_try_compile "$LINENO"; then :
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2309 if ac_fn_c_try_compile "$LINENO"; then :
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320 $as_echo "$ac_res" >&6; }
2321 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2323 } # ac_fn_c_check_type
2325 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2326 # -------------------------------------------------------
2327 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2328 # the include files in INCLUDES and setting the cache variable VAR
2330 ac_fn_c_check_header_mongrel ()
2332 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333 if eval \${$3+:} false; then :
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2335 $as_echo_n "checking for $2... " >&6; }
2336 if eval \${$3+:} false; then :
2337 $as_echo_n "(cached) " >&6
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2341 $as_echo "$ac_res" >&6; }
2343 # Is the header compilable?
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2345 $as_echo_n "checking $2 usability... " >&6; }
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2351 if ac_fn_c_try_compile "$LINENO"; then :
2352 ac_header_compiler=yes
2354 ac_header_compiler=no
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2358 $as_echo "$ac_header_compiler" >&6; }
2360 # Is the header present?
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2362 $as_echo_n "checking $2 presence... " >&6; }
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2367 if ac_fn_c_try_cpp "$LINENO"; then :
2368 ac_header_preproc=yes
2370 ac_header_preproc=no
2372 rm -f conftest.err conftest.i conftest.$ac_ext
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2374 $as_echo "$ac_header_preproc" >&6; }
2376 # So? What about this header?
2377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2380 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2382 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2386 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2388 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2390 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2392 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2394 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2398 $as_echo_n "checking for $2... " >&6; }
2399 if eval \${$3+:} false; then :
2400 $as_echo_n "(cached) " >&6
2402 eval "$3=\$ac_header_compiler"
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2406 $as_echo "$ac_res" >&6; }
2408 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410 } # ac_fn_c_check_header_mongrel
2412 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2413 # --------------------------------------------
2414 # Tries to find the compile-time value of EXPR in a program that includes
2415 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2417 ac_fn_c_compute_int ()
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 if test "$cross_compiling" = yes; then
2421 # Depending upon the size, compute the lo and hi bounds.
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2428 static int test_array [1 - 2 * !(($2) >= 0)];
2430 return test_array [0];
2436 if ac_fn_c_try_compile "$LINENO"; then :
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h. */
2445 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2447 return test_array [0];
2453 if ac_fn_c_try_compile "$LINENO"; then :
2454 ac_hi=$ac_mid; break
2456 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2457 if test $ac_lo -le $ac_mid; then
2461 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2472 static int test_array [1 - 2 * !(($2) < 0)];
2474 return test_array [0];
2480 if ac_fn_c_try_compile "$LINENO"; then :
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2489 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2491 return test_array [0];
2497 if ac_fn_c_try_compile "$LINENO"; then :
2498 ac_lo=$ac_mid; break
2500 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2501 if test $ac_mid -le $ac_hi; then
2505 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 # Binary search between lo and hi bounds.
2516 while test "x$ac_lo" != "x$ac_hi"; do
2517 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h. */
2524 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2526 return test_array [0];
2532 if ac_fn_c_try_compile "$LINENO"; then :
2535 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2547 static long int longval () { return $2; }
2548 static unsigned long int ulongval () { return $2; }
2555 FILE *f = fopen ("conftest.val", "w");
2560 long int i = longval ();
2563 fprintf (f, "%ld", i);
2567 unsigned long int i = ulongval ();
2570 fprintf (f, "%lu", i);
2572 /* Do not output a trailing newline, as this causes \r\n confusion
2573 on some platforms. */
2574 return ferror (f) || fclose (f) != 0;
2580 if ac_fn_c_try_run "$LINENO"; then :
2581 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2586 conftest.$ac_objext conftest.beam conftest.$ac_ext
2590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2591 as_fn_set_status $ac_retval
2593 } # ac_fn_c_compute_int
2595 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2596 # ----------------------------------------------------
2597 # Tries to find if the field MEMBER exists in type AGGR, after including
2598 # INCLUDES, setting cache variable VAR accordingly.
2599 ac_fn_c_check_member ()
2601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2603 $as_echo_n "checking for $2.$3... " >&6; }
2604 if eval \${$4+:} false; then :
2605 $as_echo_n "(cached) " >&6
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2620 if ac_fn_c_try_compile "$LINENO"; then :
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2630 if (sizeof ac_aggr.$3)
2636 if ac_fn_c_try_compile "$LINENO"; then :
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2647 $as_echo "$ac_res" >&6; }
2648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2650 } # ac_fn_c_check_member
2652 # ac_fn_cxx_try_run LINENO
2653 # ------------------------
2654 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2655 # that executables *can* be run.
2656 ac_fn_cxx_try_run ()
2658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2659 if { { ac_try="$ac_link"
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2665 $as_echo "$ac_try_echo"; } >&5
2666 (eval "$ac_link") 2>&5
2668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2669 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2670 { { case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2675 $as_echo "$ac_try_echo"; } >&5
2676 (eval "$ac_try") 2>&5
2678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2679 test $ac_status = 0; }; }; then :
2682 $as_echo "$as_me: program exited with status $ac_status" >&5
2683 $as_echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2686 ac_retval=$ac_status
2688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2690 as_fn_set_status $ac_retval
2692 } # ac_fn_cxx_try_run
2694 # ac_fn_cxx_check_func LINENO FUNC VAR
2695 # ------------------------------------
2696 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2697 ac_fn_cxx_check_func ()
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2701 $as_echo_n "checking for $2... " >&6; }
2702 if eval \${$3+:} false; then :
2703 $as_echo_n "(cached) " >&6
2705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706 /* end confdefs.h. */
2707 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2709 #define $2 innocuous_$2
2711 /* System header to define __stub macros and hopefully few prototypes,
2712 which can conflict with char $2 (); below.
2713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2714 <limits.h> exists even on freestanding compilers. */
2717 # include <limits.h>
2719 # include <assert.h>
2724 /* Override any GCC internal prototype to avoid an error.
2725 Use char because int might match the return type of a GCC
2726 builtin and then its argument prototype would still apply. */
2731 /* The GNU C library defines this for functions which it implements
2732 to always fail with ENOSYS. Some functions are actually named
2733 something starting with __ and the normal name is an alias. */
2734 #if defined __stub_$2 || defined __stub___$2
2746 if ac_fn_cxx_try_link "$LINENO"; then :
2751 rm -f core conftest.err conftest.$ac_objext \
2752 conftest$ac_exeext conftest.$ac_ext
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2756 $as_echo "$ac_res" >&6; }
2757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2759 } # ac_fn_cxx_check_func
2760 cat >config.log <<_ACEOF
2761 This file contains any messages produced by compilers while
2762 running configure, to aid debugging if configure makes a mistake.
2764 It was created by bacula $as_me 7.2.0, which was
2765 generated by GNU Autoconf 2.69. Invocation command line was
2777 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2778 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2779 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2780 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2781 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2783 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2784 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2786 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2787 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2788 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2789 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2790 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2791 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2792 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 $as_echo "PATH: $as_dir"
2817 # Keep a trace of the command line.
2818 # Strip out --no-create and --no-recursion so they do not pile up.
2819 # Strip out --silent because we don't want to record it for future runs.
2820 # Also quote any args containing shell meta-characters.
2821 # Make two passes to allow for proper duplicate-argument suppression.
2825 ac_must_keep_next=false
2831 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2833 | -silent | --silent | --silen | --sile | --sil)
2836 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2839 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2841 as_fn_append ac_configure_args1 " '$ac_arg'"
2842 if test $ac_must_keep_next = true; then
2843 ac_must_keep_next=false # Got value, back to normal.
2846 *=* | --config-cache | -C | -disable-* | --disable-* \
2847 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2848 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2849 | -with-* | --with-* | -without-* | --without-* | --x)
2850 case "$ac_configure_args0 " in
2851 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2854 -* ) ac_must_keep_next=true ;;
2857 as_fn_append ac_configure_args " '$ac_arg'"
2862 { ac_configure_args0=; unset ac_configure_args0;}
2863 { ac_configure_args1=; unset ac_configure_args1;}
2865 # When interrupted or exit'd, cleanup temporary files, and complete
2866 # config.log. We remove comments because anyway the quotes in there
2867 # would cause problems or look ugly.
2868 # WARNING: Use '\'' to represent an apostrophe within the trap.
2869 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2870 trap 'exit_status=$?
2871 # Save into config.log some information that might help in debugging.
2875 $as_echo "## ---------------- ##
2876 ## Cache variables. ##
2877 ## ---------------- ##"
2879 # The following way of writing the cache mishandles newlines in values,
2881 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2882 eval ac_val=\$$ac_var
2886 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2887 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2890 _ | IFS | as_nl) ;; #(
2891 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2892 *) { eval $ac_var=; unset $ac_var;} ;;
2897 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2898 *${as_nl}ac_space=\ *)
2900 "s/'\''/'\''\\\\'\'''\''/g;
2901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2911 $as_echo "## ----------------- ##
2912 ## Output variables. ##
2913 ## ----------------- ##"
2915 for ac_var in $ac_subst_vars
2917 eval ac_val=\$$ac_var
2919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2921 $as_echo "$ac_var='\''$ac_val'\''"
2925 if test -n "$ac_subst_files"; then
2926 $as_echo "## ------------------- ##
2927 ## File substitutions. ##
2928 ## ------------------- ##"
2930 for ac_var in $ac_subst_files
2932 eval ac_val=\$$ac_var
2934 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2936 $as_echo "$ac_var='\''$ac_val'\''"
2941 if test -s confdefs.h; then
2942 $as_echo "## ----------- ##
2949 test "$ac_signal" != 0 &&
2950 $as_echo "$as_me: caught signal $ac_signal"
2951 $as_echo "$as_me: exit $exit_status"
2953 rm -f core *.core core.conftest.* &&
2954 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2957 for ac_signal in 1 2 13 15; do
2958 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2962 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2963 rm -f -r conftest* confdefs.h
2965 $as_echo "/* confdefs.h */" > confdefs.h
2967 # Predefined preprocessor variables.
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_NAME "$PACKAGE_NAME"
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2977 cat >>confdefs.h <<_ACEOF
2978 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2981 cat >>confdefs.h <<_ACEOF
2982 #define PACKAGE_STRING "$PACKAGE_STRING"
2985 cat >>confdefs.h <<_ACEOF
2986 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2989 cat >>confdefs.h <<_ACEOF
2990 #define PACKAGE_URL "$PACKAGE_URL"
2994 # Let the site file select an alternate cache file if it wants to.
2995 # Prefer an explicitly selected file to automatically selected ones.
2998 if test -n "$CONFIG_SITE"; then
2999 # We do not want a PATH search for config.site.
3000 case $CONFIG_SITE in #((
3001 -*) ac_site_file1=./$CONFIG_SITE;;
3002 */*) ac_site_file1=$CONFIG_SITE;;
3003 *) ac_site_file1=./$CONFIG_SITE;;
3005 elif test "x$prefix" != xNONE; then
3006 ac_site_file1=$prefix/share/config.site
3007 ac_site_file2=$prefix/etc/config.site
3009 ac_site_file1=$ac_default_prefix/share/config.site
3010 ac_site_file2=$ac_default_prefix/etc/config.site
3012 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3014 test "x$ac_site_file" = xNONE && continue
3015 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3017 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3018 sed 's/^/| /' "$ac_site_file" >&5
3020 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 as_fn_error $? "failed to load site script $ac_site_file
3023 See \`config.log' for more details" "$LINENO" 5; }
3027 if test -r "$cache_file"; then
3028 # Some versions of bash will fail to source /dev/null (special files
3029 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3030 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3032 $as_echo "$as_me: loading cache $cache_file" >&6;}
3034 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3035 *) . "./$cache_file";;
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3040 $as_echo "$as_me: creating cache $cache_file" >&6;}
3044 as_fn_append ac_header_list " stdlib.h"
3045 as_fn_append ac_header_list " unistd.h"
3046 as_fn_append ac_header_list " sys/param.h"
3047 # Check that the precious variables saved in the cache have kept the same
3049 ac_cache_corrupted=false
3050 for ac_var in $ac_precious_vars; do
3051 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3052 eval ac_new_set=\$ac_env_${ac_var}_set
3053 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3054 eval ac_new_val=\$ac_env_${ac_var}_value
3055 case $ac_old_set,$ac_new_set in
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3058 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3059 ac_cache_corrupted=: ;;
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3062 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3063 ac_cache_corrupted=: ;;
3066 if test "x$ac_old_val" != "x$ac_new_val"; then
3067 # differences in whitespace do not lead to failure.
3068 ac_old_val_w=`echo x $ac_old_val`
3069 ac_new_val_w=`echo x $ac_new_val`
3070 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3072 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3073 ac_cache_corrupted=:
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3076 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3077 eval $ac_var=\$ac_old_val
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3080 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3082 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3085 # Pass precious variables to config.status.
3086 if test "$ac_new_set" = set; then
3088 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3089 *) ac_arg=$ac_var=$ac_new_val ;;
3091 case " $ac_configure_args " in
3092 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3093 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3097 if $ac_cache_corrupted; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3101 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3102 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3104 ## -------------------- ##
3105 ## Main body of script. ##
3106 ## -------------------- ##
3109 ac_cpp='$CPP $CPPFLAGS'
3110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3125 if test -f "$ac_dir/install-sh"; then
3127 ac_install_sh="$ac_aux_dir/install-sh -c"
3129 elif test -f "$ac_dir/install.sh"; then
3131 ac_install_sh="$ac_aux_dir/install.sh -c"
3133 elif test -f "$ac_dir/shtool"; then
3135 ac_install_sh="$ac_aux_dir/shtool install -c"
3139 if test -z "$ac_aux_dir"; then
3140 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3143 # These three variables are undocumented and unsupported,
3144 # and are intended to be withdrawn in a future Autoconf release.
3145 # They can cause serious problems if a builder's source tree is in a directory
3146 # whose full name contains unusual characters.
3147 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3148 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3149 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3152 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3157 # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy $ac_prog; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_path_TRUEPRG+:} false; then :
3162 $as_echo_n "(cached) " >&6
3166 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 TRUEPRG=$ac_cv_path_TRUEPRG
3188 if test -n "$TRUEPRG"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3190 $as_echo "$TRUEPRG" >&6; }
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3197 test -n "$TRUEPRG" && break
3199 test -n "$TRUEPRG" || TRUEPRG=":"
3201 for ac_prog in false
3203 # Extract the first word of "$ac_prog", so it can be a program name with args.
3204 set dummy $ac_prog; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if ${ac_cv_path_FALSEPRG+:} false; then :
3208 $as_echo_n "(cached) " >&6
3212 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 FALSEPRG=$ac_cv_path_FALSEPRG
3234 if test -n "$FALSEPRG"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3236 $as_echo "$FALSEPRG" >&6; }
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3243 test -n "$FALSEPRG" && break
3245 test -n "$FALSEPRG" || FALSEPRG=":"
3250 if test "x$BACULA" != x; then
3251 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3253 BACULA=${BACULA:-Bacula}
3254 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3255 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3256 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3257 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3258 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3259 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3260 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3261 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3263 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3264 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3265 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3267 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3268 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3271 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3272 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3274 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3275 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3278 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3280 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3284 PFILES="platforms/Makefile"
3286 echo "configuring for ${BACULA} $VERSION ($DATE)"
3291 ac_cpp='$CPP $CPPFLAGS'
3292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295 if test -n "$ac_tool_prefix"; then
3296 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3297 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if ${ac_cv_prog_CC+:} false; then :
3301 $as_echo_n "(cached) " >&6
3303 if test -n "$CC"; then
3304 ac_cv_prog_CC="$CC" # Let the user override the test.
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 if test -n "$CC"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326 $as_echo "$CC" >&6; }
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3334 if test -z "$ac_cv_prog_CC"; then
3336 # Extract the first word of "gcc", so it can be a program name with args.
3337 set dummy gcc; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3341 $as_echo_n "(cached) " >&6
3343 if test -n "$ac_ct_CC"; then
3344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_prog_ac_ct_CC="gcc"
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3364 if test -n "$ac_ct_CC"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3366 $as_echo "$ac_ct_CC" >&6; }
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3372 if test "x$ac_ct_CC" = x; then
3375 case $cross_compiling:$ac_tool_warned in
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3379 ac_tool_warned=yes ;;
3387 if test -z "$CC"; then
3388 if test -n "$ac_tool_prefix"; then
3389 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3390 set dummy ${ac_tool_prefix}cc; ac_word=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if ${ac_cv_prog_CC+:} false; then :
3394 $as_echo_n "(cached) " >&6
3396 if test -n "$CC"; then
3397 ac_cv_prog_CC="$CC" # Let the user override the test.
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406 ac_cv_prog_CC="${ac_tool_prefix}cc"
3407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 if test -n "$CC"; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3419 $as_echo "$CC" >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3428 if test -z "$CC"; then
3429 # Extract the first word of "cc", so it can be a program name with args.
3430 set dummy cc; ac_word=$2
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432 $as_echo_n "checking for $ac_word... " >&6; }
3433 if ${ac_cv_prog_CC+:} false; then :
3434 $as_echo_n "(cached) " >&6
3436 if test -n "$CC"; then
3437 ac_cv_prog_CC="$CC" # Let the user override the test.
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3448 ac_prog_rejected=yes
3452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 if test $ac_prog_rejected = yes; then
3460 # We found a bogon in the path, so make sure we never use it.
3461 set dummy $ac_cv_prog_CC
3463 if test $# != 0; then
3464 # We chose a different compiler from the bogus one.
3465 # However, it has the same basename, so the bogon will be chosen
3466 # first if we set CC to just the basename; use the full file name.
3468 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3474 if test -n "$CC"; then
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3476 $as_echo "$CC" >&6; }
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3484 if test -z "$CC"; then
3485 if test -n "$ac_tool_prefix"; then
3486 for ac_prog in cl.exe
3488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if ${ac_cv_prog_CC+:} false; then :
3493 $as_echo_n "(cached) " >&6
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 if test -n "$CC"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3525 test -n "$CC" && break
3528 if test -z "$CC"; then
3530 for ac_prog in cl.exe
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533 set dummy $ac_prog; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3537 $as_echo_n "(cached) " >&6
3539 if test -n "$ac_ct_CC"; then
3540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3549 ac_cv_prog_ac_ct_CC="$ac_prog"
3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3560 if test -n "$ac_ct_CC"; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3562 $as_echo "$ac_ct_CC" >&6; }
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3569 test -n "$ac_ct_CC" && break
3572 if test "x$ac_ct_CC" = x; then
3575 case $cross_compiling:$ac_tool_warned in
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3579 ac_tool_warned=yes ;;
3588 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "no acceptable C compiler found in \$PATH
3591 See \`config.log' for more details" "$LINENO" 5; }
3593 # Provide some information about the compiler.
3594 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3597 for ac_option in --version -v -V -qversion; do
3598 { { ac_try="$ac_compiler $ac_option >&5"
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604 $as_echo "$ac_try_echo"; } >&5
3605 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3607 if test -s conftest.err; then
3609 ... rest of stderr output deleted ...
3610 10q' conftest.err >conftest.er1
3611 cat conftest.er1 >&5
3613 rm -f conftest.er1 conftest.err
3614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3615 test $ac_status = 0; }
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3629 ac_clean_files_save=$ac_clean_files
3630 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3631 # Try to create an executable without -o first, disregard a.out.
3632 # It will help us diagnose broken compilers, and finding out an intuition
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3635 $as_echo_n "checking whether the C compiler works... " >&6; }
3636 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3638 # The possible output files:
3639 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3642 for ac_file in $ac_files
3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3646 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3651 if { { ac_try="$ac_link_default"
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657 $as_echo "$ac_try_echo"; } >&5
3658 (eval "$ac_link_default") 2>&5
3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661 test $ac_status = 0; }; then :
3662 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3663 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3664 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3665 # so that the user can short-circuit this test for compilers unknown to
3667 for ac_file in $ac_files ''
3669 test -f "$ac_file" || continue
3671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3674 # We found the default executable, but exeext='' is most
3678 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3680 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682 # We set ac_cv_exeext here because the later test for it is not
3683 # safe: cross compilers may not add the suffix if given an `-o'
3684 # argument, so we may need to know it at that point already.
3685 # Even if this section looks crufty: it has the advantage of
3692 test "$ac_cv_exeext" = no && ac_cv_exeext=
3697 if test -z "$ac_file"; then :
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 $as_echo "no" >&6; }
3700 $as_echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3705 as_fn_error 77 "C compiler cannot create executables
3706 See \`config.log' for more details" "$LINENO" 5; }
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3709 $as_echo "yes" >&6; }
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3712 $as_echo_n "checking for C compiler default output file name... " >&6; }
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3714 $as_echo "$ac_file" >&6; }
3715 ac_exeext=$ac_cv_exeext
3717 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3718 ac_clean_files=$ac_clean_files_save
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3720 $as_echo_n "checking for suffix of executables... " >&6; }
3721 if { { ac_try="$ac_link"
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 $as_echo "$ac_try_echo"; } >&5
3728 (eval "$ac_link") 2>&5
3730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731 test $ac_status = 0; }; then :
3732 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3733 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3734 # work properly (i.e., refer to `conftest.exe'), while it won't with
3736 for ac_file in conftest.exe conftest conftest.*; do
3737 test -f "$ac_file" || continue
3739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3740 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3749 See \`config.log' for more details" "$LINENO" 5; }
3751 rm -f conftest conftest$ac_cv_exeext
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3753 $as_echo "$ac_cv_exeext" >&6; }
3755 rm -f conftest.$ac_ext
3756 EXEEXT=$ac_cv_exeext
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3764 FILE *f = fopen ("conftest.out", "w");
3765 return ferror (f) || fclose (f) != 0;
3771 ac_clean_files="$ac_clean_files conftest.out"
3772 # Check that the compiler produces executables we can run. If not, either
3773 # the compiler is broken, or we cross compile.
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3775 $as_echo_n "checking whether we are cross compiling... " >&6; }
3776 if test "$cross_compiling" != yes; then
3777 { { ac_try="$ac_link"
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784 (eval "$ac_link") 2>&5
3786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787 test $ac_status = 0; }
3788 if { ac_try='./conftest$ac_cv_exeext'
3789 { { case "(($ac_try" in
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 $as_echo "$ac_try_echo"; } >&5
3795 (eval "$ac_try") 2>&5
3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }; }; then
3801 if test "$cross_compiling" = maybe; then
3804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3806 as_fn_error $? "cannot run C compiled programs.
3807 If you meant to cross compile, use \`--host'.
3808 See \`config.log' for more details" "$LINENO" 5; }
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3813 $as_echo "$cross_compiling" >&6; }
3815 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3816 ac_clean_files=$ac_clean_files_save
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3818 $as_echo_n "checking for suffix of object files... " >&6; }
3819 if ${ac_cv_objext+:} false; then :
3820 $as_echo_n "(cached) " >&6
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3833 rm -f conftest.o conftest.obj
3834 if { { ac_try="$ac_compile"
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 $as_echo "$ac_try_echo"; } >&5
3841 (eval "$ac_compile") 2>&5
3843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844 test $ac_status = 0; }; then :
3845 for ac_file in conftest.o conftest.obj conftest.*; do
3846 test -f "$ac_file" || continue;
3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3849 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3854 $as_echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859 as_fn_error $? "cannot compute suffix of object files: cannot compile
3860 See \`config.log' for more details" "$LINENO" 5; }
3862 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3865 $as_echo "$ac_cv_objext" >&6; }
3866 OBJEXT=$ac_cv_objext
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3869 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3870 if ${ac_cv_c_compiler_gnu+:} false; then :
3871 $as_echo_n "(cached) " >&6
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3887 if ac_fn_c_try_compile "$LINENO"; then :
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3897 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3898 if test $ac_compiler_gnu = yes; then
3903 ac_test_CFLAGS=${CFLAGS+set}
3904 ac_save_CFLAGS=$CFLAGS
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3906 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3907 if ${ac_cv_prog_cc_g+:} false; then :
3908 $as_echo_n "(cached) " >&6
3910 ac_save_c_werror_flag=$ac_c_werror_flag
3911 ac_c_werror_flag=yes
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3925 if ac_fn_c_try_compile "$LINENO"; then :
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3940 if ac_fn_c_try_compile "$LINENO"; then :
3943 ac_c_werror_flag=$ac_save_c_werror_flag
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3956 if ac_fn_c_try_compile "$LINENO"; then :
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 ac_c_werror_flag=$ac_save_c_werror_flag
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3967 $as_echo "$ac_cv_prog_cc_g" >&6; }
3968 if test "$ac_test_CFLAGS" = set; then
3969 CFLAGS=$ac_save_CFLAGS
3970 elif test $ac_cv_prog_cc_g = yes; then
3971 if test "$GCC" = yes; then
3977 if test "$GCC" = yes; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3984 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3985 if ${ac_cv_prog_cc_c89+:} false; then :
3986 $as_echo_n "(cached) " >&6
3988 ac_cv_prog_cc_c89=no
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3995 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3996 struct buf { int x; };
3997 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3998 static char *e (p, i)
4004 static char *f (char * (*g) (char **, int), char **p, ...)
4009 s = g (p, va_arg (v,int));
4014 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4015 function prototypes and stuff, but not '\xHH' hex character constants.
4016 These don't provoke an error unfortunately, instead are silently treated
4017 as 'x'. The following induces an error, until -std is added to get
4018 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4019 array size at least. It's necessary to write '\x00'==0 to get something
4020 that's true only with -std. */
4021 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4023 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4024 inside strings and character constants. */
4026 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4028 int test (int i, double x);
4029 struct s1 {int (*f) (int a);};
4030 struct s2 {int (*f) (double a);};
4031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4037 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4042 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4043 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4045 CC="$ac_save_CC $ac_arg"
4046 if ac_fn_c_try_compile "$LINENO"; then :
4047 ac_cv_prog_cc_c89=$ac_arg
4049 rm -f core conftest.err conftest.$ac_objext
4050 test "x$ac_cv_prog_cc_c89" != "xno" && break
4052 rm -f conftest.$ac_ext
4057 case "x$ac_cv_prog_cc_c89" in
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4060 $as_echo "none needed" >&6; } ;;
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4063 $as_echo "unsupported" >&6; } ;;
4065 CC="$CC $ac_cv_prog_cc_c89"
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4067 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4069 if test "x$ac_cv_prog_cc_c89" != xno; then :
4074 ac_cpp='$CPP $CPPFLAGS'
4075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080 ac_cpp='$CXXCPP $CPPFLAGS'
4081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4084 if test -z "$CXX"; then
4085 if test -n "$CCC"; then
4088 if test -n "$ac_tool_prefix"; then
4089 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094 $as_echo_n "checking for $ac_word... " >&6; }
4095 if ${ac_cv_prog_CXX+:} false; then :
4096 $as_echo_n "(cached) " >&6
4098 if test -n "$CXX"; then
4099 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 test -z "$as_dir" && as_dir=.
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 if test -n "$CXX"; then
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4121 $as_echo "$CXX" >&6; }
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4128 test -n "$CXX" && break
4131 if test -z "$CXX"; then
4133 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4135 # Extract the first word of "$ac_prog", so it can be a program name with args.
4136 set dummy $ac_prog; ac_word=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4140 $as_echo_n "(cached) " >&6
4142 if test -n "$ac_ct_CXX"; then
4143 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 test -z "$as_dir" && as_dir=.
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4152 ac_cv_prog_ac_ct_CXX="$ac_prog"
4153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4163 if test -n "$ac_ct_CXX"; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4165 $as_echo "$ac_ct_CXX" >&6; }
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168 $as_echo "no" >&6; }
4172 test -n "$ac_ct_CXX" && break
4175 if test "x$ac_ct_CXX" = x; then
4178 case $cross_compiling:$ac_tool_warned in
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4182 ac_tool_warned=yes ;;
4190 # Provide some information about the compiler.
4191 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4194 for ac_option in --version -v -V -qversion; do
4195 { { ac_try="$ac_compiler $ac_option >&5"
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4201 $as_echo "$ac_try_echo"; } >&5
4202 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4204 if test -s conftest.err; then
4206 ... rest of stderr output deleted ...
4207 10q' conftest.err >conftest.er1
4208 cat conftest.er1 >&5
4210 rm -f conftest.er1 conftest.err
4211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212 test $ac_status = 0; }
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4216 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4217 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4218 $as_echo_n "(cached) " >&6
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4234 if ac_fn_cxx_try_compile "$LINENO"; then :
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4244 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4245 if test $ac_compiler_gnu = yes; then
4250 ac_test_CXXFLAGS=${CXXFLAGS+set}
4251 ac_save_CXXFLAGS=$CXXFLAGS
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4253 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4254 if ${ac_cv_prog_cxx_g+:} false; then :
4255 $as_echo_n "(cached) " >&6
4257 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4258 ac_cxx_werror_flag=yes
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4272 if ac_fn_cxx_try_compile "$LINENO"; then :
4273 ac_cv_prog_cxx_g=yes
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4287 if ac_fn_cxx_try_compile "$LINENO"; then :
4290 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4303 if ac_fn_cxx_try_compile "$LINENO"; then :
4304 ac_cv_prog_cxx_g=yes
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4314 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4315 if test "$ac_test_CXXFLAGS" = set; then
4316 CXXFLAGS=$ac_save_CXXFLAGS
4317 elif test $ac_cv_prog_cxx_g = yes; then
4318 if test "$GXX" = yes; then
4324 if test "$GXX" = yes; then
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 if test "x$CC" != xcc; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4338 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4341 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4343 set dummy $CC; ac_cc=`$as_echo "$2" |
4344 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4345 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4346 $as_echo_n "(cached) " >&6
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4359 # Make sure it works both with $CC and with simple cc.
4360 # We do the test twice because some compilers refuse to overwrite an
4361 # existing .o file with -o, though they will create one.
4362 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4364 if { { case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4369 $as_echo "$ac_try_echo"; } >&5
4370 (eval "$ac_try") 2>&5
4372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4373 test $ac_status = 0; } &&
4374 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379 $as_echo "$ac_try_echo"; } >&5
4380 (eval "$ac_try") 2>&5
4382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4383 test $ac_status = 0; };
4385 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4386 if test "x$CC" != xcc; then
4387 # Test first that cc exists at all.
4388 if { ac_try='cc -c conftest.$ac_ext >&5'
4389 { { case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4394 $as_echo "$ac_try_echo"; } >&5
4395 (eval "$ac_try") 2>&5
4397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4398 test $ac_status = 0; }; }; then
4399 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4401 if { { case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4406 $as_echo "$ac_try_echo"; } >&5
4407 (eval "$ac_try") 2>&5
4409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410 test $ac_status = 0; } &&
4411 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416 $as_echo "$ac_try_echo"; } >&5
4417 (eval "$ac_try") 2>&5
4419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4420 test $ac_status = 0; };
4425 # cc exists but doesn't like -o.
4426 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4431 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4433 rm -f core conftest*
4436 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4438 $as_echo "yes" >&6; }
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4443 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4448 ac_cpp='$CPP $CPPFLAGS'
4449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4453 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4454 # On Suns, sometimes $CPP names a directory.
4455 if test -n "$CPP" && test -d "$CPP"; then
4458 if test -z "$CPP"; then
4459 if ${ac_cv_prog_CPP+:} false; then :
4460 $as_echo_n "(cached) " >&6
4462 # Double quotes because CPP needs to be expanded
4463 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4466 for ac_c_preproc_warn_flag in '' yes
4468 # Use a header file that comes with gcc, so configuring glibc
4469 # with a fresh cross-compiler works.
4470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4471 # <limits.h> exists even on freestanding compilers.
4472 # On the NeXT, cc -E runs the code through the compiler's parser,
4473 # not just through cpp. "Syntax error" is here to catch this case.
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4477 # include <limits.h>
4479 # include <assert.h>
4483 if ac_fn_c_try_cpp "$LINENO"; then :
4486 # Broken: fails on valid input.
4489 rm -f conftest.err conftest.i conftest.$ac_ext
4491 # OK, works on sane cases. Now check whether nonexistent headers
4492 # can be detected and how.
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4495 #include <ac_nonexistent.h>
4497 if ac_fn_c_try_cpp "$LINENO"; then :
4498 # Broken: success on invalid input.
4501 # Passes both tests.
4505 rm -f conftest.err conftest.i conftest.$ac_ext
4508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4509 rm -f conftest.i conftest.err conftest.$ac_ext
4510 if $ac_preproc_ok; then :
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4523 $as_echo "$CPP" >&6; }
4525 for ac_c_preproc_warn_flag in '' yes
4527 # Use a header file that comes with gcc, so configuring glibc
4528 # with a fresh cross-compiler works.
4529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4530 # <limits.h> exists even on freestanding compilers.
4531 # On the NeXT, cc -E runs the code through the compiler's parser,
4532 # not just through cpp. "Syntax error" is here to catch this case.
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4536 # include <limits.h>
4538 # include <assert.h>
4542 if ac_fn_c_try_cpp "$LINENO"; then :
4545 # Broken: fails on valid input.
4548 rm -f conftest.err conftest.i conftest.$ac_ext
4550 # OK, works on sane cases. Now check whether nonexistent headers
4551 # can be detected and how.
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4554 #include <ac_nonexistent.h>
4556 if ac_fn_c_try_cpp "$LINENO"; then :
4557 # Broken: success on invalid input.
4560 # Passes both tests.
4564 rm -f conftest.err conftest.i conftest.$ac_ext
4567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4568 rm -f conftest.i conftest.err conftest.$ac_ext
4569 if $ac_preproc_ok; then :
4572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4574 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4575 See \`config.log' for more details" "$LINENO" 5; }
4579 ac_cpp='$CPP $CPPFLAGS'
4580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4586 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4587 if ${ac_cv_path_GREP+:} false; then :
4588 $as_echo_n "(cached) " >&6
4590 if test -z "$GREP"; then
4591 ac_path_GREP_found=false
4592 # Loop through the user's path and test for each of PROGNAME-LIST
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4597 test -z "$as_dir" && as_dir=.
4598 for ac_prog in grep ggrep; do
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4601 as_fn_executable_p "$ac_path_GREP" || continue
4602 # Check for GNU ac_path_GREP and select it if it is found.
4603 # Check for GNU $ac_path_GREP
4604 case `"$ac_path_GREP" --version 2>&1` in
4606 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4609 $as_echo_n 0123456789 >"conftest.in"
4612 cat "conftest.in" "conftest.in" >"conftest.tmp"
4613 mv "conftest.tmp" "conftest.in"
4614 cp "conftest.in" "conftest.nl"
4615 $as_echo 'GREP' >> "conftest.nl"
4616 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4618 as_fn_arith $ac_count + 1 && ac_count=$as_val
4619 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4620 # Best one so far, save it but keep looking for a better one
4621 ac_cv_path_GREP="$ac_path_GREP"
4622 ac_path_GREP_max=$ac_count
4624 # 10*(2^10) chars as input seems more than enough
4625 test $ac_count -gt 10 && break
4627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4630 $ac_path_GREP_found && break 3
4635 if test -z "$ac_cv_path_GREP"; then
4636 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4639 ac_cv_path_GREP=$GREP
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4644 $as_echo "$ac_cv_path_GREP" >&6; }
4645 GREP="$ac_cv_path_GREP"
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4649 $as_echo_n "checking for egrep... " >&6; }
4650 if ${ac_cv_path_EGREP+:} false; then :
4651 $as_echo_n "(cached) " >&6
4653 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4654 then ac_cv_path_EGREP="$GREP -E"
4656 if test -z "$EGREP"; then
4657 ac_path_EGREP_found=false
4658 # Loop through the user's path and test for each of PROGNAME-LIST
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4663 test -z "$as_dir" && as_dir=.
4664 for ac_prog in egrep; do
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4667 as_fn_executable_p "$ac_path_EGREP" || continue
4668 # Check for GNU ac_path_EGREP and select it if it is found.
4669 # Check for GNU $ac_path_EGREP
4670 case `"$ac_path_EGREP" --version 2>&1` in
4672 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4675 $as_echo_n 0123456789 >"conftest.in"
4678 cat "conftest.in" "conftest.in" >"conftest.tmp"
4679 mv "conftest.tmp" "conftest.in"
4680 cp "conftest.in" "conftest.nl"
4681 $as_echo 'EGREP' >> "conftest.nl"
4682 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4684 as_fn_arith $ac_count + 1 && ac_count=$as_val
4685 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4686 # Best one so far, save it but keep looking for a better one
4687 ac_cv_path_EGREP="$ac_path_EGREP"
4688 ac_path_EGREP_max=$ac_count
4690 # 10*(2^10) chars as input seems more than enough
4691 test $ac_count -gt 10 && break
4693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4696 $ac_path_EGREP_found && break 3
4701 if test -z "$ac_cv_path_EGREP"; then
4702 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4705 ac_cv_path_EGREP=$EGREP
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4711 $as_echo "$ac_cv_path_EGREP" >&6; }
4712 EGREP="$ac_cv_path_EGREP"
4715 if test $ac_cv_c_compiler_gnu = yes; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4717 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4718 if ${ac_cv_prog_gcc_traditional+:} false; then :
4719 $as_echo_n "(cached) " >&6
4721 ac_pattern="Autoconf.*'x'"
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4728 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4729 ac_cv_prog_gcc_traditional=yes
4731 ac_cv_prog_gcc_traditional=no
4736 if test $ac_cv_prog_gcc_traditional = no; then
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4743 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4744 ac_cv_prog_gcc_traditional=yes
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4751 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4752 if test $ac_cv_prog_gcc_traditional = yes; then
4753 CC="$CC -traditional"
4757 BASECC=`basename $CC`
4759 if test "x$BASECC" = xgcc; then
4760 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4764 # Extract the first word of "$CXX", so it can be a program name with args.
4765 set dummy $CXX; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_path_CXX+:} false; then :
4769 $as_echo_n "(cached) " >&6
4773 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4783 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4796 if test -n "$CXX"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4798 $as_echo "$CXX" >&6; }
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4805 if test ! -e $CXX; then
4806 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4809 # Find a good install program. We prefer a C program (faster),
4810 # so one script is as good as another. But avoid the broken or
4811 # incompatible versions:
4812 # SysV /etc/install, /usr/sbin/install
4813 # SunOS /usr/etc/install
4814 # IRIX /sbin/install
4816 # AmigaOS /C/install, which installs bootblocks on floppy discs
4817 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4818 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4819 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4820 # OS/2's system install, which has a completely different semantic
4821 # ./install, which can be erroneously created by make from ./install.sh.
4822 # Reject install programs that cannot install multiple files.
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4824 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4825 if test -z "$INSTALL"; then
4826 if ${ac_cv_path_install+:} false; then :
4827 $as_echo_n "(cached) " >&6
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 test -z "$as_dir" && as_dir=.
4834 # Account for people who put trailing slashes in PATH elements.
4835 case $as_dir/ in #((
4836 ./ | .// | /[cC]/* | \
4837 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4838 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4841 # OSF1 and SCO ODT 3.0 have their own names for install.
4842 # Don't use installbsd from OSF since it installs stuff as root
4844 for ac_prog in ginstall scoinst install; do
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4847 if test $ac_prog = install &&
4848 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4849 # AIX install. It has an incompatible calling convention.
4851 elif test $ac_prog = install &&
4852 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4853 # program-specific install script used by HP pwplus--don't use.
4856 rm -rf conftest.one conftest.two conftest.dir
4857 echo one > conftest.one
4858 echo two > conftest.two
4860 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4861 test -s conftest.one && test -s conftest.two &&
4862 test -s conftest.dir/conftest.one &&
4863 test -s conftest.dir/conftest.two
4865 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4878 rm -rf conftest.one conftest.two conftest.dir
4881 if test "${ac_cv_path_install+set}" = set; then
4882 INSTALL=$ac_cv_path_install
4884 # As a last resort, use the slow shell script. Don't cache a
4885 # value for INSTALL within a source directory, because that will
4886 # break other packages using the cache if that directory is
4887 # removed, or if the value is a relative name.
4888 INSTALL=$ac_install_sh
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4892 $as_echo "$INSTALL" >&6; }
4894 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4895 # It thinks the first close brace ends the variable substitution.
4896 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4898 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4900 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4902 # Extract the first word of "mv", so it can be a program name with args.
4903 set dummy mv; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if ${ac_cv_path_MV+:} false; then :
4907 $as_echo_n "(cached) " >&6
4911 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4921 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4934 if test -n "$MV"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4936 $as_echo "$MV" >&6; }
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4943 # Extract the first word of "rm", so it can be a program name with args.
4944 set dummy rm; ac_word=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if ${ac_cv_path_REMOVE+:} false; then :
4948 $as_echo_n "(cached) " >&6
4952 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4974 REMOVE=$ac_cv_path_REMOVE
4975 if test -n "$REMOVE"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4977 $as_echo "$REMOVE" >&6; }
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4984 # Extract the first word of "cp", so it can be a program name with args.
4985 set dummy cp; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_path_CP+:} false; then :
4989 $as_echo_n "(cached) " >&6
4993 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5016 if test -n "$CP"; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5018 $as_echo "$CP" >&6; }
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5025 # Extract the first word of "sed", so it can be a program name with args.
5026 set dummy sed; ac_word=$2
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028 $as_echo_n "checking for $ac_word... " >&6; }
5029 if ${ac_cv_path_SED+:} false; then :
5030 $as_echo_n "(cached) " >&6
5034 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5044 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5057 if test -n "$SED"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5059 $as_echo "$SED" >&6; }
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5066 # Extract the first word of "echo", so it can be a program name with args.
5067 set dummy echo; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_path_ECHO+:} false; then :
5071 $as_echo_n "(cached) " >&6
5075 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5097 ECHO=$ac_cv_path_ECHO
5098 if test -n "$ECHO"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5100 $as_echo "$ECHO" >&6; }
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5107 # Extract the first word of "cmp", so it can be a program name with args.
5108 set dummy cmp; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if ${ac_cv_path_CMP+:} false; then :
5112 $as_echo_n "(cached) " >&6
5116 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5139 if test -n "$CMP"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5141 $as_echo "$CMP" >&6; }
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5148 # Extract the first word of "tbl", so it can be a program name with args.
5149 set dummy tbl; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_path_TBL+:} false; then :
5153 $as_echo_n "(cached) " >&6
5157 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5180 if test -n "$TBL"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5182 $as_echo "$TBL" >&6; }
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5189 # Extract the first word of "ar", so it can be a program name with args.
5190 set dummy ar; ac_word=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if ${ac_cv_path_AR+:} false; then :
5194 $as_echo_n "(cached) " >&6
5198 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5221 if test -n "$AR"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5223 $as_echo "$AR" >&6; }
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5230 # Extract the first word of "openssl", so it can be a program name with args.
5231 set dummy openssl; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if ${ac_cv_path_OPENSSL+:} false; then :
5235 $as_echo_n "(cached) " >&6
5239 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5261 OPENSSL=$ac_cv_path_OPENSSL
5262 if test -n "$OPENSSL"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5264 $as_echo "$OPENSSL" >&6; }
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5271 # Extract the first word of "mtx", so it can be a program name with args.
5272 set dummy mtx; ac_word=$2
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if ${ac_cv_path_MTX+:} false; then :
5276 $as_echo_n "(cached) " >&6
5280 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5303 if test -n "$MTX"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5305 $as_echo "$MTX" >&6; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5312 # Extract the first word of "dd", so it can be a program name with args.
5313 set dummy dd; ac_word=$2
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if ${ac_cv_path_DD+:} false; then :
5317 $as_echo_n "(cached) " >&6
5321 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5331 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5344 if test -n "$DD"; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5346 $as_echo "$DD" >&6; }
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5353 # Extract the first word of "mkisofs", so it can be a program name with args.
5354 set dummy mkisofs; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_path_MKISOFS+:} false; then :
5358 $as_echo_n "(cached) " >&6
5362 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5384 MKISOFS=$ac_cv_path_MKISOFS
5385 if test -n "$MKISOFS"; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5387 $as_echo "$MKISOFS" >&6; }
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5394 # Extract the first word of "python", so it can be a program name with args.
5395 set dummy python; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if ${ac_cv_path_PYTHON+:} false; then :
5399 $as_echo_n "(cached) " >&6
5403 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5425 PYTHON=$ac_cv_path_PYTHON
5426 if test -n "$PYTHON"; then
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5428 $as_echo "$PYTHON" >&6; }
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 $as_echo "no" >&6; }
5435 # Extract the first word of "growisofs", so it can be a program name with args.
5436 set dummy growisofs; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_path_GROWISOFS+:} false; then :
5440 $as_echo_n "(cached) " >&6
5444 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5466 GROWISOFS=$ac_cv_path_GROWISOFS
5467 if test -n "$GROWISOFS"; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5469 $as_echo "$GROWISOFS" >&6; }
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5476 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5477 set dummy dvd+rw-mediainfo; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5481 $as_echo_n "(cached) " >&6
5483 case $DVDRWMEDIAINFO in
5485 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5495 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5507 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5508 if test -n "$DVDRWMEDIAINFO"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5510 $as_echo "$DVDRWMEDIAINFO" >&6; }
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5517 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5518 set dummy dvd+rw-format; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5522 $as_echo_n "(cached) " >&6
5524 case $DVDRWFORMAT in
5526 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5548 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5549 if test -n "$DVDRWFORMAT"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5551 $as_echo "$DVDRWFORMAT" >&6; }
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5558 # Extract the first word of "pkg-config", so it can be a program name with args.
5559 set dummy pkg-config; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_path_PKGCONFIG+:} false; then :
5563 $as_echo_n "(cached) " >&6
5567 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5589 PKGCONFIG=$ac_cv_path_PKGCONFIG
5590 if test -n "$PKGCONFIG"; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5592 $as_echo "$PKGCONFIG" >&6; }
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5599 # Extract the first word of "qmake", so it can be a program name with args.
5600 set dummy qmake; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_path_QMAKE+:} false; then :
5604 $as_echo_n "(cached) " >&6
5608 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5630 QMAKE=$ac_cv_path_QMAKE
5631 if test -n "$QMAKE"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5633 $as_echo "$QMAKE" >&6; }
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5640 # Extract the first word of "gmake", so it can be a program name with args.
5641 set dummy gmake; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_path_GMAKE+:} false; then :
5645 $as_echo_n "(cached) " >&6
5649 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5671 GMAKE=$ac_cv_path_GMAKE
5672 if test -n "$GMAKE"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5674 $as_echo "$GMAKE" >&6; }
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5681 # Extract the first word of "pidof", so it can be a program name with args.
5682 set dummy pidof; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_path_PIDOF+:} false; then :
5686 $as_echo_n "(cached) " >&6
5690 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5712 PIDOF=$ac_cv_path_PIDOF
5713 if test -n "$PIDOF"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5715 $as_echo "$PIDOF" >&6; }
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5722 for ac_prog in gawk mawk nawk awk
5724 # Extract the first word of "$ac_prog", so it can be a program name with args.
5725 set dummy $ac_prog; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_prog_AWK+:} false; then :
5729 $as_echo_n "(cached) " >&6
5731 if test -n "$AWK"; then
5732 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_AWK="$ac_prog"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 if test -n "$AWK"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5754 $as_echo "$AWK" >&6; }
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5761 test -n "$AWK" && break
5764 # Some AWK programs fail, so test it and warn the user
5765 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5766 { if ((prog == $2) || (("(" prog ")") == $2) ||
5767 (("" prog "") == $2) ||
5768 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5770 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5771 The regex engine of $AWK is too broken to be used you
5772 might want to install GNU AWK.
5773 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5776 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5777 set dummy $THE_AWK; ac_word=$2
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 $as_echo_n "checking for $ac_word... " >&6; }
5780 if ${ac_cv_path_AWK+:} false; then :
5781 $as_echo_n "(cached) " >&6
5785 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5808 if test -n "$AWK"; then
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5810 $as_echo "$AWK" >&6; }
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813 $as_echo "no" >&6; }
5819 test -n "$ARFLAG" || ARFLAGS="cr"
5831 # Check whether --enable-libtool was given.
5832 if test "${enable_libtool+set}" = set; then :
5833 enableval=$enable_libtool;
5834 if test x$enableval = xno; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5844 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5849 macro_version='2.4.2'
5850 macro_revision='1.3337'
5864 ltmain="$ac_aux_dir/ltmain.sh"
5866 # Make sure we can run config.sub.
5867 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5868 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5871 $as_echo_n "checking build system type... " >&6; }
5872 if ${ac_cv_build+:} false; then :
5873 $as_echo_n "(cached) " >&6
5875 ac_build_alias=$build_alias
5876 test "x$ac_build_alias" = x &&
5877 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5878 test "x$ac_build_alias" = x &&
5879 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5880 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5881 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5885 $as_echo "$ac_cv_build" >&6; }
5886 case $ac_cv_build in
5888 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5891 ac_save_IFS=$IFS; IFS='-'
5897 # Remember, the first character of IFS is used to create $*,
5898 # except with old shells:
5901 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5905 $as_echo_n "checking host system type... " >&6; }
5906 if ${ac_cv_host+:} false; then :
5907 $as_echo_n "(cached) " >&6
5909 if test "x$host_alias" = x; then
5910 ac_cv_host=$ac_cv_build
5912 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5913 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5918 $as_echo "$ac_cv_host" >&6; }
5921 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5924 ac_save_IFS=$IFS; IFS='-'
5930 # Remember, the first character of IFS is used to create $*,
5931 # except with old shells:
5934 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5937 # Backslashify metacharacters that are still active within
5938 # double-quoted strings.
5939 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5941 # Same as above, but do not quote variable references.
5942 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5944 # Sed substitution to delay expansion of an escaped shell variable in a
5945 # double_quote_subst'ed string.
5946 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5948 # Sed substitution to delay expansion of an escaped single quote.
5949 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5951 # Sed substitution to avoid accidental globbing in evaled expressions
5952 no_glob_subst='s/\*/\\\*/g'
5954 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5955 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5956 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5959 $as_echo_n "checking how to print strings... " >&6; }
5960 # Test print first, because it will be a builtin if present.
5961 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5962 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5964 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5967 # Use this function as a fallback that always works.
5968 func_fallback_echo ()
5970 eval 'cat <<_LTECHO_EOF
5974 ECHO='func_fallback_echo'
5977 # func_echo_all arg...
5978 # Invoke $ECHO with all args, space-separated.
5985 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5986 $as_echo "printf" >&6; } ;;
5987 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5988 $as_echo "print -r" >&6; } ;;
5989 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5990 $as_echo "cat" >&6; } ;;
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6007 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6008 if ${ac_cv_path_SED+:} false; then :
6009 $as_echo_n "(cached) " >&6
6011 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6012 for ac_i in 1 2 3 4 5 6 7; do
6013 ac_script="$ac_script$as_nl$ac_script"
6015 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6016 { ac_script=; unset ac_script;}
6017 if test -z "$SED"; then
6018 ac_path_SED_found=false
6019 # Loop through the user's path and test for each of PROGNAME-LIST
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 test -z "$as_dir" && as_dir=.
6025 for ac_prog in sed gsed; do
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6028 as_fn_executable_p "$ac_path_SED" || continue
6029 # Check for GNU ac_path_SED and select it if it is found.
6030 # Check for GNU $ac_path_SED
6031 case `"$ac_path_SED" --version 2>&1` in
6033 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6036 $as_echo_n 0123456789 >"conftest.in"
6039 cat "conftest.in" "conftest.in" >"conftest.tmp"
6040 mv "conftest.tmp" "conftest.in"
6041 cp "conftest.in" "conftest.nl"
6042 $as_echo '' >> "conftest.nl"
6043 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6045 as_fn_arith $ac_count + 1 && ac_count=$as_val
6046 if test $ac_count -gt ${ac_path_SED_max-0}; then
6047 # Best one so far, save it but keep looking for a better one
6048 ac_cv_path_SED="$ac_path_SED"
6049 ac_path_SED_max=$ac_count
6051 # 10*(2^10) chars as input seems more than enough
6052 test $ac_count -gt 10 && break
6054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6057 $ac_path_SED_found && break 3
6062 if test -z "$ac_cv_path_SED"; then
6063 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6071 $as_echo "$ac_cv_path_SED" >&6; }
6072 SED="$ac_cv_path_SED"
6075 test -z "$SED" && SED=sed
6076 Xsed="$SED -e 1s/^X//"
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6089 $as_echo_n "checking for fgrep... " >&6; }
6090 if ${ac_cv_path_FGREP+:} false; then :
6091 $as_echo_n "(cached) " >&6
6093 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6094 then ac_cv_path_FGREP="$GREP -F"
6096 if test -z "$FGREP"; then
6097 ac_path_FGREP_found=false
6098 # Loop through the user's path and test for each of PROGNAME-LIST
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6103 test -z "$as_dir" && as_dir=.
6104 for ac_prog in fgrep; do
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6107 as_fn_executable_p "$ac_path_FGREP" || continue
6108 # Check for GNU ac_path_FGREP and select it if it is found.
6109 # Check for GNU $ac_path_FGREP
6110 case `"$ac_path_FGREP" --version 2>&1` in
6112 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6115 $as_echo_n 0123456789 >"conftest.in"
6118 cat "conftest.in" "conftest.in" >"conftest.tmp"
6119 mv "conftest.tmp" "conftest.in"
6120 cp "conftest.in" "conftest.nl"
6121 $as_echo 'FGREP' >> "conftest.nl"
6122 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6124 as_fn_arith $ac_count + 1 && ac_count=$as_val
6125 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6126 # Best one so far, save it but keep looking for a better one
6127 ac_cv_path_FGREP="$ac_path_FGREP"
6128 ac_path_FGREP_max=$ac_count
6130 # 10*(2^10) chars as input seems more than enough
6131 test $ac_count -gt 10 && break
6133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6136 $ac_path_FGREP_found && break 3
6141 if test -z "$ac_cv_path_FGREP"; then
6142 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6145 ac_cv_path_FGREP=$FGREP
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6151 $as_echo "$ac_cv_path_FGREP" >&6; }
6152 FGREP="$ac_cv_path_FGREP"
6155 test -z "$GREP" && GREP=grep
6175 # Check whether --with-gnu-ld was given.
6176 if test "${with_gnu_ld+set}" = set; then :
6177 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6183 if test "$GCC" = yes; then
6184 # Check if gcc -print-prog-name=ld gives a path.
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6186 $as_echo_n "checking for ld used by $CC... " >&6; }
6189 # gcc leaves a trailing carriage return which upsets mingw
6190 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6192 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6195 # Accept absolute paths.
6197 re_direlt='/[^/][^/]*/\.\./'
6198 # Canonicalize the pathname of ld
6199 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6200 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6201 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6203 test -z "$LD" && LD="$ac_prog"
6206 # If it fails, then pretend we aren't using GCC.
6210 # If it is relative, then search for the first ld in PATH.
6214 elif test "$with_gnu_ld" = yes; then
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6216 $as_echo_n "checking for GNU ld... " >&6; }
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6219 $as_echo_n "checking for non-GNU ld... " >&6; }
6221 if ${lt_cv_path_LD+:} false; then :
6222 $as_echo_n "(cached) " >&6
6224 if test -z "$LD"; then
6225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6226 for ac_dir in $PATH; do
6228 test -z "$ac_dir" && ac_dir=.
6229 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6230 lt_cv_path_LD="$ac_dir/$ac_prog"
6231 # Check to see if the program is GNU ld. I'd rather use --version,
6232 # but apparently some variants of GNU ld only accept -v.
6233 # Break only if it was the GNU/non-GNU ld that we prefer.
6234 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6235 *GNU* | *'with BFD'*)
6236 test "$with_gnu_ld" != no && break
6239 test "$with_gnu_ld" != yes && break
6246 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6251 if test -n "$LD"; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6253 $as_echo "$LD" >&6; }
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6258 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6260 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6261 if ${lt_cv_prog_gnu_ld+:} false; then :
6262 $as_echo_n "(cached) " >&6
6264 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6265 case `$LD -v 2>&1 </dev/null` in
6266 *GNU* | *'with BFD'*)
6267 lt_cv_prog_gnu_ld=yes
6270 lt_cv_prog_gnu_ld=no
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6275 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6276 with_gnu_ld=$lt_cv_prog_gnu_ld
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6287 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6288 if ${lt_cv_path_NM+:} false; then :
6289 $as_echo_n "(cached) " >&6
6291 if test -n "$NM"; then
6292 # Let the user override the test.
6295 lt_nm_to_check="${ac_tool_prefix}nm"
6296 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6297 lt_nm_to_check="$lt_nm_to_check nm"
6299 for lt_tmp_nm in $lt_nm_to_check; do
6300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6301 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6303 test -z "$ac_dir" && ac_dir=.
6304 tmp_nm="$ac_dir/$lt_tmp_nm"
6305 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6306 # Check to see if the nm accepts a BSD-compat flag.
6307 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6308 # nm: unknown option "B" ignored
6309 # Tru64's nm complains that /dev/null is an invalid object file
6310 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6311 */dev/null* | *'Invalid file or object type'*)
6312 lt_cv_path_NM="$tmp_nm -B"
6316 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6318 lt_cv_path_NM="$tmp_nm -p"
6322 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6323 continue # so that we can try to find one that supports BSD flags
6332 : ${lt_cv_path_NM=no}
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6336 $as_echo "$lt_cv_path_NM" >&6; }
6337 if test "$lt_cv_path_NM" != "no"; then
6340 # Didn't find any BSD compatible name lister, look for dumpbin.
6341 if test -n "$DUMPBIN"; then :
6342 # Let the user override the test.
6344 if test -n "$ac_tool_prefix"; then
6345 for ac_prog in dumpbin "link -dump"
6347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if ${ac_cv_prog_DUMPBIN+:} false; then :
6352 $as_echo_n "(cached) " >&6
6354 if test -n "$DUMPBIN"; then
6355 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6364 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 DUMPBIN=$ac_cv_prog_DUMPBIN
6375 if test -n "$DUMPBIN"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6377 $as_echo "$DUMPBIN" >&6; }
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 $as_echo "no" >&6; }
6384 test -n "$DUMPBIN" && break
6387 if test -z "$DUMPBIN"; then
6388 ac_ct_DUMPBIN=$DUMPBIN
6389 for ac_prog in dumpbin "link -dump"
6391 # Extract the first word of "$ac_prog", so it can be a program name with args.
6392 set dummy $ac_prog; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6396 $as_echo_n "(cached) " >&6
6398 if test -n "$ac_ct_DUMPBIN"; then
6399 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6419 if test -n "$ac_ct_DUMPBIN"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6421 $as_echo "$ac_ct_DUMPBIN" >&6; }
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6428 test -n "$ac_ct_DUMPBIN" && break
6431 if test "x$ac_ct_DUMPBIN" = x; then
6434 case $cross_compiling:$ac_tool_warned in
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6438 ac_tool_warned=yes ;;
6440 DUMPBIN=$ac_ct_DUMPBIN
6444 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6446 DUMPBIN="$DUMPBIN -symbols"
6454 if test "$DUMPBIN" != ":"; then
6458 test -z "$NM" && NM=nm
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6466 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6467 if ${lt_cv_nm_interface+:} false; then :
6468 $as_echo_n "(cached) " >&6
6470 lt_cv_nm_interface="BSD nm"
6471 echo "int some_variable = 0;" > conftest.$ac_ext
6472 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6473 (eval "$ac_compile" 2>conftest.err)
6474 cat conftest.err >&5
6475 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6476 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6477 cat conftest.err >&5
6478 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6479 cat conftest.out >&5
6480 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6481 lt_cv_nm_interface="MS dumpbin"
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6486 $as_echo "$lt_cv_nm_interface" >&6; }
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6489 $as_echo_n "checking whether ln -s works... " >&6; }
6491 if test "$LN_S" = "ln -s"; then
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6493 $as_echo "yes" >&6; }
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6496 $as_echo "no, using $LN_S" >&6; }
6499 # find the maximum length of command line arguments
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6501 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6502 if ${lt_cv_sys_max_cmd_len+:} false; then :
6503 $as_echo_n "(cached) " >&6
6510 # On DJGPP, this test can blow up pretty badly due to problems in libc
6511 # (any single argument exceeding 2000 bytes causes a buffer overrun
6512 # during glob expansion). Even if it were fixed, the result of this
6513 # check would be larger than it should be.
6514 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6518 # Under GNU Hurd, this test is not required because there is
6519 # no limit to the length of command line arguments.
6520 # Libtool will interpret -1 as no limit whatsoever
6521 lt_cv_sys_max_cmd_len=-1;
6524 cygwin* | mingw* | cegcc*)
6525 # On Win9x/ME, this test blows up -- it succeeds, but takes
6526 # about 5 minutes as the teststring grows exponentially.
6527 # Worse, since 9x/ME are not pre-emptively multitasking,
6528 # you end up with a "frozen" computer, even though with patience
6529 # the test eventually succeeds (with a max line length of 256k).
6530 # Instead, let's just punt: use the minimum linelength reported by
6531 # all of the supported platforms: 8192 (on NT/2K/XP).
6532 lt_cv_sys_max_cmd_len=8192;
6536 # On MiNT this can take a long time and run out of memory.
6537 lt_cv_sys_max_cmd_len=8192;
6541 # On AmigaOS with pdksh, this test takes hours, literally.
6542 # So we just punt and use a minimum line length of 8192.
6543 lt_cv_sys_max_cmd_len=8192;
6546 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6547 # This has been around since 386BSD, at least. Likely further.
6548 if test -x /sbin/sysctl; then
6549 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6550 elif test -x /usr/sbin/sysctl; then
6551 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6553 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6555 # And add a safety zone
6556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6557 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6561 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6562 lt_cv_sys_max_cmd_len=196608
6566 # The test takes a long time on OS/2.
6567 lt_cv_sys_max_cmd_len=8192
6571 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6572 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6573 # nice to cause kernel panics so lets avoid the loop below.
6574 # First set a reasonable default.
6575 lt_cv_sys_max_cmd_len=16384
6577 if test -x /sbin/sysconfig; then
6578 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6579 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6584 lt_cv_sys_max_cmd_len=102400
6586 sysv5* | sco5v6* | sysv4.2uw2*)
6587 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6588 if test -n "$kargmax"; then
6589 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6591 lt_cv_sys_max_cmd_len=32768
6595 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6596 if test -n "$lt_cv_sys_max_cmd_len" && \
6597 test undefined != "$lt_cv_sys_max_cmd_len"; then
6598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6601 # Make teststring a little bigger before we do anything with it.
6602 # a 1K string should be a reasonable start.
6603 for i in 1 2 3 4 5 6 7 8 ; do
6604 teststring=$teststring$teststring
6606 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6607 # If test is not a shell built-in, we'll probably end up computing a
6608 # maximum length that is only half of the actual maximum length, but
6610 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6611 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6612 test $i != 17 # 1/2 MB should be enough
6615 teststring=$teststring$teststring
6617 # Only check the string length outside the loop.
6618 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6620 # Add a significant safety factor because C++ compilers can tack on
6621 # massive amounts of additional arguments before passing them to the
6622 # linker. It appears as though 1/2 is a usable value.
6623 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6630 if test -n $lt_cv_sys_max_cmd_len ; then
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6632 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6635 $as_echo "none" >&6; }
6637 max_cmd_len=$lt_cv_sys_max_cmd_len
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6649 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6650 # Try some XSI features
6653 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6655 && eval 'test $(( 1 + 1 )) -eq 2 \
6656 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6659 $as_echo "$xsi_shell" >&6; }
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6663 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6665 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6667 && lt_shell_append=yes
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6669 $as_echo "$lt_shell_append" >&6; }
6672 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6682 # test EBCDIC or ASCII
6683 case `echo X|tr X '\101'` in
6684 A) # ASCII based system
6685 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6686 lt_SP2NL='tr \040 \012'
6687 lt_NL2SP='tr \015\012 \040\040'
6689 *) # EBCDIC based system
6690 lt_SP2NL='tr \100 \n'
6691 lt_NL2SP='tr \r\n \100\100'
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6704 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6705 if ${lt_cv_to_host_file_cmd+:} false; then :
6706 $as_echo_n "(cached) " >&6
6711 *-*-mingw* ) # actually msys
6712 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6715 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6717 * ) # otherwise, assume *nix
6718 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6724 *-*-mingw* ) # actually msys
6725 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6728 lt_cv_to_host_file_cmd=func_convert_file_noop
6730 * ) # otherwise, assume *nix
6731 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6735 * ) # unhandled hosts (and "normal" native builds)
6736 lt_cv_to_host_file_cmd=func_convert_file_noop
6742 to_host_file_cmd=$lt_cv_to_host_file_cmd
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6744 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6751 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6752 if ${lt_cv_to_tool_file_cmd+:} false; then :
6753 $as_echo_n "(cached) " >&6
6755 #assume ordinary cross tools, or native build.
6756 lt_cv_to_tool_file_cmd=func_convert_file_noop
6760 *-*-mingw* ) # actually msys
6761 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6769 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6771 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6778 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6779 if ${lt_cv_ld_reload_flag+:} false; then :
6780 $as_echo_n "(cached) " >&6
6782 lt_cv_ld_reload_flag='-r'
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6785 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6786 reload_flag=$lt_cv_ld_reload_flag
6787 case $reload_flag in
6789 *) reload_flag=" $reload_flag" ;;
6791 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6793 cygwin* | mingw* | pw32* | cegcc*)
6794 if test "$GCC" != yes; then
6799 if test "$GCC" = yes; then
6800 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6802 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6815 if test -n "$ac_tool_prefix"; then
6816 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if ${ac_cv_prog_OBJDUMP+:} false; then :
6821 $as_echo_n "(cached) " >&6
6823 if test -n "$OBJDUMP"; then
6824 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6833 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 OBJDUMP=$ac_cv_prog_OBJDUMP
6844 if test -n "$OBJDUMP"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6846 $as_echo "$OBJDUMP" >&6; }
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6854 if test -z "$ac_cv_prog_OBJDUMP"; then
6855 ac_ct_OBJDUMP=$OBJDUMP
6856 # Extract the first word of "objdump", so it can be a program name with args.
6857 set dummy objdump; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6861 $as_echo_n "(cached) " >&6
6863 if test -n "$ac_ct_OBJDUMP"; then
6864 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6884 if test -n "$ac_ct_OBJDUMP"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6886 $as_echo "$ac_ct_OBJDUMP" >&6; }
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6892 if test "x$ac_ct_OBJDUMP" = x; then
6895 case $cross_compiling:$ac_tool_warned in
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899 ac_tool_warned=yes ;;
6901 OBJDUMP=$ac_ct_OBJDUMP
6904 OBJDUMP="$ac_cv_prog_OBJDUMP"
6907 test -z "$OBJDUMP" && OBJDUMP=objdump
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6918 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6919 if ${lt_cv_deplibs_check_method+:} false; then :
6920 $as_echo_n "(cached) " >&6
6922 lt_cv_file_magic_cmd='$MAGIC_CMD'
6923 lt_cv_file_magic_test_file=
6924 lt_cv_deplibs_check_method='unknown'
6925 # Need to set the preceding variable on all platforms that support
6926 # interlibrary dependencies.
6927 # 'none' -- dependencies not supported.
6928 # `unknown' -- same as none, but documents that we really don't know.
6929 # 'pass_all' -- all dependencies passed with no checks.
6930 # 'test_compile' -- check by making test program.
6931 # 'file_magic [[regex]]' -- check by looking for files in library path
6932 # which responds to the $file_magic_cmd with a given extended regex.
6933 # If you have `file' or equivalent on your system and you're not sure
6934 # whether `pass_all' will *always* work, you probably want this one.
6938 lt_cv_deplibs_check_method=pass_all
6942 lt_cv_deplibs_check_method=pass_all
6946 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6947 lt_cv_file_magic_cmd='/usr/bin/file -L'
6948 lt_cv_file_magic_test_file=/shlib/libc.so
6952 # func_win32_libid is a shell function defined in ltmain.sh
6953 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6954 lt_cv_file_magic_cmd='func_win32_libid'
6958 # Base MSYS/MinGW do not provide the 'file' command needed by
6959 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6960 # unless we find 'file', for example because we are cross-compiling.
6961 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6962 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6963 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6964 lt_cv_file_magic_cmd='func_win32_libid'
6966 # Keep this pattern in sync with the one in func_win32_libid.
6967 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6968 lt_cv_file_magic_cmd='$OBJDUMP -f'
6973 # use the weaker test based on 'objdump'. See mingw*.
6974 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6975 lt_cv_file_magic_cmd='$OBJDUMP -f'
6978 darwin* | rhapsody*)
6979 lt_cv_deplibs_check_method=pass_all
6982 freebsd* | dragonfly*)
6983 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6986 # Not sure whether the presence of OpenBSD here was a mistake.
6987 # Let's accept both of them until this is cleared up.
6988 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6989 lt_cv_file_magic_cmd=/usr/bin/file
6990 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6994 lt_cv_deplibs_check_method=pass_all
6999 lt_cv_deplibs_check_method=pass_all
7002 hpux10.20* | hpux11*)
7003 lt_cv_file_magic_cmd=/usr/bin/file
7006 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7007 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7010 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]'
7011 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7014 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7015 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7021 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7025 irix5* | irix6* | nonstopux*)
7027 *-32|*"-32 ") libmagic=32-bit;;
7028 *-n32|*"-n32 ") libmagic=N32;;
7029 *-64|*"-64 ") libmagic=64-bit;;
7030 *) libmagic=never-match;;
7032 lt_cv_deplibs_check_method=pass_all
7035 # This must be glibc/ELF.
7036 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7037 lt_cv_deplibs_check_method=pass_all
7040 netbsd* | netbsdelf*-gnu)
7041 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7050 lt_cv_file_magic_cmd=/usr/bin/file
7051 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7055 lt_cv_deplibs_check_method=pass_all
7059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7060 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7066 osf3* | osf4* | osf5*)
7067 lt_cv_deplibs_check_method=pass_all
7071 lt_cv_deplibs_check_method=pass_all
7075 lt_cv_deplibs_check_method=pass_all
7078 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7079 lt_cv_deplibs_check_method=pass_all
7083 case $host_vendor in
7085 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]'
7086 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7089 lt_cv_deplibs_check_method=pass_all
7092 lt_cv_file_magic_cmd='/bin/file'
7093 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7096 lt_cv_file_magic_cmd='/bin/file'
7097 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7098 lt_cv_file_magic_test_file=/lib/libc.so
7101 lt_cv_deplibs_check_method=pass_all
7104 lt_cv_deplibs_check_method=pass_all
7110 lt_cv_deplibs_check_method=pass_all
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7116 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7120 if test "$build" = "$host"; then
7123 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7126 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7132 file_magic_cmd=$lt_cv_file_magic_cmd
7133 deplibs_check_method=$lt_cv_deplibs_check_method
7134 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7157 if test -n "$ac_tool_prefix"; then
7158 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7159 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if ${ac_cv_prog_DLLTOOL+:} false; then :
7163 $as_echo_n "(cached) " >&6
7165 if test -n "$DLLTOOL"; then
7166 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 DLLTOOL=$ac_cv_prog_DLLTOOL
7186 if test -n "$DLLTOOL"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7188 $as_echo "$DLLTOOL" >&6; }
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7196 if test -z "$ac_cv_prog_DLLTOOL"; then
7197 ac_ct_DLLTOOL=$DLLTOOL
7198 # Extract the first word of "dlltool", so it can be a program name with args.
7199 set dummy dlltool; ac_word=$2
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201 $as_echo_n "checking for $ac_word... " >&6; }
7202 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7203 $as_echo_n "(cached) " >&6
7205 if test -n "$ac_ct_DLLTOOL"; then
7206 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7226 if test -n "$ac_ct_DLLTOOL"; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7228 $as_echo "$ac_ct_DLLTOOL" >&6; }
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231 $as_echo "no" >&6; }
7234 if test "x$ac_ct_DLLTOOL" = x; then
7237 case $cross_compiling:$ac_tool_warned in
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7241 ac_tool_warned=yes ;;
7243 DLLTOOL=$ac_ct_DLLTOOL
7246 DLLTOOL="$ac_cv_prog_DLLTOOL"
7249 test -z "$DLLTOOL" && DLLTOOL=dlltool
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7261 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7262 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7263 $as_echo_n "(cached) " >&6
7265 lt_cv_sharedlib_from_linklib_cmd='unknown'
7268 cygwin* | mingw* | pw32* | cegcc*)
7269 # two different shell functions defined in ltmain.sh
7270 # decide which to use based on capabilities of $DLLTOOL
7271 case `$DLLTOOL --help 2>&1` in
7272 *--identify-strict*)
7273 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7276 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7281 # fallback: assume linklib IS sharedlib
7282 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7288 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7289 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7290 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7298 if test -n "$ac_tool_prefix"; then
7301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if ${ac_cv_prog_AR+:} false; then :
7306 $as_echo_n "(cached) " >&6
7308 if test -n "$AR"; then
7309 ac_cv_prog_AR="$AR" # Let the user override the test.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 if test -n "$AR"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7331 $as_echo "$AR" >&6; }
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7338 test -n "$AR" && break
7341 if test -z "$AR"; then
7345 # Extract the first word of "$ac_prog", so it can be a program name with args.
7346 set dummy $ac_prog; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7350 $as_echo_n "(cached) " >&6
7352 if test -n "$ac_ct_AR"; then
7353 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362 ac_cv_prog_ac_ct_AR="$ac_prog"
7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7373 if test -n "$ac_ct_AR"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7375 $as_echo "$ac_ct_AR" >&6; }
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7382 test -n "$ac_ct_AR" && break
7385 if test "x$ac_ct_AR" = x; then
7388 case $cross_compiling:$ac_tool_warned in
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392 ac_tool_warned=yes ;;
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7412 $as_echo_n "checking for archiver @FILE support... " >&6; }
7413 if ${lt_cv_ar_at_file+:} false; then :
7414 $as_echo_n "(cached) " >&6
7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7428 if ac_fn_c_try_compile "$LINENO"; then :
7429 echo conftest.$ac_objext > conftest.lst
7430 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7432 (eval $lt_ar_try) 2>&5
7434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7435 test $ac_status = 0; }
7436 if test "$ac_status" -eq 0; then
7437 # Ensure the archiver fails upon bogus file names.
7438 rm -f conftest.$ac_objext libconftest.a
7439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7440 (eval $lt_ar_try) 2>&5
7442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7443 test $ac_status = 0; }
7444 if test "$ac_status" -ne 0; then
7448 rm -f conftest.* libconftest.a
7451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7455 $as_echo "$lt_cv_ar_at_file" >&6; }
7457 if test "x$lt_cv_ar_at_file" = xno; then
7460 archiver_list_spec=$lt_cv_ar_at_file
7469 if test -n "$ac_tool_prefix"; then
7470 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7471 set dummy ${ac_tool_prefix}strip; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if ${ac_cv_prog_STRIP+:} false; then :
7475 $as_echo_n "(cached) " >&6
7477 if test -n "$STRIP"; then
7478 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 STRIP=$ac_cv_prog_STRIP
7498 if test -n "$STRIP"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7500 $as_echo "$STRIP" >&6; }
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7508 if test -z "$ac_cv_prog_STRIP"; then
7510 # Extract the first word of "strip", so it can be a program name with args.
7511 set dummy strip; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7515 $as_echo_n "(cached) " >&6
7517 if test -n "$ac_ct_STRIP"; then
7518 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527 ac_cv_prog_ac_ct_STRIP="strip"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7538 if test -n "$ac_ct_STRIP"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7540 $as_echo "$ac_ct_STRIP" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7546 if test "x$ac_ct_STRIP" = x; then
7549 case $cross_compiling:$ac_tool_warned in
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553 ac_tool_warned=yes ;;
7558 STRIP="$ac_cv_prog_STRIP"
7561 test -z "$STRIP" && STRIP=:
7568 if test -n "$ac_tool_prefix"; then
7569 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7570 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572 $as_echo_n "checking for $ac_word... " >&6; }
7573 if ${ac_cv_prog_RANLIB+:} false; then :
7574 $as_echo_n "(cached) " >&6
7576 if test -n "$RANLIB"; then
7577 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 RANLIB=$ac_cv_prog_RANLIB
7597 if test -n "$RANLIB"; then
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7599 $as_echo "$RANLIB" >&6; }
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7607 if test -z "$ac_cv_prog_RANLIB"; then
7608 ac_ct_RANLIB=$RANLIB
7609 # Extract the first word of "ranlib", so it can be a program name with args.
7610 set dummy ranlib; ac_word=$2
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612 $as_echo_n "checking for $ac_word... " >&6; }
7613 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7614 $as_echo_n "(cached) " >&6
7616 if test -n "$ac_ct_RANLIB"; then
7617 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7626 ac_cv_prog_ac_ct_RANLIB="ranlib"
7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7637 if test -n "$ac_ct_RANLIB"; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7639 $as_echo "$ac_ct_RANLIB" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7645 if test "x$ac_ct_RANLIB" = x; then
7648 case $cross_compiling:$ac_tool_warned in
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7652 ac_tool_warned=yes ;;
7654 RANLIB=$ac_ct_RANLIB
7657 RANLIB="$ac_cv_prog_RANLIB"
7660 test -z "$RANLIB" && RANLIB=:
7667 # Determine commands to create old-style static archives.
7668 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7669 old_postinstall_cmds='chmod 644 $oldlib'
7670 old_postuninstall_cmds=
7672 if test -n "$RANLIB"; then
7675 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7678 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7681 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7686 lock_old_archive_extraction=yes ;;
7688 lock_old_archive_extraction=no ;;
7729 # If no C compiler was specified, use CC.
7732 # If no C compiler flags were specified, use CFLAGS.
7733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7735 # Allow CC to be a program name with arguments.
7739 # Check for command to grab the raw symbol name followed by C symbol from nm.
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7741 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7742 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7743 $as_echo_n "(cached) " >&6
7746 # These are sane defaults that work on at least a few old systems.
7747 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7749 # Character class describing NM global symbol codes.
7750 symcode='[BCDEGRST]'
7752 # Regexp to match symbols that can be accessed directly from C.
7753 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7755 # Define system-specific variables.
7760 cygwin* | mingw* | pw32* | cegcc*)
7761 symcode='[ABCDGISTW]'
7764 if test "$host_cpu" = ia64; then
7765 symcode='[ABCDEGRST]'
7769 symcode='[BCDEGRST]'
7772 symcode='[BCDEGQRST]'
7783 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7791 # If we're using GNU nm, then use its standard symbol codes.
7792 case `$NM -V 2>&1` in
7793 *GNU* | *'with BFD'*)
7794 symcode='[ABCDGIRSTW]' ;;
7797 # Transform an extracted symbol line into a proper C declaration.
7798 # Some systems (esp. on ia64) link data and code symbols differently,
7799 # so use this general approach.
7800 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7802 # Transform an extracted symbol line into symbol name and symbol address
7803 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7804 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'"
7806 # Handle CRLF in mingw tool chain
7810 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7814 # Try without a prefix underscore, then with it.
7815 for ac_symprfx in "" "_"; do
7817 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7818 symxfrm="\\1 $ac_symprfx\\2 \\2"
7820 # Write the raw and C identifiers.
7821 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7822 # Fake it for dumpbin and say T for any non-static function
7823 # and D for any global variable.
7824 # Also find C++ and __fastcall symbols from MSVC++,
7825 # which start with @ or ?.
7826 lt_cv_sys_global_symbol_pipe="$AWK '"\
7827 " {last_section=section; section=\$ 3};"\
7828 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7829 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7830 " \$ 0!~/External *\|/{next};"\
7831 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7832 " {if(hide[section]) next};"\
7833 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7834 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7835 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7836 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7837 " ' prfx=^$ac_symprfx"
7839 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7841 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7843 # Check to see that the pipe works correctly.
7847 cat > conftest.$ac_ext <<_LT_EOF
7852 void nm_test_func(void);
7853 void nm_test_func(void){}
7857 int main(){nm_test_var='a';nm_test_func();return(0);}
7860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7861 (eval $ac_compile) 2>&5
7863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7864 test $ac_status = 0; }; then
7865 # Now try to grab the symbols.
7867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7868 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871 test $ac_status = 0; } && test -s "$nlist"; then
7872 # Try sorting and uniquifying the output.
7873 if sort "$nlist" | uniq > "$nlist"T; then
7874 mv -f "$nlist"T "$nlist"
7879 # Make sure that we snagged all the symbols we need.
7880 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7881 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7882 cat <<_LT_EOF > conftest.$ac_ext
7883 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7884 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7885 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7886 relocations are performed -- see ld's documentation on pseudo-relocs. */
7887 # define LT_DLSYM_CONST
7888 #elif defined(__osf__)
7889 /* This system does not cope well with relocations in const data. */
7890 # define LT_DLSYM_CONST
7892 # define LT_DLSYM_CONST const
7900 # Now generate the symbol file.
7901 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7903 cat <<_LT_EOF >> conftest.$ac_ext
7905 /* The mapping between symbol names and symbols. */
7906 LT_DLSYM_CONST struct {
7910 lt__PROGRAM__LTX_preloaded_symbols[] =
7912 { "@PROGRAM@", (void *) 0 },
7914 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7915 cat <<\_LT_EOF >> conftest.$ac_ext
7919 /* This works around a problem in FreeBSD linker */
7920 #ifdef FREEBSD_WORKAROUND
7921 static const void *lt_preloaded_setup() {
7922 return lt__PROGRAM__LTX_preloaded_symbols;
7930 # Now try linking the two files.
7931 mv conftest.$ac_objext conftstm.$ac_objext
7932 lt_globsym_save_LIBS=$LIBS
7933 lt_globsym_save_CFLAGS=$CFLAGS
7934 LIBS="conftstm.$ac_objext"
7935 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7937 (eval $ac_link) 2>&5
7939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7940 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7943 LIBS=$lt_globsym_save_LIBS
7944 CFLAGS=$lt_globsym_save_CFLAGS
7946 echo "cannot find nm_test_func in $nlist" >&5
7949 echo "cannot find nm_test_var in $nlist" >&5
7952 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7955 echo "$progname: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7958 rm -rf conftest* conftst*
7960 # Do not use the global_symbol_pipe unless it works.
7961 if test "$pipe_works" = yes; then
7964 lt_cv_sys_global_symbol_pipe=
7970 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7971 lt_cv_sys_global_symbol_to_cdecl=
7973 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7975 $as_echo "failed" >&6; }
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7978 $as_echo "ok" >&6; }
7981 # Response file support.
7982 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7983 nm_file_list_spec='@'
7984 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7985 nm_file_list_spec='@'
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8015 $as_echo_n "checking for sysroot... " >&6; }
8017 # Check whether --with-sysroot was given.
8018 if test "${with_sysroot+set}" = set; then :
8019 withval=$with_sysroot;
8026 case ${with_sysroot} in #(
8028 if test "$GCC" = yes; then
8029 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8033 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8039 $as_echo "${with_sysroot}" >&6; }
8040 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8045 $as_echo "${lt_sysroot:-no}" >&6; }
8051 # Check whether --enable-libtool-lock was given.
8052 if test "${enable_libtool_lock+set}" = set; then :
8053 enableval=$enable_libtool_lock;
8056 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8058 # Some flags need to be propagated to the compiler or linker for good
8062 # Find out which ABI we are using.
8063 echo 'int i;' > conftest.$ac_ext
8064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8065 (eval $ac_compile) 2>&5
8067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8068 test $ac_status = 0; }; then
8069 case `/usr/bin/file conftest.$ac_objext` in
8081 # Find out which ABI we are using.
8082 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8084 (eval $ac_compile) 2>&5
8086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8087 test $ac_status = 0; }; then
8088 if test "$lt_cv_prog_gnu_ld" = yes; then
8089 case `/usr/bin/file conftest.$ac_objext` in
8091 LD="${LD-ld} -melf32bsmip"
8094 LD="${LD-ld} -melf32bmipn32"
8097 LD="${LD-ld} -melf64bmip"
8101 case `/usr/bin/file conftest.$ac_objext` in
8117 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8118 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8119 # Find out which ABI we are using.
8120 echo 'int i;' > conftest.$ac_ext
8121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8122 (eval $ac_compile) 2>&5
8124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8125 test $ac_status = 0; }; then
8126 case `/usr/bin/file conftest.o` in
8129 x86_64-*kfreebsd*-gnu)
8130 LD="${LD-ld} -m elf_i386_fbsd"
8133 case `/usr/bin/file conftest.o` in
8135 LD="${LD-ld} -m elf32_x86_64"
8138 LD="${LD-ld} -m elf_i386"
8143 LD="${LD-ld} -m elf32lppclinux"
8146 LD="${LD-ld} -m elf32ppclinux"
8149 LD="${LD-ld} -m elf_s390"
8152 LD="${LD-ld} -m elf32_sparc"
8158 x86_64-*kfreebsd*-gnu)
8159 LD="${LD-ld} -m elf_x86_64_fbsd"
8162 LD="${LD-ld} -m elf_x86_64"
8165 LD="${LD-ld} -m elf64lppc"
8168 LD="${LD-ld} -m elf64ppc"
8170 s390*-*linux*|s390*-*tpf*)
8171 LD="${LD-ld} -m elf64_s390"
8174 LD="${LD-ld} -m elf64_sparc"
8184 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8185 SAVE_CFLAGS="$CFLAGS"
8186 CFLAGS="$CFLAGS -belf"
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8188 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8189 if ${lt_cv_cc_needs_belf+:} false; then :
8190 $as_echo_n "(cached) " >&6
8193 ac_cpp='$CPP $CPPFLAGS'
8194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8209 if ac_fn_c_try_link "$LINENO"; then :
8210 lt_cv_cc_needs_belf=yes
8212 lt_cv_cc_needs_belf=no
8214 rm -f core conftest.err conftest.$ac_objext \
8215 conftest$ac_exeext conftest.$ac_ext
8217 ac_cpp='$CPP $CPPFLAGS'
8218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8224 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8225 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8226 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8227 CFLAGS="$SAVE_CFLAGS"
8231 # Find out which ABI we are using.
8232 echo 'int i;' > conftest.$ac_ext
8233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8234 (eval $ac_compile) 2>&5
8236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8237 test $ac_status = 0; }; then
8238 case `/usr/bin/file conftest.o` in
8240 case $lt_cv_prog_gnu_ld in
8244 LD="${LD-ld} -m elf_x86_64"
8247 LD="${LD-ld} -m elf64_sparc"
8250 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8251 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8256 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8268 need_locks="$enable_libtool_lock"
8270 if test -n "$ac_tool_prefix"; then
8271 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8272 set dummy ${ac_tool_prefix}mt; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8276 $as_echo_n "(cached) " >&6
8278 if test -n "$MANIFEST_TOOL"; then
8279 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8288 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8299 if test -n "$MANIFEST_TOOL"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8301 $as_echo "$MANIFEST_TOOL" >&6; }
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8309 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8310 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8311 # Extract the first word of "mt", so it can be a program name with args.
8312 set dummy mt; ac_word=$2
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 $as_echo_n "checking for $ac_word... " >&6; }
8315 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8316 $as_echo_n "(cached) " >&6
8318 if test -n "$ac_ct_MANIFEST_TOOL"; then
8319 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8328 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8339 if test -n "$ac_ct_MANIFEST_TOOL"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8341 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8347 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8350 case $cross_compiling:$ac_tool_warned in
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8354 ac_tool_warned=yes ;;
8356 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8359 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8362 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8364 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8365 if ${lt_cv_path_mainfest_tool+:} false; then :
8366 $as_echo_n "(cached) " >&6
8368 lt_cv_path_mainfest_tool=no
8369 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8370 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8371 cat conftest.err >&5
8372 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8373 lt_cv_path_mainfest_tool=yes
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8378 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8379 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8389 rhapsody* | darwin*)
8390 if test -n "$ac_tool_prefix"; then
8391 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8392 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8396 $as_echo_n "(cached) " >&6
8398 if test -n "$DSYMUTIL"; then
8399 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8418 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8419 if test -n "$DSYMUTIL"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8421 $as_echo "$DSYMUTIL" >&6; }
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8429 if test -z "$ac_cv_prog_DSYMUTIL"; then
8430 ac_ct_DSYMUTIL=$DSYMUTIL
8431 # Extract the first word of "dsymutil", so it can be a program name with args.
8432 set dummy dsymutil; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8436 $as_echo_n "(cached) " >&6
8438 if test -n "$ac_ct_DSYMUTIL"; then
8439 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8459 if test -n "$ac_ct_DSYMUTIL"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8461 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8467 if test "x$ac_ct_DSYMUTIL" = x; then
8470 case $cross_compiling:$ac_tool_warned in
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8474 ac_tool_warned=yes ;;
8476 DSYMUTIL=$ac_ct_DSYMUTIL
8479 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8482 if test -n "$ac_tool_prefix"; then
8483 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8484 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if ${ac_cv_prog_NMEDIT+:} false; then :
8488 $as_echo_n "(cached) " >&6
8490 if test -n "$NMEDIT"; then
8491 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510 NMEDIT=$ac_cv_prog_NMEDIT
8511 if test -n "$NMEDIT"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8513 $as_echo "$NMEDIT" >&6; }
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8521 if test -z "$ac_cv_prog_NMEDIT"; then
8522 ac_ct_NMEDIT=$NMEDIT
8523 # Extract the first word of "nmedit", so it can be a program name with args.
8524 set dummy nmedit; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8528 $as_echo_n "(cached) " >&6
8530 if test -n "$ac_ct_NMEDIT"; then
8531 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8540 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8551 if test -n "$ac_ct_NMEDIT"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8553 $as_echo "$ac_ct_NMEDIT" >&6; }
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8559 if test "x$ac_ct_NMEDIT" = x; then
8562 case $cross_compiling:$ac_tool_warned in
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8566 ac_tool_warned=yes ;;
8568 NMEDIT=$ac_ct_NMEDIT
8571 NMEDIT="$ac_cv_prog_NMEDIT"
8574 if test -n "$ac_tool_prefix"; then
8575 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8576 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if ${ac_cv_prog_LIPO+:} false; then :
8580 $as_echo_n "(cached) " >&6
8582 if test -n "$LIPO"; then
8583 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8592 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602 LIPO=$ac_cv_prog_LIPO
8603 if test -n "$LIPO"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8605 $as_echo "$LIPO" >&6; }
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8613 if test -z "$ac_cv_prog_LIPO"; then
8615 # Extract the first word of "lipo", so it can be a program name with args.
8616 set dummy lipo; ac_word=$2
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 $as_echo_n "checking for $ac_word... " >&6; }
8619 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8620 $as_echo_n "(cached) " >&6
8622 if test -n "$ac_ct_LIPO"; then
8623 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 test -z "$as_dir" && as_dir=.
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8632 ac_cv_prog_ac_ct_LIPO="lipo"
8633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8643 if test -n "$ac_ct_LIPO"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8645 $as_echo "$ac_ct_LIPO" >&6; }
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8651 if test "x$ac_ct_LIPO" = x; then
8654 case $cross_compiling:$ac_tool_warned in
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8658 ac_tool_warned=yes ;;
8663 LIPO="$ac_cv_prog_LIPO"
8666 if test -n "$ac_tool_prefix"; then
8667 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8668 set dummy ${ac_tool_prefix}otool; ac_word=$2
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8670 $as_echo_n "checking for $ac_word... " >&6; }
8671 if ${ac_cv_prog_OTOOL+:} false; then :
8672 $as_echo_n "(cached) " >&6
8674 if test -n "$OTOOL"; then
8675 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681 test -z "$as_dir" && as_dir=.
8682 for ac_exec_ext in '' $ac_executable_extensions; do
8683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8684 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8694 OTOOL=$ac_cv_prog_OTOOL
8695 if test -n "$OTOOL"; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8697 $as_echo "$OTOOL" >&6; }
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8700 $as_echo "no" >&6; }
8705 if test -z "$ac_cv_prog_OTOOL"; then
8707 # Extract the first word of "otool", so it can be a program name with args.
8708 set dummy otool; ac_word=$2
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8710 $as_echo_n "checking for $ac_word... " >&6; }
8711 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8712 $as_echo_n "(cached) " >&6
8714 if test -n "$ac_ct_OTOOL"; then
8715 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721 test -z "$as_dir" && as_dir=.
8722 for ac_exec_ext in '' $ac_executable_extensions; do
8723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8724 ac_cv_prog_ac_ct_OTOOL="otool"
8725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8734 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8735 if test -n "$ac_ct_OTOOL"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8737 $as_echo "$ac_ct_OTOOL" >&6; }
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 $as_echo "no" >&6; }
8743 if test "x$ac_ct_OTOOL" = x; then
8746 case $cross_compiling:$ac_tool_warned in
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8750 ac_tool_warned=yes ;;
8755 OTOOL="$ac_cv_prog_OTOOL"
8758 if test -n "$ac_tool_prefix"; then
8759 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8760 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if ${ac_cv_prog_OTOOL64+:} false; then :
8764 $as_echo_n "(cached) " >&6
8766 if test -n "$OTOOL64"; then
8767 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8773 test -z "$as_dir" && as_dir=.
8774 for ac_exec_ext in '' $ac_executable_extensions; do
8775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8776 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8786 OTOOL64=$ac_cv_prog_OTOOL64
8787 if test -n "$OTOOL64"; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8789 $as_echo "$OTOOL64" >&6; }
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792 $as_echo "no" >&6; }
8797 if test -z "$ac_cv_prog_OTOOL64"; then
8798 ac_ct_OTOOL64=$OTOOL64
8799 # Extract the first word of "otool64", so it can be a program name with args.
8800 set dummy otool64; ac_word=$2
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8802 $as_echo_n "checking for $ac_word... " >&6; }
8803 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8804 $as_echo_n "(cached) " >&6
8806 if test -n "$ac_ct_OTOOL64"; then
8807 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813 test -z "$as_dir" && as_dir=.
8814 for ac_exec_ext in '' $ac_executable_extensions; do
8815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8816 ac_cv_prog_ac_ct_OTOOL64="otool64"
8817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8826 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8827 if test -n "$ac_ct_OTOOL64"; then
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8829 $as_echo "$ac_ct_OTOOL64" >&6; }
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832 $as_echo "no" >&6; }
8835 if test "x$ac_ct_OTOOL64" = x; then
8838 case $cross_compiling:$ac_tool_warned in
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8842 ac_tool_warned=yes ;;
8844 OTOOL64=$ac_ct_OTOOL64
8847 OTOOL64="$ac_cv_prog_OTOOL64"
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8877 $as_echo_n "checking for -single_module linker flag... " >&6; }
8878 if ${lt_cv_apple_cc_single_mod+:} false; then :
8879 $as_echo_n "(cached) " >&6
8881 lt_cv_apple_cc_single_mod=no
8882 if test -z "${LT_MULTI_MODULE}"; then
8883 # By default we will add the -single_module flag. You can override
8884 # by either setting the environment variable LT_MULTI_MODULE
8885 # non-empty at configure time, or by adding -multi_module to the
8887 rm -rf libconftest.dylib*
8888 echo "int foo(void){return 1;}" > conftest.c
8889 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8890 -dynamiclib -Wl,-single_module conftest.c" >&5
8891 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8892 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8894 # If there is a non-empty error log, and "single_module"
8895 # appears in it, assume the flag caused a linker warning
8896 if test -s conftest.err && $GREP single_module conftest.err; then
8897 cat conftest.err >&5
8898 # Otherwise, if the output was created with a 0 exit code from
8899 # the compiler, it worked.
8900 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8901 lt_cv_apple_cc_single_mod=yes
8903 cat conftest.err >&5
8905 rm -rf libconftest.dylib*
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8910 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8913 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8914 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8915 $as_echo_n "(cached) " >&6
8917 lt_cv_ld_exported_symbols_list=no
8918 save_LDFLAGS=$LDFLAGS
8919 echo "_main" > conftest.sym
8920 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h. */
8932 if ac_fn_c_try_link "$LINENO"; then :
8933 lt_cv_ld_exported_symbols_list=yes
8935 lt_cv_ld_exported_symbols_list=no
8937 rm -f core conftest.err conftest.$ac_objext \
8938 conftest$ac_exeext conftest.$ac_ext
8939 LDFLAGS="$save_LDFLAGS"
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8943 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8946 $as_echo_n "checking for -force_load linker flag... " >&6; }
8947 if ${lt_cv_ld_force_load+:} false; then :
8948 $as_echo_n "(cached) " >&6
8950 lt_cv_ld_force_load=no
8951 cat > conftest.c << _LT_EOF
8952 int forced_loaded() { return 2;}
8954 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8955 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8956 echo "$AR cru libconftest.a conftest.o" >&5
8957 $AR cru libconftest.a conftest.o 2>&5
8958 echo "$RANLIB libconftest.a" >&5
8959 $RANLIB libconftest.a 2>&5
8960 cat > conftest.c << _LT_EOF
8961 int main() { return 0;}
8963 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8964 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8966 if test -s conftest.err && $GREP force_load conftest.err; then
8967 cat conftest.err >&5
8968 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8969 lt_cv_ld_force_load=yes
8971 cat conftest.err >&5
8973 rm -f conftest.err libconftest.a conftest conftest.c
8974 rm -rf conftest.dSYM
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8978 $as_echo "$lt_cv_ld_force_load" >&6; }
8980 rhapsody* | darwin1.[012])
8981 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8983 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8984 darwin*) # darwin 5.x on
8985 # if running on 10.5 or later, the deployment target defaults
8986 # to the OS version, if on x86, and 10.4, the deployment
8987 # target defaults to 10.4. Don't you love it?
8988 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8989 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8990 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8992 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8994 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8998 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8999 _lt_dar_single_mod='$single_module'
9001 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9002 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9004 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9006 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9007 _lt_dsymutil='~$DSYMUTIL $lib || :'
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9015 $as_echo_n "checking for ANSI C header files... " >&6; }
9016 if ${ac_cv_header_stdc+:} false; then :
9017 $as_echo_n "(cached) " >&6
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9034 if ac_fn_c_try_compile "$LINENO"; then :
9035 ac_cv_header_stdc=yes
9037 ac_cv_header_stdc=no
9039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9041 if test $ac_cv_header_stdc = yes; then
9042 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9049 $EGREP "memchr" >/dev/null 2>&1; then :
9052 ac_cv_header_stdc=no
9058 if test $ac_cv_header_stdc = yes; then
9059 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9066 $EGREP "free" >/dev/null 2>&1; then :
9069 ac_cv_header_stdc=no
9075 if test $ac_cv_header_stdc = yes; then
9076 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9077 if test "$cross_compiling" = yes; then :
9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9084 #if ((' ' & 0x0FF) == 0x020)
9085 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9086 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9088 # define ISLOWER(c) \
9089 (('a' <= (c) && (c) <= 'i') \
9090 || ('j' <= (c) && (c) <= 'r') \
9091 || ('s' <= (c) && (c) <= 'z'))
9092 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9095 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9100 for (i = 0; i < 256; i++)
9101 if (XOR (islower (i), ISLOWER (i))
9102 || toupper (i) != TOUPPER (i))
9107 if ac_fn_c_try_run "$LINENO"; then :
9110 ac_cv_header_stdc=no
9112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9113 conftest.$ac_objext conftest.beam conftest.$ac_ext
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9119 $as_echo "$ac_cv_header_stdc" >&6; }
9120 if test $ac_cv_header_stdc = yes; then
9122 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9126 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9127 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9128 inttypes.h stdint.h unistd.h
9130 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9131 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9133 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9134 cat >>confdefs.h <<_ACEOF
9135 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9143 for ac_header in dlfcn.h
9145 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9147 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9148 cat >>confdefs.h <<_ACEOF
9149 #define HAVE_DLFCN_H 1
9159 func_stripname_cnf ()
9162 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9163 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9165 } # func_stripname_cnf
9172 # Check whether --enable-shared was given.
9173 if test "${enable_shared+set}" = set; then :
9174 enableval=$enable_shared; p=${PACKAGE-default}
9176 yes) enable_shared=yes ;;
9177 no) enable_shared=no ;;
9180 # Look at the argument we got. We use all the common list separators.
9181 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9182 for pkg in $enableval; do
9184 if test "X$pkg" = "X$p"; then
9201 # Check whether --enable-static was given.
9202 if test "${enable_static+set}" = set; then :
9203 enableval=$enable_static; p=${PACKAGE-default}
9205 yes) enable_static=yes ;;
9206 no) enable_static=no ;;
9209 # Look at the argument we got. We use all the common list separators.
9210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9211 for pkg in $enableval; do
9213 if test "X$pkg" = "X$p"; then
9242 # Check whether --with-pic was given.
9243 if test "${with_pic+set}" = set; then :
9244 withval=$with_pic; lt_p=${PACKAGE-default}
9246 yes|no) pic_mode=$withval ;;
9249 # Look at the argument we got. We use all the common list separators.
9250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9251 for lt_pkg in $withval; do
9253 if test "X$lt_pkg" = "X$lt_p"; then
9265 test -z "$pic_mode" && pic_mode=default
9273 # Check whether --enable-fast-install was given.
9274 if test "${enable_fast_install+set}" = set; then :
9275 enableval=$enable_fast_install; p=${PACKAGE-default}
9277 yes) enable_fast_install=yes ;;
9278 no) enable_fast_install=no ;;
9280 enable_fast_install=no
9281 # Look at the argument we got. We use all the common list separators.
9282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9283 for pkg in $enableval; do
9285 if test "X$pkg" = "X$p"; then
9286 enable_fast_install=yes
9293 enable_fast_install=yes
9306 # This can be used to rebuild libtool when needed
9307 LIBTOOL_DEPS="$ltmain"
9309 # Always use our own libtool.
9310 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9341 test -z "$LN_S" && LN_S="ln -s"
9356 if test -n "${ZSH_VERSION+set}" ; then
9357 setopt NO_GLOB_SUBST
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9361 $as_echo_n "checking for objdir... " >&6; }
9362 if ${lt_cv_objdir+:} false; then :
9363 $as_echo_n "(cached) " >&6
9365 rm -f .libs 2>/dev/null
9366 mkdir .libs 2>/dev/null
9367 if test -d .libs; then
9370 # MS-DOS does not allow filenames that begin with a dot.
9373 rmdir .libs 2>/dev/null
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9376 $as_echo "$lt_cv_objdir" >&6; }
9377 objdir=$lt_cv_objdir
9383 cat >>confdefs.h <<_ACEOF
9384 #define LT_OBJDIR "$lt_cv_objdir/"
9392 # AIX sometimes has problems with the GCC collect2 program. For some
9393 # reason, if we set the COLLECT_NAMES environment variable, the problems
9394 # vanish in a puff of smoke.
9395 if test "X${COLLECT_NAMES+set}" != Xset; then
9397 export COLLECT_NAMES
9404 can_build_shared=yes
9406 # All known linkers require a `.a' archive for static linking (except MSVC,
9407 # which needs '.lib').
9410 with_gnu_ld="$lt_cv_prog_gnu_ld"
9413 old_CFLAGS="$CFLAGS"
9415 # Set sane defaults for various variables
9416 test -z "$CC" && CC=cc
9417 test -z "$LTCC" && LTCC=$CC
9418 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9419 test -z "$LD" && LD=ld
9420 test -z "$ac_objext" && ac_objext=o
9422 for cc_temp in $compiler""; do
9424 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9425 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9430 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9433 # Only perform the check for file, if the check method requires it
9434 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9435 case $deplibs_check_method in
9437 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9439 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9440 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9441 $as_echo_n "(cached) " >&6
9445 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9448 lt_save_MAGIC_CMD="$MAGIC_CMD"
9449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9450 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9451 for ac_dir in $ac_dummy; do
9453 test -z "$ac_dir" && ac_dir=.
9454 if test -f $ac_dir/${ac_tool_prefix}file; then
9455 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9456 if test -n "$file_magic_test_file"; then
9457 case $deplibs_check_method in
9459 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9461 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9462 $EGREP "$file_magic_regex" > /dev/null; then
9467 *** Warning: the command libtool uses to detect shared libraries,
9468 *** $file_magic_cmd, produces output that libtool cannot recognize.
9469 *** The result is that libtool may fail to recognize shared libraries
9470 *** as such. This will affect the creation of libtool libraries that
9471 *** depend on shared libraries, but programs linked with such libtool
9472 *** libraries will work regardless of this problem. Nevertheless, you
9473 *** may want to report the problem to your system manager and/or to
9474 *** bug-libtool@gnu.org
9484 MAGIC_CMD="$lt_save_MAGIC_CMD"
9489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9490 if test -n "$MAGIC_CMD"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9492 $as_echo "$MAGIC_CMD" >&6; }
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9502 if test -z "$lt_cv_path_MAGIC_CMD"; then
9503 if test -n "$ac_tool_prefix"; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9505 $as_echo_n "checking for file... " >&6; }
9506 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9507 $as_echo_n "(cached) " >&6
9511 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9514 lt_save_MAGIC_CMD="$MAGIC_CMD"
9515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9516 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9517 for ac_dir in $ac_dummy; do
9519 test -z "$ac_dir" && ac_dir=.
9520 if test -f $ac_dir/file; then
9521 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9522 if test -n "$file_magic_test_file"; then
9523 case $deplibs_check_method in
9525 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9527 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9528 $EGREP "$file_magic_regex" > /dev/null; then
9533 *** Warning: the command libtool uses to detect shared libraries,
9534 *** $file_magic_cmd, produces output that libtool cannot recognize.
9535 *** The result is that libtool may fail to recognize shared libraries
9536 *** as such. This will affect the creation of libtool libraries that
9537 *** depend on shared libraries, but programs linked with such libtool
9538 *** libraries will work regardless of this problem. Nevertheless, you
9539 *** may want to report the problem to your system manager and/or to
9540 *** bug-libtool@gnu.org
9550 MAGIC_CMD="$lt_save_MAGIC_CMD"
9555 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9556 if test -n "$MAGIC_CMD"; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9558 $as_echo "$MAGIC_CMD" >&6; }
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9574 # Use C for the default configuration in the libtool script
9578 ac_cpp='$CPP $CPPFLAGS'
9579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9584 # Source file extension for C test sources.
9587 # Object file extension for compiled C test sources.
9591 # Code to be used in simple compile tests
9592 lt_simple_compile_test_code="int some_variable = 0;"
9594 # Code to be used in simple link tests
9595 lt_simple_link_test_code='int main(){return(0);}'
9603 # If no C compiler was specified, use CC.
9606 # If no C compiler flags were specified, use CFLAGS.
9607 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9609 # Allow CC to be a program name with arguments.
9612 # Save the default compiler, since it gets overwritten when the other
9613 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9614 compiler_DEFAULT=$CC
9616 # save warnings/boilerplate of simple test code
9617 ac_outfile=conftest.$ac_objext
9618 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9619 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9620 _lt_compiler_boilerplate=`cat conftest.err`
9623 ac_outfile=conftest.$ac_objext
9624 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9625 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9626 _lt_linker_boilerplate=`cat conftest.err`
9631 ## There is no encapsulation within the following macros, do not change
9632 ## the running order or otherwise move them around unless you know exactly
9633 ## what you are doing...
9634 if test -n "$compiler"; then
9636 lt_prog_compiler_no_builtin_flag=
9638 if test "$GCC" = yes; then
9639 case $cc_basename in
9641 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9643 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9647 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9648 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9649 $as_echo_n "(cached) " >&6
9651 lt_cv_prog_compiler_rtti_exceptions=no
9652 ac_outfile=conftest.$ac_objext
9653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9654 lt_compiler_flag="-fno-rtti -fno-exceptions"
9655 # Insert the option either (1) after the last *FLAGS variable, or
9656 # (2) before a word containing "conftest.", or (3) at the end.
9657 # Note that $ac_compile itself does not contain backslashes and begins
9658 # with a dollar sign (not a hyphen), so the echo should work correctly.
9659 # The option is referenced via a variable to avoid confusing sed.
9660 lt_compile=`echo "$ac_compile" | $SED \
9661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9663 -e 's:$: $lt_compiler_flag:'`
9664 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9665 (eval "$lt_compile" 2>conftest.err)
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 if (exit $ac_status) && test -s "$ac_outfile"; then
9670 # The compiler can only warn and ignore the option if not recognized
9671 # So say no if there are warnings other than the usual output.
9672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9675 lt_cv_prog_compiler_rtti_exceptions=yes
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9682 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9684 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9685 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9697 lt_prog_compiler_wl=
9698 lt_prog_compiler_pic=
9699 lt_prog_compiler_static=
9702 if test "$GCC" = yes; then
9703 lt_prog_compiler_wl='-Wl,'
9704 lt_prog_compiler_static='-static'
9708 # All AIX code is PIC.
9709 if test "$host_cpu" = ia64; then
9710 # AIX 5 now supports IA64 processor
9711 lt_prog_compiler_static='-Bstatic'
9718 # see comment about AmigaOS4 .so support
9719 lt_prog_compiler_pic='-fPIC'
9722 # FIXME: we need at least 68020 code to build shared libraries, but
9723 # adding the `-m68020' flag to GCC prevents building anything better,
9725 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9730 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9731 # PIC is the default for these OSes.
9734 mingw* | cygwin* | pw32* | os2* | cegcc*)
9735 # This hack is so that the source file can tell whether it is being
9736 # built for inclusion in a dll (and should export symbols for example).
9737 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9738 # (--disable-auto-import) libraries
9739 lt_prog_compiler_pic='-DDLL_EXPORT'
9742 darwin* | rhapsody*)
9743 # PIC is the default on this platform
9744 # Common symbols not allowed in MH_DYLIB files
9745 lt_prog_compiler_pic='-fno-common'
9749 # PIC is the default for Haiku.
9750 # The "-static" flag exists, but is broken.
9751 lt_prog_compiler_static=
9755 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9756 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9757 # sets the default TLS model and affects inlining.
9763 lt_prog_compiler_pic='-fPIC'
9769 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9770 # Instead, we relocate shared libraries at runtime.
9774 # Just because we use GCC doesn't mean we suddenly get shared libraries
9775 # on systems that don't support them.
9776 lt_prog_compiler_can_build_shared=no
9781 # QNX uses GNU C++, but need to define -shared option too, otherwise
9783 lt_prog_compiler_pic='-fPIC -shared'
9787 if test -d /usr/nec; then
9788 lt_prog_compiler_pic=-Kconform_pic
9793 lt_prog_compiler_pic='-fPIC'
9797 case $cc_basename in
9798 nvcc*) # Cuda Compiler Driver 2.2
9799 lt_prog_compiler_wl='-Xlinker '
9800 if test -n "$lt_prog_compiler_pic"; then
9801 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9806 # PORTME Check for flag to pass linker flags through the system compiler.
9809 lt_prog_compiler_wl='-Wl,'
9810 if test "$host_cpu" = ia64; then
9811 # AIX 5 now supports IA64 processor
9812 lt_prog_compiler_static='-Bstatic'
9814 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9818 mingw* | cygwin* | pw32* | os2* | cegcc*)
9819 # This hack is so that the source file can tell whether it is being
9820 # built for inclusion in a dll (and should export symbols for example).
9821 lt_prog_compiler_pic='-DDLL_EXPORT'
9824 hpux9* | hpux10* | hpux11*)
9825 lt_prog_compiler_wl='-Wl,'
9826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9833 lt_prog_compiler_pic='+Z'
9836 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9837 lt_prog_compiler_static='${wl}-a ${wl}archive'
9840 irix5* | irix6* | nonstopux*)
9841 lt_prog_compiler_wl='-Wl,'
9842 # PIC (with -KPIC) is the default.
9843 lt_prog_compiler_static='-non_shared'
9846 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9847 case $cc_basename in
9848 # old Intel for x86_64 which still supported -KPIC.
9850 lt_prog_compiler_wl='-Wl,'
9851 lt_prog_compiler_pic='-KPIC'
9852 lt_prog_compiler_static='-static'
9854 # icc used to be incompatible with GCC.
9855 # ICC 10 doesn't accept -KPIC any more.
9857 lt_prog_compiler_wl='-Wl,'
9858 lt_prog_compiler_pic='-fPIC'
9859 lt_prog_compiler_static='-static'
9861 # Lahey Fortran 8.1.
9863 lt_prog_compiler_wl='-Wl,'
9864 lt_prog_compiler_pic='--shared'
9865 lt_prog_compiler_static='--static'
9868 # NAG Fortran compiler
9869 lt_prog_compiler_wl='-Wl,-Wl,,'
9870 lt_prog_compiler_pic='-PIC'
9871 lt_prog_compiler_static='-Bstatic'
9873 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9874 # Portland Group compilers (*not* the Pentium gcc compiler,
9875 # which looks to be a dead project)
9876 lt_prog_compiler_wl='-Wl,'
9877 lt_prog_compiler_pic='-fpic'
9878 lt_prog_compiler_static='-Bstatic'
9881 lt_prog_compiler_wl='-Wl,'
9882 # All Alpha code is PIC.
9883 lt_prog_compiler_static='-non_shared'
9885 xl* | bgxl* | bgf* | mpixl*)
9886 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9887 lt_prog_compiler_wl='-Wl,'
9888 lt_prog_compiler_pic='-qpic'
9889 lt_prog_compiler_static='-qstaticlink'
9892 case `$CC -V 2>&1 | sed 5q` in
9893 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9894 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9895 lt_prog_compiler_pic='-KPIC'
9896 lt_prog_compiler_static='-Bstatic'
9897 lt_prog_compiler_wl=''
9899 *Sun\ F* | *Sun*Fortran*)
9900 lt_prog_compiler_pic='-KPIC'
9901 lt_prog_compiler_static='-Bstatic'
9902 lt_prog_compiler_wl='-Qoption ld '
9906 lt_prog_compiler_pic='-KPIC'
9907 lt_prog_compiler_static='-Bstatic'
9908 lt_prog_compiler_wl='-Wl,'
9910 *Intel*\ [CF]*Compiler*)
9911 lt_prog_compiler_wl='-Wl,'
9912 lt_prog_compiler_pic='-fPIC'
9913 lt_prog_compiler_static='-static'
9916 lt_prog_compiler_wl='-Wl,'
9917 lt_prog_compiler_pic='-fpic'
9918 lt_prog_compiler_static='-Bstatic'
9926 lt_prog_compiler_pic='-KPIC'
9927 lt_prog_compiler_static='-Bstatic'
9931 # QNX uses GNU C++, but need to define -shared option too, otherwise
9933 lt_prog_compiler_pic='-fPIC -shared'
9936 osf3* | osf4* | osf5*)
9937 lt_prog_compiler_wl='-Wl,'
9938 # All OSF/1 code is PIC.
9939 lt_prog_compiler_static='-non_shared'
9943 lt_prog_compiler_static='-non_shared'
9947 lt_prog_compiler_pic='-KPIC'
9948 lt_prog_compiler_static='-Bstatic'
9949 case $cc_basename in
9950 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9951 lt_prog_compiler_wl='-Qoption ld ';;
9953 lt_prog_compiler_wl='-Wl,';;
9958 lt_prog_compiler_wl='-Qoption ld '
9959 lt_prog_compiler_pic='-PIC'
9960 lt_prog_compiler_static='-Bstatic'
9963 sysv4 | sysv4.2uw2* | sysv4.3*)
9964 lt_prog_compiler_wl='-Wl,'
9965 lt_prog_compiler_pic='-KPIC'
9966 lt_prog_compiler_static='-Bstatic'
9970 if test -d /usr/nec ;then
9971 lt_prog_compiler_pic='-Kconform_pic'
9972 lt_prog_compiler_static='-Bstatic'
9976 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9977 lt_prog_compiler_wl='-Wl,'
9978 lt_prog_compiler_pic='-KPIC'
9979 lt_prog_compiler_static='-Bstatic'
9983 lt_prog_compiler_wl='-Wl,'
9984 lt_prog_compiler_can_build_shared=no
9988 lt_prog_compiler_pic='-pic'
9989 lt_prog_compiler_static='-Bstatic'
9993 lt_prog_compiler_can_build_shared=no
9999 # For platforms which do not support PIC, -DPIC is meaningless:
10001 lt_prog_compiler_pic=
10004 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10009 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10010 if ${lt_cv_prog_compiler_pic+:} false; then :
10011 $as_echo_n "(cached) " >&6
10013 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10016 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10017 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10020 # Check to make sure the PIC flag actually works.
10022 if test -n "$lt_prog_compiler_pic"; then
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10024 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10025 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10026 $as_echo_n "(cached) " >&6
10028 lt_cv_prog_compiler_pic_works=no
10029 ac_outfile=conftest.$ac_objext
10030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10031 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10032 # Insert the option either (1) after the last *FLAGS variable, or
10033 # (2) before a word containing "conftest.", or (3) at the end.
10034 # Note that $ac_compile itself does not contain backslashes and begins
10035 # with a dollar sign (not a hyphen), so the echo should work correctly.
10036 # The option is referenced via a variable to avoid confusing sed.
10037 lt_compile=`echo "$ac_compile" | $SED \
10038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10040 -e 's:$: $lt_compiler_flag:'`
10041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10042 (eval "$lt_compile" 2>conftest.err)
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 if (exit $ac_status) && test -s "$ac_outfile"; then
10047 # The compiler can only warn and ignore the option if not recognized
10048 # So say no if there are warnings other than the usual output.
10049 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10051 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10052 lt_cv_prog_compiler_pic_works=yes
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10059 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10061 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10062 case $lt_prog_compiler_pic in
10064 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10067 lt_prog_compiler_pic=
10068 lt_prog_compiler_can_build_shared=no
10084 # Check to make sure the static flag actually works.
10086 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10088 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10089 if ${lt_cv_prog_compiler_static_works+:} false; then :
10090 $as_echo_n "(cached) " >&6
10092 lt_cv_prog_compiler_static_works=no
10093 save_LDFLAGS="$LDFLAGS"
10094 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10095 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10096 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10097 # The linker can only warn and ignore the option if not recognized
10098 # So say no if there are warnings
10099 if test -s conftest.err; then
10100 # Append any errors to the config.log.
10101 cat conftest.err 1>&5
10102 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10103 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10104 if diff conftest.exp conftest.er2 >/dev/null; then
10105 lt_cv_prog_compiler_static_works=yes
10108 lt_cv_prog_compiler_static_works=yes
10112 LDFLAGS="$save_LDFLAGS"
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10116 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10118 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10121 lt_prog_compiler_static=
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10131 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10132 if ${lt_cv_prog_compiler_c_o+:} false; then :
10133 $as_echo_n "(cached) " >&6
10135 lt_cv_prog_compiler_c_o=no
10136 $RM -r conftest 2>/dev/null
10140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10142 lt_compiler_flag="-o out/conftest2.$ac_objext"
10143 # Insert the option either (1) after the last *FLAGS variable, or
10144 # (2) before a word containing "conftest.", or (3) at the end.
10145 # Note that $ac_compile itself does not contain backslashes and begins
10146 # with a dollar sign (not a hyphen), so the echo should work correctly.
10147 lt_compile=`echo "$ac_compile" | $SED \
10148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10150 -e 's:$: $lt_compiler_flag:'`
10151 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10152 (eval "$lt_compile" 2>out/conftest.err)
10154 cat out/conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10158 # The compiler can only warn and ignore the option if not recognized
10159 # So say no if there are warnings
10160 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10161 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10162 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10163 lt_cv_prog_compiler_c_o=yes
10168 # SGI C++ compiler will create directory out/ii_files/ for
10169 # template instantiation
10170 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10171 $RM out/* && rmdir out
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10178 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10186 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10187 if ${lt_cv_prog_compiler_c_o+:} false; then :
10188 $as_echo_n "(cached) " >&6
10190 lt_cv_prog_compiler_c_o=no
10191 $RM -r conftest 2>/dev/null
10195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10197 lt_compiler_flag="-o out/conftest2.$ac_objext"
10198 # Insert the option either (1) after the last *FLAGS variable, or
10199 # (2) before a word containing "conftest.", or (3) at the end.
10200 # Note that $ac_compile itself does not contain backslashes and begins
10201 # with a dollar sign (not a hyphen), so the echo should work correctly.
10202 lt_compile=`echo "$ac_compile" | $SED \
10203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10205 -e 's:$: $lt_compiler_flag:'`
10206 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10207 (eval "$lt_compile" 2>out/conftest.err)
10209 cat out/conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10213 # The compiler can only warn and ignore the option if not recognized
10214 # So say no if there are warnings
10215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10216 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10217 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10218 lt_cv_prog_compiler_c_o=yes
10223 # SGI C++ compiler will create directory out/ii_files/ for
10224 # template instantiation
10225 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10226 $RM out/* && rmdir out
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10233 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10238 hard_links="nottested"
10239 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10240 # do not overwrite the value of need_locks provided by the user
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10242 $as_echo_n "checking if we can lock with hard links... " >&6; }
10245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10247 ln conftest.a conftest.b 2>&5 || hard_links=no
10248 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10250 $as_echo "$hard_links" >&6; }
10251 if test "$hard_links" = no; then
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10253 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10266 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10269 allow_undefined_flag=
10270 always_export_symbols=no
10272 archive_expsym_cmds=
10273 compiler_needs_object=no
10274 enable_shared_with_static_runtimes=no
10275 export_dynamic_flag_spec=
10276 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10277 hardcode_automatic=no
10279 hardcode_direct_absolute=no
10280 hardcode_libdir_flag_spec=
10281 hardcode_libdir_separator=
10282 hardcode_minus_L=no
10283 hardcode_shlibpath_var=unsupported
10285 link_all_deplibs=unknown
10287 module_expsym_cmds=
10288 old_archive_from_new_cmds=
10289 old_archive_from_expsyms_cmds=
10290 thread_safe_flag_spec=
10291 whole_archive_flag_spec=
10292 # include_expsyms should be a list of space-separated symbols to be *always*
10293 # included in the symbol list
10295 # exclude_expsyms can be an extended regexp of symbols to exclude
10296 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10297 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10298 # as well as any symbol that contains `d'.
10299 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10300 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10301 # platforms (ab)use it in PIC code, but their linkers get confused if
10302 # the symbol is explicitly referenced. Since portable code cannot
10303 # rely on this symbol name, it's probably fine to never include it in
10304 # preloaded symbol tables.
10305 # Exclude shared library initialization/finalization symbols.
10306 extract_expsyms_cmds=
10309 cygwin* | mingw* | pw32* | cegcc*)
10310 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10311 # When not using gcc, we currently assume that we are using
10312 # Microsoft Visual C++.
10313 if test "$GCC" != yes; then
10318 # we just hope/assume this is gcc and not c89 (= MSVC++)
10324 linux* | k*bsd*-gnu | gnu*)
10325 link_all_deplibs=no
10331 # On some targets, GNU ld is compatible enough with the native linker
10332 # that we're better off using the native interface for both.
10333 lt_use_gnu_ld_interface=no
10334 if test "$with_gnu_ld" = yes; then
10337 # The AIX port of GNU ld has always aspired to compatibility
10338 # with the native linker. However, as the warning in the GNU ld
10339 # block says, versions before 2.19.5* couldn't really create working
10340 # shared libraries, regardless of the interface used.
10341 case `$LD -v 2>&1` in
10342 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10343 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10344 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10346 lt_use_gnu_ld_interface=yes
10351 lt_use_gnu_ld_interface=yes
10356 if test "$lt_use_gnu_ld_interface" = yes; then
10357 # If archive_cmds runs LD, not CC, wlarc should be empty
10360 # Set some defaults for GNU ld with shared library support. These
10361 # are reset later if shared libraries are not supported. Putting them
10362 # here allows them to be overridden if necessary.
10363 runpath_var=LD_RUN_PATH
10364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10365 export_dynamic_flag_spec='${wl}--export-dynamic'
10366 # ancient GNU ld didn't support --whole-archive et. al.
10367 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10368 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10370 whole_archive_flag_spec=
10372 supports_anon_versioning=no
10373 case `$LD -v 2>&1` in
10374 *GNU\ gold*) supports_anon_versioning=yes ;;
10375 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10376 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10377 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10378 *\ 2.11.*) ;; # other 2.11 versions
10379 *) supports_anon_versioning=yes ;;
10382 # See if GNU ld supports shared libraries.
10385 # On AIX/PPC, the GNU linker is very broken
10386 if test "$host_cpu" != ia64; then
10390 *** Warning: the GNU linker, at least up to release 2.19, is reported
10391 *** to be unable to reliably create shared libraries on AIX.
10392 *** Therefore, libtool is disabling shared libraries support. If you
10393 *** really care for shared libraries, you may want to install binutils
10394 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10395 *** You will then need to restart the configuration process.
10404 # see comment about AmigaOS4 .so support
10405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10406 archive_expsym_cmds=''
10409 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)'
10410 hardcode_libdir_flag_spec='-L$libdir'
10411 hardcode_minus_L=yes
10417 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10418 allow_undefined_flag=unsupported
10419 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10420 # support --undefined. This deserves some investigation. FIXME
10421 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10427 cygwin* | mingw* | pw32* | cegcc*)
10428 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10429 # as there is no search path for DLLs.
10430 hardcode_libdir_flag_spec='-L$libdir'
10431 export_dynamic_flag_spec='${wl}--export-all-symbols'
10432 allow_undefined_flag=unsupported
10433 always_export_symbols=no
10434 enable_shared_with_static_runtimes=yes
10435 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'
10436 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10438 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10440 # If the export-symbols file already is a .def file (1st line
10441 # is EXPORTS), use it as is; otherwise, prepend...
10442 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10443 cp $export_symbols $output_objdir/$soname.def;
10445 echo EXPORTS > $output_objdir/$soname.def;
10446 cat $export_symbols >> $output_objdir/$soname.def;
10448 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10456 link_all_deplibs=yes
10461 hardcode_shlibpath_var=no
10462 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10463 export_dynamic_flag_spec='${wl}-E'
10464 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10465 # Instead, shared libraries are loaded at an image base (0x10000000 by
10466 # default) and relocated if they conflict, which is a slow very memory
10467 # consuming and fragmenting process. To avoid this, we pick a random,
10468 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10469 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10470 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10471 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'
10474 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10476 if test "$host_os" = linux-dietlibc; then
10477 case $cc_basename in
10478 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10481 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10482 && test "$tmp_diet" = no
10484 tmp_addflag=' $pic_flag'
10485 tmp_sharedflag='-shared'
10486 case $cc_basename,$host_cpu in
10487 pgcc*) # Portland Group C compiler
10488 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'
10489 tmp_addflag=' $pic_flag'
10491 pgf77* | pgf90* | pgf95* | pgfortran*)
10492 # Portland Group f77 and f90 compilers
10493 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'
10494 tmp_addflag=' $pic_flag -Mnomain' ;;
10495 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10496 tmp_addflag=' -i_dynamic' ;;
10497 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10498 tmp_addflag=' -i_dynamic -nofor_main' ;;
10499 ifc* | ifort*) # Intel Fortran compiler
10500 tmp_addflag=' -nofor_main' ;;
10501 lf95*) # Lahey Fortran 8.1
10502 whole_archive_flag_spec=
10503 tmp_sharedflag='--shared' ;;
10504 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10505 tmp_sharedflag='-qmkshrobj'
10507 nvcc*) # Cuda Compiler Driver 2.2
10508 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'
10509 compiler_needs_object=yes
10512 case `$CC -V 2>&1 | sed 5q` in
10513 *Sun\ C*) # Sun C 5.9
10514 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'
10515 compiler_needs_object=yes
10516 tmp_sharedflag='-G' ;;
10517 *Sun\ F*) # Sun Fortran 8.3
10518 tmp_sharedflag='-G' ;;
10520 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10522 if test "x$supports_anon_versioning" = xyes; then
10523 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10524 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10525 echo "local: *; };" >> $output_objdir/$libname.ver~
10526 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10529 case $cc_basename in
10530 xlf* | bgf* | bgxlf* | mpixlf*)
10531 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10532 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10534 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10535 if test "x$supports_anon_versioning" = xyes; then
10536 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10537 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10538 echo "local: *; };" >> $output_objdir/$libname.ver~
10539 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10548 netbsd* | netbsdelf*-gnu)
10549 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10550 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10553 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10554 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10559 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10563 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10564 *** create shared libraries on Solaris systems. Therefore, libtool
10565 *** is disabling shared libraries support. We urge you to upgrade GNU
10566 *** binutils to release 2.9.1 or newer. Another option is to modify
10567 *** your PATH or compiler configuration so that the native linker is
10568 *** used, and then restart.
10571 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10572 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10573 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10579 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10580 case `$LD -v 2>&1` in
10581 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10585 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10586 *** reliably create shared libraries on SCO systems. Therefore, libtool
10587 *** is disabling shared libraries support. We urge you to upgrade GNU
10588 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10589 *** your PATH or compiler configuration so that the native linker is
10590 *** used, and then restart.
10595 # For security reasons, it is highly recommended that you always
10596 # use absolute paths for naming shared libraries, and exclude the
10597 # DT_RUNPATH tag from executables and libraries. But doing so
10598 # requires that you compile everything twice, which is a pain.
10599 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10602 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10611 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10613 hardcode_direct=yes
10614 hardcode_shlibpath_var=no
10618 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10619 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10620 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10627 if test "$ld_shlibs" = no; then
10629 hardcode_libdir_flag_spec=
10630 export_dynamic_flag_spec=
10631 whole_archive_flag_spec=
10634 # PORTME fill in a description of your system's linker (not GNU ld)
10637 allow_undefined_flag=unsupported
10638 always_export_symbols=yes
10639 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'
10640 # Note: this linker hardcodes the directories in LIBPATH if there
10641 # are no directories specified by -L.
10642 hardcode_minus_L=yes
10643 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10644 # Neither direct hardcoding nor static linking is supported with a
10646 hardcode_direct=unsupported
10651 if test "$host_cpu" = ia64; then
10652 # On IA64, the linker does run time linking by default, so we don't
10653 # have to do anything special.
10654 aix_use_runtimelinking=no
10655 exp_sym_flag='-Bexport'
10658 # If we're using GNU nm, then we don't want the "-C" option.
10659 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10660 # Also, AIX nm treats weak defined symbols like other global
10661 # defined symbols, whereas GNU nm marks them as "W".
10662 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10663 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'
10665 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'
10667 aix_use_runtimelinking=no
10669 # Test if we are trying to use run time linking or normal
10670 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10671 # need to do runtime linking.
10672 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10673 for ld_flag in $LDFLAGS; do
10674 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10675 aix_use_runtimelinking=yes
10682 exp_sym_flag='-bexport'
10683 no_entry_flag='-bnoentry'
10686 # When large executables or shared objects are built, AIX ld can
10687 # have problems creating the table of contents. If linking a library
10688 # or program results in "error TOC overflow" add -mminimal-toc to
10689 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10690 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10693 hardcode_direct=yes
10694 hardcode_direct_absolute=yes
10695 hardcode_libdir_separator=':'
10696 link_all_deplibs=yes
10697 file_list_spec='${wl}-f,'
10699 if test "$GCC" = yes; then
10700 case $host_os in aix4.[012]|aix4.[012].*)
10701 # We only want to do this on AIX 4.2 and lower, the check
10702 # below for broken collect2 doesn't work under 4.3+
10703 collect2name=`${CC} -print-prog-name=collect2`
10704 if test -f "$collect2name" &&
10705 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10707 # We have reworked collect2
10710 # We have old collect2
10711 hardcode_direct=unsupported
10712 # It fails to find uninstalled libraries when the uninstalled
10713 # path is not listed in the libpath. Setting hardcode_minus_L
10714 # to unsupported forces relinking
10715 hardcode_minus_L=yes
10716 hardcode_libdir_flag_spec='-L$libdir'
10717 hardcode_libdir_separator=
10721 shared_flag='-shared'
10722 if test "$aix_use_runtimelinking" = yes; then
10723 shared_flag="$shared_flag "'${wl}-G'
10725 link_all_deplibs=no
10728 if test "$host_cpu" = ia64; then
10729 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10730 # chokes on -Wl,-G. The following line is correct:
10733 if test "$aix_use_runtimelinking" = yes; then
10734 shared_flag='${wl}-G'
10736 shared_flag='${wl}-bM:SRE'
10741 export_dynamic_flag_spec='${wl}-bexpall'
10742 # It seems that -bexpall does not export symbols beginning with
10743 # underscore (_), so it is better to generate a list of symbols to export.
10744 always_export_symbols=yes
10745 if test "$aix_use_runtimelinking" = yes; then
10746 # Warning - without using the other runtime loading flags (-brtl),
10747 # -berok will link without error, but may produce a broken library.
10748 allow_undefined_flag='-berok'
10749 # Determine the default libpath from the value encoded in an
10750 # empty executable.
10751 if test "${lt_cv_aix_libpath+set}" = set; then
10752 aix_libpath=$lt_cv_aix_libpath
10754 if ${lt_cv_aix_libpath_+:} false; then :
10755 $as_echo_n "(cached) " >&6
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10768 if ac_fn_c_try_link "$LINENO"; then :
10770 lt_aix_libpath_sed='
10771 /Import File Strings/,/^$/ {
10773 s/^0 *\([^ ]*\) *$/\1/
10777 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10778 # Check for a 64-bit object if we didn't find anything.
10779 if test -z "$lt_cv_aix_libpath_"; then
10780 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785 if test -z "$lt_cv_aix_libpath_"; then
10786 lt_cv_aix_libpath_="/usr/lib:/lib"
10791 aix_libpath=$lt_cv_aix_libpath_
10794 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10795 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"
10797 if test "$host_cpu" = ia64; then
10798 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10799 allow_undefined_flag="-z nodefs"
10800 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"
10802 # Determine the default libpath from the value encoded in an
10803 # empty executable.
10804 if test "${lt_cv_aix_libpath+set}" = set; then
10805 aix_libpath=$lt_cv_aix_libpath
10807 if ${lt_cv_aix_libpath_+:} false; then :
10808 $as_echo_n "(cached) " >&6
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10821 if ac_fn_c_try_link "$LINENO"; then :
10823 lt_aix_libpath_sed='
10824 /Import File Strings/,/^$/ {
10826 s/^0 *\([^ ]*\) *$/\1/
10830 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10831 # Check for a 64-bit object if we didn't find anything.
10832 if test -z "$lt_cv_aix_libpath_"; then
10833 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10836 rm -f core conftest.err conftest.$ac_objext \
10837 conftest$ac_exeext conftest.$ac_ext
10838 if test -z "$lt_cv_aix_libpath_"; then
10839 lt_cv_aix_libpath_="/usr/lib:/lib"
10844 aix_libpath=$lt_cv_aix_libpath_
10847 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10848 # Warning - without using the other run time loading flags,
10849 # -berok will link without error, but may produce a broken library.
10850 no_undefined_flag=' ${wl}-bernotok'
10851 allow_undefined_flag=' ${wl}-berok'
10852 if test "$with_gnu_ld" = yes; then
10853 # We only use this code for GNU lds that support --whole-archive.
10854 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10856 # Exported symbols can be pulled into shared objects from archives
10857 whole_archive_flag_spec='$convenience'
10859 archive_cmds_need_lc=yes
10860 # This is similar to how AIX traditionally builds its shared libraries.
10861 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'
10869 # see comment about AmigaOS4 .so support
10870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10871 archive_expsym_cmds=''
10874 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)'
10875 hardcode_libdir_flag_spec='-L$libdir'
10876 hardcode_minus_L=yes
10882 export_dynamic_flag_spec=-rdynamic
10885 cygwin* | mingw* | pw32* | cegcc*)
10886 # When not using gcc, we currently assume that we are using
10887 # Microsoft Visual C++.
10888 # hardcode_libdir_flag_spec is actually meaningless, as there is
10889 # no search path for DLLs.
10890 case $cc_basename in
10893 hardcode_libdir_flag_spec=' '
10894 allow_undefined_flag=unsupported
10895 always_export_symbols=yes
10897 # Tell ltmain to make .lib files, not .a files.
10899 # Tell ltmain to make .dll files, not .so files.
10901 # FIXME: Setting linknames here is a bad hack.
10902 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10903 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10904 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10906 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10908 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10910 # The linker will not automatically build a static lib if we build a DLL.
10911 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10912 enable_shared_with_static_runtimes=yes
10913 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10914 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10916 old_postinstall_cmds='chmod 644 $oldlib'
10917 postlink_cmds='lt_outputfile="@OUTPUT@"~
10918 lt_tool_outputfile="@TOOL_OUTPUT@"~
10919 case $lt_outputfile in
10922 lt_outputfile="$lt_outputfile.exe"
10923 lt_tool_outputfile="$lt_tool_outputfile.exe"
10926 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10927 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10928 $RM "$lt_outputfile.manifest";
10932 # Assume MSVC wrapper
10933 hardcode_libdir_flag_spec=' '
10934 allow_undefined_flag=unsupported
10935 # Tell ltmain to make .lib files, not .a files.
10937 # Tell ltmain to make .dll files, not .so files.
10939 # FIXME: Setting linknames here is a bad hack.
10940 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10941 # The linker will automatically build a .lib file if we build a DLL.
10942 old_archive_from_new_cmds='true'
10943 # FIXME: Should let the user specify the lib program.
10944 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10945 enable_shared_with_static_runtimes=yes
10950 darwin* | rhapsody*)
10953 archive_cmds_need_lc=no
10955 hardcode_automatic=yes
10956 hardcode_shlibpath_var=unsupported
10957 if test "$lt_cv_ld_force_load" = "yes"; then
10958 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\"`'
10961 whole_archive_flag_spec=''
10963 link_all_deplibs=yes
10964 allow_undefined_flag="$_lt_dar_allow_undefined"
10965 case $cc_basename in
10966 ifort*) _lt_dar_can_shared=yes ;;
10967 *) _lt_dar_can_shared=$GCC ;;
10969 if test "$_lt_dar_can_shared" = "yes"; then
10970 output_verbose_link_cmd=func_echo_all
10971 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10972 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10973 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}"
10974 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}"
10983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10984 hardcode_libdir_flag_spec='-L$libdir'
10985 hardcode_shlibpath_var=no
10988 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10989 # support. Future versions do this automatically, but an explicit c++rt0.o
10990 # does not break anything, and helps significantly (at the cost of a little
10993 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10994 hardcode_libdir_flag_spec='-R$libdir'
10995 hardcode_direct=yes
10996 hardcode_shlibpath_var=no
10999 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11002 hardcode_direct=yes
11003 hardcode_minus_L=yes
11004 hardcode_shlibpath_var=no
11007 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11008 freebsd* | dragonfly*)
11009 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11010 hardcode_libdir_flag_spec='-R$libdir'
11011 hardcode_direct=yes
11012 hardcode_shlibpath_var=no
11016 if test "$GCC" = yes; then
11017 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'
11019 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'
11021 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11022 hardcode_libdir_separator=:
11023 hardcode_direct=yes
11025 # hardcode_minus_L: Not really in the search PATH,
11026 # but as the default location of the library.
11027 hardcode_minus_L=yes
11028 export_dynamic_flag_spec='${wl}-E'
11032 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11033 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11035 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11037 if test "$with_gnu_ld" = no; then
11038 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11039 hardcode_libdir_separator=:
11040 hardcode_direct=yes
11041 hardcode_direct_absolute=yes
11042 export_dynamic_flag_spec='${wl}-E'
11043 # hardcode_minus_L: Not really in the search PATH,
11044 # but as the default location of the library.
11045 hardcode_minus_L=yes
11050 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11053 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11056 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11059 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11065 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11068 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11072 # Older versions of the 11.00 compiler do not understand -b yet
11073 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11075 $as_echo_n "checking if $CC understands -b... " >&6; }
11076 if ${lt_cv_prog_compiler__b+:} false; then :
11077 $as_echo_n "(cached) " >&6
11079 lt_cv_prog_compiler__b=no
11080 save_LDFLAGS="$LDFLAGS"
11081 LDFLAGS="$LDFLAGS -b"
11082 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11083 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11084 # The linker can only warn and ignore the option if not recognized
11085 # So say no if there are warnings
11086 if test -s conftest.err; then
11087 # Append any errors to the config.log.
11088 cat conftest.err 1>&5
11089 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11091 if diff conftest.exp conftest.er2 >/dev/null; then
11092 lt_cv_prog_compiler__b=yes
11095 lt_cv_prog_compiler__b=yes
11099 LDFLAGS="$save_LDFLAGS"
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11103 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11105 if test x"$lt_cv_prog_compiler__b" = xyes; then
11106 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11108 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11114 if test "$with_gnu_ld" = no; then
11115 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11116 hardcode_libdir_separator=:
11121 hardcode_shlibpath_var=no
11124 hardcode_direct=yes
11125 hardcode_direct_absolute=yes
11126 export_dynamic_flag_spec='${wl}-E'
11128 # hardcode_minus_L: Not really in the search PATH,
11129 # but as the default location of the library.
11130 hardcode_minus_L=yes
11136 irix5* | irix6* | nonstopux*)
11137 if test "$GCC" = yes; then
11138 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'
11139 # Try to use the -exported_symbol ld option, if it does not
11140 # work, assume that -exports_file does not work either and
11141 # implicitly export all symbols.
11142 # This should be the same for all languages, so no per-tag cache variable.
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11144 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11145 if ${lt_cv_irix_exported_symbol+:} false; then :
11146 $as_echo_n "(cached) " >&6
11148 save_LDFLAGS="$LDFLAGS"
11149 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151 /* end confdefs.h. */
11152 int foo (void) { return 0; }
11154 if ac_fn_c_try_link "$LINENO"; then :
11155 lt_cv_irix_exported_symbol=yes
11157 lt_cv_irix_exported_symbol=no
11159 rm -f core conftest.err conftest.$ac_objext \
11160 conftest$ac_exeext conftest.$ac_ext
11161 LDFLAGS="$save_LDFLAGS"
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11164 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11165 if test "$lt_cv_irix_exported_symbol" = yes; then
11166 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'
11169 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'
11170 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'
11172 archive_cmds_need_lc='no'
11173 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11174 hardcode_libdir_separator=:
11176 link_all_deplibs=yes
11179 netbsd* | netbsdelf*-gnu)
11180 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11181 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11183 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11185 hardcode_libdir_flag_spec='-R$libdir'
11186 hardcode_direct=yes
11187 hardcode_shlibpath_var=no
11191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11192 hardcode_direct=yes
11193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11194 hardcode_libdir_separator=:
11195 hardcode_shlibpath_var=no
11202 if test -f /usr/libexec/ld.so; then
11203 hardcode_direct=yes
11204 hardcode_shlibpath_var=no
11205 hardcode_direct_absolute=yes
11206 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11207 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11208 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11209 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11210 export_dynamic_flag_spec='${wl}-E'
11213 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11215 hardcode_libdir_flag_spec='-R$libdir'
11218 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11219 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11229 hardcode_libdir_flag_spec='-L$libdir'
11230 hardcode_minus_L=yes
11231 allow_undefined_flag=unsupported
11232 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'
11233 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11237 if test "$GCC" = yes; then
11238 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11239 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'
11241 allow_undefined_flag=' -expect_unresolved \*'
11242 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'
11244 archive_cmds_need_lc='no'
11245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11246 hardcode_libdir_separator=:
11249 osf4* | osf5*) # as osf3* with the addition of -msym flag
11250 if test "$GCC" = yes; then
11251 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11252 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'
11253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11255 allow_undefined_flag=' -expect_unresolved \*'
11256 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'
11257 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~
11258 $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'
11260 # Both c and cxx compiler support -rpath directly
11261 hardcode_libdir_flag_spec='-rpath $libdir'
11263 archive_cmds_need_lc='no'
11264 hardcode_libdir_separator=:
11268 no_undefined_flag=' -z defs'
11269 if test "$GCC" = yes; then
11271 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11272 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11273 $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'
11275 case `$CC -V 2>&1` in
11278 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11279 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11280 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11284 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11285 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11286 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11290 hardcode_libdir_flag_spec='-R$libdir'
11291 hardcode_shlibpath_var=no
11293 solaris2.[0-5] | solaris2.[0-5].*) ;;
11295 # The compiler driver will combine and reorder linker options,
11296 # but understands `-z linker_flag'. GCC discards it without `$wl',
11297 # but is careful enough not to reorder.
11298 # Supported since Solaris 2.6 (maybe 2.5.1?)
11299 if test "$GCC" = yes; then
11300 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11302 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11306 link_all_deplibs=yes
11310 if test "x$host_vendor" = xsequent; then
11311 # Use $CC to link under sequent, because it throws in some extra .o
11312 # files that make .init and .fini sections work.
11313 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11315 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11317 hardcode_libdir_flag_spec='-L$libdir'
11318 hardcode_direct=yes
11319 hardcode_minus_L=yes
11320 hardcode_shlibpath_var=no
11324 case $host_vendor in
11326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11327 hardcode_direct=yes # is this really true???
11330 ## LD is ld it makes a PLAMLIB
11331 ## CC just makes a GrossModule.
11332 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11333 reload_cmds='$CC -r -o $output$reload_objs'
11337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11338 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11341 runpath_var='LD_RUN_PATH'
11342 hardcode_shlibpath_var=no
11346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11347 hardcode_shlibpath_var=no
11348 export_dynamic_flag_spec='-Bexport'
11352 if test -d /usr/nec; then
11353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11354 hardcode_shlibpath_var=no
11355 runpath_var=LD_RUN_PATH
11356 hardcode_runpath_var=yes
11361 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11362 no_undefined_flag='${wl}-z,text'
11363 archive_cmds_need_lc=no
11364 hardcode_shlibpath_var=no
11365 runpath_var='LD_RUN_PATH'
11367 if test "$GCC" = yes; then
11368 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11369 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11371 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11372 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11376 sysv5* | sco3.2v5* | sco5v6*)
11377 # Note: We can NOT use -z defs as we might desire, because we do not
11378 # link with -lc, and that would cause any symbols used from libc to
11379 # always be unresolved, which means just about no library would
11380 # ever link correctly. If we're not using GNU ld we use -z text
11381 # though, which does catch some bad symbols but isn't as heavy-handed
11383 no_undefined_flag='${wl}-z,text'
11384 allow_undefined_flag='${wl}-z,nodefs'
11385 archive_cmds_need_lc=no
11386 hardcode_shlibpath_var=no
11387 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11388 hardcode_libdir_separator=':'
11389 link_all_deplibs=yes
11390 export_dynamic_flag_spec='${wl}-Bexport'
11391 runpath_var='LD_RUN_PATH'
11393 if test "$GCC" = yes; then
11394 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11395 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11397 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11398 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11404 hardcode_libdir_flag_spec='-L$libdir'
11405 hardcode_shlibpath_var=no
11413 if test x$host_vendor = xsni; then
11415 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11416 export_dynamic_flag_spec='${wl}-Blargedynsym'
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11423 $as_echo "$ld_shlibs" >&6; }
11424 test "$ld_shlibs" = no && can_build_shared=no
11426 with_gnu_ld=$with_gnu_ld
11443 # Do we need to explicitly link libc?
11445 case "x$archive_cmds_need_lc" in
11447 # Assume -lc should be added
11448 archive_cmds_need_lc=yes
11450 if test "$enable_shared" = yes && test "$GCC" = yes; then
11451 case $archive_cmds in
11453 # FIXME: we may have to deal with multi-command sequences.
11456 # Test whether the compiler implicitly links with -lc since on some
11457 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11458 # to ld, don't add -lc before -lgcc.
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11460 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11461 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11462 $as_echo_n "(cached) " >&6
11465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11468 (eval $ac_compile) 2>&5
11470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11471 test $ac_status = 0; } 2>conftest.err; then
11474 libobjs=conftest.$ac_objext
11476 wl=$lt_prog_compiler_wl
11477 pic_flag=$lt_prog_compiler_pic
11483 lt_save_allow_undefined_flag=$allow_undefined_flag
11484 allow_undefined_flag=
11485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11486 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11489 test $ac_status = 0; }
11491 lt_cv_archive_cmds_need_lc=no
11493 lt_cv_archive_cmds_need_lc=yes
11495 allow_undefined_flag=$lt_save_allow_undefined_flag
11497 cat conftest.err 1>&5
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11503 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11504 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11663 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11665 if test "$GCC" = yes; then
11667 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11668 *) lt_awk_arg="/^libraries:/" ;;
11671 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11672 *) lt_sed_strip_eq="s,=/,/,g" ;;
11674 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11675 case $lt_search_path_spec in
11677 # if the path contains ";" then we assume it to be the separator
11678 # otherwise default to the standard path separator (i.e. ":") - it is
11679 # assumed that no part of a normal pathname contains ";" but that should
11680 # okay in the real world where ";" in dirpaths is itself problematic.
11681 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11684 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11687 # Ok, now we have the path, separated by spaces, we can step through it
11688 # and add multilib dir if necessary.
11689 lt_tmp_lt_search_path_spec=
11690 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11691 for lt_sys_path in $lt_search_path_spec; do
11692 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11693 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11695 test -d "$lt_sys_path" && \
11696 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11699 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11700 BEGIN {RS=" "; FS="/|\n";} {
11703 for (lt_i = NF; lt_i > 0; lt_i--) {
11704 if ($lt_i != "" && $lt_i != ".") {
11705 if ($lt_i == "..") {
11708 if (lt_count == 0) {
11709 lt_foo="/" $lt_i lt_foo;
11716 if (lt_foo != "") { lt_freq[lt_foo]++; }
11717 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11719 # AWK program above erroneously prepends '/' to C:/dos/paths
11722 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11723 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11725 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11727 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11729 library_names_spec=
11730 libname_spec='lib$name'
11734 postuninstall_cmds=
11738 shlibpath_overrides_runpath=unknown
11740 dynamic_linker="$host_os ld.so"
11741 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11742 need_lib_prefix=unknown
11743 hardcode_into_libs=no
11745 # when you set need_version to no, make sure it does not cause -set_version
11746 # flags to be left without arguments
11747 need_version=unknown
11751 version_type=linux # correct to gnu/linux during the next big refactor
11752 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11753 shlibpath_var=LIBPATH
11755 # AIX 3 has no versioning support, so we append a major version to the name.
11756 soname_spec='${libname}${release}${shared_ext}$major'
11760 version_type=linux # correct to gnu/linux during the next big refactor
11763 hardcode_into_libs=yes
11764 if test "$host_cpu" = ia64; then
11765 # AIX 5 supports IA64
11766 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11767 shlibpath_var=LD_LIBRARY_PATH
11769 # With GCC up to 2.95.x, collect2 would create an import file
11770 # for dependence libraries. The import file would start with
11771 # the line `#! .'. This would cause the generated library to
11772 # depend on `.', always an invalid library. This was fixed in
11773 # development snapshots of GCC prior to 3.0.
11775 aix4 | aix4.[01] | aix4.[01].*)
11776 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11778 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11781 can_build_shared=no
11785 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11786 # soname into executable. Probably we can add versioning support to
11787 # collect2, so additional links can be useful in future.
11788 if test "$aix_use_runtimelinking" = yes; then
11789 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11790 # instead of lib<name>.a to let people know that these are not
11791 # typical AIX shared libraries.
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11794 # We preserve .a as extension for shared libraries through AIX4.2
11795 # and later when we are not doing run time linking.
11796 library_names_spec='${libname}${release}.a $libname.a'
11797 soname_spec='${libname}${release}${shared_ext}$major'
11799 shlibpath_var=LIBPATH
11806 # Since July 2007 AmigaOS4 officially supports .so libraries.
11807 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811 library_names_spec='$libname.ixlibrary $libname.a'
11812 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11813 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'
11819 library_names_spec='${libname}${shared_ext}'
11820 dynamic_linker="$host_os ld.so"
11821 shlibpath_var=LIBRARY_PATH
11825 version_type=linux # correct to gnu/linux during the next big refactor
11827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11828 soname_spec='${libname}${release}${shared_ext}$major'
11829 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11830 shlibpath_var=LD_LIBRARY_PATH
11831 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11832 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11833 # the default ld.so.conf also contains /usr/contrib/lib and
11834 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11835 # libtool to hard-code these into programs
11838 cygwin* | mingw* | pw32* | cegcc*)
11839 version_type=windows
11844 case $GCC,$cc_basename in
11847 library_names_spec='$libname.dll.a'
11848 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11849 postinstall_cmds='base_file=`basename \${file}`~
11850 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11851 dldir=$destdir/`dirname \$dlpath`~
11852 test -d \$dldir || mkdir -p \$dldir~
11853 $install_prog $dir/$dlname \$dldir/$dlname~
11854 chmod a+x \$dldir/$dlname~
11855 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11856 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11858 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11859 dlpath=$dir/\$dldll~
11861 shlibpath_overrides_runpath=yes
11865 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11866 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11868 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11871 # MinGW DLLs use traditional 'lib' prefix
11872 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11875 # pw32 DLLs use 'pw' prefix rather than 'lib'
11876 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11879 dynamic_linker='Win32 ld.exe'
11884 libname_spec='$name'
11885 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11886 library_names_spec='${libname}.dll.lib'
11890 sys_lib_search_path_spec=
11893 for lt_path in $LIB
11896 # Let DOS variable expansion print the short 8.3 style file name.
11897 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11898 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11901 # Convert to MSYS style.
11902 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11905 # Convert to unix form, then to dos form, then back to unix form
11906 # but this time dos style (no spaces!) so that the unix form looks
11907 # like /cygdrive/c/PROGRA~1:/cygdr...
11908 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11909 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11910 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11913 sys_lib_search_path_spec="$LIB"
11914 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11915 # It is most probably a Windows format PATH.
11916 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11918 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11920 # FIXME: find the short name or the path components, as spaces are
11921 # common. (e.g. "Program Files" -> "PROGRA~1")
11925 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11926 postinstall_cmds='base_file=`basename \${file}`~
11927 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11928 dldir=$destdir/`dirname \$dlpath`~
11929 test -d \$dldir || mkdir -p \$dldir~
11930 $install_prog $dir/$dlname \$dldir/$dlname'
11931 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11932 dlpath=$dir/\$dldll~
11934 shlibpath_overrides_runpath=yes
11935 dynamic_linker='Win32 link.exe'
11939 # Assume MSVC wrapper
11940 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11941 dynamic_linker='Win32 ld.exe'
11944 # FIXME: first we should search . and the directory the executable is in
11948 darwin* | rhapsody*)
11949 dynamic_linker="$host_os dyld"
11950 version_type=darwin
11953 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11954 soname_spec='${libname}${release}${major}$shared_ext'
11955 shlibpath_overrides_runpath=yes
11956 shlibpath_var=DYLD_LIBRARY_PATH
11957 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11959 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11960 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11964 version_type=linux # correct to gnu/linux during the next big refactor
11967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11968 soname_spec='${libname}${release}${shared_ext}$major'
11969 shlibpath_var=LD_LIBRARY_PATH
11972 freebsd* | dragonfly*)
11973 # DragonFly does not have aout. When/if they implement a new
11974 # versioning mechanism, adjust this.
11975 if test -x /usr/bin/objformat; then
11976 objformat=`/usr/bin/objformat`
11979 freebsd[23].*) objformat=aout ;;
11980 *) objformat=elf ;;
11983 version_type=freebsd-$objformat
11984 case $version_type in
11986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11995 shlibpath_var=LD_LIBRARY_PATH
11998 shlibpath_overrides_runpath=yes
12000 freebsd3.[01]* | freebsdelf3.[01]*)
12001 shlibpath_overrides_runpath=yes
12002 hardcode_into_libs=yes
12004 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12005 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12006 shlibpath_overrides_runpath=no
12007 hardcode_into_libs=yes
12009 *) # from 4.6 on, and DragonFly
12010 shlibpath_overrides_runpath=yes
12011 hardcode_into_libs=yes
12017 version_type=linux # correct to gnu/linux during the next big refactor
12020 dynamic_linker="$host_os runtime_loader"
12021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12022 soname_spec='${libname}${release}${shared_ext}$major'
12023 shlibpath_var=LIBRARY_PATH
12024 shlibpath_overrides_runpath=yes
12025 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12026 hardcode_into_libs=yes
12029 hpux9* | hpux10* | hpux11*)
12030 # Give a soname corresponding to the major version so that dld.sl refuses to
12031 # link against other versions.
12038 hardcode_into_libs=yes
12039 dynamic_linker="$host_os dld.so"
12040 shlibpath_var=LD_LIBRARY_PATH
12041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12043 soname_spec='${libname}${release}${shared_ext}$major'
12044 if test "X$HPUX_IA64_MODE" = X32; then
12045 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12047 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12053 hardcode_into_libs=yes
12054 dynamic_linker="$host_os dld.sl"
12055 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12058 soname_spec='${libname}${release}${shared_ext}$major'
12059 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12064 dynamic_linker="$host_os dld.sl"
12065 shlibpath_var=SHLIB_PATH
12066 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12068 soname_spec='${libname}${release}${shared_ext}$major'
12071 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12072 postinstall_cmds='chmod 555 $lib'
12073 # or fails outright, so override atomically:
12074 install_override_mode=555
12078 version_type=linux # correct to gnu/linux during the next big refactor
12081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12082 soname_spec='${libname}${release}${shared_ext}$major'
12083 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12084 shlibpath_var=LD_LIBRARY_PATH
12085 shlibpath_overrides_runpath=no
12086 hardcode_into_libs=yes
12089 irix5* | irix6* | nonstopux*)
12091 nonstopux*) version_type=nonstopux ;;
12093 if test "$lt_cv_prog_gnu_ld" = yes; then
12094 version_type=linux # correct to gnu/linux during the next big refactor
12101 soname_spec='${libname}${release}${shared_ext}$major'
12102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12104 irix5* | nonstopux*)
12105 libsuff= shlibsuff=
12108 case $LD in # libtool.m4 will add one of these switches to LD
12109 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12110 libsuff= shlibsuff= libmagic=32-bit;;
12111 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12112 libsuff=32 shlibsuff=N32 libmagic=N32;;
12113 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12114 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12115 *) libsuff= shlibsuff= libmagic=never-match;;
12119 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12120 shlibpath_overrides_runpath=no
12121 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12122 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12123 hardcode_into_libs=yes
12126 # No shared lib support for Linux oldld, aout, or coff.
12127 linux*oldld* | linux*aout* | linux*coff*)
12131 # This must be glibc/ELF.
12132 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12133 version_type=linux # correct to gnu/linux during the next big refactor
12136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12137 soname_spec='${libname}${release}${shared_ext}$major'
12138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12139 shlibpath_var=LD_LIBRARY_PATH
12140 shlibpath_overrides_runpath=no
12142 # Some binutils ld are patched to set DT_RUNPATH
12143 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12144 $as_echo_n "(cached) " >&6
12146 lt_cv_shlibpath_overrides_runpath=no
12147 save_LDFLAGS=$LDFLAGS
12148 save_libdir=$libdir
12149 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12150 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12152 /* end confdefs.h. */
12162 if ac_fn_c_try_link "$LINENO"; then :
12163 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12164 lt_cv_shlibpath_overrides_runpath=yes
12167 rm -f core conftest.err conftest.$ac_objext \
12168 conftest$ac_exeext conftest.$ac_ext
12169 LDFLAGS=$save_LDFLAGS
12170 libdir=$save_libdir
12174 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12176 # This implies no fast_install, which is unacceptable.
12177 # Some rework will be needed to allow for fast_install
12178 # before this can be enabled.
12179 hardcode_into_libs=yes
12181 # Append ld.so.conf contents to the search path
12182 if test -f /etc/ld.so.conf; then
12183 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' ' '`
12184 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12187 # We used to test for /lib/ld.so.1 and disable shared libraries on
12188 # powerpc, because MkLinux only supported shared libraries with the
12189 # GNU dynamic linker. Since this was broken with cross compilers,
12190 # most powerpc-linux boxes support dynamic linking these days and
12191 # people can always --disable-shared, the test was removed, and we
12192 # assume the GNU/Linux dynamic linker is in use.
12193 dynamic_linker='GNU/Linux ld.so'
12200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12201 soname_spec='${libname}${release}${shared_ext}$major'
12202 shlibpath_var=LD_LIBRARY_PATH
12203 shlibpath_overrides_runpath=no
12204 hardcode_into_libs=yes
12205 dynamic_linker='NetBSD ld.elf_so'
12212 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12215 dynamic_linker='NetBSD (a.out) ld.so'
12217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12218 soname_spec='${libname}${release}${shared_ext}$major'
12219 dynamic_linker='NetBSD ld.elf_so'
12221 shlibpath_var=LD_LIBRARY_PATH
12222 shlibpath_overrides_runpath=yes
12223 hardcode_into_libs=yes
12227 version_type=linux # correct to gnu/linux during the next big refactor
12228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12229 shlibpath_var=LD_LIBRARY_PATH
12230 shlibpath_overrides_runpath=yes
12237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12238 soname_spec='${libname}${release}${shared_ext}$major'
12239 shlibpath_var=LD_LIBRARY_PATH
12240 shlibpath_overrides_runpath=no
12241 hardcode_into_libs=yes
12242 dynamic_linker='ldqnx.so'
12247 sys_lib_dlsearch_path_spec="/usr/lib"
12249 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12251 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12252 *) need_version=no ;;
12254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12256 shlibpath_var=LD_LIBRARY_PATH
12257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12259 openbsd2.[89] | openbsd2.[89].*)
12260 shlibpath_overrides_runpath=no
12263 shlibpath_overrides_runpath=yes
12267 shlibpath_overrides_runpath=yes
12272 libname_spec='$name'
12275 library_names_spec='$libname${shared_ext} $libname.a'
12276 dynamic_linker='OS/2 ld.exe'
12277 shlibpath_var=LIBPATH
12280 osf3* | osf4* | osf5*)
12284 soname_spec='${libname}${release}${shared_ext}$major'
12285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12286 shlibpath_var=LD_LIBRARY_PATH
12287 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12288 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12296 version_type=linux # correct to gnu/linux during the next big refactor
12299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12300 soname_spec='${libname}${release}${shared_ext}$major'
12301 shlibpath_var=LD_LIBRARY_PATH
12302 shlibpath_overrides_runpath=yes
12303 hardcode_into_libs=yes
12304 # ldd complains unless libraries are executable
12305 postinstall_cmds='chmod +x $lib'
12310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12311 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12312 shlibpath_var=LD_LIBRARY_PATH
12313 shlibpath_overrides_runpath=yes
12314 if test "$with_gnu_ld" = yes; then
12321 version_type=linux # correct to gnu/linux during the next big refactor
12322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12323 soname_spec='${libname}${release}${shared_ext}$major'
12324 shlibpath_var=LD_LIBRARY_PATH
12325 case $host_vendor in
12327 shlibpath_overrides_runpath=no
12329 runpath_var=LD_RUN_PATH
12337 shlibpath_overrides_runpath=no
12338 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12344 if test -d /usr/nec ;then
12345 version_type=linux # correct to gnu/linux during the next big refactor
12346 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12347 soname_spec='$libname${shared_ext}.$major'
12348 shlibpath_var=LD_LIBRARY_PATH
12352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12353 version_type=freebsd-elf
12356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12357 soname_spec='${libname}${release}${shared_ext}$major'
12358 shlibpath_var=LD_LIBRARY_PATH
12359 shlibpath_overrides_runpath=yes
12360 hardcode_into_libs=yes
12361 if test "$with_gnu_ld" = yes; then
12362 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12364 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12367 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12371 sys_lib_dlsearch_path_spec='/usr/lib'
12375 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12376 version_type=linux # correct to gnu/linux during the next big refactor
12379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12380 shlibpath_var=LD_LIBRARY_PATH
12381 shlibpath_overrides_runpath=no
12382 hardcode_into_libs=yes
12386 version_type=linux # correct to gnu/linux during the next big refactor
12387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12388 soname_spec='${libname}${release}${shared_ext}$major'
12389 shlibpath_var=LD_LIBRARY_PATH
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12397 $as_echo "$dynamic_linker" >&6; }
12398 test "$dynamic_linker" = no && can_build_shared=no
12400 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12401 if test "$GCC" = yes; then
12402 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12405 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12406 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12408 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12409 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12504 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12506 if test -n "$hardcode_libdir_flag_spec" ||
12507 test -n "$runpath_var" ||
12508 test "X$hardcode_automatic" = "Xyes" ; then
12510 # We can hardcode non-existent directories.
12511 if test "$hardcode_direct" != no &&
12512 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12513 # have to relink, otherwise we might link with an installed library
12514 # when we should be linking with a yet-to-be-installed one
12515 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12516 test "$hardcode_minus_L" != no; then
12517 # Linking always hardcodes the temporary library directory.
12518 hardcode_action=relink
12520 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12521 hardcode_action=immediate
12524 # We cannot hardcode anything, or else we can only hardcode existing
12526 hardcode_action=unsupported
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12529 $as_echo "$hardcode_action" >&6; }
12531 if test "$hardcode_action" = relink ||
12532 test "$inherit_rpath" = yes; then
12533 # Fast installation is not supported
12534 enable_fast_install=no
12535 elif test "$shlibpath_overrides_runpath" = yes ||
12536 test "$enable_shared" = no; then
12537 # Fast installation is not necessary
12538 enable_fast_install=needless
12546 if test "x$enable_dlopen" != xyes; then
12547 enable_dlopen=unknown
12548 enable_dlopen_self=unknown
12549 enable_dlopen_self_static=unknown
12556 lt_cv_dlopen="load_add_on"
12558 lt_cv_dlopen_self=yes
12561 mingw* | pw32* | cegcc*)
12562 lt_cv_dlopen="LoadLibrary"
12567 lt_cv_dlopen="dlopen"
12572 # if libdl is installed we need to link against it
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12574 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12575 if ${ac_cv_lib_dl_dlopen+:} false; then :
12576 $as_echo_n "(cached) " >&6
12578 ac_check_lib_save_LIBS=$LIBS
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12583 /* Override any GCC internal prototype to avoid an error.
12584 Use char because int might match the return type of a GCC
12585 builtin and then its argument prototype would still apply. */
12598 if ac_fn_c_try_link "$LINENO"; then :
12599 ac_cv_lib_dl_dlopen=yes
12601 ac_cv_lib_dl_dlopen=no
12603 rm -f core conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
12605 LIBS=$ac_check_lib_save_LIBS
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12608 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12609 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12613 lt_cv_dlopen="dyld"
12615 lt_cv_dlopen_self=yes
12622 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12623 if test "x$ac_cv_func_shl_load" = xyes; then :
12624 lt_cv_dlopen="shl_load"
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12627 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12628 if ${ac_cv_lib_dld_shl_load+:} false; then :
12629 $as_echo_n "(cached) " >&6
12631 ac_check_lib_save_LIBS=$LIBS
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h. */
12636 /* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply. */
12646 return shl_load ();
12651 if ac_fn_c_try_link "$LINENO"; then :
12652 ac_cv_lib_dld_shl_load=yes
12654 ac_cv_lib_dld_shl_load=no
12656 rm -f core conftest.err conftest.$ac_objext \
12657 conftest$ac_exeext conftest.$ac_ext
12658 LIBS=$ac_check_lib_save_LIBS
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12661 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12662 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12663 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12665 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12666 if test "x$ac_cv_func_dlopen" = xyes; then :
12667 lt_cv_dlopen="dlopen"
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12670 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12671 if ${ac_cv_lib_dl_dlopen+:} false; then :
12672 $as_echo_n "(cached) " >&6
12674 ac_check_lib_save_LIBS=$LIBS
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12679 /* Override any GCC internal prototype to avoid an error.
12680 Use char because int might match the return type of a GCC
12681 builtin and then its argument prototype would still apply. */
12694 if ac_fn_c_try_link "$LINENO"; then :
12695 ac_cv_lib_dl_dlopen=yes
12697 ac_cv_lib_dl_dlopen=no
12699 rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12701 LIBS=$ac_check_lib_save_LIBS
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12704 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12705 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12706 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12709 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12710 if ${ac_cv_lib_svld_dlopen+:} false; then :
12711 $as_echo_n "(cached) " >&6
12713 ac_check_lib_save_LIBS=$LIBS
12714 LIBS="-lsvld $LIBS"
12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h. */
12718 /* Override any GCC internal prototype to avoid an error.
12719 Use char because int might match the return type of a GCC
12720 builtin and then its argument prototype would still apply. */
12733 if ac_fn_c_try_link "$LINENO"; then :
12734 ac_cv_lib_svld_dlopen=yes
12736 ac_cv_lib_svld_dlopen=no
12738 rm -f core conftest.err conftest.$ac_objext \
12739 conftest$ac_exeext conftest.$ac_ext
12740 LIBS=$ac_check_lib_save_LIBS
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12743 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12744 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12748 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12749 if ${ac_cv_lib_dld_dld_link+:} false; then :
12750 $as_echo_n "(cached) " >&6
12752 ac_check_lib_save_LIBS=$LIBS
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12757 /* Override any GCC internal prototype to avoid an error.
12758 Use char because int might match the return type of a GCC
12759 builtin and then its argument prototype would still apply. */
12767 return dld_link ();
12772 if ac_fn_c_try_link "$LINENO"; then :
12773 ac_cv_lib_dld_dld_link=yes
12775 ac_cv_lib_dld_dld_link=no
12777 rm -f core conftest.err conftest.$ac_objext \
12778 conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12782 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12783 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12784 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12805 if test "x$lt_cv_dlopen" != xno; then
12811 case $lt_cv_dlopen in
12813 save_CPPFLAGS="$CPPFLAGS"
12814 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12816 save_LDFLAGS="$LDFLAGS"
12817 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12820 LIBS="$lt_cv_dlopen_libs $LIBS"
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12823 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12824 if ${lt_cv_dlopen_self+:} false; then :
12825 $as_echo_n "(cached) " >&6
12827 if test "$cross_compiling" = yes; then :
12828 lt_cv_dlopen_self=cross
12830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12831 lt_status=$lt_dlunknown
12832 cat > conftest.$ac_ext <<_LT_EOF
12833 #line $LINENO "configure"
12834 #include "confdefs.h"
12843 # define LT_DLGLOBAL RTLD_GLOBAL
12846 # define LT_DLGLOBAL DL_GLOBAL
12848 # define LT_DLGLOBAL 0
12852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12853 find out it does not work in some platform. */
12854 #ifndef LT_DLLAZY_OR_NOW
12856 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12859 # define LT_DLLAZY_OR_NOW DL_LAZY
12862 # define LT_DLLAZY_OR_NOW RTLD_NOW
12865 # define LT_DLLAZY_OR_NOW DL_NOW
12867 # define LT_DLLAZY_OR_NOW 0
12874 /* When -fvisbility=hidden is used, assume the code has been annotated
12875 correspondingly for the symbols needed. */
12876 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12877 int fnord () __attribute__((visibility("default")));
12880 int fnord () { return 42; }
12883 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12884 int status = $lt_dlunknown;
12888 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12891 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12892 else puts (dlerror ());
12894 /* dlclose (self); */
12902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12903 (eval $ac_link) 2>&5
12905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12906 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12907 (./conftest; exit; ) >&5 2>/dev/null
12909 case x$lt_status in
12910 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12911 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12912 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12915 # compilation failed
12916 lt_cv_dlopen_self=no
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12924 $as_echo "$lt_cv_dlopen_self" >&6; }
12926 if test "x$lt_cv_dlopen_self" = xyes; then
12927 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12929 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12930 if ${lt_cv_dlopen_self_static+:} false; then :
12931 $as_echo_n "(cached) " >&6
12933 if test "$cross_compiling" = yes; then :
12934 lt_cv_dlopen_self_static=cross
12936 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12937 lt_status=$lt_dlunknown
12938 cat > conftest.$ac_ext <<_LT_EOF
12939 #line $LINENO "configure"
12940 #include "confdefs.h"
12949 # define LT_DLGLOBAL RTLD_GLOBAL
12952 # define LT_DLGLOBAL DL_GLOBAL
12954 # define LT_DLGLOBAL 0
12958 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12959 find out it does not work in some platform. */
12960 #ifndef LT_DLLAZY_OR_NOW
12962 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12965 # define LT_DLLAZY_OR_NOW DL_LAZY
12968 # define LT_DLLAZY_OR_NOW RTLD_NOW
12971 # define LT_DLLAZY_OR_NOW DL_NOW
12973 # define LT_DLLAZY_OR_NOW 0
12980 /* When -fvisbility=hidden is used, assume the code has been annotated
12981 correspondingly for the symbols needed. */
12982 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12983 int fnord () __attribute__((visibility("default")));
12986 int fnord () { return 42; }
12989 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12990 int status = $lt_dlunknown;
12994 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12997 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12998 else puts (dlerror ());
13000 /* dlclose (self); */
13008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13009 (eval $ac_link) 2>&5
13011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13012 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13013 (./conftest; exit; ) >&5 2>/dev/null
13015 case x$lt_status in
13016 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13017 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13018 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13021 # compilation failed
13022 lt_cv_dlopen_self_static=no
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13030 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13033 CPPFLAGS="$save_CPPFLAGS"
13034 LDFLAGS="$save_LDFLAGS"
13039 case $lt_cv_dlopen_self in
13040 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13041 *) enable_dlopen_self=unknown ;;
13044 case $lt_cv_dlopen_self_static in
13045 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13046 *) enable_dlopen_self_static=unknown ;;
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13069 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13070 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13071 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13072 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13074 $as_echo "yes" >&6; }
13076 # FIXME - insert some real tests, host_os isn't really good enough
13079 if test -n "$STRIP" ; then
13080 striplib="$STRIP -x"
13081 old_striplib="$STRIP -S"
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13083 $as_echo "yes" >&6; }
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13086 $as_echo "no" >&6; }
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091 $as_echo "no" >&6; }
13107 # Report which library types will actually be built
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13109 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13111 $as_echo "$can_build_shared" >&6; }
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13114 $as_echo_n "checking whether to build shared libraries... " >&6; }
13115 test "$can_build_shared" = "no" && enable_shared=no
13117 # On AIX, shared libraries and static libraries use the same namespace, and
13118 # are all built from PIC.
13121 test "$enable_shared" = yes && enable_static=no
13122 if test -n "$RANLIB"; then
13123 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13124 postinstall_cmds='$RANLIB $lib'
13129 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13130 test "$enable_shared" = yes && enable_static=no
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13135 $as_echo "$enable_shared" >&6; }
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13138 $as_echo_n "checking whether to build static libraries... " >&6; }
13139 # Make sure either enable_shared or enable_static is yes.
13140 test "$enable_shared" = yes || enable_static=yes
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13142 $as_echo "$enable_static" >&6; }
13149 ac_cpp='$CPP $CPPFLAGS'
13150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13156 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13157 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13158 (test "X$CXX" != "Xg++"))) ; then
13160 ac_cpp='$CXXCPP $CPPFLAGS'
13161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13165 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13166 if test -z "$CXXCPP"; then
13167 if ${ac_cv_prog_CXXCPP+:} false; then :
13168 $as_echo_n "(cached) " >&6
13170 # Double quotes because CXXCPP needs to be expanded
13171 for CXXCPP in "$CXX -E" "/lib/cpp"
13173 ac_preproc_ok=false
13174 for ac_cxx_preproc_warn_flag in '' yes
13176 # Use a header file that comes with gcc, so configuring glibc
13177 # with a fresh cross-compiler works.
13178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13179 # <limits.h> exists even on freestanding compilers.
13180 # On the NeXT, cc -E runs the code through the compiler's parser,
13181 # not just through cpp. "Syntax error" is here to catch this case.
13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h. */
13185 # include <limits.h>
13187 # include <assert.h>
13191 if ac_fn_cxx_try_cpp "$LINENO"; then :
13194 # Broken: fails on valid input.
13197 rm -f conftest.err conftest.i conftest.$ac_ext
13199 # OK, works on sane cases. Now check whether nonexistent headers
13200 # can be detected and how.
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13203 #include <ac_nonexistent.h>
13205 if ac_fn_cxx_try_cpp "$LINENO"; then :
13206 # Broken: success on invalid input.
13209 # Passes both tests.
13213 rm -f conftest.err conftest.i conftest.$ac_ext
13216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13217 rm -f conftest.i conftest.err conftest.$ac_ext
13218 if $ac_preproc_ok; then :
13223 ac_cv_prog_CXXCPP=$CXXCPP
13226 CXXCPP=$ac_cv_prog_CXXCPP
13228 ac_cv_prog_CXXCPP=$CXXCPP
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13231 $as_echo "$CXXCPP" >&6; }
13232 ac_preproc_ok=false
13233 for ac_cxx_preproc_warn_flag in '' yes
13235 # Use a header file that comes with gcc, so configuring glibc
13236 # with a fresh cross-compiler works.
13237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13238 # <limits.h> exists even on freestanding compilers.
13239 # On the NeXT, cc -E runs the code through the compiler's parser,
13240 # not just through cpp. "Syntax error" is here to catch this case.
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13244 # include <limits.h>
13246 # include <assert.h>
13250 if ac_fn_cxx_try_cpp "$LINENO"; then :
13253 # Broken: fails on valid input.
13256 rm -f conftest.err conftest.i conftest.$ac_ext
13258 # OK, works on sane cases. Now check whether nonexistent headers
13259 # can be detected and how.
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13262 #include <ac_nonexistent.h>
13264 if ac_fn_cxx_try_cpp "$LINENO"; then :
13265 # Broken: success on invalid input.
13268 # Passes both tests.
13272 rm -f conftest.err conftest.i conftest.$ac_ext
13275 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13276 rm -f conftest.i conftest.err conftest.$ac_ext
13277 if $ac_preproc_ok; then :
13280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13282 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13283 See \`config.log' for more details" "$LINENO" 5; }
13287 ac_cpp='$CPP $CPPFLAGS'
13288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13293 _lt_caught_CXX_error=yes
13297 ac_cpp='$CXXCPP $CPPFLAGS'
13298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13302 archive_cmds_need_lc_CXX=no
13303 allow_undefined_flag_CXX=
13304 always_export_symbols_CXX=no
13305 archive_expsym_cmds_CXX=
13306 compiler_needs_object_CXX=no
13307 export_dynamic_flag_spec_CXX=
13308 hardcode_direct_CXX=no
13309 hardcode_direct_absolute_CXX=no
13310 hardcode_libdir_flag_spec_CXX=
13311 hardcode_libdir_separator_CXX=
13312 hardcode_minus_L_CXX=no
13313 hardcode_shlibpath_var_CXX=unsupported
13314 hardcode_automatic_CXX=no
13315 inherit_rpath_CXX=no
13317 module_expsym_cmds_CXX=
13318 link_all_deplibs_CXX=unknown
13319 old_archive_cmds_CXX=$old_archive_cmds
13320 reload_flag_CXX=$reload_flag
13321 reload_cmds_CXX=$reload_cmds
13322 no_undefined_flag_CXX=
13323 whole_archive_flag_spec_CXX=
13324 enable_shared_with_static_runtimes_CXX=no
13326 # Source file extension for C++ test sources.
13329 # Object file extension for compiled C++ test sources.
13333 # No sense in running all these tests if we already determined that
13334 # the CXX compiler isn't working. Some variables (like enable_shared)
13335 # are currently assumed to apply to all compilers on this platform,
13336 # and will be corrupted by setting them based on a non-working compiler.
13337 if test "$_lt_caught_CXX_error" != yes; then
13338 # Code to be used in simple compile tests
13339 lt_simple_compile_test_code="int some_variable = 0;"
13341 # Code to be used in simple link tests
13342 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13344 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13351 # If no C compiler was specified, use CC.
13354 # If no C compiler flags were specified, use CFLAGS.
13355 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13357 # Allow CC to be a program name with arguments.
13361 # save warnings/boilerplate of simple test code
13362 ac_outfile=conftest.$ac_objext
13363 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13364 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13365 _lt_compiler_boilerplate=`cat conftest.err`
13368 ac_outfile=conftest.$ac_objext
13369 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13370 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13371 _lt_linker_boilerplate=`cat conftest.err`
13375 # Allow CC to be a program name with arguments.
13377 lt_save_CFLAGS=$CFLAGS
13381 lt_save_with_gnu_ld=$with_gnu_ld
13382 lt_save_path_LD=$lt_cv_path_LD
13383 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13384 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13386 $as_unset lt_cv_prog_gnu_ld
13388 if test -n "${lt_cv_path_LDCXX+set}"; then
13389 lt_cv_path_LD=$lt_cv_path_LDCXX
13391 $as_unset lt_cv_path_LD
13393 test -z "${LDCXX+set}" || LD=$LDCXX
13398 for cc_temp in $compiler""; do
13400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13406 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13409 if test -n "$compiler"; then
13410 # We don't want -fno-exception when compiling C++ code, so set the
13411 # no_builtin_flag separately
13412 if test "$GXX" = yes; then
13413 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13415 lt_prog_compiler_no_builtin_flag_CXX=
13418 if test "$GXX" = yes; then
13419 # Set up default GNU C++ configuration
13423 # Check whether --with-gnu-ld was given.
13424 if test "${with_gnu_ld+set}" = set; then :
13425 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13431 if test "$GCC" = yes; then
13432 # Check if gcc -print-prog-name=ld gives a path.
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13434 $as_echo_n "checking for ld used by $CC... " >&6; }
13437 # gcc leaves a trailing carriage return which upsets mingw
13438 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13440 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13443 # Accept absolute paths.
13445 re_direlt='/[^/][^/]*/\.\./'
13446 # Canonicalize the pathname of ld
13447 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13448 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13449 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13451 test -z "$LD" && LD="$ac_prog"
13454 # If it fails, then pretend we aren't using GCC.
13458 # If it is relative, then search for the first ld in PATH.
13459 with_gnu_ld=unknown
13462 elif test "$with_gnu_ld" = yes; then
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13464 $as_echo_n "checking for GNU ld... " >&6; }
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13467 $as_echo_n "checking for non-GNU ld... " >&6; }
13469 if ${lt_cv_path_LD+:} false; then :
13470 $as_echo_n "(cached) " >&6
13472 if test -z "$LD"; then
13473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13474 for ac_dir in $PATH; do
13476 test -z "$ac_dir" && ac_dir=.
13477 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13478 lt_cv_path_LD="$ac_dir/$ac_prog"
13479 # Check to see if the program is GNU ld. I'd rather use --version,
13480 # but apparently some variants of GNU ld only accept -v.
13481 # Break only if it was the GNU/non-GNU ld that we prefer.
13482 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13483 *GNU* | *'with BFD'*)
13484 test "$with_gnu_ld" != no && break
13487 test "$with_gnu_ld" != yes && break
13494 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13498 LD="$lt_cv_path_LD"
13499 if test -n "$LD"; then
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13501 $as_echo "$LD" >&6; }
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504 $as_echo "no" >&6; }
13506 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13508 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13509 if ${lt_cv_prog_gnu_ld+:} false; then :
13510 $as_echo_n "(cached) " >&6
13512 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13513 case `$LD -v 2>&1 </dev/null` in
13514 *GNU* | *'with BFD'*)
13515 lt_cv_prog_gnu_ld=yes
13518 lt_cv_prog_gnu_ld=no
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13523 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13524 with_gnu_ld=$lt_cv_prog_gnu_ld
13532 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13533 # archiving commands below assume that GNU ld is being used.
13534 if test "$with_gnu_ld" = yes; then
13535 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13536 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'
13538 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13539 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13541 # If archive_cmds runs LD, not CC, wlarc should be empty
13542 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13543 # investigate it a little bit more. (MM)
13546 # ancient GNU ld didn't support --whole-archive et. al.
13547 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13548 $GREP 'no-whole-archive' > /dev/null; then
13549 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13551 whole_archive_flag_spec_CXX=
13557 # A generic and very simple default shared library creation
13558 # command for GNU C++ for the case where it uses the native
13559 # linker, instead of GNU ld. If possible, this setting should
13560 # overridden to take advantage of the native linker features on
13561 # the platform it is being used on.
13562 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13565 # Commands to make compiler produce verbose output that lists
13566 # what "hidden" libraries, object files and flags are used when
13567 # linking a shared library.
13568 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13576 # PORTME: fill in a description of your system's C++ link characteristics
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13578 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13582 # FIXME: insert proper C++ library support
13586 if test "$host_cpu" = ia64; then
13587 # On IA64, the linker does run time linking by default, so we don't
13588 # have to do anything special.
13589 aix_use_runtimelinking=no
13590 exp_sym_flag='-Bexport'
13593 aix_use_runtimelinking=no
13595 # Test if we are trying to use run time linking or normal
13596 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13597 # need to do runtime linking.
13598 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13599 for ld_flag in $LDFLAGS; do
13602 aix_use_runtimelinking=yes
13610 exp_sym_flag='-bexport'
13611 no_entry_flag='-bnoentry'
13614 # When large executables or shared objects are built, AIX ld can
13615 # have problems creating the table of contents. If linking a library
13616 # or program results in "error TOC overflow" add -mminimal-toc to
13617 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13618 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13620 archive_cmds_CXX=''
13621 hardcode_direct_CXX=yes
13622 hardcode_direct_absolute_CXX=yes
13623 hardcode_libdir_separator_CXX=':'
13624 link_all_deplibs_CXX=yes
13625 file_list_spec_CXX='${wl}-f,'
13627 if test "$GXX" = yes; then
13628 case $host_os in aix4.[012]|aix4.[012].*)
13629 # We only want to do this on AIX 4.2 and lower, the check
13630 # below for broken collect2 doesn't work under 4.3+
13631 collect2name=`${CC} -print-prog-name=collect2`
13632 if test -f "$collect2name" &&
13633 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13635 # We have reworked collect2
13638 # We have old collect2
13639 hardcode_direct_CXX=unsupported
13640 # It fails to find uninstalled libraries when the uninstalled
13641 # path is not listed in the libpath. Setting hardcode_minus_L
13642 # to unsupported forces relinking
13643 hardcode_minus_L_CXX=yes
13644 hardcode_libdir_flag_spec_CXX='-L$libdir'
13645 hardcode_libdir_separator_CXX=
13648 shared_flag='-shared'
13649 if test "$aix_use_runtimelinking" = yes; then
13650 shared_flag="$shared_flag "'${wl}-G'
13654 if test "$host_cpu" = ia64; then
13655 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13656 # chokes on -Wl,-G. The following line is correct:
13659 if test "$aix_use_runtimelinking" = yes; then
13660 shared_flag='${wl}-G'
13662 shared_flag='${wl}-bM:SRE'
13667 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13668 # It seems that -bexpall does not export symbols beginning with
13669 # underscore (_), so it is better to generate a list of symbols to
13671 always_export_symbols_CXX=yes
13672 if test "$aix_use_runtimelinking" = yes; then
13673 # Warning - without using the other runtime loading flags (-brtl),
13674 # -berok will link without error, but may produce a broken library.
13675 allow_undefined_flag_CXX='-berok'
13676 # Determine the default libpath from the value encoded in an empty
13678 if test "${lt_cv_aix_libpath+set}" = set; then
13679 aix_libpath=$lt_cv_aix_libpath
13681 if ${lt_cv_aix_libpath__CXX+:} false; then :
13682 $as_echo_n "(cached) " >&6
13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h. */
13695 if ac_fn_cxx_try_link "$LINENO"; then :
13697 lt_aix_libpath_sed='
13698 /Import File Strings/,/^$/ {
13700 s/^0 *\([^ ]*\) *$/\1/
13704 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13705 # Check for a 64-bit object if we didn't find anything.
13706 if test -z "$lt_cv_aix_libpath__CXX"; then
13707 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13710 rm -f core conftest.err conftest.$ac_objext \
13711 conftest$ac_exeext conftest.$ac_ext
13712 if test -z "$lt_cv_aix_libpath__CXX"; then
13713 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13718 aix_libpath=$lt_cv_aix_libpath__CXX
13721 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13723 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"
13725 if test "$host_cpu" = ia64; then
13726 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13727 allow_undefined_flag_CXX="-z nodefs"
13728 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"
13730 # Determine the default libpath from the value encoded in an
13731 # empty executable.
13732 if test "${lt_cv_aix_libpath+set}" = set; then
13733 aix_libpath=$lt_cv_aix_libpath
13735 if ${lt_cv_aix_libpath__CXX+:} false; then :
13736 $as_echo_n "(cached) " >&6
13738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h. */
13749 if ac_fn_cxx_try_link "$LINENO"; then :
13751 lt_aix_libpath_sed='
13752 /Import File Strings/,/^$/ {
13754 s/^0 *\([^ ]*\) *$/\1/
13758 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13759 # Check for a 64-bit object if we didn't find anything.
13760 if test -z "$lt_cv_aix_libpath__CXX"; then
13761 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13764 rm -f core conftest.err conftest.$ac_objext \
13765 conftest$ac_exeext conftest.$ac_ext
13766 if test -z "$lt_cv_aix_libpath__CXX"; then
13767 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13772 aix_libpath=$lt_cv_aix_libpath__CXX
13775 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13776 # Warning - without using the other run time loading flags,
13777 # -berok will link without error, but may produce a broken library.
13778 no_undefined_flag_CXX=' ${wl}-bernotok'
13779 allow_undefined_flag_CXX=' ${wl}-berok'
13780 if test "$with_gnu_ld" = yes; then
13781 # We only use this code for GNU lds that support --whole-archive.
13782 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13784 # Exported symbols can be pulled into shared objects from archives
13785 whole_archive_flag_spec_CXX='$convenience'
13787 archive_cmds_need_lc_CXX=yes
13788 # This is similar to how AIX traditionally builds its shared
13790 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'
13796 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13797 allow_undefined_flag_CXX=unsupported
13798 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13799 # support --undefined. This deserves some investigation. FIXME
13800 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13807 case $cc_basename in
13809 # FIXME: insert proper C++ library support
13815 cygwin* | mingw* | pw32* | cegcc*)
13816 case $GXX,$cc_basename in
13819 # hardcode_libdir_flag_spec is actually meaningless, as there is
13820 # no search path for DLLs.
13821 hardcode_libdir_flag_spec_CXX=' '
13822 allow_undefined_flag_CXX=unsupported
13823 always_export_symbols_CXX=yes
13824 file_list_spec_CXX='@'
13825 # Tell ltmain to make .lib files, not .a files.
13827 # Tell ltmain to make .dll files, not .so files.
13829 # FIXME: Setting linknames here is a bad hack.
13830 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13831 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13832 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13834 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13836 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13838 # The linker will not automatically build a static lib if we build a DLL.
13839 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13840 enable_shared_with_static_runtimes_CXX=yes
13842 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13843 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13844 lt_tool_outputfile="@TOOL_OUTPUT@"~
13845 case $lt_outputfile in
13848 lt_outputfile="$lt_outputfile.exe"
13849 lt_tool_outputfile="$lt_tool_outputfile.exe"
13852 func_to_tool_file "$lt_outputfile"~
13853 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13854 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13855 $RM "$lt_outputfile.manifest";
13860 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13861 # as there is no search path for DLLs.
13862 hardcode_libdir_flag_spec_CXX='-L$libdir'
13863 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13864 allow_undefined_flag_CXX=unsupported
13865 always_export_symbols_CXX=no
13866 enable_shared_with_static_runtimes_CXX=yes
13868 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13869 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'
13870 # If the export-symbols file already is a .def file (1st line
13871 # is EXPORTS), use it as is; otherwise, prepend...
13872 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13873 cp $export_symbols $output_objdir/$soname.def;
13875 echo EXPORTS > $output_objdir/$soname.def;
13876 cat $export_symbols >> $output_objdir/$soname.def;
13878 $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'
13885 darwin* | rhapsody*)
13888 archive_cmds_need_lc_CXX=no
13889 hardcode_direct_CXX=no
13890 hardcode_automatic_CXX=yes
13891 hardcode_shlibpath_var_CXX=unsupported
13892 if test "$lt_cv_ld_force_load" = "yes"; then
13893 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\"`'
13896 whole_archive_flag_spec_CXX=''
13898 link_all_deplibs_CXX=yes
13899 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13900 case $cc_basename in
13901 ifort*) _lt_dar_can_shared=yes ;;
13902 *) _lt_dar_can_shared=$GCC ;;
13904 if test "$_lt_dar_can_shared" = "yes"; then
13905 output_verbose_link_cmd=func_echo_all
13906 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}"
13907 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13908 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}"
13909 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}"
13910 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13911 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}"
13912 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}"
13922 case $cc_basename in
13924 # FIXME: insert proper C++ library support
13928 # Green Hills C++ Compiler
13929 # FIXME: insert proper C++ library support
13933 # FIXME: insert proper C++ library support
13940 # C++ shared libraries reported to be fairly broken before
13946 archive_cmds_need_lc_CXX=no
13949 freebsd* | dragonfly*)
13950 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13956 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13957 link_all_deplibs_CXX=yes
13961 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13962 hardcode_libdir_separator_CXX=:
13963 export_dynamic_flag_spec_CXX='${wl}-E'
13964 hardcode_direct_CXX=yes
13965 hardcode_minus_L_CXX=yes # Not in the search PATH,
13966 # but as the default
13967 # location of the library.
13969 case $cc_basename in
13971 # FIXME: insert proper C++ library support
13975 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'
13976 # Commands to make compiler produce verbose output that lists
13977 # what "hidden" libraries, object files and flags are used when
13978 # linking a shared library.
13980 # There doesn't appear to be a way to prevent this compiler from
13981 # explicitly linking system object files so we need to strip them
13982 # from the output so that they don't get included in the library
13984 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"'
13987 if test "$GXX" = yes; then
13988 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'
13990 # FIXME: insert proper C++ library support
13998 if test $with_gnu_ld = no; then
13999 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14000 hardcode_libdir_separator_CXX=:
14006 export_dynamic_flag_spec_CXX='${wl}-E'
14012 hardcode_direct_CXX=no
14013 hardcode_shlibpath_var_CXX=no
14016 hardcode_direct_CXX=yes
14017 hardcode_direct_absolute_CXX=yes
14018 hardcode_minus_L_CXX=yes # Not in the search PATH,
14019 # but as the default
14020 # location of the library.
14024 case $cc_basename in
14026 # FIXME: insert proper C++ library support
14032 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14035 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14038 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14041 # Commands to make compiler produce verbose output that lists
14042 # what "hidden" libraries, object files and flags are used when
14043 # linking a shared library.
14045 # There doesn't appear to be a way to prevent this compiler from
14046 # explicitly linking system object files so we need to strip them
14047 # from the output so that they don't get included in the library
14049 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"'
14052 if test "$GXX" = yes; then
14053 if test $with_gnu_ld = no; then
14056 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14059 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14062 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'
14067 # FIXME: insert proper C++ library support
14075 hardcode_direct_CXX=no
14076 hardcode_shlibpath_var_CXX=no
14077 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14078 export_dynamic_flag_spec_CXX='${wl}-E'
14079 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14080 # Instead, shared libraries are loaded at an image base (0x10000000 by
14081 # default) and relocated if they conflict, which is a slow very memory
14082 # consuming and fragmenting process. To avoid this, we pick a random,
14083 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14084 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14085 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'
14086 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'
14089 case $cc_basename in
14092 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'
14094 # Archives containing C++ object files must be created using
14095 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14096 # necessary to make sure instantiated templates are included
14098 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14101 if test "$GXX" = yes; then
14102 if test "$with_gnu_ld" = no; then
14103 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'
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"` -o $lib'
14108 link_all_deplibs_CXX=yes
14111 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14112 hardcode_libdir_separator_CXX=:
14113 inherit_rpath_CXX=yes
14116 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14117 case $cc_basename in
14119 # Kuck and Associates, Inc. (KAI) C++ Compiler
14121 # KCC will only create a shared library if the output file
14122 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14123 # to its proper name (with version) after linking.
14124 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'
14125 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'
14126 # Commands to make compiler produce verbose output that lists
14127 # what "hidden" libraries, object files and flags are used when
14128 # linking a shared library.
14130 # There doesn't appear to be a way to prevent this compiler from
14131 # explicitly linking system object files so we need to strip them
14132 # from the output so that they don't get included in the library
14134 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"'
14136 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14137 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14139 # Archives containing C++ object files must be created using
14140 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14141 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14146 # version 8.0 and above of icpc choke on multiply defined symbols
14147 # if we add $predep_objects and $postdep_objects, however 7.1 and
14148 # earlier do not add the objects themselves.
14149 case `$CC -V 2>&1` in
14151 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14152 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'
14154 *) # Version 8.0 or newer
14157 ia64*) tmp_idyn=' -i_dynamic';;
14159 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14160 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'
14163 archive_cmds_need_lc_CXX=no
14164 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14165 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14166 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14169 # Portland Group C++ compiler
14171 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14172 prelink_cmds_CXX='tpldir=Template.dir~
14174 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14175 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14176 old_archive_cmds_CXX='tpldir=Template.dir~
14178 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14179 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14181 archive_cmds_CXX='tpldir=Template.dir~
14183 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14184 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14185 archive_expsym_cmds_CXX='tpldir=Template.dir~
14187 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14188 $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'
14190 *) # Version 6 and above use weak symbols
14191 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14192 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'
14196 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14197 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14198 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'
14202 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14203 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'
14205 runpath_var=LD_RUN_PATH
14206 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14207 hardcode_libdir_separator_CXX=:
14209 # Commands to make compiler produce verbose output that lists
14210 # what "hidden" libraries, object files and flags are used when
14211 # linking a shared library.
14213 # There doesn't appear to be a way to prevent this compiler from
14214 # explicitly linking system object files so we need to strip them
14215 # from the output so that they don't get included in the library
14217 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'
14219 xl* | mpixl* | bgxl*)
14220 # IBM XL 8.0 on PPC, with GNU ld
14221 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14222 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14223 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14224 if test "x$supports_anon_versioning" = xyes; then
14225 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14226 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14227 echo "local: *; };" >> $output_objdir/$libname.ver~
14228 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14232 case `$CC -V 2>&1 | sed 5q` in
14235 no_undefined_flag_CXX=' -zdefs'
14236 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14237 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'
14238 hardcode_libdir_flag_spec_CXX='-R$libdir'
14239 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'
14240 compiler_needs_object_CXX=yes
14242 # Not sure whether something based on
14243 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14245 output_verbose_link_cmd='func_echo_all'
14247 # Archives containing C++ object files must be created using
14248 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14249 # necessary to make sure instantiated templates are included
14251 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14259 # FIXME: insert proper C++ library support
14264 # FIXME: insert proper C++ library support
14269 case $cc_basename in
14271 # FIXME: insert proper C++ library support
14275 # FIXME: insert proper C++ library support
14282 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14283 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14285 hardcode_libdir_flag_spec_CXX='-R$libdir'
14286 hardcode_direct_CXX=yes
14287 hardcode_shlibpath_var_CXX=no
14289 # Workaround some broken pre-1.5 toolchains
14290 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14298 # C++ shared libraries are fairly broken
14303 if test -f /usr/libexec/ld.so; then
14304 hardcode_direct_CXX=yes
14305 hardcode_shlibpath_var_CXX=no
14306 hardcode_direct_absolute_CXX=yes
14307 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14308 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14309 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14310 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14311 export_dynamic_flag_spec_CXX='${wl}-E'
14312 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14314 output_verbose_link_cmd=func_echo_all
14320 osf3* | osf4* | osf5*)
14321 case $cc_basename in
14323 # Kuck and Associates, Inc. (KAI) C++ Compiler
14325 # KCC will only create a shared library if the output file
14326 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14327 # to its proper name (with version) after linking.
14328 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'
14330 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14331 hardcode_libdir_separator_CXX=:
14333 # Archives containing C++ object files must be created using
14334 # the KAI C++ compiler.
14336 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14337 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14341 # Rational C++ 2.4.1
14342 # FIXME: insert proper C++ library support
14348 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14349 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'
14350 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14353 allow_undefined_flag_CXX=' -expect_unresolved \*'
14354 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'
14355 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14356 echo "-hidden">> $lib.exp~
14357 $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~
14359 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14363 hardcode_libdir_separator_CXX=:
14365 # Commands to make compiler produce verbose output that lists
14366 # what "hidden" libraries, object files and flags are used when
14367 # linking a shared library.
14369 # There doesn't appear to be a way to prevent this compiler from
14370 # explicitly linking system object files so we need to strip them
14371 # from the output so that they don't get included in the library
14373 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"'
14376 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14377 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14380 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'
14383 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'
14387 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14388 hardcode_libdir_separator_CXX=:
14390 # Commands to make compiler produce verbose output that lists
14391 # what "hidden" libraries, object files and flags are used when
14392 # linking a shared library.
14393 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14396 # FIXME: insert proper C++ library support
14404 # FIXME: insert proper C++ library support
14409 case $cc_basename in
14412 # FIXME: insert proper C++ library support
14417 # FIXME: insert proper C++ library support
14421 # FIXME: insert proper C++ library support
14428 case $cc_basename in
14430 # Sun C++ 4.2, 5.x and Centerline C++
14431 archive_cmds_need_lc_CXX=yes
14432 no_undefined_flag_CXX=' -zdefs'
14433 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14434 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14435 $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'
14437 hardcode_libdir_flag_spec_CXX='-R$libdir'
14438 hardcode_shlibpath_var_CXX=no
14440 solaris2.[0-5] | solaris2.[0-5].*) ;;
14442 # The compiler driver will combine and reorder linker options,
14443 # but understands `-z linker_flag'.
14444 # Supported since Solaris 2.6 (maybe 2.5.1?)
14445 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14448 link_all_deplibs_CXX=yes
14450 output_verbose_link_cmd='func_echo_all'
14452 # Archives containing C++ object files must be created using
14453 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14454 # necessary to make sure instantiated templates are included
14456 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14459 # Green Hills C++ Compiler
14460 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14462 # The C++ compiler must be used to create the archive.
14463 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14466 # GNU C++ compiler with Solaris linker
14467 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14468 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14469 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14470 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14471 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14472 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14474 # Commands to make compiler produce verbose output that lists
14475 # what "hidden" libraries, object files and flags are used when
14476 # linking a shared library.
14477 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14479 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14481 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14482 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14483 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14485 # Commands to make compiler produce verbose output that lists
14486 # what "hidden" libraries, object files and flags are used when
14487 # linking a shared library.
14488 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14491 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14493 solaris2.[0-5] | solaris2.[0-5].*) ;;
14495 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14503 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14504 no_undefined_flag_CXX='${wl}-z,text'
14505 archive_cmds_need_lc_CXX=no
14506 hardcode_shlibpath_var_CXX=no
14507 runpath_var='LD_RUN_PATH'
14509 case $cc_basename in
14511 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14512 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14515 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14516 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14521 sysv5* | sco3.2v5* | sco5v6*)
14522 # Note: We can NOT use -z defs as we might desire, because we do not
14523 # link with -lc, and that would cause any symbols used from libc to
14524 # always be unresolved, which means just about no library would
14525 # ever link correctly. If we're not using GNU ld we use -z text
14526 # though, which does catch some bad symbols but isn't as heavy-handed
14528 no_undefined_flag_CXX='${wl}-z,text'
14529 allow_undefined_flag_CXX='${wl}-z,nodefs'
14530 archive_cmds_need_lc_CXX=no
14531 hardcode_shlibpath_var_CXX=no
14532 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14533 hardcode_libdir_separator_CXX=':'
14534 link_all_deplibs_CXX=yes
14535 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14536 runpath_var='LD_RUN_PATH'
14538 case $cc_basename in
14540 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14541 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14542 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14543 '"$old_archive_cmds_CXX"
14544 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14545 '"$reload_cmds_CXX"
14548 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14549 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14555 case $cc_basename in
14557 # NonStop-UX NCC 3.20
14558 # FIXME: insert proper C++ library support
14562 # FIXME: insert proper C++ library support
14569 # FIXME: insert proper C++ library support
14574 # FIXME: insert proper C++ library support
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14580 $as_echo "$ld_shlibs_CXX" >&6; }
14581 test "$ld_shlibs_CXX" = no && can_build_shared=no
14587 ## There is no encapsulation within the following macros, do not change
14588 ## the running order or otherwise move them around unless you know exactly
14589 ## what you are doing...
14590 # Dependencies to place before and after the object being linked:
14591 predep_objects_CXX=
14592 postdep_objects_CXX=
14595 compiler_lib_search_path_CXX=
14597 cat > conftest.$ac_ext <<_LT_EOF
14601 Foo (void) { a = 0; }
14608 _lt_libdeps_save_CFLAGS=$CFLAGS
14609 case "$CC $CFLAGS " in #(
14610 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14611 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14612 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14616 (eval $ac_compile) 2>&5
14618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14619 test $ac_status = 0; }; then
14620 # Parse the compiler output and extract the necessary
14621 # objects, libraries and library flags.
14623 # Sentinel used to keep track of whether or not we are before
14624 # the conftest object file.
14625 pre_test_object_deps_done=no
14627 for p in `eval "$output_verbose_link_cmd"`; do
14628 case ${prev}${p} in
14631 # Some compilers place space between "-{L,R}" and the path.
14632 # Remove the space.
14633 if test $p = "-L" ||
14634 test $p = "-R"; then
14639 # Expand the sysroot to ease extracting the directories later.
14640 if test -z "$prev"; then
14642 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14643 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14644 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14648 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14650 if test "$pre_test_object_deps_done" = no; then
14653 # Internal compiler library paths should come after those
14654 # provided the user. The postdeps already come after the
14655 # user supplied libs so there is no need to process them.
14656 if test -z "$compiler_lib_search_path_CXX"; then
14657 compiler_lib_search_path_CXX="${prev}${p}"
14659 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14662 # The "-l" case would never come before the object being
14663 # linked, so don't bother handling this case.
14666 if test -z "$postdeps_CXX"; then
14667 postdeps_CXX="${prev}${p}"
14669 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14675 *.lto.$objext) ;; # Ignore GCC LTO objects
14677 # This assumes that the test object file only shows up
14678 # once in the compiler output.
14679 if test "$p" = "conftest.$objext"; then
14680 pre_test_object_deps_done=yes
14684 if test "$pre_test_object_deps_done" = no; then
14685 if test -z "$predep_objects_CXX"; then
14686 predep_objects_CXX="$p"
14688 predep_objects_CXX="$predep_objects_CXX $p"
14691 if test -z "$postdep_objects_CXX"; then
14692 postdep_objects_CXX="$p"
14694 postdep_objects_CXX="$postdep_objects_CXX $p"
14699 *) ;; # Ignore the rest.
14707 echo "libtool.m4: error: problem compiling CXX test program"
14710 $RM -f confest.$objext
14711 CFLAGS=$_lt_libdeps_save_CFLAGS
14713 # PORTME: override above test on systems where it is broken
14716 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14717 # hack all around it, let's just trust "g++" to DTRT.
14718 predep_objects_CXX=
14719 postdep_objects_CXX=
14724 case `$CC -V 2>&1 | sed 5q` in
14728 # The more standards-conforming stlport4 library is
14729 # incompatible with the Cstd library. Avoid specifying
14730 # it if it's in CXXFLAGS. Ignore libCrun as
14731 # -library=stlport4 depends on it.
14732 case " $CXX $CXXFLAGS " in
14733 *" -library=stlport4 "*)
14734 solaris_use_stlport4=yes
14738 if test "$solaris_use_stlport4" != yes; then
14739 postdeps_CXX='-library=Cstd -library=Crun'
14746 case $cc_basename in
14748 # The more standards-conforming stlport4 library is
14749 # incompatible with the Cstd library. Avoid specifying
14750 # it if it's in CXXFLAGS. Ignore libCrun as
14751 # -library=stlport4 depends on it.
14752 case " $CXX $CXXFLAGS " in
14753 *" -library=stlport4 "*)
14754 solaris_use_stlport4=yes
14758 # Adding this requires a known-good setup of shared libraries for
14759 # Sun compiler versions before 5.6, else PIC objects from an old
14760 # archive will be linked into the output, leading to subtle bugs.
14761 if test "$solaris_use_stlport4" != yes; then
14762 postdeps_CXX='-library=Cstd -library=Crun'
14770 case " $postdeps_CXX " in
14771 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14773 compiler_lib_search_dirs_CXX=
14774 if test -n "${compiler_lib_search_path_CXX}"; then
14775 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14808 lt_prog_compiler_wl_CXX=
14809 lt_prog_compiler_pic_CXX=
14810 lt_prog_compiler_static_CXX=
14813 # C++ specific cases for pic, static, wl, etc.
14814 if test "$GXX" = yes; then
14815 lt_prog_compiler_wl_CXX='-Wl,'
14816 lt_prog_compiler_static_CXX='-static'
14820 # All AIX code is PIC.
14821 if test "$host_cpu" = ia64; then
14822 # AIX 5 now supports IA64 processor
14823 lt_prog_compiler_static_CXX='-Bstatic'
14830 # see comment about AmigaOS4 .so support
14831 lt_prog_compiler_pic_CXX='-fPIC'
14834 # FIXME: we need at least 68020 code to build shared libraries, but
14835 # adding the `-m68020' flag to GCC prevents building anything better,
14837 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14842 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14843 # PIC is the default for these OSes.
14845 mingw* | cygwin* | os2* | pw32* | cegcc*)
14846 # This hack is so that the source file can tell whether it is being
14847 # built for inclusion in a dll (and should export symbols for example).
14848 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14849 # (--disable-auto-import) libraries
14850 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14852 darwin* | rhapsody*)
14853 # PIC is the default on this platform
14854 # Common symbols not allowed in MH_DYLIB files
14855 lt_prog_compiler_pic_CXX='-fno-common'
14858 # DJGPP does not support shared libraries at all
14859 lt_prog_compiler_pic_CXX=
14862 # PIC is the default for Haiku.
14863 # The "-static" flag exists, but is broken.
14864 lt_prog_compiler_static_CXX=
14867 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14868 # Instead, we relocate shared libraries at runtime.
14871 if test -d /usr/nec; then
14872 lt_prog_compiler_pic_CXX=-Kconform_pic
14876 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14877 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14878 # sets the default TLS model and affects inlining.
14883 lt_prog_compiler_pic_CXX='-fPIC'
14888 # QNX uses GNU C++, but need to define -shared option too, otherwise
14889 # it will coredump.
14890 lt_prog_compiler_pic_CXX='-fPIC -shared'
14893 lt_prog_compiler_pic_CXX='-fPIC'
14899 # All AIX code is PIC.
14900 if test "$host_cpu" = ia64; then
14901 # AIX 5 now supports IA64 processor
14902 lt_prog_compiler_static_CXX='-Bstatic'
14904 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14908 case $cc_basename in
14910 # Green Hills C++ Compiler
14911 # _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"
14915 mingw* | cygwin* | os2* | pw32* | cegcc*)
14916 # This hack is so that the source file can tell whether it is being
14917 # built for inclusion in a dll (and should export symbols for example).
14918 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14921 case $cc_basename in
14923 lt_prog_compiler_pic_CXX='-KPIC'
14926 # Green Hills C++ Compiler
14927 lt_prog_compiler_pic_CXX='-pic'
14933 freebsd* | dragonfly*)
14934 # FreeBSD uses GNU C++
14936 hpux9* | hpux10* | hpux11*)
14937 case $cc_basename in
14939 lt_prog_compiler_wl_CXX='-Wl,'
14940 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14941 if test "$host_cpu" != ia64; then
14942 lt_prog_compiler_pic_CXX='+Z'
14946 lt_prog_compiler_wl_CXX='-Wl,'
14947 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14953 lt_prog_compiler_pic_CXX='+Z'
14962 # This is c89, which is MS Visual C++ (no shared libs)
14963 # Anyone wants to do a port?
14965 irix5* | irix6* | nonstopux*)
14966 case $cc_basename in
14968 lt_prog_compiler_wl_CXX='-Wl,'
14969 lt_prog_compiler_static_CXX='-non_shared'
14970 # CC pic flag -KPIC is the default.
14976 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14977 case $cc_basename in
14980 lt_prog_compiler_wl_CXX='--backend -Wl,'
14981 lt_prog_compiler_pic_CXX='-fPIC'
14984 # old Intel C++ for x86_64 which still supported -KPIC.
14985 lt_prog_compiler_wl_CXX='-Wl,'
14986 lt_prog_compiler_pic_CXX='-KPIC'
14987 lt_prog_compiler_static_CXX='-static'
14990 # Intel C++, used to be incompatible with GCC.
14991 # ICC 10 doesn't accept -KPIC any more.
14992 lt_prog_compiler_wl_CXX='-Wl,'
14993 lt_prog_compiler_pic_CXX='-fPIC'
14994 lt_prog_compiler_static_CXX='-static'
14997 # Portland Group C++ compiler
14998 lt_prog_compiler_wl_CXX='-Wl,'
14999 lt_prog_compiler_pic_CXX='-fpic'
15000 lt_prog_compiler_static_CXX='-Bstatic'
15004 # Make sure the PIC flag is empty. It appears that all Alpha
15005 # Linux and Compaq Tru64 Unix objects are PIC.
15006 lt_prog_compiler_pic_CXX=
15007 lt_prog_compiler_static_CXX='-non_shared'
15009 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15010 # IBM XL 8.0, 9.0 on PPC and BlueGene
15011 lt_prog_compiler_wl_CXX='-Wl,'
15012 lt_prog_compiler_pic_CXX='-qpic'
15013 lt_prog_compiler_static_CXX='-qstaticlink'
15016 case `$CC -V 2>&1 | sed 5q` in
15019 lt_prog_compiler_pic_CXX='-KPIC'
15020 lt_prog_compiler_static_CXX='-Bstatic'
15021 lt_prog_compiler_wl_CXX='-Qoption ld '
15032 case $cc_basename in
15034 lt_prog_compiler_pic_CXX='-W c,exportall'
15040 netbsd* | netbsdelf*-gnu)
15043 # QNX uses GNU C++, but need to define -shared option too, otherwise
15044 # it will coredump.
15045 lt_prog_compiler_pic_CXX='-fPIC -shared'
15047 osf3* | osf4* | osf5*)
15048 case $cc_basename in
15050 lt_prog_compiler_wl_CXX='--backend -Wl,'
15053 # Rational C++ 2.4.1
15054 lt_prog_compiler_pic_CXX='-pic'
15057 # Digital/Compaq C++
15058 lt_prog_compiler_wl_CXX='-Wl,'
15059 # Make sure the PIC flag is empty. It appears that all Alpha
15060 # Linux and Compaq Tru64 Unix objects are PIC.
15061 lt_prog_compiler_pic_CXX=
15062 lt_prog_compiler_static_CXX='-non_shared'
15071 case $cc_basename in
15073 # Sun C++ 4.2, 5.x and Centerline C++
15074 lt_prog_compiler_pic_CXX='-KPIC'
15075 lt_prog_compiler_static_CXX='-Bstatic'
15076 lt_prog_compiler_wl_CXX='-Qoption ld '
15079 # Green Hills C++ Compiler
15080 lt_prog_compiler_pic_CXX='-PIC'
15087 case $cc_basename in
15090 lt_prog_compiler_pic_CXX='-pic'
15091 lt_prog_compiler_static_CXX='-Bstatic'
15095 lt_prog_compiler_pic_CXX='-pic'
15101 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15102 case $cc_basename in
15104 lt_prog_compiler_wl_CXX='-Wl,'
15105 lt_prog_compiler_pic_CXX='-KPIC'
15106 lt_prog_compiler_static_CXX='-Bstatic'
15111 case $cc_basename in
15113 # NonStop-UX NCC 3.20
15114 lt_prog_compiler_pic_CXX='-KPIC'
15123 lt_prog_compiler_can_build_shared_CXX=no
15129 # For platforms which do not support PIC, -DPIC is meaningless:
15131 lt_prog_compiler_pic_CXX=
15134 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15139 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15140 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15141 $as_echo_n "(cached) " >&6
15143 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15146 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15147 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15150 # Check to make sure the PIC flag actually works.
15152 if test -n "$lt_prog_compiler_pic_CXX"; then
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15154 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15155 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15156 $as_echo_n "(cached) " >&6
15158 lt_cv_prog_compiler_pic_works_CXX=no
15159 ac_outfile=conftest.$ac_objext
15160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15161 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15162 # Insert the option either (1) after the last *FLAGS variable, or
15163 # (2) before a word containing "conftest.", or (3) at the end.
15164 # Note that $ac_compile itself does not contain backslashes and begins
15165 # with a dollar sign (not a hyphen), so the echo should work correctly.
15166 # The option is referenced via a variable to avoid confusing sed.
15167 lt_compile=`echo "$ac_compile" | $SED \
15168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15170 -e 's:$: $lt_compiler_flag:'`
15171 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15172 (eval "$lt_compile" 2>conftest.err)
15174 cat conftest.err >&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 if (exit $ac_status) && test -s "$ac_outfile"; then
15177 # The compiler can only warn and ignore the option if not recognized
15178 # So say no if there are warnings other than the usual output.
15179 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15181 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15182 lt_cv_prog_compiler_pic_works_CXX=yes
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15189 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15191 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15192 case $lt_prog_compiler_pic_CXX in
15194 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15197 lt_prog_compiler_pic_CXX=
15198 lt_prog_compiler_can_build_shared_CXX=no
15208 # Check to make sure the static flag actually works.
15210 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15212 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15213 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15214 $as_echo_n "(cached) " >&6
15216 lt_cv_prog_compiler_static_works_CXX=no
15217 save_LDFLAGS="$LDFLAGS"
15218 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15219 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15220 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15221 # The linker can only warn and ignore the option if not recognized
15222 # So say no if there are warnings
15223 if test -s conftest.err; then
15224 # Append any errors to the config.log.
15225 cat conftest.err 1>&5
15226 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15228 if diff conftest.exp conftest.er2 >/dev/null; then
15229 lt_cv_prog_compiler_static_works_CXX=yes
15232 lt_cv_prog_compiler_static_works_CXX=yes
15236 LDFLAGS="$save_LDFLAGS"
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15240 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15242 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15245 lt_prog_compiler_static_CXX=
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15252 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15253 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15254 $as_echo_n "(cached) " >&6
15256 lt_cv_prog_compiler_c_o_CXX=no
15257 $RM -r conftest 2>/dev/null
15261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15263 lt_compiler_flag="-o out/conftest2.$ac_objext"
15264 # Insert the option either (1) after the last *FLAGS variable, or
15265 # (2) before a word containing "conftest.", or (3) at the end.
15266 # Note that $ac_compile itself does not contain backslashes and begins
15267 # with a dollar sign (not a hyphen), so the echo should work correctly.
15268 lt_compile=`echo "$ac_compile" | $SED \
15269 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15271 -e 's:$: $lt_compiler_flag:'`
15272 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15273 (eval "$lt_compile" 2>out/conftest.err)
15275 cat out/conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15279 # The compiler can only warn and ignore the option if not recognized
15280 # So say no if there are warnings
15281 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15282 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15283 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15284 lt_cv_prog_compiler_c_o_CXX=yes
15289 # SGI C++ compiler will create directory out/ii_files/ for
15290 # template instantiation
15291 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15292 $RM out/* && rmdir out
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15299 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15304 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15305 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15306 $as_echo_n "(cached) " >&6
15308 lt_cv_prog_compiler_c_o_CXX=no
15309 $RM -r conftest 2>/dev/null
15313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15315 lt_compiler_flag="-o out/conftest2.$ac_objext"
15316 # Insert the option either (1) after the last *FLAGS variable, or
15317 # (2) before a word containing "conftest.", or (3) at the end.
15318 # Note that $ac_compile itself does not contain backslashes and begins
15319 # with a dollar sign (not a hyphen), so the echo should work correctly.
15320 lt_compile=`echo "$ac_compile" | $SED \
15321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15323 -e 's:$: $lt_compiler_flag:'`
15324 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15325 (eval "$lt_compile" 2>out/conftest.err)
15327 cat out/conftest.err >&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15331 # The compiler can only warn and ignore the option if not recognized
15332 # So say no if there are warnings
15333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15334 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15335 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15336 lt_cv_prog_compiler_c_o_CXX=yes
15341 # SGI C++ compiler will create directory out/ii_files/ for
15342 # template instantiation
15343 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15344 $RM out/* && rmdir out
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15351 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15356 hard_links="nottested"
15357 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15358 # do not overwrite the value of need_locks provided by the user
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15360 $as_echo_n "checking if we can lock with hard links... " >&6; }
15363 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15365 ln conftest.a conftest.b 2>&5 || hard_links=no
15366 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15368 $as_echo "$hard_links" >&6; }
15369 if test "$hard_links" = no; then
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15371 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15381 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15383 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15384 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15387 # If we're using GNU nm, then we don't want the "-C" option.
15388 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15389 # Also, AIX nm treats weak defined symbols like other global defined
15390 # symbols, whereas GNU nm marks them as "W".
15391 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15392 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'
15394 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'
15398 export_symbols_cmds_CXX="$ltdll_cmds"
15400 cygwin* | mingw* | cegcc*)
15401 case $cc_basename in
15403 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15406 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'
15407 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15411 linux* | k*bsd*-gnu | gnu*)
15412 link_all_deplibs_CXX=no
15415 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15420 $as_echo "$ld_shlibs_CXX" >&6; }
15421 test "$ld_shlibs_CXX" = no && can_build_shared=no
15423 with_gnu_ld_CXX=$with_gnu_ld
15431 # Do we need to explicitly link libc?
15433 case "x$archive_cmds_need_lc_CXX" in
15435 # Assume -lc should be added
15436 archive_cmds_need_lc_CXX=yes
15438 if test "$enable_shared" = yes && test "$GCC" = yes; then
15439 case $archive_cmds_CXX in
15441 # FIXME: we may have to deal with multi-command sequences.
15444 # Test whether the compiler implicitly links with -lc since on some
15445 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15446 # to ld, don't add -lc before -lgcc.
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15448 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15449 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15450 $as_echo_n "(cached) " >&6
15453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15456 (eval $ac_compile) 2>&5
15458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15459 test $ac_status = 0; } 2>conftest.err; then
15462 libobjs=conftest.$ac_objext
15464 wl=$lt_prog_compiler_wl_CXX
15465 pic_flag=$lt_prog_compiler_pic_CXX
15471 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15472 allow_undefined_flag_CXX=
15473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15474 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15477 test $ac_status = 0; }
15479 lt_cv_archive_cmds_need_lc_CXX=no
15481 lt_cv_archive_cmds_need_lc_CXX=yes
15483 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15485 cat conftest.err 1>&5
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15491 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15492 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15561 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15563 library_names_spec=
15564 libname_spec='lib$name'
15568 postuninstall_cmds=
15572 shlibpath_overrides_runpath=unknown
15574 dynamic_linker="$host_os ld.so"
15575 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15576 need_lib_prefix=unknown
15577 hardcode_into_libs=no
15579 # when you set need_version to no, make sure it does not cause -set_version
15580 # flags to be left without arguments
15581 need_version=unknown
15585 version_type=linux # correct to gnu/linux during the next big refactor
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15587 shlibpath_var=LIBPATH
15589 # AIX 3 has no versioning support, so we append a major version to the name.
15590 soname_spec='${libname}${release}${shared_ext}$major'
15594 version_type=linux # correct to gnu/linux during the next big refactor
15597 hardcode_into_libs=yes
15598 if test "$host_cpu" = ia64; then
15599 # AIX 5 supports IA64
15600 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15601 shlibpath_var=LD_LIBRARY_PATH
15603 # With GCC up to 2.95.x, collect2 would create an import file
15604 # for dependence libraries. The import file would start with
15605 # the line `#! .'. This would cause the generated library to
15606 # depend on `.', always an invalid library. This was fixed in
15607 # development snapshots of GCC prior to 3.0.
15609 aix4 | aix4.[01] | aix4.[01].*)
15610 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15612 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15615 can_build_shared=no
15619 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15620 # soname into executable. Probably we can add versioning support to
15621 # collect2, so additional links can be useful in future.
15622 if test "$aix_use_runtimelinking" = yes; then
15623 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15624 # instead of lib<name>.a to let people know that these are not
15625 # typical AIX shared libraries.
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628 # We preserve .a as extension for shared libraries through AIX4.2
15629 # and later when we are not doing run time linking.
15630 library_names_spec='${libname}${release}.a $libname.a'
15631 soname_spec='${libname}${release}${shared_ext}$major'
15633 shlibpath_var=LIBPATH
15640 # Since July 2007 AmigaOS4 officially supports .so libraries.
15641 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645 library_names_spec='$libname.ixlibrary $libname.a'
15646 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15647 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'
15653 library_names_spec='${libname}${shared_ext}'
15654 dynamic_linker="$host_os ld.so"
15655 shlibpath_var=LIBRARY_PATH
15659 version_type=linux # correct to gnu/linux during the next big refactor
15661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15662 soname_spec='${libname}${release}${shared_ext}$major'
15663 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15664 shlibpath_var=LD_LIBRARY_PATH
15665 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15666 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15667 # the default ld.so.conf also contains /usr/contrib/lib and
15668 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15669 # libtool to hard-code these into programs
15672 cygwin* | mingw* | pw32* | cegcc*)
15673 version_type=windows
15678 case $GCC,$cc_basename in
15681 library_names_spec='$libname.dll.a'
15682 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15683 postinstall_cmds='base_file=`basename \${file}`~
15684 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15685 dldir=$destdir/`dirname \$dlpath`~
15686 test -d \$dldir || mkdir -p \$dldir~
15687 $install_prog $dir/$dlname \$dldir/$dlname~
15688 chmod a+x \$dldir/$dlname~
15689 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15690 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15692 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15693 dlpath=$dir/\$dldll~
15695 shlibpath_overrides_runpath=yes
15699 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15700 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15704 # MinGW DLLs use traditional 'lib' prefix
15705 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15708 # pw32 DLLs use 'pw' prefix rather than 'lib'
15709 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15712 dynamic_linker='Win32 ld.exe'
15717 libname_spec='$name'
15718 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15719 library_names_spec='${libname}.dll.lib'
15723 sys_lib_search_path_spec=
15726 for lt_path in $LIB
15729 # Let DOS variable expansion print the short 8.3 style file name.
15730 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15731 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15734 # Convert to MSYS style.
15735 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15738 # Convert to unix form, then to dos form, then back to unix form
15739 # but this time dos style (no spaces!) so that the unix form looks
15740 # like /cygdrive/c/PROGRA~1:/cygdr...
15741 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15742 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15743 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15746 sys_lib_search_path_spec="$LIB"
15747 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15748 # It is most probably a Windows format PATH.
15749 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15751 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15753 # FIXME: find the short name or the path components, as spaces are
15754 # common. (e.g. "Program Files" -> "PROGRA~1")
15758 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15759 postinstall_cmds='base_file=`basename \${file}`~
15760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15761 dldir=$destdir/`dirname \$dlpath`~
15762 test -d \$dldir || mkdir -p \$dldir~
15763 $install_prog $dir/$dlname \$dldir/$dlname'
15764 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15765 dlpath=$dir/\$dldll~
15767 shlibpath_overrides_runpath=yes
15768 dynamic_linker='Win32 link.exe'
15772 # Assume MSVC wrapper
15773 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15774 dynamic_linker='Win32 ld.exe'
15777 # FIXME: first we should search . and the directory the executable is in
15781 darwin* | rhapsody*)
15782 dynamic_linker="$host_os dyld"
15783 version_type=darwin
15786 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15787 soname_spec='${libname}${release}${major}$shared_ext'
15788 shlibpath_overrides_runpath=yes
15789 shlibpath_var=DYLD_LIBRARY_PATH
15790 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15792 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15796 version_type=linux # correct to gnu/linux during the next big refactor
15799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15800 soname_spec='${libname}${release}${shared_ext}$major'
15801 shlibpath_var=LD_LIBRARY_PATH
15804 freebsd* | dragonfly*)
15805 # DragonFly does not have aout. When/if they implement a new
15806 # versioning mechanism, adjust this.
15807 if test -x /usr/bin/objformat; then
15808 objformat=`/usr/bin/objformat`
15811 freebsd[23].*) objformat=aout ;;
15812 *) objformat=elf ;;
15815 version_type=freebsd-$objformat
15816 case $version_type in
15818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15823 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15827 shlibpath_var=LD_LIBRARY_PATH
15830 shlibpath_overrides_runpath=yes
15832 freebsd3.[01]* | freebsdelf3.[01]*)
15833 shlibpath_overrides_runpath=yes
15834 hardcode_into_libs=yes
15836 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15837 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15838 shlibpath_overrides_runpath=no
15839 hardcode_into_libs=yes
15841 *) # from 4.6 on, and DragonFly
15842 shlibpath_overrides_runpath=yes
15843 hardcode_into_libs=yes
15849 version_type=linux # correct to gnu/linux during the next big refactor
15852 dynamic_linker="$host_os runtime_loader"
15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15854 soname_spec='${libname}${release}${shared_ext}$major'
15855 shlibpath_var=LIBRARY_PATH
15856 shlibpath_overrides_runpath=yes
15857 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15858 hardcode_into_libs=yes
15861 hpux9* | hpux10* | hpux11*)
15862 # Give a soname corresponding to the major version so that dld.sl refuses to
15863 # link against other versions.
15870 hardcode_into_libs=yes
15871 dynamic_linker="$host_os dld.so"
15872 shlibpath_var=LD_LIBRARY_PATH
15873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15875 soname_spec='${libname}${release}${shared_ext}$major'
15876 if test "X$HPUX_IA64_MODE" = X32; then
15877 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15879 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15885 hardcode_into_libs=yes
15886 dynamic_linker="$host_os dld.sl"
15887 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890 soname_spec='${libname}${release}${shared_ext}$major'
15891 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15896 dynamic_linker="$host_os dld.sl"
15897 shlibpath_var=SHLIB_PATH
15898 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15900 soname_spec='${libname}${release}${shared_ext}$major'
15903 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15904 postinstall_cmds='chmod 555 $lib'
15905 # or fails outright, so override atomically:
15906 install_override_mode=555
15910 version_type=linux # correct to gnu/linux during the next big refactor
15913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15914 soname_spec='${libname}${release}${shared_ext}$major'
15915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15916 shlibpath_var=LD_LIBRARY_PATH
15917 shlibpath_overrides_runpath=no
15918 hardcode_into_libs=yes
15921 irix5* | irix6* | nonstopux*)
15923 nonstopux*) version_type=nonstopux ;;
15925 if test "$lt_cv_prog_gnu_ld" = yes; then
15926 version_type=linux # correct to gnu/linux during the next big refactor
15933 soname_spec='${libname}${release}${shared_ext}$major'
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15936 irix5* | nonstopux*)
15937 libsuff= shlibsuff=
15940 case $LD in # libtool.m4 will add one of these switches to LD
15941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15942 libsuff= shlibsuff= libmagic=32-bit;;
15943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15944 libsuff=32 shlibsuff=N32 libmagic=N32;;
15945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15946 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15947 *) libsuff= shlibsuff= libmagic=never-match;;
15951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15952 shlibpath_overrides_runpath=no
15953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15955 hardcode_into_libs=yes
15958 # No shared lib support for Linux oldld, aout, or coff.
15959 linux*oldld* | linux*aout* | linux*coff*)
15963 # This must be glibc/ELF.
15964 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15965 version_type=linux # correct to gnu/linux during the next big refactor
15968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969 soname_spec='${libname}${release}${shared_ext}$major'
15970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15971 shlibpath_var=LD_LIBRARY_PATH
15972 shlibpath_overrides_runpath=no
15974 # Some binutils ld are patched to set DT_RUNPATH
15975 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15976 $as_echo_n "(cached) " >&6
15978 lt_cv_shlibpath_overrides_runpath=no
15979 save_LDFLAGS=$LDFLAGS
15980 save_libdir=$libdir
15981 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15982 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15984 /* end confdefs.h. */
15994 if ac_fn_cxx_try_link "$LINENO"; then :
15995 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15996 lt_cv_shlibpath_overrides_runpath=yes
15999 rm -f core conftest.err conftest.$ac_objext \
16000 conftest$ac_exeext conftest.$ac_ext
16001 LDFLAGS=$save_LDFLAGS
16002 libdir=$save_libdir
16006 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16008 # This implies no fast_install, which is unacceptable.
16009 # Some rework will be needed to allow for fast_install
16010 # before this can be enabled.
16011 hardcode_into_libs=yes
16013 # Append ld.so.conf contents to the search path
16014 if test -f /etc/ld.so.conf; then
16015 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' ' '`
16016 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16019 # We used to test for /lib/ld.so.1 and disable shared libraries on
16020 # powerpc, because MkLinux only supported shared libraries with the
16021 # GNU dynamic linker. Since this was broken with cross compilers,
16022 # most powerpc-linux boxes support dynamic linking these days and
16023 # people can always --disable-shared, the test was removed, and we
16024 # assume the GNU/Linux dynamic linker is in use.
16025 dynamic_linker='GNU/Linux ld.so'
16032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16033 soname_spec='${libname}${release}${shared_ext}$major'
16034 shlibpath_var=LD_LIBRARY_PATH
16035 shlibpath_overrides_runpath=no
16036 hardcode_into_libs=yes
16037 dynamic_linker='NetBSD ld.elf_so'
16044 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16047 dynamic_linker='NetBSD (a.out) ld.so'
16049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16050 soname_spec='${libname}${release}${shared_ext}$major'
16051 dynamic_linker='NetBSD ld.elf_so'
16053 shlibpath_var=LD_LIBRARY_PATH
16054 shlibpath_overrides_runpath=yes
16055 hardcode_into_libs=yes
16059 version_type=linux # correct to gnu/linux during the next big refactor
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061 shlibpath_var=LD_LIBRARY_PATH
16062 shlibpath_overrides_runpath=yes
16069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070 soname_spec='${libname}${release}${shared_ext}$major'
16071 shlibpath_var=LD_LIBRARY_PATH
16072 shlibpath_overrides_runpath=no
16073 hardcode_into_libs=yes
16074 dynamic_linker='ldqnx.so'
16079 sys_lib_dlsearch_path_spec="/usr/lib"
16081 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16083 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16084 *) need_version=no ;;
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16088 shlibpath_var=LD_LIBRARY_PATH
16089 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16091 openbsd2.[89] | openbsd2.[89].*)
16092 shlibpath_overrides_runpath=no
16095 shlibpath_overrides_runpath=yes
16099 shlibpath_overrides_runpath=yes
16104 libname_spec='$name'
16107 library_names_spec='$libname${shared_ext} $libname.a'
16108 dynamic_linker='OS/2 ld.exe'
16109 shlibpath_var=LIBPATH
16112 osf3* | osf4* | osf5*)
16116 soname_spec='${libname}${release}${shared_ext}$major'
16117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16118 shlibpath_var=LD_LIBRARY_PATH
16119 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16120 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16128 version_type=linux # correct to gnu/linux during the next big refactor
16131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132 soname_spec='${libname}${release}${shared_ext}$major'
16133 shlibpath_var=LD_LIBRARY_PATH
16134 shlibpath_overrides_runpath=yes
16135 hardcode_into_libs=yes
16136 # ldd complains unless libraries are executable
16137 postinstall_cmds='chmod +x $lib'
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16143 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16144 shlibpath_var=LD_LIBRARY_PATH
16145 shlibpath_overrides_runpath=yes
16146 if test "$with_gnu_ld" = yes; then
16153 version_type=linux # correct to gnu/linux during the next big refactor
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16155 soname_spec='${libname}${release}${shared_ext}$major'
16156 shlibpath_var=LD_LIBRARY_PATH
16157 case $host_vendor in
16159 shlibpath_overrides_runpath=no
16161 runpath_var=LD_RUN_PATH
16169 shlibpath_overrides_runpath=no
16170 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16176 if test -d /usr/nec ;then
16177 version_type=linux # correct to gnu/linux during the next big refactor
16178 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16179 soname_spec='$libname${shared_ext}.$major'
16180 shlibpath_var=LD_LIBRARY_PATH
16184 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16185 version_type=freebsd-elf
16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16189 soname_spec='${libname}${release}${shared_ext}$major'
16190 shlibpath_var=LD_LIBRARY_PATH
16191 shlibpath_overrides_runpath=yes
16192 hardcode_into_libs=yes
16193 if test "$with_gnu_ld" = yes; then
16194 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16196 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16199 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16203 sys_lib_dlsearch_path_spec='/usr/lib'
16207 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16208 version_type=linux # correct to gnu/linux during the next big refactor
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16212 shlibpath_var=LD_LIBRARY_PATH
16213 shlibpath_overrides_runpath=no
16214 hardcode_into_libs=yes
16218 version_type=linux # correct to gnu/linux during the next big refactor
16219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220 soname_spec='${libname}${release}${shared_ext}$major'
16221 shlibpath_var=LD_LIBRARY_PATH
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16229 $as_echo "$dynamic_linker" >&6; }
16230 test "$dynamic_linker" = no && can_build_shared=no
16232 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16233 if test "$GCC" = yes; then
16234 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16237 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16238 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16240 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16241 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16282 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16283 hardcode_action_CXX=
16284 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16285 test -n "$runpath_var_CXX" ||
16286 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16288 # We can hardcode non-existent directories.
16289 if test "$hardcode_direct_CXX" != no &&
16290 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16291 # have to relink, otherwise we might link with an installed library
16292 # when we should be linking with a yet-to-be-installed one
16293 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16294 test "$hardcode_minus_L_CXX" != no; then
16295 # Linking always hardcodes the temporary library directory.
16296 hardcode_action_CXX=relink
16298 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16299 hardcode_action_CXX=immediate
16302 # We cannot hardcode anything, or else we can only hardcode existing
16304 hardcode_action_CXX=unsupported
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16307 $as_echo "$hardcode_action_CXX" >&6; }
16309 if test "$hardcode_action_CXX" = relink ||
16310 test "$inherit_rpath_CXX" = yes; then
16311 # Fast installation is not supported
16312 enable_fast_install=no
16313 elif test "$shlibpath_overrides_runpath" = yes ||
16314 test "$enable_shared" = no; then
16315 # Fast installation is not necessary
16316 enable_fast_install=needless
16325 fi # test -n "$compiler"
16328 CFLAGS=$lt_save_CFLAGS
16332 with_gnu_ld=$lt_save_with_gnu_ld
16333 lt_cv_path_LDCXX=$lt_cv_path_LD
16334 lt_cv_path_LD=$lt_save_path_LD
16335 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16336 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16337 fi # test "$_lt_caught_CXX_error" != yes
16340 ac_cpp='$CPP $CPPFLAGS'
16341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16359 ac_config_commands="$ac_config_commands libtool"
16364 # Only expand once:
16372 ac_cpp='$CPP $CPPFLAGS'
16373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16380 $as_echo_n "checking for library containing dlopen... " >&6; }
16381 if ${ac_cv_search_dlopen+:} false; then :
16382 $as_echo_n "(cached) " >&6
16384 ac_func_search_save_LIBS=$LIBS
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16388 /* Override any GCC internal prototype to avoid an error.
16389 Use char because int might match the return type of a GCC
16390 builtin and then its argument prototype would still apply. */
16403 for ac_lib in '' dl; do
16404 if test -z "$ac_lib"; then
16405 ac_res="none required"
16408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16410 if ac_fn_c_try_link "$LINENO"; then :
16411 ac_cv_search_dlopen=$ac_res
16413 rm -f core conftest.err conftest.$ac_objext \
16415 if ${ac_cv_search_dlopen+:} false; then :
16419 if ${ac_cv_search_dlopen+:} false; then :
16422 ac_cv_search_dlopen=no
16424 rm conftest.$ac_ext
16425 LIBS=$ac_func_search_save_LIBS
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16428 $as_echo "$ac_cv_search_dlopen" >&6; }
16429 ac_res=$ac_cv_search_dlopen
16430 if test "$ac_res" != no; then :
16431 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16433 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16435 if test "$ac_cv_search_dlopen" != "none required" ; then
16436 LIBADD_DLOPEN="-ldl"
16438 libltdl_cv_lib_dl_dlopen="yes"
16439 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16444 # include <dlfcn.h>
16455 if ac_fn_c_try_link "$LINENO"; then :
16457 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16459 libltdl_cv_func_dlopen="yes"
16460 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16463 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16464 if ${ac_cv_lib_svld_dlopen+:} false; then :
16465 $as_echo_n "(cached) " >&6
16467 ac_check_lib_save_LIBS=$LIBS
16468 LIBS="-lsvld $LIBS"
16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h. */
16472 /* Override any GCC internal prototype to avoid an error.
16473 Use char because int might match the return type of a GCC
16474 builtin and then its argument prototype would still apply. */
16487 if ac_fn_c_try_link "$LINENO"; then :
16488 ac_cv_lib_svld_dlopen=yes
16490 ac_cv_lib_svld_dlopen=no
16492 rm -f core conftest.err conftest.$ac_objext \
16493 conftest$ac_exeext conftest.$ac_ext
16494 LIBS=$ac_check_lib_save_LIBS
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16497 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16498 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16500 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16502 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16503 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16507 rm -f core conftest.err conftest.$ac_objext \
16508 conftest$ac_exeext conftest.$ac_ext
16511 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16513 lt_save_LIBS="$LIBS"
16514 LIBS="$LIBS $LIBADD_DLOPEN"
16515 for ac_func in dlerror
16517 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16518 if test "x$ac_cv_func_dlerror" = xyes; then :
16519 cat >>confdefs.h <<_ACEOF
16520 #define HAVE_DLERROR 1
16526 LIBS="$lt_save_LIBS"
16531 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16532 if test "x$ac_cv_func_shl_load" = xyes; then :
16534 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16536 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16539 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16540 if ${ac_cv_lib_dld_shl_load+:} false; then :
16541 $as_echo_n "(cached) " >&6
16543 ac_check_lib_save_LIBS=$LIBS
16545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546 /* end confdefs.h. */
16548 /* Override any GCC internal prototype to avoid an error.
16549 Use char because int might match the return type of a GCC
16550 builtin and then its argument prototype would still apply. */
16558 return shl_load ();
16563 if ac_fn_c_try_link "$LINENO"; then :
16564 ac_cv_lib_dld_shl_load=yes
16566 ac_cv_lib_dld_shl_load=no
16568 rm -f core conftest.err conftest.$ac_objext \
16569 conftest$ac_exeext conftest.$ac_ext
16570 LIBS=$ac_check_lib_save_LIBS
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16573 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16574 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16576 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16578 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16579 LIBADD_SHL_LOAD="-ldld"
16588 # We only want this for pre-Mac OS X 10.4.
16589 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16590 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16592 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16594 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16599 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16601 cygwin* | mingw* | os2* | pw32*)
16602 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16604 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16610 cat >>confdefs.h <<_ACEOF
16611 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16614 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16619 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16620 if ${ac_cv_lib_dld_dld_link+:} false; then :
16621 $as_echo_n "(cached) " >&6
16623 ac_check_lib_save_LIBS=$LIBS
16625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16626 /* end confdefs.h. */
16628 /* Override any GCC internal prototype to avoid an error.
16629 Use char because int might match the return type of a GCC
16630 builtin and then its argument prototype would still apply. */
16638 return dld_link ();
16643 if ac_fn_c_try_link "$LINENO"; then :
16644 ac_cv_lib_dld_dld_link=yes
16646 ac_cv_lib_dld_dld_link=no
16648 rm -f core conftest.err conftest.$ac_objext \
16649 conftest$ac_exeext conftest.$ac_ext
16650 LIBS=$ac_check_lib_save_LIBS
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16653 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16654 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16656 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16658 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16665 if test -n "$LT_DLLOADERS"
16667 for lt_loader in $LT_DLLOADERS; do
16668 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16671 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16676 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16680 ac_cpp='$CPP $CPPFLAGS'
16681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16688 if test x$use_libtool != xno; then
16689 DEFAULT_OBJECT_TYPE=".lo"
16690 DEFAULT_ARCHIVE_TYPE=".la"
16691 DEFAULT_SHARED_OBJECT_TYPE=".la"
16692 LIBTOOL="\$(LIBTOOL)"
16693 LIBTOOL_INSTALL_TARGET="libtool-install"
16694 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16695 LIBTOOL_CLEAN_TARGET="libtool-clean"
16696 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16697 FD_PLUGIN_DIR="src/plugins/fd"
16700 DEFAULT_OBJECT_TYPE=".o"
16701 DEFAULT_ARCHIVE_TYPE=".a"
16702 DEFAULT_SHARED_OBJECT_TYPE=".so"
16703 LIBTOOL="# \$(LIBTOOL)"
16704 LIBTOOL_INSTALL_TARGET=""
16705 LIBTOOL_UNINSTALL_TARGET=""
16706 LIBTOOL_CLEAN_TARGET=""
16707 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16722 # Check whether --enable-includes was given.
16723 if test "${enable_includes+set}" = set; then :
16724 enableval=$enable_includes;
16725 if test x$enableval = xyes; then
16726 install_includes=yes
16734 if test x$use_libtool != xno -a x$install_includes = xyes; then
16735 INCLUDE_INSTALL_TARGET="install-includes"
16736 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16738 INCLUDE_INSTALL_TARGET=""
16739 INCLUDE_UNINSTALL_TARGET=""
16747 *cygwin* ) CYGWIN=yes;;
16751 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16757 HAVE_SUN_OS_FALSE='#'
16759 HAVE_SUN_OS_TRUE='#'
16762 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16769 HAVE_SUN_OS_FALSE='#'
16771 HAVE_SUN_OS_TRUE='#'
16776 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16782 HAVE_HURD_OS_FALSE='#'
16784 HAVE_HURD_OS_TRUE='#'
16785 HAVE_HURD_OS_FALSE=
16787 $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16794 HAVE_HURD_OS_FALSE='#'
16796 HAVE_HURD_OS_TRUE='#'
16797 HAVE_HURD_OS_FALSE=
16801 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16807 HAVE_OSF1_OS_FALSE='#'
16809 HAVE_OSF1_OS_TRUE='#'
16810 HAVE_OSF1_OS_FALSE=
16812 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16819 HAVE_OSF1_OS_FALSE='#'
16821 HAVE_OSF1_OS_TRUE='#'
16822 HAVE_OSF1_OS_FALSE=
16826 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16832 HAVE_AIX_OS_FALSE='#'
16834 HAVE_AIX_OS_TRUE='#'
16837 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16844 HAVE_AIX_OS_FALSE='#'
16846 HAVE_AIX_OS_TRUE='#'
16851 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16857 HAVE_HPUX_OS_FALSE='#'
16859 HAVE_HPUX_OS_TRUE='#'
16860 HAVE_HPUX_OS_FALSE=
16862 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16869 HAVE_HPUX_OS_FALSE='#'
16871 HAVE_HPUX_OS_TRUE='#'
16872 HAVE_HPUX_OS_FALSE=
16876 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16881 HAVE_LINUX_OS_TRUE=
16882 HAVE_LINUX_OS_FALSE='#'
16884 HAVE_LINUX_OS_TRUE='#'
16885 HAVE_LINUX_OS_FALSE=
16887 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16893 HAVE_LINUX_OS_TRUE=
16894 HAVE_LINUX_OS_FALSE='#'
16896 HAVE_LINUX_OS_TRUE='#'
16897 HAVE_LINUX_OS_FALSE=
16901 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16906 HAVE_FREEBSD_OS_TRUE=
16907 HAVE_FREEBSD_OS_FALSE='#'
16909 HAVE_FREEBSD_OS_TRUE='#'
16910 HAVE_FREEBSD_OS_FALSE=
16912 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16918 HAVE_FREEBSD_OS_TRUE=
16919 HAVE_FREEBSD_OS_FALSE='#'
16921 HAVE_FREEBSD_OS_TRUE='#'
16922 HAVE_FREEBSD_OS_FALSE=
16926 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16931 HAVE_NETBSD_OS_TRUE=
16932 HAVE_NETBSD_OS_FALSE='#'
16934 HAVE_NETBSD_OS_TRUE='#'
16935 HAVE_NETBSD_OS_FALSE=
16937 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16943 HAVE_NETBSD_OS_TRUE=
16944 HAVE_NETBSD_OS_FALSE='#'
16946 HAVE_NETBSD_OS_TRUE='#'
16947 HAVE_NETBSD_OS_FALSE=
16951 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16956 HAVE_OPENBSD_OS_TRUE=
16957 HAVE_OPENBSD_OS_FALSE='#'
16959 HAVE_OPENBSD_OS_TRUE='#'
16960 HAVE_OPENBSD_OS_FALSE=
16962 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16968 HAVE_OPENBSD_OS_TRUE=
16969 HAVE_OPENBSD_OS_FALSE='#'
16971 HAVE_OPENBSD_OS_TRUE='#'
16972 HAVE_OPENBSD_OS_FALSE=
16976 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16982 HAVE_BSDI_OS_FALSE='#'
16984 HAVE_BSDI_OS_TRUE='#'
16985 HAVE_BSDI_OS_FALSE=
16987 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16994 HAVE_BSDI_OS_FALSE='#'
16996 HAVE_BSDI_OS_TRUE='#'
16997 HAVE_BSDI_OS_FALSE=
17001 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17007 HAVE_SGI_OS_FALSE='#'
17009 HAVE_SGI_OS_TRUE='#'
17012 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17019 HAVE_SGI_OS_FALSE='#'
17021 HAVE_SGI_OS_TRUE='#'
17026 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17032 HAVE_IRIX_OS_FALSE='#'
17034 HAVE_IRIX_OS_TRUE='#'
17035 HAVE_IRIX_OS_FALSE=
17037 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17044 HAVE_IRIX_OS_FALSE='#'
17046 HAVE_IRIX_OS_TRUE='#'
17047 HAVE_IRIX_OS_FALSE=
17051 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17056 HAVE_DARWIN_OS_TRUE=
17057 HAVE_DARWIN_OS_FALSE='#'
17059 HAVE_DARWIN_OS_TRUE='#'
17060 HAVE_DARWIN_OS_FALSE=
17062 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17068 HAVE_DARWIN_OS_TRUE=
17069 HAVE_DARWIN_OS_FALSE='#'
17071 HAVE_DARWIN_OS_TRUE='#'
17072 HAVE_DARWIN_OS_FALSE=
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17078 $as_echo_n "checking for Operating System Distribution... " >&6; }
17079 if test "x$DISTNAME" != "x"
17081 echo "distname set to $DISTNAME"
17082 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17085 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17088 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17091 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17094 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17097 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17100 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17103 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17106 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17109 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17112 elif test -f /etc/SuSE-release
17115 elif test -d /etc/SuSEconfig
17118 elif test -f /etc/mandrake-release
17121 elif test -f /etc/whitebox-release
17124 elif test -f /etc/redhat-release
17127 elif test -f /etc/gentoo-release
17130 elif test -f /etc/debian_version
17133 elif test -f /etc/slackware-version
17136 elif test x$host_vendor = xapple
17139 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17142 elif test -f /etc/engarde-version
17145 elif test -f /etc/arch-release
17148 elif test "$CYGWIN" = yes
17151 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17157 $as_echo "done" >&6; }
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17161 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17163 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17164 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17165 $as_echo_n "(cached) " >&6
17167 cat >conftest.make <<\_ACEOF
17170 @echo '@@@%%%=$(MAKE)=@@@%%%'
17172 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17173 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17174 *@@@%%%=?*=@@@%%%*)
17175 eval ac_cv_prog_make_${ac_make}_set=yes;;
17177 eval ac_cv_prog_make_${ac_make}_set=no;;
17179 rm -f conftest.make
17181 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17183 $as_echo "yes" >&6; }
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17187 $as_echo "no" >&6; }
17188 SET_MAKE="MAKE=${MAKE-make}"
17194 if test -n "$ac_aux_dir"; then
17195 case "$ac_aux_dir" in
17196 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17197 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17200 if test -z "$MKINSTALLDIRS"; then
17201 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17207 $as_echo_n "checking whether NLS is requested... " >&6; }
17208 # Check whether --enable-nls was given.
17209 if test "${enable_nls+set}" = set; then :
17210 enableval=$enable_nls; USE_NLS=$enableval
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17216 $as_echo "$USE_NLS" >&6; }
17223 # Prepare PATH_SEPARATOR.
17224 # The user is always right.
17225 if test "${PATH_SEPARATOR+set}" != set; then
17226 echo "#! /bin/sh" >conf$$.sh
17227 echo "exit 0" >>conf$$.sh
17229 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17237 # Find out how to test for executable files. Don't use a zero-byte file,
17238 # as systems may use methods other than mode bits to determine executability.
17239 cat >conf$$.file <<_ASEOF
17243 chmod +x conf$$.file
17244 if test -x conf$$.file >/dev/null 2>&1; then
17245 ac_executable_p="test -x"
17247 ac_executable_p="test -f"
17251 # Extract the first word of "msgfmt", so it can be a program name with args.
17252 set dummy msgfmt; ac_word=$2
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17254 $as_echo_n "checking for $ac_word... " >&6; }
17255 if ${ac_cv_path_MSGFMT+:} false; then :
17256 $as_echo_n "(cached) " >&6
17260 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17263 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17264 for ac_dir in $PATH; do
17266 test -z "$ac_dir" && ac_dir=.
17267 for ac_exec_ext in '' $ac_executable_extensions; do
17268 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17269 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17270 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17271 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17272 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17279 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17283 MSGFMT="$ac_cv_path_MSGFMT"
17284 if test "$MSGFMT" != ":"; then
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17286 $as_echo "$MSGFMT" >&6; }
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17289 $as_echo "no" >&6; }
17292 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17293 set dummy gmsgfmt; ac_word=$2
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17295 $as_echo_n "checking for $ac_word... " >&6; }
17296 if ${ac_cv_path_GMSGFMT+:} false; then :
17297 $as_echo_n "(cached) " >&6
17301 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17305 for as_dir in $PATH
17308 test -z "$as_dir" && as_dir=.
17309 for ac_exec_ext in '' $ac_executable_extensions; do
17310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17311 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17319 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17323 GMSGFMT=$ac_cv_path_GMSGFMT
17324 if test -n "$GMSGFMT"; then
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17326 $as_echo "$GMSGFMT" >&6; }
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17329 $as_echo "no" >&6; }
17335 # Prepare PATH_SEPARATOR.
17336 # The user is always right.
17337 if test "${PATH_SEPARATOR+set}" != set; then
17338 echo "#! /bin/sh" >conf$$.sh
17339 echo "exit 0" >>conf$$.sh
17341 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17349 # Find out how to test for executable files. Don't use a zero-byte file,
17350 # as systems may use methods other than mode bits to determine executability.
17351 cat >conf$$.file <<_ASEOF
17355 chmod +x conf$$.file
17356 if test -x conf$$.file >/dev/null 2>&1; then
17357 ac_executable_p="test -x"
17359 ac_executable_p="test -f"
17363 # Extract the first word of "xgettext", so it can be a program name with args.
17364 set dummy xgettext; ac_word=$2
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17366 $as_echo_n "checking for $ac_word... " >&6; }
17367 if ${ac_cv_path_XGETTEXT+:} false; then :
17368 $as_echo_n "(cached) " >&6
17370 case "$XGETTEXT" in
17372 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17375 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17376 for ac_dir in $PATH; do
17378 test -z "$ac_dir" && ac_dir=.
17379 for ac_exec_ext in '' $ac_executable_extensions; do
17380 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17381 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17382 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17383 (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
17384 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17391 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17395 XGETTEXT="$ac_cv_path_XGETTEXT"
17396 if test "$XGETTEXT" != ":"; then
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17398 $as_echo "$XGETTEXT" >&6; }
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17401 $as_echo "no" >&6; }
17407 # Prepare PATH_SEPARATOR.
17408 # The user is always right.
17409 if test "${PATH_SEPARATOR+set}" != set; then
17410 echo "#! /bin/sh" >conf$$.sh
17411 echo "exit 0" >>conf$$.sh
17413 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17421 # Find out how to test for executable files. Don't use a zero-byte file,
17422 # as systems may use methods other than mode bits to determine executability.
17423 cat >conf$$.file <<_ASEOF
17427 chmod +x conf$$.file
17428 if test -x conf$$.file >/dev/null 2>&1; then
17429 ac_executable_p="test -x"
17431 ac_executable_p="test -f"
17435 # Extract the first word of "msgmerge", so it can be a program name with args.
17436 set dummy msgmerge; ac_word=$2
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17438 $as_echo_n "checking for $ac_word... " >&6; }
17439 if ${ac_cv_path_MSGMERGE+:} false; then :
17440 $as_echo_n "(cached) " >&6
17442 case "$MSGMERGE" in
17444 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17447 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17448 for ac_dir in $PATH; do
17450 test -z "$ac_dir" && ac_dir=.
17451 for ac_exec_ext in '' $ac_executable_extensions; do
17452 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17453 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17454 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17455 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17462 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17466 MSGMERGE="$ac_cv_path_MSGMERGE"
17467 if test "$MSGMERGE" != ":"; then
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17469 $as_echo "$MSGMERGE" >&6; }
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17472 $as_echo "no" >&6; }
17476 if test "$GMSGFMT" != ":"; then
17477 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17478 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17481 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17483 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17488 if test "$XGETTEXT" != ":"; then
17489 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17490 (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
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17494 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17500 ac_config_commands="$ac_config_commands default-1"
17504 if test "X$prefix" = "XNONE"; then
17505 acl_final_prefix="$ac_default_prefix"
17507 acl_final_prefix="$prefix"
17509 if test "X$exec_prefix" = "XNONE"; then
17510 acl_final_exec_prefix='${prefix}'
17512 acl_final_exec_prefix="$exec_prefix"
17514 acl_save_prefix="$prefix"
17515 prefix="$acl_final_prefix"
17516 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17517 prefix="$acl_save_prefix"
17520 # Check whether --with-gnu-ld was given.
17521 if test "${with_gnu_ld+set}" = set; then :
17522 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17527 # Prepare PATH_SEPARATOR.
17528 # The user is always right.
17529 if test "${PATH_SEPARATOR+set}" != set; then
17530 echo "#! /bin/sh" >conf$$.sh
17531 echo "exit 0" >>conf$$.sh
17533 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17541 if test "$GCC" = yes; then
17542 # Check if gcc -print-prog-name=ld gives a path.
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17544 $as_echo_n "checking for ld used by GCC... " >&6; }
17547 # gcc leaves a trailing carriage return which upsets mingw
17548 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17550 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17553 # Accept absolute paths.
17554 [\\/]* | [A-Za-z]:[\\/]*)
17555 re_direlt='/[^/][^/]*/\.\./'
17556 # Canonicalize the path of ld
17557 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17558 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17559 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17561 test -z "$LD" && LD="$ac_prog"
17564 # If it fails, then pretend we aren't using GCC.
17568 # If it is relative, then search for the first ld in PATH.
17569 with_gnu_ld=unknown
17572 elif test "$with_gnu_ld" = yes; then
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17574 $as_echo_n "checking for GNU ld... " >&6; }
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17577 $as_echo_n "checking for non-GNU ld... " >&6; }
17579 if ${acl_cv_path_LD+:} false; then :
17580 $as_echo_n "(cached) " >&6
17582 if test -z "$LD"; then
17583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17584 for ac_dir in $PATH; do
17585 test -z "$ac_dir" && ac_dir=.
17586 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17587 acl_cv_path_LD="$ac_dir/$ac_prog"
17588 # Check to see if the program is GNU ld. I'd rather use --version,
17589 # but apparently some GNU ld's only accept -v.
17590 # Break only if it was the GNU/non-GNU ld that we prefer.
17591 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17592 *GNU* | *'with BFD'*)
17593 test "$with_gnu_ld" != no && break ;;
17595 test "$with_gnu_ld" != yes && break ;;
17601 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17605 LD="$acl_cv_path_LD"
17606 if test -n "$LD"; then
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17608 $as_echo "$LD" >&6; }
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17611 $as_echo "no" >&6; }
17613 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17615 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17616 if ${acl_cv_prog_gnu_ld+:} false; then :
17617 $as_echo_n "(cached) " >&6
17619 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17620 case `$LD -v 2>&1 </dev/null` in
17621 *GNU* | *'with BFD'*)
17622 acl_cv_prog_gnu_ld=yes ;;
17624 acl_cv_prog_gnu_ld=no ;;
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17628 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17629 with_gnu_ld=$acl_cv_prog_gnu_ld
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17635 $as_echo_n "checking for shared library run path origin... " >&6; }
17636 if ${acl_cv_rpath+:} false; then :
17637 $as_echo_n "(cached) " >&6
17640 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17641 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17643 rm -f ./conftest.sh
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17648 $as_echo "$acl_cv_rpath" >&6; }
17650 libext="$acl_cv_libext"
17651 shlibext="$acl_cv_shlibext"
17652 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17653 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17654 hardcode_direct="$acl_cv_hardcode_direct"
17655 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17656 # Check whether --enable-rpath was given.
17657 if test "${enable_rpath+set}" = set; then :
17658 enableval=$enable_rpath; :
17672 acl_save_prefix="$prefix"
17673 prefix="$acl_final_prefix"
17674 acl_save_exec_prefix="$exec_prefix"
17675 exec_prefix="$acl_final_exec_prefix"
17677 eval additional_includedir=\"$includedir\"
17678 eval additional_libdir=\"$libdir\"
17680 exec_prefix="$acl_save_exec_prefix"
17681 prefix="$acl_save_prefix"
17684 # Check whether --with-libiconv-prefix was given.
17685 if test "${with_libiconv_prefix+set}" = set; then :
17686 withval=$with_libiconv_prefix;
17687 if test "X$withval" = "Xno"; then
17690 if test "X$withval" = "X"; then
17692 acl_save_prefix="$prefix"
17693 prefix="$acl_final_prefix"
17694 acl_save_exec_prefix="$exec_prefix"
17695 exec_prefix="$acl_final_exec_prefix"
17697 eval additional_includedir=\"$includedir\"
17698 eval additional_libdir=\"$libdir\"
17700 exec_prefix="$acl_save_exec_prefix"
17701 prefix="$acl_save_prefix"
17704 additional_includedir="$withval/include"
17705 additional_libdir="$withval/lib"
17716 names_already_handled=
17717 names_next_round='iconv '
17718 while test -n "$names_next_round"; do
17719 names_this_round="$names_next_round"
17721 for name in $names_this_round; do
17723 for n in $names_already_handled; do
17724 if test "$n" = "$name"; then
17725 already_handled=yes
17729 if test -z "$already_handled"; then
17730 names_already_handled="$names_already_handled $name"
17731 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17732 eval value=\"\$HAVE_LIB$uppername\"
17733 if test -n "$value"; then
17734 if test "$value" = yes; then
17735 eval value=\"\$LIB$uppername\"
17736 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17737 eval value=\"\$LTLIB$uppername\"
17738 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17747 if test $use_additional = yes; then
17748 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17749 found_dir="$additional_libdir"
17750 found_so="$additional_libdir/lib$name.$shlibext"
17751 if test -f "$additional_libdir/lib$name.la"; then
17752 found_la="$additional_libdir/lib$name.la"
17755 if test -f "$additional_libdir/lib$name.$libext"; then
17756 found_dir="$additional_libdir"
17757 found_a="$additional_libdir/lib$name.$libext"
17758 if test -f "$additional_libdir/lib$name.la"; then
17759 found_la="$additional_libdir/lib$name.la"
17764 if test "X$found_dir" = "X"; then
17765 for x in $LDFLAGS $LTLIBICONV; do
17767 acl_save_prefix="$prefix"
17768 prefix="$acl_final_prefix"
17769 acl_save_exec_prefix="$exec_prefix"
17770 exec_prefix="$acl_final_exec_prefix"
17772 exec_prefix="$acl_save_exec_prefix"
17773 prefix="$acl_save_prefix"
17777 dir=`echo "X$x" | sed -e 's/^X-L//'`
17778 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17780 found_so="$dir/lib$name.$shlibext"
17781 if test -f "$dir/lib$name.la"; then
17782 found_la="$dir/lib$name.la"
17785 if test -f "$dir/lib$name.$libext"; then
17787 found_a="$dir/lib$name.$libext"
17788 if test -f "$dir/lib$name.la"; then
17789 found_la="$dir/lib$name.la"
17795 if test "X$found_dir" != "X"; then
17800 if test "X$found_dir" != "X"; then
17801 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17802 if test "X$found_so" != "X"; then
17803 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17804 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17807 for x in $ltrpathdirs; do
17808 if test "X$x" = "X$found_dir"; then
17813 if test -z "$haveit"; then
17814 ltrpathdirs="$ltrpathdirs $found_dir"
17816 if test "$hardcode_direct" = yes; then
17817 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17819 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17820 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17822 for x in $rpathdirs; do
17823 if test "X$x" = "X$found_dir"; then
17828 if test -z "$haveit"; then
17829 rpathdirs="$rpathdirs $found_dir"
17833 for x in $LDFLAGS $LIBICONV; do
17835 acl_save_prefix="$prefix"
17836 prefix="$acl_final_prefix"
17837 acl_save_exec_prefix="$exec_prefix"
17838 exec_prefix="$acl_final_exec_prefix"
17840 exec_prefix="$acl_save_exec_prefix"
17841 prefix="$acl_save_prefix"
17843 if test "X$x" = "X-L$found_dir"; then
17848 if test -z "$haveit"; then
17849 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17851 if test "$hardcode_minus_L" != no; then
17852 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17854 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17860 if test "X$found_a" != "X"; then
17861 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17863 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17866 additional_includedir=
17867 case "$found_dir" in
17869 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17870 additional_includedir="$basedir/include"
17873 if test "X$additional_includedir" != "X"; then
17874 if test "X$additional_includedir" != "X/usr/include"; then
17876 if test "X$additional_includedir" = "X/usr/local/include"; then
17877 if test -n "$GCC"; then
17879 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17883 if test -z "$haveit"; then
17884 for x in $CPPFLAGS $INCICONV; do
17886 acl_save_prefix="$prefix"
17887 prefix="$acl_final_prefix"
17888 acl_save_exec_prefix="$exec_prefix"
17889 exec_prefix="$acl_final_exec_prefix"
17891 exec_prefix="$acl_save_exec_prefix"
17892 prefix="$acl_save_prefix"
17894 if test "X$x" = "X-I$additional_includedir"; then
17899 if test -z "$haveit"; then
17900 if test -d "$additional_includedir"; then
17901 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17907 if test -n "$found_la"; then
17908 save_libdir="$libdir"
17909 case "$found_la" in
17910 */* | *\\*) . "$found_la" ;;
17911 *) . "./$found_la" ;;
17913 libdir="$save_libdir"
17914 for dep in $dependency_libs; do
17917 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17918 if test "X$additional_libdir" != "X/usr/lib"; then
17920 if test "X$additional_libdir" = "X/usr/local/lib"; then
17921 if test -n "$GCC"; then
17923 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17927 if test -z "$haveit"; then
17929 for x in $LDFLAGS $LIBICONV; do
17931 acl_save_prefix="$prefix"
17932 prefix="$acl_final_prefix"
17933 acl_save_exec_prefix="$exec_prefix"
17934 exec_prefix="$acl_final_exec_prefix"
17936 exec_prefix="$acl_save_exec_prefix"
17937 prefix="$acl_save_prefix"
17939 if test "X$x" = "X-L$additional_libdir"; then
17944 if test -z "$haveit"; then
17945 if test -d "$additional_libdir"; then
17946 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17950 for x in $LDFLAGS $LTLIBICONV; do
17952 acl_save_prefix="$prefix"
17953 prefix="$acl_final_prefix"
17954 acl_save_exec_prefix="$exec_prefix"
17955 exec_prefix="$acl_final_exec_prefix"
17957 exec_prefix="$acl_save_exec_prefix"
17958 prefix="$acl_save_prefix"
17960 if test "X$x" = "X-L$additional_libdir"; then
17965 if test -z "$haveit"; then
17966 if test -d "$additional_libdir"; then
17967 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17974 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17975 if test "$enable_rpath" != no; then
17977 for x in $rpathdirs; do
17978 if test "X$x" = "X$dir"; then
17983 if test -z "$haveit"; then
17984 rpathdirs="$rpathdirs $dir"
17987 for x in $ltrpathdirs; do
17988 if test "X$x" = "X$dir"; then
17993 if test -z "$haveit"; then
17994 ltrpathdirs="$ltrpathdirs $dir"
17999 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18002 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18005 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18006 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18012 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18013 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18019 if test "X$rpathdirs" != "X"; then
18020 if test -n "$hardcode_libdir_separator"; then
18022 for found_dir in $rpathdirs; do
18023 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18025 acl_save_libdir="$libdir"
18027 eval flag=\"$hardcode_libdir_flag_spec\"
18028 libdir="$acl_save_libdir"
18029 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18031 for found_dir in $rpathdirs; do
18032 acl_save_libdir="$libdir"
18033 libdir="$found_dir"
18034 eval flag=\"$hardcode_libdir_flag_spec\"
18035 libdir="$acl_save_libdir"
18036 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18040 if test "X$ltrpathdirs" != "X"; then
18041 for found_dir in $ltrpathdirs; do
18042 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18064 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18065 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18066 $as_echo_n "(cached) " >&6
18068 gt_save_CPPFLAGS="$CPPFLAGS"
18069 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18070 gt_save_LIBS="$LIBS"
18071 LIBS="$LIBS -framework CoreFoundation"
18072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18073 /* end confdefs.h. */
18074 #include <CFPreferences.h>
18078 CFPreferencesCopyAppValue(NULL, NULL)
18083 if ac_fn_c_try_link "$LINENO"; then :
18084 gt_cv_func_CFPreferencesCopyAppValue=yes
18086 gt_cv_func_CFPreferencesCopyAppValue=no
18088 rm -f core conftest.err conftest.$ac_objext \
18089 conftest$ac_exeext conftest.$ac_ext
18090 CPPFLAGS="$gt_save_CPPFLAGS"
18091 LIBS="$gt_save_LIBS"
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18094 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18095 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18097 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18101 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18102 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18103 $as_echo_n "(cached) " >&6
18105 gt_save_CPPFLAGS="$CPPFLAGS"
18106 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18107 gt_save_LIBS="$LIBS"
18108 LIBS="$LIBS -framework CoreFoundation"
18109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110 /* end confdefs.h. */
18111 #include <CFLocale.h>
18115 CFLocaleCopyCurrent();
18120 if ac_fn_c_try_link "$LINENO"; then :
18121 gt_cv_func_CFLocaleCopyCurrent=yes
18123 gt_cv_func_CFLocaleCopyCurrent=no
18125 rm -f core conftest.err conftest.$ac_objext \
18126 conftest$ac_exeext conftest.$ac_ext
18127 CPPFLAGS="$gt_save_CPPFLAGS"
18128 LIBS="$gt_save_LIBS"
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18131 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18132 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18134 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18138 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18139 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18146 $as_echo_n "checking whether NLS is requested... " >&6; }
18147 # Check whether --enable-nls was given.
18148 if test "${enable_nls+set}" = set; then :
18149 enableval=$enable_nls; USE_NLS=$enableval
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18155 $as_echo "$USE_NLS" >&6; }
18164 if test "$USE_NLS" = "yes"; then
18165 gt_use_preinstalled_gnugettext=no
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18173 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18174 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18175 $as_echo_n "(cached) " >&6
18177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18178 /* end confdefs.h. */
18179 #include <libintl.h>
18180 extern int _nl_msg_cat_cntr;
18181 extern int *_nl_domain_bindings;
18185 bindtextdomain ("", "");
18186 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18191 if ac_fn_c_try_link "$LINENO"; then :
18192 gt_cv_func_gnugettext1_libc=yes
18194 gt_cv_func_gnugettext1_libc=no
18196 rm -f core conftest.err conftest.$ac_objext \
18197 conftest$ac_exeext conftest.$ac_ext
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18200 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18202 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18208 am_save_CPPFLAGS="$CPPFLAGS"
18210 for element in $INCICONV; do
18212 for x in $CPPFLAGS; do
18214 acl_save_prefix="$prefix"
18215 prefix="$acl_final_prefix"
18216 acl_save_exec_prefix="$exec_prefix"
18217 exec_prefix="$acl_final_exec_prefix"
18219 exec_prefix="$acl_save_exec_prefix"
18220 prefix="$acl_save_prefix"
18222 if test "X$x" = "X$element"; then
18227 if test -z "$haveit"; then
18228 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18234 $as_echo_n "checking for iconv... " >&6; }
18235 if ${am_cv_func_iconv+:} false; then :
18236 $as_echo_n "(cached) " >&6
18239 am_cv_func_iconv="no, consider installing GNU libiconv"
18241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18242 /* end confdefs.h. */
18243 #include <stdlib.h>
18248 iconv_t cd = iconv_open("","");
18249 iconv(cd,NULL,NULL,NULL,NULL);
18255 if ac_fn_c_try_link "$LINENO"; then :
18256 am_cv_func_iconv=yes
18258 rm -f core conftest.err conftest.$ac_objext \
18259 conftest$ac_exeext conftest.$ac_ext
18260 if test "$am_cv_func_iconv" != yes; then
18261 am_save_LIBS="$LIBS"
18262 LIBS="$LIBS $LIBICONV"
18263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18264 /* end confdefs.h. */
18265 #include <stdlib.h>
18270 iconv_t cd = iconv_open("","");
18271 iconv(cd,NULL,NULL,NULL,NULL);
18277 if ac_fn_c_try_link "$LINENO"; then :
18278 am_cv_lib_iconv=yes
18279 am_cv_func_iconv=yes
18281 rm -f core conftest.err conftest.$ac_objext \
18282 conftest$ac_exeext conftest.$ac_ext
18283 LIBS="$am_save_LIBS"
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18288 $as_echo "$am_cv_func_iconv" >&6; }
18289 if test "$am_cv_func_iconv" = yes; then
18291 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18294 if test "$am_cv_lib_iconv" = yes; then
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18296 $as_echo_n "checking how to link with libiconv... " >&6; }
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18298 $as_echo "$LIBICONV" >&6; }
18300 CPPFLAGS="$am_save_CPPFLAGS"
18312 acl_save_prefix="$prefix"
18313 prefix="$acl_final_prefix"
18314 acl_save_exec_prefix="$exec_prefix"
18315 exec_prefix="$acl_final_exec_prefix"
18317 eval additional_includedir=\"$includedir\"
18318 eval additional_libdir=\"$libdir\"
18320 exec_prefix="$acl_save_exec_prefix"
18321 prefix="$acl_save_prefix"
18324 # Check whether --with-libintl-prefix was given.
18325 if test "${with_libintl_prefix+set}" = set; then :
18326 withval=$with_libintl_prefix;
18327 if test "X$withval" = "Xno"; then
18330 if test "X$withval" = "X"; then
18332 acl_save_prefix="$prefix"
18333 prefix="$acl_final_prefix"
18334 acl_save_exec_prefix="$exec_prefix"
18335 exec_prefix="$acl_final_exec_prefix"
18337 eval additional_includedir=\"$includedir\"
18338 eval additional_libdir=\"$libdir\"
18340 exec_prefix="$acl_save_exec_prefix"
18341 prefix="$acl_save_prefix"
18344 additional_includedir="$withval/include"
18345 additional_libdir="$withval/lib"
18356 names_already_handled=
18357 names_next_round='intl '
18358 while test -n "$names_next_round"; do
18359 names_this_round="$names_next_round"
18361 for name in $names_this_round; do
18363 for n in $names_already_handled; do
18364 if test "$n" = "$name"; then
18365 already_handled=yes
18369 if test -z "$already_handled"; then
18370 names_already_handled="$names_already_handled $name"
18371 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18372 eval value=\"\$HAVE_LIB$uppername\"
18373 if test -n "$value"; then
18374 if test "$value" = yes; then
18375 eval value=\"\$LIB$uppername\"
18376 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18377 eval value=\"\$LTLIB$uppername\"
18378 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18387 if test $use_additional = yes; then
18388 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18389 found_dir="$additional_libdir"
18390 found_so="$additional_libdir/lib$name.$shlibext"
18391 if test -f "$additional_libdir/lib$name.la"; then
18392 found_la="$additional_libdir/lib$name.la"
18395 if test -f "$additional_libdir/lib$name.$libext"; then
18396 found_dir="$additional_libdir"
18397 found_a="$additional_libdir/lib$name.$libext"
18398 if test -f "$additional_libdir/lib$name.la"; then
18399 found_la="$additional_libdir/lib$name.la"
18404 if test "X$found_dir" = "X"; then
18405 for x in $LDFLAGS $LTLIBINTL; do
18407 acl_save_prefix="$prefix"
18408 prefix="$acl_final_prefix"
18409 acl_save_exec_prefix="$exec_prefix"
18410 exec_prefix="$acl_final_exec_prefix"
18412 exec_prefix="$acl_save_exec_prefix"
18413 prefix="$acl_save_prefix"
18417 dir=`echo "X$x" | sed -e 's/^X-L//'`
18418 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18420 found_so="$dir/lib$name.$shlibext"
18421 if test -f "$dir/lib$name.la"; then
18422 found_la="$dir/lib$name.la"
18425 if test -f "$dir/lib$name.$libext"; then
18427 found_a="$dir/lib$name.$libext"
18428 if test -f "$dir/lib$name.la"; then
18429 found_la="$dir/lib$name.la"
18435 if test "X$found_dir" != "X"; then
18440 if test "X$found_dir" != "X"; then
18441 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18442 if test "X$found_so" != "X"; then
18443 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18444 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18447 for x in $ltrpathdirs; do
18448 if test "X$x" = "X$found_dir"; then
18453 if test -z "$haveit"; then
18454 ltrpathdirs="$ltrpathdirs $found_dir"
18456 if test "$hardcode_direct" = yes; then
18457 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18459 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18460 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18462 for x in $rpathdirs; do
18463 if test "X$x" = "X$found_dir"; then
18468 if test -z "$haveit"; then
18469 rpathdirs="$rpathdirs $found_dir"
18473 for x in $LDFLAGS $LIBINTL; do
18475 acl_save_prefix="$prefix"
18476 prefix="$acl_final_prefix"
18477 acl_save_exec_prefix="$exec_prefix"
18478 exec_prefix="$acl_final_exec_prefix"
18480 exec_prefix="$acl_save_exec_prefix"
18481 prefix="$acl_save_prefix"
18483 if test "X$x" = "X-L$found_dir"; then
18488 if test -z "$haveit"; then
18489 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18491 if test "$hardcode_minus_L" != no; then
18492 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18494 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18500 if test "X$found_a" != "X"; then
18501 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18503 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18506 additional_includedir=
18507 case "$found_dir" in
18509 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18510 additional_includedir="$basedir/include"
18513 if test "X$additional_includedir" != "X"; then
18514 if test "X$additional_includedir" != "X/usr/include"; then
18516 if test "X$additional_includedir" = "X/usr/local/include"; then
18517 if test -n "$GCC"; then
18519 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18523 if test -z "$haveit"; then
18524 for x in $CPPFLAGS $INCINTL; do
18526 acl_save_prefix="$prefix"
18527 prefix="$acl_final_prefix"
18528 acl_save_exec_prefix="$exec_prefix"
18529 exec_prefix="$acl_final_exec_prefix"
18531 exec_prefix="$acl_save_exec_prefix"
18532 prefix="$acl_save_prefix"
18534 if test "X$x" = "X-I$additional_includedir"; then
18539 if test -z "$haveit"; then
18540 if test -d "$additional_includedir"; then
18541 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18547 if test -n "$found_la"; then
18548 save_libdir="$libdir"
18549 case "$found_la" in
18550 */* | *\\*) . "$found_la" ;;
18551 *) . "./$found_la" ;;
18553 libdir="$save_libdir"
18554 for dep in $dependency_libs; do
18557 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18558 if test "X$additional_libdir" != "X/usr/lib"; then
18560 if test "X$additional_libdir" = "X/usr/local/lib"; then
18561 if test -n "$GCC"; then
18563 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18567 if test -z "$haveit"; then
18569 for x in $LDFLAGS $LIBINTL; do
18571 acl_save_prefix="$prefix"
18572 prefix="$acl_final_prefix"
18573 acl_save_exec_prefix="$exec_prefix"
18574 exec_prefix="$acl_final_exec_prefix"
18576 exec_prefix="$acl_save_exec_prefix"
18577 prefix="$acl_save_prefix"
18579 if test "X$x" = "X-L$additional_libdir"; then
18584 if test -z "$haveit"; then
18585 if test -d "$additional_libdir"; then
18586 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18590 for x in $LDFLAGS $LTLIBINTL; do
18592 acl_save_prefix="$prefix"
18593 prefix="$acl_final_prefix"
18594 acl_save_exec_prefix="$exec_prefix"
18595 exec_prefix="$acl_final_exec_prefix"
18597 exec_prefix="$acl_save_exec_prefix"
18598 prefix="$acl_save_prefix"
18600 if test "X$x" = "X-L$additional_libdir"; then
18605 if test -z "$haveit"; then
18606 if test -d "$additional_libdir"; then
18607 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18614 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18615 if test "$enable_rpath" != no; then
18617 for x in $rpathdirs; do
18618 if test "X$x" = "X$dir"; then
18623 if test -z "$haveit"; then
18624 rpathdirs="$rpathdirs $dir"
18627 for x in $ltrpathdirs; do
18628 if test "X$x" = "X$dir"; then
18633 if test -z "$haveit"; then
18634 ltrpathdirs="$ltrpathdirs $dir"
18639 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18642 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18645 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18646 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18652 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18653 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18659 if test "X$rpathdirs" != "X"; then
18660 if test -n "$hardcode_libdir_separator"; then
18662 for found_dir in $rpathdirs; do
18663 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18665 acl_save_libdir="$libdir"
18667 eval flag=\"$hardcode_libdir_flag_spec\"
18668 libdir="$acl_save_libdir"
18669 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18671 for found_dir in $rpathdirs; do
18672 acl_save_libdir="$libdir"
18673 libdir="$found_dir"
18674 eval flag=\"$hardcode_libdir_flag_spec\"
18675 libdir="$acl_save_libdir"
18676 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18680 if test "X$ltrpathdirs" != "X"; then
18681 for found_dir in $ltrpathdirs; do
18682 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18687 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18688 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18689 $as_echo_n "(cached) " >&6
18691 gt_save_CPPFLAGS="$CPPFLAGS"
18692 CPPFLAGS="$CPPFLAGS $INCINTL"
18693 gt_save_LIBS="$LIBS"
18694 LIBS="$LIBS $LIBINTL"
18695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18696 /* end confdefs.h. */
18697 #include <libintl.h>
18698 extern int _nl_msg_cat_cntr;
18703 const char *_nl_expand_alias (const char *);
18707 bindtextdomain ("", "");
18708 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18713 if ac_fn_c_try_link "$LINENO"; then :
18714 gt_cv_func_gnugettext1_libintl=yes
18716 gt_cv_func_gnugettext1_libintl=no
18718 rm -f core conftest.err conftest.$ac_objext \
18719 conftest$ac_exeext conftest.$ac_ext
18720 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18721 LIBS="$LIBS $LIBICONV"
18722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18723 /* end confdefs.h. */
18724 #include <libintl.h>
18725 extern int _nl_msg_cat_cntr;
18730 const char *_nl_expand_alias (const char *);
18734 bindtextdomain ("", "");
18735 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18740 if ac_fn_c_try_link "$LINENO"; then :
18741 LIBINTL="$LIBINTL $LIBICONV"
18742 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18743 gt_cv_func_gnugettext1_libintl=yes
18746 rm -f core conftest.err conftest.$ac_objext \
18747 conftest$ac_exeext conftest.$ac_ext
18749 CPPFLAGS="$gt_save_CPPFLAGS"
18750 LIBS="$gt_save_LIBS"
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18753 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18756 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18757 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18758 && test "$PACKAGE" != gettext-runtime \
18759 && test "$PACKAGE" != gettext-tools; }; then
18760 gt_use_preinstalled_gnugettext=yes
18769 if test -n "$INTL_MACOSX_LIBS"; then
18770 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18771 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18772 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18773 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18777 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18778 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18780 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18788 $as_echo_n "checking whether to use NLS... " >&6; }
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18790 $as_echo "$USE_NLS" >&6; }
18791 if test "$USE_NLS" = "yes"; then
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18793 $as_echo_n "checking where the gettext function comes from... " >&6; }
18794 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18795 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18796 gt_source="external libintl"
18801 gt_source="included intl directory"
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18804 $as_echo "$gt_source" >&6; }
18807 if test "$USE_NLS" = "yes"; then
18809 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18810 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18812 $as_echo_n "checking how to link with libintl... " >&6; }
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18814 $as_echo "$LIBINTL" >&6; }
18816 for element in $INCINTL; do
18818 for x in $CPPFLAGS; do
18820 acl_save_prefix="$prefix"
18821 prefix="$acl_final_prefix"
18822 acl_save_exec_prefix="$exec_prefix"
18823 exec_prefix="$acl_final_exec_prefix"
18825 exec_prefix="$acl_save_exec_prefix"
18826 prefix="$acl_save_prefix"
18828 if test "X$x" = "X$element"; then
18833 if test -z "$haveit"; then
18834 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18841 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18844 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18853 INTLLIBS="$LIBINTL"
18861 os_name=`uname -s 2>/dev/null`
18862 if test x${prefix} = xNONE ; then
18863 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18864 sysconfdir=/etc/bacula
18867 if test `eval echo ${libdir}` = NONE/lib ; then
18870 os_processor=`uname -p 2>/dev/null`
18871 case ${os_processor} in
18886 if test `eval echo ${includedir}` = NONE/include ; then
18887 includedir=/usr/include
18890 if test `eval echo ${datarootdir}` = NONE/share ; then
18891 datarootdir=/usr/share
18896 if test x${exec_prefix} = xNONE ; then
18897 exec_prefix=${prefix}
18900 sysconfdir=`eval echo ${sysconfdir}`
18901 datarootdir=`eval echo ${datarootdir}`
18902 docdir=`eval echo ${docdir}`
18903 htmldir=`eval echo ${htmldir}`
18904 libdir=`eval echo ${libdir}`
18905 includedir=`eval echo ${includedir}`
18906 localedir=`eval echo ${datarootdir}/locale`
18907 cat >>confdefs.h <<_ACEOF
18908 #define SYSCONFDIR "$sysconfdir"
18911 cat >>confdefs.h <<_ACEOF
18912 #define LOCALEDIR "$localedir"
18916 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18917 sbindir=${exec_prefix}/sbin
18919 sbindir=`eval echo ${sbindir}`
18921 if test x$mandir = x'${prefix}/man' ; then
18922 mandir=/usr/share/man
18925 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18926 htmldir=`eval echo ${docdir}html`
18929 if test x$docdir = x'/usr/share/doc/' ; then
18930 docdir=`eval echo ${docdir}bacula`
18934 for ac_prog in msgfmt
18936 # Extract the first word of "$ac_prog", so it can be a program name with args.
18937 set dummy $ac_prog; ac_word=$2
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18939 $as_echo_n "checking for $ac_word... " >&6; }
18940 if ${ac_cv_path_MSGFMT+:} false; then :
18941 $as_echo_n "(cached) " >&6
18945 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18949 for as_dir in $PATH
18952 test -z "$as_dir" && as_dir=.
18953 for ac_exec_ext in '' $ac_executable_extensions; do
18954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18955 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18966 MSGFMT=$ac_cv_path_MSGFMT
18967 if test -n "$MSGFMT"; then
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18969 $as_echo "$MSGFMT" >&6; }
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18972 $as_echo "no" >&6; }
18976 test -n "$MSGFMT" && break
18978 test -n "$MSGFMT" || MSGFMT="no"
18980 if test "$MSGFMT" = "no"
18982 echo 'msgfmt program not found, disabling NLS !'
18984 USE_INCLUDED_LIBINTL=no
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18988 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18989 if ${ac_cv_gnu_library_2+:} false; then :
18990 $as_echo_n "(cached) " >&6
18992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18993 /* end confdefs.h. */
18995 #include <features.h>
18996 #ifdef __GNU_LIBRARY__
18997 #if (__GLIBC__ >= 2)
19003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19004 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19005 ac_cv_gnu_library_2=yes
19007 ac_cv_gnu_library_2=no
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19015 $as_echo "$ac_cv_gnu_library_2" >&6; }
19017 GLIBC2="$ac_cv_gnu_library_2"
19020 if test -n "$ac_tool_prefix"; then
19021 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19022 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19024 $as_echo_n "checking for $ac_word... " >&6; }
19025 if ${ac_cv_prog_RANLIB+:} false; then :
19026 $as_echo_n "(cached) " >&6
19028 if test -n "$RANLIB"; then
19029 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19032 for as_dir in $PATH
19035 test -z "$as_dir" && as_dir=.
19036 for ac_exec_ext in '' $ac_executable_extensions; do
19037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19038 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19048 RANLIB=$ac_cv_prog_RANLIB
19049 if test -n "$RANLIB"; then
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19051 $as_echo "$RANLIB" >&6; }
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19054 $as_echo "no" >&6; }
19059 if test -z "$ac_cv_prog_RANLIB"; then
19060 ac_ct_RANLIB=$RANLIB
19061 # Extract the first word of "ranlib", so it can be a program name with args.
19062 set dummy ranlib; ac_word=$2
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19064 $as_echo_n "checking for $ac_word... " >&6; }
19065 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19066 $as_echo_n "(cached) " >&6
19068 if test -n "$ac_ct_RANLIB"; then
19069 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19072 for as_dir in $PATH
19075 test -z "$as_dir" && as_dir=.
19076 for ac_exec_ext in '' $ac_executable_extensions; do
19077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19078 ac_cv_prog_ac_ct_RANLIB="ranlib"
19079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19088 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19089 if test -n "$ac_ct_RANLIB"; then
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19091 $as_echo "$ac_ct_RANLIB" >&6; }
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19094 $as_echo "no" >&6; }
19097 if test "x$ac_ct_RANLIB" = x; then
19100 case $cross_compiling:$ac_tool_warned in
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19104 ac_tool_warned=yes ;;
19106 RANLIB=$ac_ct_RANLIB
19109 RANLIB="$ac_cv_prog_RANLIB"
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19114 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19115 if ${ac_cv_lib_cposix_strerror+:} false; then :
19116 $as_echo_n "(cached) " >&6
19118 ac_check_lib_save_LIBS=$LIBS
19119 LIBS="-lcposix $LIBS"
19120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19121 /* end confdefs.h. */
19123 /* Override any GCC internal prototype to avoid an error.
19124 Use char because int might match the return type of a GCC
19125 builtin and then its argument prototype would still apply. */
19133 return strerror ();
19138 if ac_fn_c_try_link "$LINENO"; then :
19139 ac_cv_lib_cposix_strerror=yes
19141 ac_cv_lib_cposix_strerror=no
19143 rm -f core conftest.err conftest.$ac_objext \
19144 conftest$ac_exeext conftest.$ac_ext
19145 LIBS=$ac_check_lib_save_LIBS
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19148 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19149 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19150 LIBS="$LIBS -lcposix"
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19156 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19157 if ${ac_cv_c_const+:} false; then :
19158 $as_echo_n "(cached) " >&6
19160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19161 /* end confdefs.h. */
19167 #ifndef __cplusplus
19168 /* Ultrix mips cc rejects this sort of thing. */
19169 typedef int charset[2];
19170 const charset cs = { 0, 0 };
19171 /* SunOS 4.1.1 cc rejects this. */
19172 char const *const *pcpcc;
19174 /* NEC SVR4.0.2 mips cc rejects this. */
19175 struct point {int x, y;};
19176 static struct point const zero = {0,0};
19177 /* AIX XL C 1.02.0.0 rejects this.
19178 It does not let you subtract one const X* pointer from another in
19179 an arm of an if-expression whose if-part is not a constant
19181 const char *g = "string";
19182 pcpcc = &g + (g ? g-g : 0);
19183 /* HPUX 7.0 cc rejects these. */
19185 ppc = (char**) pcpcc;
19186 pcpcc = (char const *const *) ppc;
19187 { /* SCO 3.2v4 cc rejects this sort of thing. */
19190 char const *s = 0 ? (char *) 0 : (char const *) 0;
19195 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19196 int x[] = {25, 17};
19197 const int *foo = &x[0];
19200 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19201 typedef const int *iptr;
19205 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19206 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19207 struct s { int j; const int *ap[3]; } bx;
19208 struct s *b = &bx; b->j = 5;
19210 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19211 const int foo = 10;
19212 if (!foo) return 0;
19214 return !cs[0] && !zero.x;
19221 if ac_fn_c_try_compile "$LINENO"; then :
19226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19229 $as_echo "$ac_cv_c_const" >&6; }
19230 if test $ac_cv_c_const = no; then
19232 $as_echo "#define const /**/" >>confdefs.h
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19238 $as_echo_n "checking for signed... " >&6; }
19239 if ${bh_cv_c_signed+:} false; then :
19240 $as_echo_n "(cached) " >&6
19242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19243 /* end confdefs.h. */
19253 if ac_fn_c_try_compile "$LINENO"; then :
19258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19261 $as_echo "$bh_cv_c_signed" >&6; }
19262 if test $bh_cv_c_signed = no; then
19264 $as_echo "#define signed /**/" >>confdefs.h
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19269 $as_echo_n "checking for inline... " >&6; }
19270 if ${ac_cv_c_inline+:} false; then :
19271 $as_echo_n "(cached) " >&6
19274 for ac_kw in inline __inline__ __inline; do
19275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19277 #ifndef __cplusplus
19279 static $ac_kw foo_t static_foo () {return 0; }
19280 $ac_kw foo_t foo () {return 0; }
19284 if ac_fn_c_try_compile "$LINENO"; then :
19285 ac_cv_c_inline=$ac_kw
19287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19288 test "$ac_cv_c_inline" != no && break
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19293 $as_echo "$ac_cv_c_inline" >&6; }
19295 case $ac_cv_c_inline in
19298 case $ac_cv_c_inline in
19300 *) ac_val=$ac_cv_c_inline;;
19302 cat >>confdefs.h <<_ACEOF
19303 #ifndef __cplusplus
19304 #define inline $ac_val
19310 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19311 if test "x$ac_cv_type_off_t" = xyes; then :
19315 cat >>confdefs.h <<_ACEOF
19316 #define off_t long int
19321 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19322 if test "x$ac_cv_type_size_t" = xyes; then :
19326 cat >>confdefs.h <<_ACEOF
19327 #define size_t unsigned int
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19334 $as_echo_n "checking for long long... " >&6; }
19335 if ${ac_cv_type_long_long+:} false; then :
19336 $as_echo_n "(cached) " >&6
19338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19339 /* end confdefs.h. */
19340 long long ll = 1LL; int i = 63;
19344 long long llmax = (long long) -1;
19345 return ll << i | ll >> i | llmax / ll | llmax % ll;
19350 if ac_fn_c_try_link "$LINENO"; then :
19351 ac_cv_type_long_long=yes
19353 ac_cv_type_long_long=no
19355 rm -f core conftest.err conftest.$ac_objext \
19356 conftest$ac_exeext conftest.$ac_ext
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19359 $as_echo "$ac_cv_type_long_long" >&6; }
19360 if test $ac_cv_type_long_long = yes; then
19362 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19368 $as_echo_n "checking for long double... " >&6; }
19369 if ${gt_cv_c_long_double+:} false; then :
19370 $as_echo_n "(cached) " >&6
19372 if test "$GCC" = yes; then
19373 gt_cv_c_long_double=yes
19375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376 /* end confdefs.h. */
19378 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19379 long double foo = 0.0;
19380 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19381 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19391 if ac_fn_c_try_compile "$LINENO"; then :
19392 gt_cv_c_long_double=yes
19394 gt_cv_c_long_double=no
19396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19400 $as_echo "$gt_cv_c_long_double" >&6; }
19401 if test $gt_cv_c_long_double = yes; then
19403 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19409 $as_echo_n "checking for wchar_t... " >&6; }
19410 if ${gt_cv_c_wchar_t+:} false; then :
19411 $as_echo_n "(cached) " >&6
19413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19414 /* end confdefs.h. */
19415 #include <stddef.h>
19416 wchar_t foo = (wchar_t)'\0';
19425 if ac_fn_c_try_compile "$LINENO"; then :
19426 gt_cv_c_wchar_t=yes
19430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19433 $as_echo "$gt_cv_c_wchar_t" >&6; }
19434 if test $gt_cv_c_wchar_t = yes; then
19436 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19442 $as_echo_n "checking for wint_t... " >&6; }
19443 if ${gt_cv_c_wint_t+:} false; then :
19444 $as_echo_n "(cached) " >&6
19446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19447 /* end confdefs.h. */
19449 wint_t foo = (wchar_t)'\0';
19458 if ac_fn_c_try_compile "$LINENO"; then :
19463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19466 $as_echo "$gt_cv_c_wint_t" >&6; }
19467 if test $gt_cv_c_wint_t = yes; then
19469 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19475 $as_echo_n "checking for inttypes.h... " >&6; }
19476 if ${gl_cv_header_inttypes_h+:} false; then :
19477 $as_echo_n "(cached) " >&6
19479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19480 /* end confdefs.h. */
19481 #include <sys/types.h>
19482 #include <inttypes.h>
19486 uintmax_t i = (uintmax_t) -1;
19491 if ac_fn_c_try_compile "$LINENO"; then :
19492 gl_cv_header_inttypes_h=yes
19494 gl_cv_header_inttypes_h=no
19496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19499 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19500 if test $gl_cv_header_inttypes_h = yes; then
19502 cat >>confdefs.h <<_ACEOF
19503 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19510 $as_echo_n "checking for stdint.h... " >&6; }
19511 if ${gl_cv_header_stdint_h+:} false; then :
19512 $as_echo_n "(cached) " >&6
19514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19515 /* end confdefs.h. */
19516 #include <sys/types.h>
19517 #include <stdint.h>
19521 uintmax_t i = (uintmax_t) -1;
19526 if ac_fn_c_try_compile "$LINENO"; then :
19527 gl_cv_header_stdint_h=yes
19529 gl_cv_header_stdint_h=no
19531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19534 $as_echo "$gl_cv_header_stdint_h" >&6; }
19535 if test $gl_cv_header_stdint_h = yes; then
19537 cat >>confdefs.h <<_ACEOF
19538 #define HAVE_STDINT_H_WITH_UINTMAX 1
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19547 $as_echo_n "checking for intmax_t... " >&6; }
19548 if ${gt_cv_c_intmax_t+:} false; then :
19549 $as_echo_n "(cached) " >&6
19551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19552 /* end confdefs.h. */
19554 #include <stddef.h>
19555 #include <stdlib.h>
19556 #if HAVE_STDINT_H_WITH_UINTMAX
19557 #include <stdint.h>
19559 #if HAVE_INTTYPES_H_WITH_UINTMAX
19560 #include <inttypes.h>
19571 if ac_fn_c_try_compile "$LINENO"; then :
19572 gt_cv_c_intmax_t=yes
19574 gt_cv_c_intmax_t=no
19576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19579 $as_echo "$gt_cv_c_intmax_t" >&6; }
19580 if test $gt_cv_c_intmax_t = yes; then
19582 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19589 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19590 if ${gt_cv_func_printf_posix+:} false; then :
19591 $as_echo_n "(cached) " >&6
19594 if test "$cross_compiling" = yes; then :
19596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19597 /* end confdefs.h. */
19599 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19605 $EGREP "notposix" >/dev/null 2>&1; then :
19606 gt_cv_func_printf_posix="guessing no"
19608 gt_cv_func_printf_posix="guessing yes"
19614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19615 /* end confdefs.h. */
19618 #include <string.h>
19619 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19620 dollar expansion (possibly an autoconf bug). */
19621 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19622 static char buf[100];
19625 sprintf (buf, format, 33, 55);
19626 return (strcmp (buf, "55 33") != 0);
19629 if ac_fn_c_try_run "$LINENO"; then :
19630 gt_cv_func_printf_posix=yes
19632 gt_cv_func_printf_posix=no
19634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19635 conftest.$ac_objext conftest.beam conftest.$ac_ext
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19641 $as_echo "$gt_cv_func_printf_posix" >&6; }
19642 case $gt_cv_func_printf_posix in
19645 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19650 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19651 # for constant arguments. Useless!
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19653 $as_echo_n "checking for working alloca.h... " >&6; }
19654 if ${ac_cv_working_alloca_h+:} false; then :
19655 $as_echo_n "(cached) " >&6
19657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19658 /* end confdefs.h. */
19659 #include <alloca.h>
19663 char *p = (char *) alloca (2 * sizeof (int));
19669 if ac_fn_c_try_link "$LINENO"; then :
19670 ac_cv_working_alloca_h=yes
19672 ac_cv_working_alloca_h=no
19674 rm -f core conftest.err conftest.$ac_objext \
19675 conftest$ac_exeext conftest.$ac_ext
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19678 $as_echo "$ac_cv_working_alloca_h" >&6; }
19679 if test $ac_cv_working_alloca_h = yes; then
19681 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19686 $as_echo_n "checking for alloca... " >&6; }
19687 if ${ac_cv_func_alloca_works+:} false; then :
19688 $as_echo_n "(cached) " >&6
19690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691 /* end confdefs.h. */
19693 # define alloca __builtin_alloca
19696 # include <malloc.h>
19697 # define alloca _alloca
19699 # ifdef HAVE_ALLOCA_H
19700 # include <alloca.h>
19705 # ifndef alloca /* predefined by HP cc +Olibcalls */
19706 void *alloca (size_t);
19716 char *p = (char *) alloca (1);
19722 if ac_fn_c_try_link "$LINENO"; then :
19723 ac_cv_func_alloca_works=yes
19725 ac_cv_func_alloca_works=no
19727 rm -f core conftest.err conftest.$ac_objext \
19728 conftest$ac_exeext conftest.$ac_ext
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19731 $as_echo "$ac_cv_func_alloca_works" >&6; }
19733 if test $ac_cv_func_alloca_works = yes; then
19735 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19738 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19739 # that cause trouble. Some versions do not even contain alloca or
19740 # contain a buggy version. If you still want to use their alloca,
19741 # use ar to extract alloca.o from them instead of compiling alloca.c.
19743 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19745 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19749 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19750 if ${ac_cv_os_cray+:} false; then :
19751 $as_echo_n "(cached) " >&6
19753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19754 /* end confdefs.h. */
19755 #if defined CRAY && ! defined CRAY2
19762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19763 $EGREP "webecray" >/dev/null 2>&1; then :
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19772 $as_echo "$ac_cv_os_cray" >&6; }
19773 if test $ac_cv_os_cray = yes; then
19774 for ac_func in _getb67 GETB67 getb67; do
19775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19776 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19777 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19779 cat >>confdefs.h <<_ACEOF
19780 #define CRAY_STACKSEG_END $ac_func
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19790 $as_echo_n "checking stack direction for C alloca... " >&6; }
19791 if ${ac_cv_c_stack_direction+:} false; then :
19792 $as_echo_n "(cached) " >&6
19794 if test "$cross_compiling" = yes; then :
19795 ac_cv_c_stack_direction=0
19797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19798 /* end confdefs.h. */
19799 $ac_includes_default
19801 find_stack_direction (int *addr, int depth)
19803 int dir, dummy = 0;
19806 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19807 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19808 return dir + dummy;
19812 main (int argc, char **argv)
19814 return find_stack_direction (0, argc + !argv + 20) < 0;
19817 if ac_fn_c_try_run "$LINENO"; then :
19818 ac_cv_c_stack_direction=1
19820 ac_cv_c_stack_direction=-1
19822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19823 conftest.$ac_objext conftest.beam conftest.$ac_ext
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19828 $as_echo "$ac_cv_c_stack_direction" >&6; }
19829 cat >>confdefs.h <<_ACEOF
19830 #define STACK_DIRECTION $ac_cv_c_stack_direction
19839 for ac_header in $ac_header_list
19841 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19842 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19844 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19845 cat >>confdefs.h <<_ACEOF
19846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19860 for ac_func in getpagesize
19862 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19863 if test "x$ac_cv_func_getpagesize" = xyes; then :
19864 cat >>confdefs.h <<_ACEOF
19865 #define HAVE_GETPAGESIZE 1
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19872 $as_echo_n "checking for working mmap... " >&6; }
19873 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19874 $as_echo_n "(cached) " >&6
19876 if test "$cross_compiling" = yes; then :
19877 ac_cv_func_mmap_fixed_mapped=no
19879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19880 /* end confdefs.h. */
19881 $ac_includes_default
19882 /* malloc might have been renamed as rpl_malloc. */
19885 /* Thanks to Mike Haertel and Jim Avera for this test.
19886 Here is a matrix of mmap possibilities:
19887 mmap private not fixed
19888 mmap private fixed at somewhere currently unmapped
19889 mmap private fixed at somewhere already mapped
19890 mmap shared not fixed
19891 mmap shared fixed at somewhere currently unmapped
19892 mmap shared fixed at somewhere already mapped
19893 For private mappings, we should verify that changes cannot be read()
19894 back from the file, nor mmap's back from the file at a different
19895 address. (There have been systems where private was not correctly
19896 implemented like the infamous i386 svr4.0, and systems where the
19897 VM page cache was not coherent with the file system buffer cache
19898 like early versions of FreeBSD and possibly contemporary NetBSD.)
19899 For shared mappings, we should conversely verify that changes get
19900 propagated back to all the places they're supposed to be.
19902 Grep wants private fixed already mapped.
19903 The main things grep needs to know about mmap are:
19904 * does it exist and is it safe to write into the mmap'd area
19905 * how to use it (BSD variants) */
19908 #include <sys/mman.h>
19910 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19914 /* This mess was copied from the GNU getpagesize.h. */
19915 #ifndef HAVE_GETPAGESIZE
19916 # ifdef _SC_PAGESIZE
19917 # define getpagesize() sysconf(_SC_PAGESIZE)
19918 # else /* no _SC_PAGESIZE */
19919 # ifdef HAVE_SYS_PARAM_H
19920 # include <sys/param.h>
19921 # ifdef EXEC_PAGESIZE
19922 # define getpagesize() EXEC_PAGESIZE
19923 # else /* no EXEC_PAGESIZE */
19925 # define getpagesize() NBPG * CLSIZE
19928 # endif /* no CLSIZE */
19929 # else /* no NBPG */
19931 # define getpagesize() NBPC
19932 # else /* no NBPC */
19934 # define getpagesize() PAGESIZE
19935 # endif /* PAGESIZE */
19936 # endif /* no NBPC */
19937 # endif /* no NBPG */
19938 # endif /* no EXEC_PAGESIZE */
19939 # else /* no HAVE_SYS_PARAM_H */
19940 # define getpagesize() 8192 /* punt totally */
19941 # endif /* no HAVE_SYS_PARAM_H */
19942 # endif /* no _SC_PAGESIZE */
19944 #endif /* no HAVE_GETPAGESIZE */
19949 char *data, *data2, *data3;
19950 const char *cdata2;
19954 pagesize = getpagesize ();
19956 /* First, make a file with some known garbage in it. */
19957 data = (char *) malloc (pagesize);
19960 for (i = 0; i < pagesize; ++i)
19961 *(data + i) = rand ();
19963 fd = creat ("conftest.mmap", 0600);
19966 if (write (fd, data, pagesize) != pagesize)
19970 /* Next, check that the tail of a page is zero-filled. File must have
19971 non-zero length, otherwise we risk SIGBUS for entire page. */
19972 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19976 if (write (fd2, cdata2, 1) != 1)
19978 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19979 if (data2 == MAP_FAILED)
19981 for (i = 0; i < pagesize; ++i)
19985 if (munmap (data2, pagesize))
19988 /* Next, try to mmap the file at a fixed address which already has
19989 something else allocated at it. If we can, also make sure that
19990 we see the same garbage. */
19991 fd = open ("conftest.mmap", O_RDWR);
19994 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19995 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19997 for (i = 0; i < pagesize; ++i)
19998 if (*(data + i) != *(data2 + i))
20001 /* Finally, make sure that changes to the mapped area do not
20002 percolate back to the file as seen by read(). (This is a bug on
20003 some variants of i386 svr4.0.) */
20004 for (i = 0; i < pagesize; ++i)
20005 *(data2 + i) = *(data2 + i) + 1;
20006 data3 = (char *) malloc (pagesize);
20009 if (read (fd, data3, pagesize) != pagesize)
20011 for (i = 0; i < pagesize; ++i)
20012 if (*(data + i) != *(data3 + i))
20018 if ac_fn_c_try_run "$LINENO"; then :
20019 ac_cv_func_mmap_fixed_mapped=yes
20021 ac_cv_func_mmap_fixed_mapped=no
20023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20024 conftest.$ac_objext conftest.beam conftest.$ac_ext
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20029 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20030 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20032 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20035 rm -f conftest.mmap conftest.txt
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20039 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20040 if ${ac_cv_gnu_library_2_1+:} false; then :
20041 $as_echo_n "(cached) " >&6
20043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20044 /* end confdefs.h. */
20046 #include <features.h>
20047 #ifdef __GNU_LIBRARY__
20048 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20055 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20056 ac_cv_gnu_library_2_1=yes
20058 ac_cv_gnu_library_2_1=no
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20066 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20068 GLIBC21="$ac_cv_gnu_library_2_1"
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20074 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20075 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20076 $as_echo_n "(cached) " >&6
20079 if test "$cross_compiling" = yes; then :
20081 # Guess based on the CPU.
20082 case "$host_cpu" in
20083 alpha* | i3456786 | m68k | s390*)
20084 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20086 gt_cv_int_divbyzero_sigfpe="guessing no";;
20090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20091 /* end confdefs.h. */
20093 #include <stdlib.h>
20094 #include <signal.h>
20098 sigfpe_handler (int sig)
20100 sigfpe_handler (sig) int sig;
20103 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20104 exit (sig != SIGFPE);
20114 signal (SIGFPE, sigfpe_handler);
20115 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20116 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20117 signal (SIGTRAP, sigfpe_handler);
20119 /* Linux/SPARC yields signal SIGILL. */
20120 #if defined (__sparc__) && defined (__linux__)
20121 signal (SIGILL, sigfpe_handler);
20130 if ac_fn_c_try_run "$LINENO"; then :
20131 gt_cv_int_divbyzero_sigfpe=yes
20133 gt_cv_int_divbyzero_sigfpe=no
20135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20136 conftest.$ac_objext conftest.beam conftest.$ac_ext
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20142 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20143 case "$gt_cv_int_divbyzero_sigfpe" in
20148 cat >>confdefs.h <<_ACEOF
20149 #define INTDIV0_RAISES_SIGFPE $value
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20155 $as_echo_n "checking for unsigned long long... " >&6; }
20156 if ${ac_cv_type_unsigned_long_long+:} false; then :
20157 $as_echo_n "(cached) " >&6
20159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20160 /* end confdefs.h. */
20161 unsigned long long ull = 1ULL; int i = 63;
20165 unsigned long long ullmax = (unsigned long long) -1;
20166 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20171 if ac_fn_c_try_link "$LINENO"; then :
20172 ac_cv_type_unsigned_long_long=yes
20174 ac_cv_type_unsigned_long_long=no
20176 rm -f core conftest.err conftest.$ac_objext \
20177 conftest$ac_exeext conftest.$ac_ext
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20180 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20181 if test $ac_cv_type_unsigned_long_long = yes; then
20183 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20190 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20192 test $ac_cv_type_unsigned_long_long = yes \
20193 && ac_type='unsigned long long' \
20194 || ac_type='unsigned long'
20196 cat >>confdefs.h <<_ACEOF
20197 #define uintmax_t $ac_type
20202 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20208 $as_echo_n "checking for inttypes.h... " >&6; }
20209 if ${gt_cv_header_inttypes_h+:} false; then :
20210 $as_echo_n "(cached) " >&6
20213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20214 /* end confdefs.h. */
20215 #include <sys/types.h>
20216 #include <inttypes.h>
20225 if ac_fn_c_try_compile "$LINENO"; then :
20226 gt_cv_header_inttypes_h=yes
20228 gt_cv_header_inttypes_h=no
20230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20234 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20235 if test $gt_cv_header_inttypes_h = yes; then
20237 cat >>confdefs.h <<_ACEOF
20238 #define HAVE_INTTYPES_H 1
20245 if test $gt_cv_header_inttypes_h = yes; then
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20247 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20248 if ${gt_cv_inttypes_pri_broken+:} false; then :
20249 $as_echo_n "(cached) " >&6
20252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20253 /* end confdefs.h. */
20254 #include <inttypes.h>
20267 if ac_fn_c_try_compile "$LINENO"; then :
20268 gt_cv_inttypes_pri_broken=no
20270 gt_cv_inttypes_pri_broken=yes
20272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20276 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20278 if test "$gt_cv_inttypes_pri_broken" = yes; then
20280 cat >>confdefs.h <<_ACEOF
20281 #define PRI_MACROS_BROKEN 1
20287 for ac_header in stdint.h
20289 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20290 if test "x$ac_cv_header_stdint_h" = xyes; then :
20291 cat >>confdefs.h <<_ACEOF
20292 #define HAVE_STDINT_H 1
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20300 $as_echo_n "checking for SIZE_MAX... " >&6; }
20302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20303 /* end confdefs.h. */
20305 #include <limits.h>
20307 #include <stdint.h>
20314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20315 $EGREP "Found it" >/dev/null 2>&1; then :
20320 if test -z "$result"; then
20321 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20328 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20335 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20342 if test "$fits_in_uint" = 1; then
20343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20344 /* end confdefs.h. */
20345 #include <stddef.h>
20347 extern unsigned long foo;
20357 if ac_fn_c_try_compile "$LINENO"; then :
20360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20362 if test -z "$result"; then
20363 if test "$fits_in_uint" = 1; then
20364 result="$res_hi$res_lo"U
20366 result="$res_hi$res_lo"UL
20369 result='~(size_t)0'
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20373 $as_echo "$result" >&6; }
20374 if test "$result" != yes; then
20376 cat >>confdefs.h <<_ACEOF
20377 #define SIZE_MAX $result
20385 for ac_header in stdint.h
20387 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20388 if test "x$ac_cv_header_stdint_h" = xyes; then :
20389 cat >>confdefs.h <<_ACEOF
20390 #define HAVE_STDINT_H 1
20404 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20405 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20409 $as_echo "#define ptrdiff_t long" >>confdefs.h
20414 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20415 stdlib.h string.h unistd.h sys/param.h
20417 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20418 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20419 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20420 cat >>confdefs.h <<_ACEOF
20421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20428 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20429 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20430 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20433 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20434 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20435 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20436 cat >>confdefs.h <<_ACEOF
20437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20446 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20447 if ${ac_cv_have_decl__snprintf+:} false; then :
20448 $as_echo_n "(cached) " >&6
20450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20451 /* end confdefs.h. */
20458 char *p = (char *) _snprintf;
20465 if ac_fn_c_try_compile "$LINENO"; then :
20466 ac_cv_have_decl__snprintf=yes
20468 ac_cv_have_decl__snprintf=no
20470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20473 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20474 if test $ac_cv_have_decl__snprintf = yes; then
20480 cat >>confdefs.h <<_ACEOF
20481 #define HAVE_DECL__SNPRINTF $gt_value
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20487 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20488 if ${ac_cv_have_decl__snwprintf+:} false; then :
20489 $as_echo_n "(cached) " >&6
20491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20492 /* end confdefs.h. */
20499 char *p = (char *) _snwprintf;
20506 if ac_fn_c_try_compile "$LINENO"; then :
20507 ac_cv_have_decl__snwprintf=yes
20509 ac_cv_have_decl__snwprintf=no
20511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20514 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20515 if test $ac_cv_have_decl__snwprintf = yes; then
20521 cat >>confdefs.h <<_ACEOF
20522 #define HAVE_DECL__SNWPRINTF $gt_value
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20529 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20530 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20531 $as_echo_n "(cached) " >&6
20533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20534 /* end confdefs.h. */
20540 #ifndef feof_unlocked
20541 char *p = (char *) feof_unlocked;
20548 if ac_fn_c_try_compile "$LINENO"; then :
20549 ac_cv_have_decl_feof_unlocked=yes
20551 ac_cv_have_decl_feof_unlocked=no
20553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20556 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20557 if test $ac_cv_have_decl_feof_unlocked = yes; then
20563 cat >>confdefs.h <<_ACEOF
20564 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20570 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20571 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20572 $as_echo_n "(cached) " >&6
20574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20575 /* end confdefs.h. */
20581 #ifndef fgets_unlocked
20582 char *p = (char *) fgets_unlocked;
20589 if ac_fn_c_try_compile "$LINENO"; then :
20590 ac_cv_have_decl_fgets_unlocked=yes
20592 ac_cv_have_decl_fgets_unlocked=no
20594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20597 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20598 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20604 cat >>confdefs.h <<_ACEOF
20605 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20611 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20612 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20613 $as_echo_n "(cached) " >&6
20615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20616 /* end confdefs.h. */
20622 #ifndef getc_unlocked
20623 char *p = (char *) getc_unlocked;
20630 if ac_fn_c_try_compile "$LINENO"; then :
20631 ac_cv_have_decl_getc_unlocked=yes
20633 ac_cv_have_decl_getc_unlocked=no
20635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20638 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20639 if test $ac_cv_have_decl_getc_unlocked = yes; then
20645 cat >>confdefs.h <<_ACEOF
20646 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20651 case $gt_cv_func_printf_posix in
20652 *yes) HAVE_POSIX_PRINTF=1 ;;
20653 *) HAVE_POSIX_PRINTF=0 ;;
20656 if test "$ac_cv_func_asprintf" = yes; then
20662 if test "$ac_cv_func_snprintf" = yes; then
20668 if test "$ac_cv_func_wprintf" = yes; then
20680 am_save_CPPFLAGS="$CPPFLAGS"
20682 for element in $INCICONV; do
20684 for x in $CPPFLAGS; do
20686 acl_save_prefix="$prefix"
20687 prefix="$acl_final_prefix"
20688 acl_save_exec_prefix="$exec_prefix"
20689 exec_prefix="$acl_final_exec_prefix"
20691 exec_prefix="$acl_save_exec_prefix"
20692 prefix="$acl_save_prefix"
20694 if test "X$x" = "X$element"; then
20699 if test -z "$haveit"; then
20700 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20706 $as_echo_n "checking for iconv... " >&6; }
20707 if ${am_cv_func_iconv+:} false; then :
20708 $as_echo_n "(cached) " >&6
20711 am_cv_func_iconv="no, consider installing GNU libiconv"
20713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20714 /* end confdefs.h. */
20715 #include <stdlib.h>
20720 iconv_t cd = iconv_open("","");
20721 iconv(cd,NULL,NULL,NULL,NULL);
20727 if ac_fn_c_try_link "$LINENO"; then :
20728 am_cv_func_iconv=yes
20730 rm -f core conftest.err conftest.$ac_objext \
20731 conftest$ac_exeext conftest.$ac_ext
20732 if test "$am_cv_func_iconv" != yes; then
20733 am_save_LIBS="$LIBS"
20734 LIBS="$LIBS $LIBICONV"
20735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20736 /* end confdefs.h. */
20737 #include <stdlib.h>
20742 iconv_t cd = iconv_open("","");
20743 iconv(cd,NULL,NULL,NULL,NULL);
20749 if ac_fn_c_try_link "$LINENO"; then :
20750 am_cv_lib_iconv=yes
20751 am_cv_func_iconv=yes
20753 rm -f core conftest.err conftest.$ac_objext \
20754 conftest$ac_exeext conftest.$ac_ext
20755 LIBS="$am_save_LIBS"
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20760 $as_echo "$am_cv_func_iconv" >&6; }
20761 if test "$am_cv_func_iconv" = yes; then
20763 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20766 if test "$am_cv_lib_iconv" = yes; then
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20768 $as_echo_n "checking how to link with libiconv... " >&6; }
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20770 $as_echo "$LIBICONV" >&6; }
20772 CPPFLAGS="$am_save_CPPFLAGS"
20779 if test "$am_cv_func_iconv" = yes; then
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20781 $as_echo_n "checking for iconv declaration... " >&6; }
20782 if ${am_cv_proto_iconv+:} false; then :
20783 $as_echo_n "(cached) " >&6
20786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20787 /* end confdefs.h. */
20789 #include <stdlib.h>
20795 #if defined(__STDC__) || defined(__cplusplus)
20796 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20809 if ac_fn_c_try_compile "$LINENO"; then :
20810 am_cv_proto_iconv_arg1=""
20812 am_cv_proto_iconv_arg1="const"
20814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20815 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);"
20818 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20820 }$am_cv_proto_iconv" >&5
20822 }$am_cv_proto_iconv" >&6; }
20824 cat >>confdefs.h <<_ACEOF
20825 #define ICONV_CONST $am_cv_proto_iconv_arg1
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20832 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20833 if ${am_cv_langinfo_codeset+:} false; then :
20834 $as_echo_n "(cached) " >&6
20836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20837 /* end confdefs.h. */
20838 #include <langinfo.h>
20842 char* cs = nl_langinfo(CODESET);
20847 if ac_fn_c_try_link "$LINENO"; then :
20848 am_cv_langinfo_codeset=yes
20850 am_cv_langinfo_codeset=no
20852 rm -f core conftest.err conftest.$ac_objext \
20853 conftest$ac_exeext conftest.$ac_ext
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20857 $as_echo "$am_cv_langinfo_codeset" >&6; }
20858 if test $am_cv_langinfo_codeset = yes; then
20860 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20864 if test $ac_cv_header_locale_h = yes; then
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20867 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20868 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20869 $as_echo_n "(cached) " >&6
20871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20872 /* end confdefs.h. */
20873 #include <locale.h>
20882 if ac_fn_c_try_link "$LINENO"; then :
20883 gt_cv_val_LC_MESSAGES=yes
20885 gt_cv_val_LC_MESSAGES=no
20887 rm -f core conftest.err conftest.$ac_objext \
20888 conftest$ac_exeext conftest.$ac_ext
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20891 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20892 if test $gt_cv_val_LC_MESSAGES = yes; then
20894 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20900 if test -n "$INTL_MACOSX_LIBS"; then
20901 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20904 for ac_prog in bison
20906 # Extract the first word of "$ac_prog", so it can be a program name with args.
20907 set dummy $ac_prog; ac_word=$2
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20909 $as_echo_n "checking for $ac_word... " >&6; }
20910 if ${ac_cv_prog_INTLBISON+:} false; then :
20911 $as_echo_n "(cached) " >&6
20913 if test -n "$INTLBISON"; then
20914 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20917 for as_dir in $PATH
20920 test -z "$as_dir" && as_dir=.
20921 for ac_exec_ext in '' $ac_executable_extensions; do
20922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20923 ac_cv_prog_INTLBISON="$ac_prog"
20924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20933 INTLBISON=$ac_cv_prog_INTLBISON
20934 if test -n "$INTLBISON"; then
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20936 $as_echo "$INTLBISON" >&6; }
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20939 $as_echo "no" >&6; }
20943 test -n "$INTLBISON" && break
20946 if test -z "$INTLBISON"; then
20949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20950 $as_echo_n "checking version of bison... " >&6; }
20951 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20952 case $ac_prog_version in
20953 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20954 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20955 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20956 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20959 $as_echo "$ac_prog_version" >&6; }
20961 if test $ac_verc_fail = yes; then
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20981 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20982 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20983 $as_echo_n "(cached) " >&6
20985 gt_save_CPPFLAGS="$CPPFLAGS"
20986 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20987 gt_save_LIBS="$LIBS"
20988 LIBS="$LIBS -framework CoreFoundation"
20989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20990 /* end confdefs.h. */
20991 #include <CFPreferences.h>
20995 CFPreferencesCopyAppValue(NULL, NULL)
21000 if ac_fn_c_try_link "$LINENO"; then :
21001 gt_cv_func_CFPreferencesCopyAppValue=yes
21003 gt_cv_func_CFPreferencesCopyAppValue=no
21005 rm -f core conftest.err conftest.$ac_objext \
21006 conftest$ac_exeext conftest.$ac_ext
21007 CPPFLAGS="$gt_save_CPPFLAGS"
21008 LIBS="$gt_save_LIBS"
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21011 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21012 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21014 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21018 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21019 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21020 $as_echo_n "(cached) " >&6
21022 gt_save_CPPFLAGS="$CPPFLAGS"
21023 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21024 gt_save_LIBS="$LIBS"
21025 LIBS="$LIBS -framework CoreFoundation"
21026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h. */
21028 #include <CFLocale.h>
21032 CFLocaleCopyCurrent();
21037 if ac_fn_c_try_link "$LINENO"; then :
21038 gt_cv_func_CFLocaleCopyCurrent=yes
21040 gt_cv_func_CFLocaleCopyCurrent=no
21042 rm -f core conftest.err conftest.$ac_objext \
21043 conftest$ac_exeext conftest.$ac_ext
21044 CPPFLAGS="$gt_save_CPPFLAGS"
21045 LIBS="$gt_save_LIBS"
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21048 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21049 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21051 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21055 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21056 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21063 $as_echo_n "checking whether NLS is requested... " >&6; }
21064 # Check whether --enable-nls was given.
21065 if test "${enable_nls+set}" = set; then :
21066 enableval=$enable_nls; USE_NLS=$enableval
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21072 $as_echo "$USE_NLS" >&6; }
21077 BUILD_INCLUDED_LIBINTL=no
21078 USE_INCLUDED_LIBINTL=no
21084 if test "$USE_NLS" = "yes"; then
21085 gt_use_preinstalled_gnugettext=no
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21088 $as_echo_n "checking whether included gettext is requested... " >&6; }
21090 # Check whether --with-included-gettext was given.
21091 if test "${with_included_gettext+set}" = set; then :
21092 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21094 nls_cv_force_use_gnu_gettext=no
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21098 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21100 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21101 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21109 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21110 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21111 $as_echo_n "(cached) " >&6
21113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h. */
21115 #include <libintl.h>
21116 extern int _nl_msg_cat_cntr;
21117 extern int *_nl_domain_bindings;
21121 bindtextdomain ("", "");
21122 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21127 if ac_fn_c_try_link "$LINENO"; then :
21128 gt_cv_func_gnugettext1_libc=yes
21130 gt_cv_func_gnugettext1_libc=no
21132 rm -f core conftest.err conftest.$ac_objext \
21133 conftest$ac_exeext conftest.$ac_ext
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21136 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21138 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21144 acl_save_prefix="$prefix"
21145 prefix="$acl_final_prefix"
21146 acl_save_exec_prefix="$exec_prefix"
21147 exec_prefix="$acl_final_exec_prefix"
21149 eval additional_includedir=\"$includedir\"
21150 eval additional_libdir=\"$libdir\"
21152 exec_prefix="$acl_save_exec_prefix"
21153 prefix="$acl_save_prefix"
21156 # Check whether --with-libintl-prefix was given.
21157 if test "${with_libintl_prefix+set}" = set; then :
21158 withval=$with_libintl_prefix;
21159 if test "X$withval" = "Xno"; then
21162 if test "X$withval" = "X"; then
21164 acl_save_prefix="$prefix"
21165 prefix="$acl_final_prefix"
21166 acl_save_exec_prefix="$exec_prefix"
21167 exec_prefix="$acl_final_exec_prefix"
21169 eval additional_includedir=\"$includedir\"
21170 eval additional_libdir=\"$libdir\"
21172 exec_prefix="$acl_save_exec_prefix"
21173 prefix="$acl_save_prefix"
21176 additional_includedir="$withval/include"
21177 additional_libdir="$withval/lib"
21188 names_already_handled=
21189 names_next_round='intl '
21190 while test -n "$names_next_round"; do
21191 names_this_round="$names_next_round"
21193 for name in $names_this_round; do
21195 for n in $names_already_handled; do
21196 if test "$n" = "$name"; then
21197 already_handled=yes
21201 if test -z "$already_handled"; then
21202 names_already_handled="$names_already_handled $name"
21203 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21204 eval value=\"\$HAVE_LIB$uppername\"
21205 if test -n "$value"; then
21206 if test "$value" = yes; then
21207 eval value=\"\$LIB$uppername\"
21208 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21209 eval value=\"\$LTLIB$uppername\"
21210 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21219 if test $use_additional = yes; then
21220 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21221 found_dir="$additional_libdir"
21222 found_so="$additional_libdir/lib$name.$shlibext"
21223 if test -f "$additional_libdir/lib$name.la"; then
21224 found_la="$additional_libdir/lib$name.la"
21227 if test -f "$additional_libdir/lib$name.$libext"; then
21228 found_dir="$additional_libdir"
21229 found_a="$additional_libdir/lib$name.$libext"
21230 if test -f "$additional_libdir/lib$name.la"; then
21231 found_la="$additional_libdir/lib$name.la"
21236 if test "X$found_dir" = "X"; then
21237 for x in $LDFLAGS $LTLIBINTL; do
21239 acl_save_prefix="$prefix"
21240 prefix="$acl_final_prefix"
21241 acl_save_exec_prefix="$exec_prefix"
21242 exec_prefix="$acl_final_exec_prefix"
21244 exec_prefix="$acl_save_exec_prefix"
21245 prefix="$acl_save_prefix"
21249 dir=`echo "X$x" | sed -e 's/^X-L//'`
21250 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21252 found_so="$dir/lib$name.$shlibext"
21253 if test -f "$dir/lib$name.la"; then
21254 found_la="$dir/lib$name.la"
21257 if test -f "$dir/lib$name.$libext"; then
21259 found_a="$dir/lib$name.$libext"
21260 if test -f "$dir/lib$name.la"; then
21261 found_la="$dir/lib$name.la"
21267 if test "X$found_dir" != "X"; then
21272 if test "X$found_dir" != "X"; then
21273 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21274 if test "X$found_so" != "X"; then
21275 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21276 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21279 for x in $ltrpathdirs; do
21280 if test "X$x" = "X$found_dir"; then
21285 if test -z "$haveit"; then
21286 ltrpathdirs="$ltrpathdirs $found_dir"
21288 if test "$hardcode_direct" = yes; then
21289 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21291 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21292 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21294 for x in $rpathdirs; do
21295 if test "X$x" = "X$found_dir"; then
21300 if test -z "$haveit"; then
21301 rpathdirs="$rpathdirs $found_dir"
21305 for x in $LDFLAGS $LIBINTL; do
21307 acl_save_prefix="$prefix"
21308 prefix="$acl_final_prefix"
21309 acl_save_exec_prefix="$exec_prefix"
21310 exec_prefix="$acl_final_exec_prefix"
21312 exec_prefix="$acl_save_exec_prefix"
21313 prefix="$acl_save_prefix"
21315 if test "X$x" = "X-L$found_dir"; then
21320 if test -z "$haveit"; then
21321 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21323 if test "$hardcode_minus_L" != no; then
21324 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21326 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21332 if test "X$found_a" != "X"; then
21333 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21335 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21338 additional_includedir=
21339 case "$found_dir" in
21341 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21342 additional_includedir="$basedir/include"
21345 if test "X$additional_includedir" != "X"; then
21346 if test "X$additional_includedir" != "X/usr/include"; then
21348 if test "X$additional_includedir" = "X/usr/local/include"; then
21349 if test -n "$GCC"; then
21351 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21355 if test -z "$haveit"; then
21356 for x in $CPPFLAGS $INCINTL; do
21358 acl_save_prefix="$prefix"
21359 prefix="$acl_final_prefix"
21360 acl_save_exec_prefix="$exec_prefix"
21361 exec_prefix="$acl_final_exec_prefix"
21363 exec_prefix="$acl_save_exec_prefix"
21364 prefix="$acl_save_prefix"
21366 if test "X$x" = "X-I$additional_includedir"; then
21371 if test -z "$haveit"; then
21372 if test -d "$additional_includedir"; then
21373 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21379 if test -n "$found_la"; then
21380 save_libdir="$libdir"
21381 case "$found_la" in
21382 */* | *\\*) . "$found_la" ;;
21383 *) . "./$found_la" ;;
21385 libdir="$save_libdir"
21386 for dep in $dependency_libs; do
21389 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21390 if test "X$additional_libdir" != "X/usr/lib"; then
21392 if test "X$additional_libdir" = "X/usr/local/lib"; then
21393 if test -n "$GCC"; then
21395 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21399 if test -z "$haveit"; then
21401 for x in $LDFLAGS $LIBINTL; do
21403 acl_save_prefix="$prefix"
21404 prefix="$acl_final_prefix"
21405 acl_save_exec_prefix="$exec_prefix"
21406 exec_prefix="$acl_final_exec_prefix"
21408 exec_prefix="$acl_save_exec_prefix"
21409 prefix="$acl_save_prefix"
21411 if test "X$x" = "X-L$additional_libdir"; then
21416 if test -z "$haveit"; then
21417 if test -d "$additional_libdir"; then
21418 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21422 for x in $LDFLAGS $LTLIBINTL; do
21424 acl_save_prefix="$prefix"
21425 prefix="$acl_final_prefix"
21426 acl_save_exec_prefix="$exec_prefix"
21427 exec_prefix="$acl_final_exec_prefix"
21429 exec_prefix="$acl_save_exec_prefix"
21430 prefix="$acl_save_prefix"
21432 if test "X$x" = "X-L$additional_libdir"; then
21437 if test -z "$haveit"; then
21438 if test -d "$additional_libdir"; then
21439 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21446 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21447 if test "$enable_rpath" != no; then
21449 for x in $rpathdirs; do
21450 if test "X$x" = "X$dir"; then
21455 if test -z "$haveit"; then
21456 rpathdirs="$rpathdirs $dir"
21459 for x in $ltrpathdirs; do
21460 if test "X$x" = "X$dir"; then
21465 if test -z "$haveit"; then
21466 ltrpathdirs="$ltrpathdirs $dir"
21471 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21474 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21477 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21478 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21484 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21485 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21491 if test "X$rpathdirs" != "X"; then
21492 if test -n "$hardcode_libdir_separator"; then
21494 for found_dir in $rpathdirs; do
21495 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21497 acl_save_libdir="$libdir"
21499 eval flag=\"$hardcode_libdir_flag_spec\"
21500 libdir="$acl_save_libdir"
21501 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21503 for found_dir in $rpathdirs; do
21504 acl_save_libdir="$libdir"
21505 libdir="$found_dir"
21506 eval flag=\"$hardcode_libdir_flag_spec\"
21507 libdir="$acl_save_libdir"
21508 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21512 if test "X$ltrpathdirs" != "X"; then
21513 for found_dir in $ltrpathdirs; do
21514 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21519 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21520 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21521 $as_echo_n "(cached) " >&6
21523 gt_save_CPPFLAGS="$CPPFLAGS"
21524 CPPFLAGS="$CPPFLAGS $INCINTL"
21525 gt_save_LIBS="$LIBS"
21526 LIBS="$LIBS $LIBINTL"
21527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21528 /* end confdefs.h. */
21529 #include <libintl.h>
21530 extern int _nl_msg_cat_cntr;
21535 const char *_nl_expand_alias (const char *);
21539 bindtextdomain ("", "");
21540 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21545 if ac_fn_c_try_link "$LINENO"; then :
21546 gt_cv_func_gnugettext1_libintl=yes
21548 gt_cv_func_gnugettext1_libintl=no
21550 rm -f core conftest.err conftest.$ac_objext \
21551 conftest$ac_exeext conftest.$ac_ext
21552 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21553 LIBS="$LIBS $LIBICONV"
21554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21555 /* end confdefs.h. */
21556 #include <libintl.h>
21557 extern int _nl_msg_cat_cntr;
21562 const char *_nl_expand_alias (const char *);
21566 bindtextdomain ("", "");
21567 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21572 if ac_fn_c_try_link "$LINENO"; then :
21573 LIBINTL="$LIBINTL $LIBICONV"
21574 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21575 gt_cv_func_gnugettext1_libintl=yes
21578 rm -f core conftest.err conftest.$ac_objext \
21579 conftest$ac_exeext conftest.$ac_ext
21581 CPPFLAGS="$gt_save_CPPFLAGS"
21582 LIBS="$gt_save_LIBS"
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21585 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21588 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21589 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21590 && test "$PACKAGE" != gettext-runtime \
21591 && test "$PACKAGE" != gettext-tools; }; then
21592 gt_use_preinstalled_gnugettext=yes
21600 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21601 nls_cv_use_gnu_gettext=yes
21605 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21606 BUILD_INCLUDED_LIBINTL=yes
21607 USE_INCLUDED_LIBINTL=yes
21608 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21609 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21610 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21614 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21615 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21620 if test -n "$INTL_MACOSX_LIBS"; then
21621 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21622 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21623 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21624 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21628 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21629 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21631 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21639 $as_echo_n "checking whether to use NLS... " >&6; }
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21641 $as_echo "$USE_NLS" >&6; }
21642 if test "$USE_NLS" = "yes"; then
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21644 $as_echo_n "checking where the gettext function comes from... " >&6; }
21645 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21646 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21647 gt_source="external libintl"
21652 gt_source="included intl directory"
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21655 $as_echo "$gt_source" >&6; }
21658 if test "$USE_NLS" = "yes"; then
21660 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21661 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21663 $as_echo_n "checking how to link with libintl... " >&6; }
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21665 $as_echo "$LIBINTL" >&6; }
21667 for element in $INCINTL; do
21669 for x in $CPPFLAGS; do
21671 acl_save_prefix="$prefix"
21672 prefix="$acl_final_prefix"
21673 acl_save_exec_prefix="$exec_prefix"
21674 exec_prefix="$acl_final_exec_prefix"
21676 exec_prefix="$acl_save_exec_prefix"
21677 prefix="$acl_save_prefix"
21679 if test "X$x" = "X$element"; then
21684 if test -z "$haveit"; then
21685 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21692 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21695 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21703 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21704 BUILD_INCLUDED_LIBINTL=yes
21711 nls_cv_header_intl=
21712 nls_cv_header_libgt=
21724 if test "$USE_INCLUDED_LIBINTL" = yes; then
21725 INTLOBJS="\$(GETTOBJS)"
21729 INTL_LIBTOOL_SUFFIX_PREFIX=
21733 INTLLIBS="$LIBINTL"
21742 support_smartalloc=yes
21743 support_readline=yes
21749 support_static_tools=no
21750 support_static_fd=no
21751 support_static_sd=no
21752 support_static_dir=no
21753 support_static_cons=no
21754 build_client_only=no
21758 batch_insert_db_backends=""
21762 # Check whether --enable-bat was given.
21763 if test "${enable_bat+set}" = set; then :
21764 enableval=$enable_bat;
21765 if test x$enableval = xyes; then
21767 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21777 if test x$support_bat = xyes; then
21778 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21780 if test $pkg = 0; then
21781 BAT_DIR=src/qt-console
21783 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21801 # Check whether --enable-smartalloc was given.
21802 if test "${enable_smartalloc+set}" = set; then :
21803 enableval=$enable_smartalloc;
21804 if test x$enableval = xno; then
21805 support_smartalloc=no
21812 if test x$support_smartalloc = xyes; then
21814 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21818 # Check whether --enable-lockmgr was given.
21819 if test "${enable_lockmgr+set}" = set; then :
21820 enableval=$enable_lockmgr;
21821 if test x$enableval = xyes; then
21822 support_lockmgr=yes
21829 if test x$support_lockmgr = xyes; then
21831 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21836 # Check whether --enable-static-tools was given.
21837 if test "${enable_static_tools+set}" = set; then :
21838 enableval=$enable_static_tools;
21839 if test x$enableval = xyes; then
21840 if test x$use_libtool = xyes; then
21841 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21842 please rerun configure with --disable-libtool" "$LINENO" 5
21844 support_static_tools=yes
21852 if test x$support_static_tools = xyes; then
21853 TTOOL_LDFLAGS="-static"
21857 # Check whether --enable-static-fd was given.
21858 if test "${enable_static_fd+set}" = set; then :
21859 enableval=$enable_static_fd;
21860 if test x$enableval = xyes; then
21861 if test x$use_libtool = xyes; then
21862 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21863 please rerun configure with --disable-libtool" "$LINENO" 5
21865 support_static_fd=yes
21873 if test x$support_static_fd = xyes; then
21874 STATIC_FD="static-bacula-fd"
21878 # Check whether --enable-static-sd was given.
21879 if test "${enable_static_sd+set}" = set; then :
21880 enableval=$enable_static_sd;
21881 if test x$enableval = xyes; then
21882 if test x$use_libtool = xyes; then
21883 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21884 please rerun configure with --disable-libtool" "$LINENO" 5
21886 support_static_sd=yes
21894 if test x$support_static_sd = xyes; then
21895 STATIC_SD="static-bacula-sd"
21899 # Check whether --enable-static-dir was given.
21900 if test "${enable_static_dir+set}" = set; then :
21901 enableval=$enable_static_dir;
21902 if test x$enableval = xyes; then
21903 if test x$use_libtool = xyes; then
21904 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21905 please rerun configure with --disable-libtool" "$LINENO" 5
21907 support_static_dir=yes
21915 if test x$support_static_dir = xyes; then
21916 STATIC_DIR="static-bacula-dir"
21920 # Check whether --enable-static-cons was given.
21921 if test "${enable_static_cons+set}" = set; then :
21922 enableval=$enable_static_cons;
21923 if test x$enableval = xyes; then
21924 if test x$use_libtool = xyes; then
21925 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21926 please rerun configure with --disable-libtool" "$LINENO" 5
21928 support_static_cons=yes
21936 if test x$support_static_cons = xyes; then
21937 STATIC_CONS="static-bconsole"
21941 # Check whether --enable-client-only was given.
21942 if test "${enable_client_only+set}" = set; then :
21943 enableval=$enable_client_only;
21944 if test x$enableval = xyes; then
21945 build_client_only=yes
21953 if test x$build_client_only = xno; then
21960 # Check whether --enable-build-dird was given.
21961 if test "${enable_build_dird+set}" = set; then :
21962 enableval=$enable_build_dird;
21963 if test x$enableval = xno; then
21971 DIRD_DIR="src/dird"
21972 DIR_TOOLS="DIRTOOLS"
21977 # Check whether --enable-build-stored was given.
21978 if test "${enable_build_stored+set}" = set; then :
21979 enableval=$enable_build_stored;
21980 if test x$enableval = xno; then
21987 if test x$build_stored = xyes; then
21988 STORED_DIR="src/stored"
21994 # Check whether --enable-conio was given.
21995 if test "${enable_conio+set}" = set; then :
21996 enableval=$enable_conio;
21997 if test x$enableval = xno; then
22007 # Check whether --enable-ipv6 was given.
22008 if test "${enable_ipv6+set}" = set; then :
22009 enableval=$enable_ipv6;
22010 if test x$enableval = xno; then
22018 if test x$support_ipv6 = xyes; then
22019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22020 /* end confdefs.h. */
22021 #include <sys/types.h>
22022 #include <sys/socket.h>
22023 #include <netinet/in.h>
22027 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22032 if ac_fn_c_try_link "$LINENO"; then :
22033 support_in6addr_any=yes
22035 support_in6addr_any=no
22037 rm -f core conftest.err conftest.$ac_objext \
22038 conftest$ac_exeext conftest.$ac_ext
22040 if test x$support_in6addr_any = xno ; then
22041 in6addr_any="const struct in6_addr in6addr_any"
22046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22047 /* end confdefs.h. */
22048 #include <sys/types.h>
22049 #include <sys/socket.h>
22050 #include <netinet/in.h>
22054 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22059 if ac_fn_c_try_link "$LINENO"; then :
22064 rm -f core conftest.err conftest.$ac_objext \
22065 conftest$ac_exeext conftest.$ac_ext
22068 if test x$support_ipv6 = xyes; then
22070 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22073 if test x$support_in6addr_any = xno ; then
22075 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22081 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22082 if test "x$ac_cv_header_curses_h" = xyes; then :
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22085 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22086 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22087 $as_echo_n "(cached) " >&6
22089 ac_check_lib_save_LIBS=$LIBS
22090 LIBS="-ltinfo $LIBS"
22091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h. */
22094 /* Override any GCC internal prototype to avoid an error.
22095 Use char because int might match the return type of a GCC
22096 builtin and then its argument prototype would still apply. */
22109 if ac_fn_c_try_link "$LINENO"; then :
22110 ac_cv_lib_tinfo_tgetent=yes
22112 ac_cv_lib_tinfo_tgetent=no
22114 rm -f core conftest.err conftest.$ac_objext \
22115 conftest$ac_exeext conftest.$ac_ext
22116 LIBS=$ac_check_lib_save_LIBS
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22119 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22120 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22125 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22126 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22127 $as_echo_n "(cached) " >&6
22129 ac_check_lib_save_LIBS=$LIBS
22130 LIBS="-lncurses $LIBS"
22131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22132 /* end confdefs.h. */
22134 /* Override any GCC internal prototype to avoid an error.
22135 Use char because int might match the return type of a GCC
22136 builtin and then its argument prototype would still apply. */
22149 if ac_fn_c_try_link "$LINENO"; then :
22150 ac_cv_lib_ncurses_tgetent=yes
22152 ac_cv_lib_ncurses_tgetent=no
22154 rm -f core conftest.err conftest.$ac_objext \
22155 conftest$ac_exeext conftest.$ac_ext
22156 LIBS=$ac_check_lib_save_LIBS
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22159 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22160 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22161 TERM_LIB="-lncurses"
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22165 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22166 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22167 $as_echo_n "(cached) " >&6
22169 ac_check_lib_save_LIBS=$LIBS
22170 LIBS="-ltermcap $LIBS"
22171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22172 /* end confdefs.h. */
22174 /* Override any GCC internal prototype to avoid an error.
22175 Use char because int might match the return type of a GCC
22176 builtin and then its argument prototype would still apply. */
22189 if ac_fn_c_try_link "$LINENO"; then :
22190 ac_cv_lib_termcap_tgetent=yes
22192 ac_cv_lib_termcap_tgetent=no
22194 rm -f core conftest.err conftest.$ac_objext \
22195 conftest$ac_exeext conftest.$ac_ext
22196 LIBS=$ac_check_lib_save_LIBS
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22199 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22200 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22201 TERM_LIB="-ltermcap"
22212 for ac_header in curses.h
22214 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22215 if test "x$ac_cv_header_curses_h" = xyes; then :
22216 cat >>confdefs.h <<_ACEOF
22217 #define HAVE_CURSES_H 1
22224 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22225 if test "x$ac_cv_header_term_h" = xyes; then :
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22227 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22228 if ${ac_cv_lib_curses_tgetent+:} false; then :
22229 $as_echo_n "(cached) " >&6
22231 ac_check_lib_save_LIBS=$LIBS
22232 LIBS="-lcurses $LIBS"
22233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22234 /* end confdefs.h. */
22236 /* Override any GCC internal prototype to avoid an error.
22237 Use char because int might match the return type of a GCC
22238 builtin and then its argument prototype would still apply. */
22251 if ac_fn_c_try_link "$LINENO"; then :
22252 ac_cv_lib_curses_tgetent=yes
22254 ac_cv_lib_curses_tgetent=no
22256 rm -f core conftest.err conftest.$ac_objext \
22257 conftest$ac_exeext conftest.$ac_ext
22258 LIBS=$ac_check_lib_save_LIBS
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22261 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22262 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22263 TERM_LIB="-lcurses"
22277 if test x$support_conio = xyes; then
22278 if test x$TERM_LIB != x; then
22279 CONS_LIBS=$TERM_LIB
22283 support_readline=no
22285 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22288 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22293 # Check whether --enable-readline was given.
22294 if test "${enable_readline+set}" = set; then :
22295 enableval=$enable_readline;
22296 if test x$enableval = xno; then
22297 support_readline=no
22306 if test x$support_readline = xyes; then
22308 # Check whether --with-readline was given.
22309 if test "${with_readline+set}" = set; then :
22310 withval=$with_readline;
22311 case "$with_readline" in
22316 if test -f ${with_readline}/readline.h; then
22317 CONS_INC="-I${with_readline}"
22318 CONS_LDFLAGS="-L$with_readline"
22319 elif test -f ${with_readline}/include/readline/readline.h; then
22320 CONS_INC="-I${with_readline}/include/readline"
22321 CONS_LDFLAGS="-L${with_readline}/lib"
22322 with_readline="${with_readline}/include/readline"
22324 with_readline="/usr/include/readline"
22327 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22328 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22329 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22332 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22334 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22340 echo "readline.h not found. readline turned off ..."
22352 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22353 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22356 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22359 CONS_INC="-I/usr/include/readline"
22360 CONS_LIBS="-lreadline ${TERM_LIB}"
22364 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22365 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22369 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22372 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22373 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22374 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22375 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22380 echo "readline.h not found. readline turned off ..."
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22408 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22409 if ${ac_cv_header_stat_broken+:} false; then :
22410 $as_echo_n "(cached) " >&6
22412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22413 /* end confdefs.h. */
22414 #include <sys/types.h>
22415 #include <sys/stat.h>
22417 #if defined S_ISBLK && defined S_IFDIR
22418 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22421 #if defined S_ISBLK && defined S_IFCHR
22422 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22425 #if defined S_ISLNK && defined S_IFREG
22426 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22429 #if defined S_ISSOCK && defined S_IFREG
22430 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22434 if ac_fn_c_try_compile "$LINENO"; then :
22435 ac_cv_header_stat_broken=no
22437 ac_cv_header_stat_broken=yes
22439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22442 $as_echo "$ac_cv_header_stat_broken" >&6; }
22443 if test $ac_cv_header_stat_broken = yes; then
22445 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22449 ac_header_dirent=no
22450 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22451 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22453 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22454 if eval \${$as_ac_Header+:} false; then :
22455 $as_echo_n "(cached) " >&6
22457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22458 /* end confdefs.h. */
22459 #include <sys/types.h>
22471 if ac_fn_c_try_compile "$LINENO"; then :
22472 eval "$as_ac_Header=yes"
22474 eval "$as_ac_Header=no"
22476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22478 eval ac_res=\$$as_ac_Header
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22480 $as_echo "$ac_res" >&6; }
22481 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22482 cat >>confdefs.h <<_ACEOF
22483 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22486 ac_header_dirent=$ac_hdr; break
22490 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22491 if test $ac_header_dirent = dirent.h; then
22492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22493 $as_echo_n "checking for library containing opendir... " >&6; }
22494 if ${ac_cv_search_opendir+:} false; then :
22495 $as_echo_n "(cached) " >&6
22497 ac_func_search_save_LIBS=$LIBS
22498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22499 /* end confdefs.h. */
22501 /* Override any GCC internal prototype to avoid an error.
22502 Use char because int might match the return type of a GCC
22503 builtin and then its argument prototype would still apply. */
22516 for ac_lib in '' dir; do
22517 if test -z "$ac_lib"; then
22518 ac_res="none required"
22521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22523 if ac_fn_c_try_link "$LINENO"; then :
22524 ac_cv_search_opendir=$ac_res
22526 rm -f core conftest.err conftest.$ac_objext \
22528 if ${ac_cv_search_opendir+:} false; then :
22532 if ${ac_cv_search_opendir+:} false; then :
22535 ac_cv_search_opendir=no
22537 rm conftest.$ac_ext
22538 LIBS=$ac_func_search_save_LIBS
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22541 $as_echo "$ac_cv_search_opendir" >&6; }
22542 ac_res=$ac_cv_search_opendir
22543 if test "$ac_res" != no; then :
22544 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22550 $as_echo_n "checking for library containing opendir... " >&6; }
22551 if ${ac_cv_search_opendir+:} false; then :
22552 $as_echo_n "(cached) " >&6
22554 ac_func_search_save_LIBS=$LIBS
22555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22556 /* end confdefs.h. */
22558 /* Override any GCC internal prototype to avoid an error.
22559 Use char because int might match the return type of a GCC
22560 builtin and then its argument prototype would still apply. */
22573 for ac_lib in '' x; do
22574 if test -z "$ac_lib"; then
22575 ac_res="none required"
22578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22580 if ac_fn_c_try_link "$LINENO"; then :
22581 ac_cv_search_opendir=$ac_res
22583 rm -f core conftest.err conftest.$ac_objext \
22585 if ${ac_cv_search_opendir+:} false; then :
22589 if ${ac_cv_search_opendir+:} false; then :
22592 ac_cv_search_opendir=no
22594 rm conftest.$ac_ext
22595 LIBS=$ac_func_search_save_LIBS
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22598 $as_echo "$ac_cv_search_opendir" >&6; }
22599 ac_res=$ac_cv_search_opendir
22600 if test "$ac_res" != no; then :
22601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22607 for ac_func in strcasecmp select setenv putenv tcgetattr
22609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22611 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22612 cat >>confdefs.h <<_ACEOF
22613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22619 for ac_func in lstat lchown lchmod futimes fchmod fchown
22621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22622 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22623 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22624 cat >>confdefs.h <<_ACEOF
22625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22631 for ac_func in nanosleep nl_langinfo
22633 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22634 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22635 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22636 cat >>confdefs.h <<_ACEOF
22637 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22643 for ac_func in be64toh htobe64
22645 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22646 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22647 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22648 cat >>confdefs.h <<_ACEOF
22649 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22655 for ac_header in varargs.h
22657 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22658 if test "x$ac_cv_header_varargs_h" = xyes; then :
22659 cat >>confdefs.h <<_ACEOF
22660 #define HAVE_VARARGS_H 1
22669 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22670 if test "x$ac_cv_func_socket" = xyes; then :
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22672 $as_echo "using libc's socket" >&6; }
22674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22675 $as_echo_n "checking for socket in -lxnet... " >&6; }
22676 if ${ac_cv_lib_xnet_socket+:} false; then :
22677 $as_echo_n "(cached) " >&6
22679 ac_check_lib_save_LIBS=$LIBS
22680 LIBS="-lxnet $LIBS"
22681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22682 /* end confdefs.h. */
22684 /* Override any GCC internal prototype to avoid an error.
22685 Use char because int might match the return type of a GCC
22686 builtin and then its argument prototype would still apply. */
22699 if ac_fn_c_try_link "$LINENO"; then :
22700 ac_cv_lib_xnet_socket=yes
22702 ac_cv_lib_xnet_socket=no
22704 rm -f core conftest.err conftest.$ac_objext \
22705 conftest$ac_exeext conftest.$ac_ext
22706 LIBS=$ac_check_lib_save_LIBS
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22709 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22710 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22711 cat >>confdefs.h <<_ACEOF
22712 #define HAVE_LIBXNET 1
22715 LIBS="-lxnet $LIBS"
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22720 $as_echo_n "checking for socket in -lsocket... " >&6; }
22721 if ${ac_cv_lib_socket_socket+:} false; then :
22722 $as_echo_n "(cached) " >&6
22724 ac_check_lib_save_LIBS=$LIBS
22725 LIBS="-lsocket $LIBS"
22726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22727 /* end confdefs.h. */
22729 /* Override any GCC internal prototype to avoid an error.
22730 Use char because int might match the return type of a GCC
22731 builtin and then its argument prototype would still apply. */
22744 if ac_fn_c_try_link "$LINENO"; then :
22745 ac_cv_lib_socket_socket=yes
22747 ac_cv_lib_socket_socket=no
22749 rm -f core conftest.err conftest.$ac_objext \
22750 conftest$ac_exeext conftest.$ac_ext
22751 LIBS=$ac_check_lib_save_LIBS
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22754 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22755 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22756 cat >>confdefs.h <<_ACEOF
22757 #define HAVE_LIBSOCKET 1
22760 LIBS="-lsocket $LIBS"
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22765 $as_echo_n "checking for socket in -linet... " >&6; }
22766 if ${ac_cv_lib_inet_socket+:} false; then :
22767 $as_echo_n "(cached) " >&6
22769 ac_check_lib_save_LIBS=$LIBS
22770 LIBS="-linet $LIBS"
22771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22772 /* end confdefs.h. */
22774 /* Override any GCC internal prototype to avoid an error.
22775 Use char because int might match the return type of a GCC
22776 builtin and then its argument prototype would still apply. */
22789 if ac_fn_c_try_link "$LINENO"; then :
22790 ac_cv_lib_inet_socket=yes
22792 ac_cv_lib_inet_socket=no
22794 rm -f core conftest.err conftest.$ac_objext \
22795 conftest$ac_exeext conftest.$ac_ext
22796 LIBS=$ac_check_lib_save_LIBS
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22799 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22800 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22801 cat >>confdefs.h <<_ACEOF
22802 #define HAVE_LIBINET 1
22805 LIBS="-linet $LIBS"
22815 # Check whether --with-tcp-wrappers was given.
22816 if test "${with_tcp_wrappers+set}" = set; then :
22817 withval=$with_tcp_wrappers;
22818 if test "x$withval" != "xno" ; then
22820 LIBS="$saved_LIBS -lwrap"
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22822 $as_echo_n "checking for library containing nanosleep... " >&6; }
22823 if ${ac_cv_search_nanosleep+:} false; then :
22824 $as_echo_n "(cached) " >&6
22826 ac_func_search_save_LIBS=$LIBS
22827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22828 /* end confdefs.h. */
22830 /* Override any GCC internal prototype to avoid an error.
22831 Use char because int might match the return type of a GCC
22832 builtin and then its argument prototype would still apply. */
22840 return nanosleep ();
22845 for ac_lib in '' rt; do
22846 if test -z "$ac_lib"; then
22847 ac_res="none required"
22850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22852 if ac_fn_c_try_link "$LINENO"; then :
22853 ac_cv_search_nanosleep=$ac_res
22855 rm -f core conftest.err conftest.$ac_objext \
22857 if ${ac_cv_search_nanosleep+:} false; then :
22861 if ${ac_cv_search_nanosleep+:} false; then :
22864 ac_cv_search_nanosleep=no
22866 rm conftest.$ac_ext
22867 LIBS=$ac_func_search_save_LIBS
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22870 $as_echo "$ac_cv_search_nanosleep" >&6; }
22871 ac_res=$ac_cv_search_nanosleep
22872 if test "$ac_res" != no; then :
22873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22878 $as_echo_n "checking for libwrap... " >&6; }
22879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22880 /* end confdefs.h. */
22882 #include <sys/types.h>
22884 int deny_severity = 0;
22885 int allow_severity = 0;
22886 struct request_info *req;
22898 if ac_fn_c_try_link "$LINENO"; then :
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22901 $as_echo "yes" >&6; }
22903 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22911 LIBS="$saved_LIBS -lwrap -lnsl"
22912 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22914 /* end confdefs.h. */
22916 #include <sys/types.h>
22918 int deny_severity = 0;
22919 int allow_severity = 0;
22920 struct request_info *req;
22932 if ac_fn_c_try_link "$LINENO"; then :
22934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22935 $as_echo "yes" >&6; }
22937 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22945 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22949 rm -f core conftest.err conftest.$ac_objext \
22950 conftest$ac_exeext conftest.$ac_ext
22954 rm -f core conftest.err conftest.$ac_objext \
22955 conftest$ac_exeext conftest.$ac_ext
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22963 $as_echo_n "checking for OpenSSL... " >&6; }
22965 # Check whether --with-openssl was given.
22966 if test "${with_openssl+set}" = set; then :
22967 withval=$with_openssl;
22968 with_openssl_directory=${withval}
22974 if test "x$with_openssl_directory" != "xno"; then
22975 OPENSSL_LIBS="-lssl -lcrypto"
22978 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22980 # Make sure the $with_openssl_directory also makes sense
22982 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22983 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22984 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22988 saved_LIBS="${LIBS}"
22989 saved_CFLAGS="${CFLAGS}"
22990 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22991 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22994 /* end confdefs.h. */
22996 #include <openssl/ssl.h>
23002 CRYPTO_set_id_callback(NULL);
23008 if ac_fn_c_try_link "$LINENO"; then :
23011 support_crypto="yes"
23016 support_crypto="no"
23020 rm -f core conftest.err conftest.$ac_objext \
23021 conftest$ac_exeext conftest.$ac_ext
23023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23024 /* end confdefs.h. */
23026 #include <openssl/evp.h>
23038 if ac_fn_c_try_link "$LINENO"; then :
23040 ac_cv_openssl_sha2="yes"
23044 ac_cv_openssl_sha2="no"
23048 rm -f core conftest.err conftest.$ac_objext \
23049 conftest$ac_exeext conftest.$ac_ext
23051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23052 /* end confdefs.h. */
23054 #include <openssl/evp.h>
23066 if ac_fn_c_try_link "$LINENO"; then :
23068 ac_cv_openssl_export="no"
23072 ac_cv_openssl_export="yes"
23076 rm -f core conftest.err conftest.$ac_objext \
23077 conftest$ac_exeext conftest.$ac_ext
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23080 $as_echo "$support_tls" >&6; }
23081 if test "$support_tls" = "yes"; then
23083 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23086 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23089 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23093 if test "$ac_cv_openssl_sha2" = "yes"; then
23095 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23099 if test "$ac_cv_openssl_export" = "yes"; then
23101 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23105 if test "$support_crypto" = "yes"; then
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23107 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23108 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23109 $as_echo_n "(cached) " >&6
23111 ac_check_lib_save_LIBS=$LIBS
23112 LIBS="-lcrypto $LIBS"
23113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23114 /* end confdefs.h. */
23116 /* Override any GCC internal prototype to avoid an error.
23117 Use char because int might match the return type of a GCC
23118 builtin and then its argument prototype would still apply. */
23122 char EVP_PKEY_encrypt_old ();
23126 return EVP_PKEY_encrypt_old ();
23131 if ac_fn_c_try_link "$LINENO"; then :
23132 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23134 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23136 rm -f core conftest.err conftest.$ac_objext \
23137 conftest$ac_exeext conftest.$ac_ext
23138 LIBS=$ac_check_lib_save_LIBS
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23141 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23142 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23144 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23150 LIBS="${saved_LIBS}"
23151 CFLAGS="${saved_CFLAGS}"
23154 support_crypto="no"
23155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23156 $as_echo "$support_tls" >&6; }
23159 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23168 $as_echo_n "checking for library containing dlopen... " >&6; }
23169 if ${ac_cv_search_dlopen+:} false; then :
23170 $as_echo_n "(cached) " >&6
23172 ac_func_search_save_LIBS=$LIBS
23173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23174 /* end confdefs.h. */
23176 /* Override any GCC internal prototype to avoid an error.
23177 Use char because int might match the return type of a GCC
23178 builtin and then its argument prototype would still apply. */
23191 for ac_lib in '' dl; do
23192 if test -z "$ac_lib"; then
23193 ac_res="none required"
23196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23198 if ac_fn_c_try_link "$LINENO"; then :
23199 ac_cv_search_dlopen=$ac_res
23201 rm -f core conftest.err conftest.$ac_objext \
23203 if ${ac_cv_search_dlopen+:} false; then :
23207 if ${ac_cv_search_dlopen+:} false; then :
23210 ac_cv_search_dlopen=no
23212 rm conftest.$ac_ext
23213 LIBS=$ac_func_search_save_LIBS
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23216 $as_echo "$ac_cv_search_dlopen" >&6; }
23217 ac_res=$ac_cv_search_dlopen
23218 if test "$ac_res" != no; then :
23219 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23224 working_dir=`eval echo /opt/bacula/working`
23226 # Check whether --with-working-dir was given.
23227 if test "${with_working_dir+set}" = set; then :
23228 withval=$with_working_dir;
23229 if test "x$withval" != "xno" ; then
23230 working_dir=$withval
23241 # Check whether --with-archivedir was given.
23242 if test "${with_archivedir+set}" = set; then :
23243 withval=$with_archivedir;
23244 if test "x$withval" != "xno" ; then
23245 archivedir=$withval
23254 basename=`hostname`
23256 # Check whether --with-basename was given.
23257 if test "${with_basename+set}" = set; then :
23258 withval=$with_basename;
23259 if test "x$withval" != "xno" ; then
23269 hostname=`uname -n | cut -d '.' -f 1`
23270 if test x${hostname} = x ; then
23271 hostname="localhost"
23273 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23274 if test ! $? = 0; then
23275 hostname="localhost"
23278 # Check whether --with-hostname was given.
23279 if test "${with_hostname+set}" = set; then :
23280 withval=$with_hostname;
23281 if test "x$withval" != "xno" ; then
23292 scriptdir=`eval echo ${sysconfdir}`
23294 # Check whether --with-scriptdir was given.
23295 if test "${with_scriptdir+set}" = set; then :
23296 withval=$with_scriptdir;
23297 if test "x$withval" != "xno" ; then
23308 bsrdir=`eval echo /opt/bacula/bsr`
23310 # Check whether --with-bsrdir was given.
23311 if test "${with_bsrdir+set}" = set; then :
23312 withval=$with_bsrdir;
23313 if test "x$withval" != "xno" ; then
23323 logdir=`eval echo /opt/bacula/log`
23325 # Check whether --with-logdir was given.
23326 if test "${with_logdir+set}" = set; then :
23327 withval=$with_logdir;
23328 if test "x$withval" != "xno" ; then
23339 # ------------------------------------------
23340 # Where to place plugindir (plugin files)
23341 # ------------------------------------------
23342 plugindir=`eval echo ${libdir}`
23344 # Check whether --with-plugindir was given.
23345 if test "${with_plugindir+set}" = set; then :
23346 withval=$with_plugindir;
23347 if test "x$withval" != "xno" ; then
23358 dump_email=root@localhost
23360 # Check whether --with-dump-email was given.
23361 if test "${with_dump_email+set}" = set; then :
23362 withval=$with_dump_email;
23363 if test "x$withval" != "xno" ; then
23364 dump_email=$withval
23373 job_email=root@localhost
23375 # Check whether --with-job-email was given.
23376 if test "${with_job_email+set}" = set; then :
23377 withval=$with_job_email;
23378 if test "x$withval" != "xno" ; then
23388 smtp_host=localhost
23390 # Check whether --with-smtp_host was given.
23391 if test "${with_smtp_host+set}" = set; then :
23392 withval=$with_smtp_host;
23393 if test "x$withval" != "xno" ; then
23405 # Check whether --with-pid-dir was given.
23406 if test "${with_pid_dir+set}" = set; then :
23407 withval=$with_pid_dir;
23408 if test "x$withval" != "xno" ; then
23416 cat >>confdefs.h <<_ACEOF
23417 #define _PATH_BACULA_PIDDIR "$piddir"
23422 subsysdir=/var/run/subsys
23423 if test -d /var/run/subsys; then
23424 subsysdir=/var/run/subsys
23425 elif test -d /var/lock/subsys; then
23426 subsysdir=/var/lock/subsys
23428 subsysdir=/var/run/subsys
23431 # Check whether --with-subsys-dir was given.
23432 if test "${with_subsys_dir+set}" = set; then :
23433 withval=$with_subsys_dir;
23434 if test "x$withval" != "xno" ; then
23446 # Check whether --with-baseport was given.
23447 if test "${with_baseport+set}" = set; then :
23448 withval=$with_baseport;
23449 if test "x$withval" != "xno" ; then
23458 dir_port=`expr $baseport`
23459 fd_port=`expr $baseport + 1`
23460 sd_port=`expr $fd_port + 1`
23468 # Check whether --with-dir-password was given.
23469 if test "${with_dir_password+set}" = set; then :
23470 withval=$with_dir_password;
23471 if test "x$withval" != "xno" ; then
23472 dir_password=$withval
23479 if test "x$dir_password" = "x" ; then
23480 if test "x$OPENSSL" = "xnone" ; then
23481 key=`autoconf/randpass 33`
23483 key=`openssl rand -base64 33`
23490 # Check whether --with-fd-password was given.
23491 if test "${with_fd_password+set}" = set; then :
23492 withval=$with_fd_password;
23493 if test "x$withval" != "xno" ; then
23494 fd_password=$withval
23501 if test "x$fd_password" = "x" ; then
23502 if test "x$OPENSSL" = "xnone" ; then
23503 key=`autoconf/randpass 37`
23505 key=`openssl rand -base64 33`
23512 # Check whether --with-sd-password was given.
23513 if test "${with_sd_password+set}" = set; then :
23514 withval=$with_sd_password;
23515 if test "x$withval" != "xno" ; then
23516 sd_password=$withval
23523 if test "x$sd_password" = "x" ; then
23524 if test "x$OPENSSL" = "xnone" ; then
23525 key=`autoconf/randpass 41`
23527 key=`openssl rand -base64 33`
23534 # Check whether --with-mon-dir-password was given.
23535 if test "${with_mon_dir_password+set}" = set; then :
23536 withval=$with_mon_dir_password;
23537 if test "x$withval" != "xno" ; then
23538 mon_dir_password=$withval
23545 if test "x$mon_dir_password" = "x" ; then
23546 if test "x$OPENSSL" = "xnone" ; then
23547 key=`autoconf/randpass 33`
23549 key=`openssl rand -base64 33`
23551 mon_dir_password=$key
23556 # Check whether --with-mon-fd-password was given.
23557 if test "${with_mon_fd_password+set}" = set; then :
23558 withval=$with_mon_fd_password;
23559 if test "x$withval" != "xno" ; then
23560 mon_fd_password=$withval
23567 if test "x$mon_fd_password" = "x" ; then
23568 if test "x$OPENSSL" = "xnone" ; then
23569 key=`autoconf/randpass 37`
23571 key=`openssl rand -base64 33`
23573 mon_fd_password=$key
23578 # Check whether --with-mon-sd-password was given.
23579 if test "${with_mon_sd_password+set}" = set; then :
23580 withval=$with_mon_sd_password;
23581 if test "x$withval" != "xno" ; then
23582 mon_sd_password=$withval
23589 if test "x$mon_sd_password" = "x" ; then
23590 if test "x$OPENSSL" = "xnone" ; then
23591 key=`autoconf/randpass 41`
23593 key=`openssl rand -base64 33`
23595 mon_sd_password=$key
23607 # Check whether --with-db_name was given.
23608 if test "${with_db_name+set}" = set; then :
23609 withval=$with_db_name;
23610 if test "x$withval" != "x" ; then
23621 # Check whether --with-db_user was given.
23622 if test "${with_db_user+set}" = set; then :
23623 withval=$with_db_user;
23624 if test "x$withval" != "x" ; then
23635 # Check whether --with-db_password was given.
23636 if test "${with_db_password+set}" = set; then :
23637 withval=$with_db_password;
23638 if test "x$withval" != "x" ; then
23639 db_password=$withval
23649 # Check whether --with-db_port was given.
23650 if test "${with_db_port+set}" = set; then :
23651 withval=$with_db_port;
23652 if test "x$withval" != "x" ; then
23662 # Handle users and groups for each daemon
23666 # Check whether --with-dir_user was given.
23667 if test "${with_dir_user+set}" = set; then :
23668 withval=$with_dir_user;
23669 if test "x$withval" != "x" ; then
23679 # Check whether --with-dir_group was given.
23680 if test "${with_dir_group+set}" = set; then :
23681 withval=$with_dir_group;
23682 if test "x$withval" != "x" ; then
23692 # Check whether --with-sd_user was given.
23693 if test "${with_sd_user+set}" = set; then :
23694 withval=$with_sd_user;
23695 if test "x$withval" != "x" ; then
23705 # Check whether --with-sd_group was given.
23706 if test "${with_sd_group+set}" = set; then :
23707 withval=$with_sd_group;
23708 if test "x$withval" != "x" ; then
23718 # Check whether --with-fd_user was given.
23719 if test "${with_fd_user+set}" = set; then :
23720 withval=$with_fd_user;
23721 if test "x$withval" != "x" ; then
23731 # Check whether --with-fd_group was given.
23732 if test "${with_fd_group+set}" = set; then :
23733 withval=$with_fd_group;
23734 if test "x$withval" != "x" ; then
23751 # Check whether --with-sbin-perm was given.
23752 if test "${with_sbin_perm+set}" = set; then :
23753 withval=$with_sbin_perm;
23754 if test "x$withval" != "x" ; then
23764 support_batch_insert=yes
23765 # Check whether --enable-batch-insert was given.
23766 if test "${enable_batch_insert+set}" = set; then :
23767 enableval=$enable_batch_insert;
23768 if test x$enableval = xno; then
23769 support_batch_insert=no
23776 if test x$support_batch_insert = xyes; then
23778 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23787 $as_echo_n "checking for PostgreSQL support... " >&6; }
23789 # Check whether --with-postgresql was given.
23790 if test "${with_postgresql+set}" = set; then :
23791 withval=$with_postgresql;
23792 if test "$withval" != "no"; then
23793 if test "$withval" = "yes"; then
23794 PG_CONFIG=`which pg_config 2>/dev/null`
23795 if test -n "$PG_CONFIG"; then
23796 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23797 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23798 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23799 elif test -f /usr/local/include/libpq-fe.h; then
23800 POSTGRESQL_INCDIR=/usr/local/include
23801 if test -d /usr/local/lib64; then
23802 POSTGRESQL_LIBDIR=/usr/local/lib64
23804 POSTGRESQL_LIBDIR=/usr/local/lib
23806 POSTGRESQL_BINDIR=/usr/local/bin
23807 elif test -f /usr/include/libpq-fe.h; then
23808 POSTGRESQL_INCDIR=/usr/include
23809 if test -d /usr/lib64; then
23810 POSTGRESQL_LIBDIR=/usr/lib64
23812 POSTGRESQL_LIBDIR=/usr/lib
23814 POSTGRESQL_BINDIR=/usr/bin
23815 elif test -f /usr/include/pgsql/libpq-fe.h; then
23816 POSTGRESQL_INCDIR=/usr/include/pgsql
23817 if test -d /usr/lib64/pgsql; then
23818 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23820 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23822 POSTGRESQL_BINDIR=/usr/bin
23823 elif test -f /usr/include/postgresql/libpq-fe.h; then
23824 POSTGRESQL_INCDIR=/usr/include/postgresql
23825 if test -d /usr/lib64/postgresql; then
23826 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23828 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23830 POSTGRESQL_BINDIR=/usr/bin
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23833 $as_echo "no" >&6; }
23834 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23836 elif test -f $withval/include/libpq-fe.h; then
23837 POSTGRESQL_INCDIR=$withval/include
23838 POSTGRESQL_LIBDIR=$withval/lib
23839 POSTGRESQL_BINDIR=$withval/bin
23840 elif test -f $withval/include/postgresql/libpq-fe.h; then
23841 POSTGRESQL_INCDIR=$withval/include/postgresql
23842 if test -d $withval/lib64; then
23843 POSTGRESQL_LIBDIR=$withval/lib64
23845 POSTGRESQL_LIBDIR=$withval/lib
23847 POSTGRESQL_BINDIR=$withval/bin
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23850 $as_echo "no" >&6; }
23851 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23854 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23857 $as_echo "yes" >&6; }
23859 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23860 if test x$use_libtool != xno; then
23861 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23863 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23865 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23866 if test "x$ac_cv_func_crypt" = xyes; then :
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23870 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23871 if ${ac_cv_lib_crypt_crypt+:} false; then :
23872 $as_echo_n "(cached) " >&6
23874 ac_check_lib_save_LIBS=$LIBS
23875 LIBS="-lcrypt $LIBS"
23876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23877 /* end confdefs.h. */
23879 /* Override any GCC internal prototype to avoid an error.
23880 Use char because int might match the return type of a GCC
23881 builtin and then its argument prototype would still apply. */
23894 if ac_fn_c_try_link "$LINENO"; then :
23895 ac_cv_lib_crypt_crypt=yes
23897 ac_cv_lib_crypt_crypt=no
23899 rm -f core conftest.err conftest.$ac_objext \
23900 conftest$ac_exeext conftest.$ac_ext
23901 LIBS=$ac_check_lib_save_LIBS
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23904 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23905 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23906 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23911 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23912 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23914 if test -z "${db_backends}"; then
23915 db_backends="PostgreSQL"
23917 db_backends="${db_backends} PostgreSQL"
23919 if test -z "${DB_BACKENDS}"; then
23920 DB_BACKENDS="postgresql"
23922 DB_BACKENDS="${DB_BACKENDS} postgresql"
23925 if test "x$support_batch_insert" = "xyes"; then
23926 saved_LDFLAGS="${LDFLAGS}"
23927 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23928 saved_LIBS="${LIBS}"
23929 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23930 LIBS="${saved_LIBS} -lcrypt"
23933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23934 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23935 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23936 $as_echo_n "(cached) " >&6
23938 ac_check_lib_save_LIBS=$LIBS
23940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23941 /* end confdefs.h. */
23943 /* Override any GCC internal prototype to avoid an error.
23944 Use char because int might match the return type of a GCC
23945 builtin and then its argument prototype would still apply. */
23949 char PQisthreadsafe ();
23953 return PQisthreadsafe ();
23958 if ac_fn_c_try_link "$LINENO"; then :
23959 ac_cv_lib_pq_PQisthreadsafe=yes
23961 ac_cv_lib_pq_PQisthreadsafe=no
23963 rm -f core conftest.err conftest.$ac_objext \
23964 conftest$ac_exeext conftest.$ac_ext
23965 LIBS=$ac_check_lib_save_LIBS
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23968 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23969 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23971 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23976 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23977 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23978 $as_echo_n "(cached) " >&6
23980 ac_check_lib_save_LIBS=$LIBS
23982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23983 /* end confdefs.h. */
23985 /* Override any GCC internal prototype to avoid an error.
23986 Use char because int might match the return type of a GCC
23987 builtin and then its argument prototype would still apply. */
23991 char PQputCopyData ();
23995 return PQputCopyData ();
24000 if ac_fn_c_try_link "$LINENO"; then :
24001 ac_cv_lib_pq_PQputCopyData=yes
24003 ac_cv_lib_pq_PQputCopyData=no
24005 rm -f core conftest.err conftest.$ac_objext \
24006 conftest$ac_exeext conftest.$ac_ext
24007 LIBS=$ac_check_lib_save_LIBS
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24010 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24011 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24013 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24017 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24018 if test $support_batch_insert = yes ; then
24020 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24022 if test -z "${batch_insert_db_backends}"; then
24023 batch_insert_db_backends="PostgreSQL"
24025 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24030 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24032 echo "WARNING: Your PostgreSQL client library is too old to detect "
24033 echo "if it was compiled with --enable-thread-safety, consider to "
24034 echo "upgrade it in order to avoid problems with Batch insert mode"
24037 LDFLAGS="${saved_LDFLAGS}"
24038 LIBS="${saved_LIBS}"
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24042 $as_echo "no" >&6; }
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24048 $as_echo "no" >&6; }
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24060 $as_echo_n "checking for MySQL support... " >&6; }
24062 # Check whether --with-mysql was given.
24063 if test "${with_mysql+set}" = set; then :
24064 withval=$with_mysql;
24065 if test "$withval" != "no"; then
24066 if test "$withval" = "yes"; then
24068 # This code is very broken on older systems
24070 # MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24071 # if test "x${MYSQL_CONFIG}" != x; then
24072 # MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24073 # ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24074 # if test $? = 0 ; then
24075 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24076 # MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24078 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r | sed -e 's/.*-L//' -e 's/ .*//'`
24079 # MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24082 # if [ "x${MYSQL_LIB}" = x -o "x${MYSQL_INCDIR}" = x ]; then
24083 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24084 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24085 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24086 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24087 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24089 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24091 MYSQL_BINDIR=/usr/local/mysql/bin
24092 elif test -f /usr/include/mysql/mysql.h; then
24093 MYSQL_INCDIR=/usr/include/mysql
24094 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24095 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24096 MYSQL_LIBDIR=/usr/lib64/mysql
24097 elif test -f /usr/lib64/libmysqlclient_r.a \
24098 -o -f /usr/lib64/libmysqlclient_r.so; then
24099 MYSQL_LIBDIR=/usr/lib64
24100 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24101 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24102 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24103 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24104 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24105 MYSQL_LIBDIR=/usr/lib/mysql
24107 MYSQL_LIBDIR=/usr/lib
24109 MYSQL_BINDIR=/usr/bin
24110 elif test -f /usr/include/mysql.h; then
24111 MYSQL_INCDIR=/usr/include
24112 if test -f /usr/lib64/libmysqlclient_r.a \
24113 -o -f /usr/lib64/libmysqlclient_r.so; then
24114 MYSQL_LIBDIR=/usr/lib64
24116 MYSQL_LIBDIR=/usr/lib
24118 MYSQL_BINDIR=/usr/bin
24119 elif test -f /usr/local/include/mysql/mysql.h; then
24120 MYSQL_INCDIR=/usr/local/include/mysql
24121 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24122 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24123 MYSQL_LIBDIR=/usr/local/lib64/mysql
24125 MYSQL_LIBDIR=/usr/local/lib/mysql
24127 MYSQL_BINDIR=/usr/local/bin
24128 elif test -f /usr/local/include/mysql.h; then
24129 MYSQL_INCDIR=/usr/local/include
24130 if test -f /usr/local/lib64/libmysqlclient_r.a \
24131 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24132 MYSQL_LIBDIR=/usr/local/lib64
24134 MYSQL_LIBDIR=/usr/local/lib
24136 MYSQL_BINDIR=/usr/local/bin
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24139 $as_echo "no" >&6; }
24140 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24143 if test -f $withval/include/mysql/mysql.h; then
24144 MYSQL_INCDIR=$withval/include/mysql
24145 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24146 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24147 MYSQL_LIBDIR=$withval/lib64/mysql
24148 elif test -f $withval/lib64/libmysqlclient_r.a \
24149 -o -f $withval/lib64/libmysqlclient_r.so; then
24150 MYSQL_LIBDIR=$withval/lib64
24151 elif test -f $withval/lib/libmysqlclient_r.a \
24152 -o -f $withval/lib/libmysqlclient_r.so; then
24153 MYSQL_LIBDIR=$withval/lib
24155 MYSQL_LIBDIR=$withval/lib/mysql
24157 MYSQL_BINDIR=$withval/bin
24158 elif test -f $withval/include/mysql.h; then
24159 MYSQL_INCDIR=$withval/include
24160 if test -f $withval/lib64/libmysqlclient_r.a \
24161 -o -f $withval/lib64/libmysqlclient_r.so; then
24162 MYSQL_LIBDIR=$withval/lib64
24164 MYSQL_LIBDIR=$withval/lib
24166 MYSQL_BINDIR=$withval/bin
24167 elif test -f $withval/mysql.h; then
24168 MYSQL_INCDIR=$withval
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24170 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24171 case $MYSQL_INCDIR in
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24174 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24175 if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24176 -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24177 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24178 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24179 MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24181 MYSQL_BINDIR=$prefix/lib/mysql55/bin
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24185 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24186 if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24187 -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24189 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24190 MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24192 MYSQL_BINDIR=$prefix/lib/mysql51/bin
24195 if test -z "${MYSQL_LIBDIR}" ; then
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24197 $as_echo "no" >&6; }
24198 as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24202 $as_echo "no" >&6; }
24203 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24206 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24207 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24208 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24209 if test x$use_libtool != xno; then
24210 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24212 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24214 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24216 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24219 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24222 $as_echo "yes" >&6; }
24224 if test -z "${db_backends}" ; then
24225 db_backends="MySQL"
24227 db_backends="${db_backends} MySQL"
24229 if test -z "${DB_BACKENDS}" ; then
24230 DB_BACKENDS="mysql"
24232 DB_BACKENDS="${DB_BACKENDS} mysql"
24235 if test "x$support_batch_insert" = "xyes"; then
24236 saved_LDFLAGS="${LDFLAGS}"
24237 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24238 saved_LIBS="${LIBS}"
24239 LIBS="${saved_LIBS} -lz"
24241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24242 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24243 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24244 $as_echo_n "(cached) " >&6
24246 ac_check_lib_save_LIBS=$LIBS
24247 LIBS="-lmysqlclient_r $LIBS"
24248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24249 /* end confdefs.h. */
24251 /* Override any GCC internal prototype to avoid an error.
24252 Use char because int might match the return type of a GCC
24253 builtin and then its argument prototype would still apply. */
24257 char mysql_thread_safe ();
24261 return mysql_thread_safe ();
24266 if ac_fn_c_try_link "$LINENO"; then :
24267 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24269 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24271 rm -f core conftest.err conftest.$ac_objext \
24272 conftest$ac_exeext conftest.$ac_ext
24273 LIBS=$ac_check_lib_save_LIBS
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24276 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24277 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24279 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24283 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24284 if test -z "${batch_insert_db_backends}"; then
24285 batch_insert_db_backends="MySQL"
24287 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24291 LDFLAGS="${saved_LDFLAGS}"
24292 LIBS="${saved_LIBS}"
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24296 $as_echo "no" >&6; }
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24302 $as_echo "no" >&6; }
24307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24308 $as_echo_n "checking for MySQL embedded support... " >&6; }
24310 # Check whether --with-embedded-mysql was given.
24311 if test "${with_embedded_mysql+set}" = set; then :
24312 withval=$with_embedded_mysql;
24313 if test "$withval" != "no"; then
24314 if test "$withval" = "yes"; then
24315 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24316 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24317 if test -d /usr/local/mysql/lib64/mysql; then
24318 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24320 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24322 MYSQL_BINDIR=/usr/local/mysql/bin
24323 elif test -f /usr/include/mysql/mysql.h; then
24324 MYSQL_INCDIR=/usr/include/mysql
24325 if test -d /usr/lib64/mysql; then
24326 MYSQL_LIBDIR=/usr/lib64/mysql
24328 MYSQL_LIBDIR=/usr/lib/mysql
24330 MYSQL_BINDIR=/usr/bin
24331 elif test -f /usr/include/mysql.h; then
24332 MYSQL_INCDIR=/usr/include
24333 if test -d /usr/lib64; then
24334 MYSQL_LIBDIR=/usr/lib64
24336 MYSQL_LIBDIR=/usr/lib
24338 MYSQL_BINDIR=/usr/bin
24339 elif test -f /usr/local/include/mysql/mysql.h; then
24340 MYSQL_INCDIR=/usr/local/include/mysql
24341 if test -d /usr/local/lib64/mysql; then
24342 MYSQL_LIBDIR=/usr/local/lib64/mysql
24344 MYSQL_LIBDIR=/usr/local/lib/mysql
24346 MYSQL_BINDIR=/usr/local/bin
24347 elif test -f /usr/local/include/mysql.h; then
24348 MYSQL_INCDIR=/usr/local/include
24349 if test -d /usr/local/lib64; then
24350 MYSQL_LIBDIR=/usr/local/lib64
24352 MYSQL_LIBDIR=/usr/local/lib
24354 MYSQL_BINDIR=/usr/local/bin
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24357 $as_echo "no" >&6; }
24358 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24361 if test -f $withval/include/mysql/mysql.h; then
24362 MYSQL_INCDIR=$withval/include/mysql
24363 if test -d $withval/lib64/mysql; then
24364 MYSQL_LIBDIR=$withval/lib64/mysql
24366 MYSQL_LIBDIR=$withval/lib/mysql
24368 MYSQL_BINDIR=$withval/bin
24369 elif test -f $withval/include/mysql.h; then
24370 MYSQL_INCDIR=$withval/include
24371 if test -d $withval/lib64; then
24372 MYSQL_LIBDIR=$withval/lib64
24374 MYSQL_LIBDIR=$withval/lib
24376 MYSQL_BINDIR=$withval/bin
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24379 $as_echo "no" >&6; }
24380 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24383 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24384 if test x$use_libtool != xno; then
24385 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24387 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24389 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24390 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24393 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24396 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24399 $as_echo "yes" >&6; }
24401 if test -z "${db_backends}"; then
24402 db_backends="MySQL"
24404 db_backends="${db_backends} MySQL"
24406 if test -z "${DB_BACKENDS}"; then
24407 DB_BACKENDS="mysql"
24409 DB_BACKENDS="${DB_BACKENDS} mysql"
24412 if test "x$support_batch_insert" = "xyes"; then
24413 saved_LDFLAGS="${LDFLAGS}"
24414 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24415 saved_LIBS="${LIBS}"
24416 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24419 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24420 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24421 $as_echo_n "(cached) " >&6
24423 ac_check_lib_save_LIBS=$LIBS
24424 LIBS="-lmysqlclient_r $LIBS"
24425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24426 /* end confdefs.h. */
24428 /* Override any GCC internal prototype to avoid an error.
24429 Use char because int might match the return type of a GCC
24430 builtin and then its argument prototype would still apply. */
24434 char mysql_thread_safe ();
24438 return mysql_thread_safe ();
24443 if ac_fn_c_try_link "$LINENO"; then :
24444 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24446 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24448 rm -f core conftest.err conftest.$ac_objext \
24449 conftest$ac_exeext conftest.$ac_ext
24450 LIBS=$ac_check_lib_save_LIBS
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24453 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24454 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24456 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24460 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24461 if test -z "${batch_insert_db_backends}"; then
24462 batch_insert_db_backends="MySQL"
24464 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24468 LDFLAGS="${saved_LDFLAGS}"
24469 LIBS="${saved_LIBS}"
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24473 $as_echo "no" >&6; }
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24479 $as_echo "no" >&6; }
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24492 $as_echo_n "checking for SQLite3 support... " >&6; }
24494 # Check whether --with-sqlite3 was given.
24495 if test "${with_sqlite3+set}" = set; then :
24496 withval=$with_sqlite3;
24497 if test "$withval" != "no"; then
24498 if test "$withval" = "yes"; then
24499 if test -f /usr/local/include/sqlite3.h; then
24500 SQLITE_INCDIR=/usr/local/include
24501 if test -d /usr/local/lib64; then
24502 SQLITE_LIBDIR=/usr/local/lib64
24504 SQLITE_LIBDIR=/usr/local/lib
24506 SQLITE_BINDIR=/usr/local/bin
24507 elif test -f /usr/include/sqlite3.h; then
24508 SQLITE_INCDIR=/usr/include
24509 if test -d /usr/lib64; then
24510 SQLITE_LIBDIR=/usr/lib64
24512 SQLITE_LIBDIR=/usr/lib
24514 SQLITE_BINDIR=/usr/bin
24515 elif test -f $prefix/include/sqlite3.h; then
24516 SQLITE_INCDIR=$prefix/include
24517 if test -d $prefix/lib64; then
24518 SQLITE_LIBDIR=$prefix/lib64
24520 SQLITE_LIBDIR=$prefix/lib
24522 SQLITE_BINDIR=$prefix/bin
24524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24525 $as_echo "no" >&6; }
24526 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24529 if test -f $withval/sqlite3.h; then
24530 SQLITE_INCDIR=$withval
24531 SQLITE_LIBDIR=$withval
24532 SQLITE_BINDIR=$withval
24533 elif test -f $withval/include/sqlite3.h; then
24534 SQLITE_INCDIR=$withval/include
24535 if test -d $withval/lib64; then
24536 SQLITE_LIBDIR=$withval/lib64
24538 SQLITE_LIBDIR=$withval/lib
24540 SQLITE_BINDIR=$withval/bin
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24543 $as_echo "no" >&6; }
24544 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24547 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24548 if test x$use_libtool != xno; then
24549 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24551 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24553 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24554 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24557 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24560 $as_echo "yes" >&6; }
24562 if test -z "${db_backends}"; then
24563 db_backends="SQLite3"
24565 db_backends="${db_backends} SQLite3"
24567 if test -z "${DB_BACKENDS}"; then
24568 DB_BACKENDS="sqlite3"
24570 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24573 if test "x$support_batch_insert" = "xyes"; then
24574 saved_LDFLAGS="${LDFLAGS}"
24575 LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24578 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24579 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24580 $as_echo_n "(cached) " >&6
24582 ac_check_lib_save_LIBS=$LIBS
24583 LIBS="-lsqlite3 $LIBS"
24584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24585 /* end confdefs.h. */
24587 /* Override any GCC internal prototype to avoid an error.
24588 Use char because int might match the return type of a GCC
24589 builtin and then its argument prototype would still apply. */
24593 char sqlite3_threadsafe ();
24597 return sqlite3_threadsafe ();
24602 if ac_fn_c_try_link "$LINENO"; then :
24603 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24605 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24607 rm -f core conftest.err conftest.$ac_objext \
24608 conftest$ac_exeext conftest.$ac_ext
24609 LIBS=$ac_check_lib_save_LIBS
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24612 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24613 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24615 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24619 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24620 if test -z "${batch_insert_db_backends}"; then
24621 batch_insert_db_backends="SQLite3"
24623 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24627 LDFLAGS="${saved_LDFLAGS}"
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24631 $as_echo "no" >&6; }
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24637 $as_echo "no" >&6; }
24647 if test -z "${batch_insert_db_backends}"; then
24648 batch_insert_db_backends="None"
24651 if test "x${db_backends}" = "x" ; then
24654 echo "You have not specified either --enable-client-only or one of the"
24655 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24656 echo "This is not permitted. Please reconfigure."
24658 echo "Aborting the configuration ..."
24664 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24666 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24667 if test x$use_libtool = xno; then
24668 SHARED_CATALOG_TARGETS=""
24670 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24674 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24676 if test x$use_libtool = xno; then
24679 echo "You have specified two or more of the"
24680 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24681 echo "This is not permitted when not using libtool Please reconfigure."
24683 echo "Aborting the configuration ..."
24689 SHARED_CATALOG_TARGETS=""
24690 for db_type in ${DB_BACKENDS}
24692 if test -z "${SHARED_CATALOG_TARGETS}"; then
24693 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24695 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24701 if test x$use_libtool = xyes; then
24711 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24714 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24715 if test -z "$CCOPTS"; then
24716 CCOPTS='-g -O2 -Wall'
24723 largefile_support="no"
24725 # Check whether --enable-largefile was given.
24726 if test "${enable_largefile+set}" = set; then :
24727 enableval=$enable_largefile;
24730 if test "$enable_largefile" != no; then
24731 if test -n "$ac_tool_prefix"; then
24732 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24733 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24735 $as_echo_n "checking for $ac_word... " >&6; }
24736 if ${ac_cv_prog_GETCONF+:} false; then :
24737 $as_echo_n "(cached) " >&6
24739 if test -n "$GETCONF"; then
24740 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24743 for as_dir in $PATH
24746 test -z "$as_dir" && as_dir=.
24747 for ac_exec_ext in '' $ac_executable_extensions; do
24748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24749 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24759 GETCONF=$ac_cv_prog_GETCONF
24760 if test -n "$GETCONF"; then
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24762 $as_echo "$GETCONF" >&6; }
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24765 $as_echo "no" >&6; }
24770 if test -z "$ac_cv_prog_GETCONF"; then
24771 ac_ct_GETCONF=$GETCONF
24772 # Extract the first word of "getconf", so it can be a program name with args.
24773 set dummy getconf; ac_word=$2
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24775 $as_echo_n "checking for $ac_word... " >&6; }
24776 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24777 $as_echo_n "(cached) " >&6
24779 if test -n "$ac_ct_GETCONF"; then
24780 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24783 for as_dir in $PATH
24786 test -z "$as_dir" && as_dir=.
24787 for ac_exec_ext in '' $ac_executable_extensions; do
24788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24789 ac_cv_prog_ac_ct_GETCONF="getconf"
24790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24799 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24800 if test -n "$ac_ct_GETCONF"; then
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24802 $as_echo "$ac_ct_GETCONF" >&6; }
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24805 $as_echo "no" >&6; }
24808 if test "x$ac_ct_GETCONF" = x; then
24811 case $cross_compiling:$ac_tool_warned in
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24815 ac_tool_warned=yes ;;
24817 GETCONF=$ac_ct_GETCONF
24820 GETCONF="$ac_cv_prog_GETCONF"
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24824 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24825 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24826 $as_echo_n "(cached) " >&6
24828 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24829 ac_cv_sys_largefile_CFLAGS=no
24831 # IRIX 6.2 and later require cc -n32.
24832 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24833 if test "$GCC" != yes; then
24834 ac_cv_sys_largefile_CFLAGS=-n32
24837 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24839 /* end confdefs.h. */
24849 if ac_fn_c_try_link "$LINENO"; then :
24852 ac_cv_sys_largefile_CFLAGS=no
24854 rm -f core conftest.err conftest.$ac_objext \
24855 conftest$ac_exeext conftest.$ac_ext
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24861 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24863 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24864 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24865 $as_echo_n "(cached) " >&6
24867 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24868 ac_cv_sys_largefile_LDFLAGS=no
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24873 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24875 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24876 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24877 $as_echo_n "(cached) " >&6
24879 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24880 ac_cv_sys_largefile_LIBS=no
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24885 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24887 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24890 -D_FILE_OFFSET_BITS=*) ;;
24891 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24892 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24897 case "$CPPFLAGS" in
24898 '') CPPFLAGS="$ac_flag" ;;
24899 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24907 '') CFLAGS="$ac_flag" ;;
24908 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24913 case "$ac_cv_sys_largefile_LDFLAGS" in
24917 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24918 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24921 case "$ac_cv_sys_largefile_LIBS" in
24925 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24926 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24930 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24931 if ${ac_cv_sys_file_offset_bits+:} false; then :
24932 $as_echo_n "(cached) " >&6
24934 ac_cv_sys_file_offset_bits=no
24935 ac_cv_sys_file_offset_bits=64
24936 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24938 -D_FILE_OFFSET_BITS)
24939 ac_cv_sys_file_offset_bits=1 ;;
24940 -D_FILE_OFFSET_BITS=*)
24941 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24947 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24948 if test "$ac_cv_sys_file_offset_bits" != no; then
24950 cat >>confdefs.h <<_ACEOF
24951 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24956 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24957 if ${ac_cv_sys_largefile_source+:} false; then :
24958 $as_echo_n "(cached) " >&6
24960 ac_cv_sys_largefile_source=no
24961 ac_cv_sys_largefile_source=1
24962 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24964 -D_LARGEFILE_SOURCE)
24965 ac_cv_sys_largefile_source=1 ;;
24966 -D_LARGEFILE_SOURCE=*)
24967 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24973 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24974 if test "$ac_cv_sys_largefile_source" != no; then
24976 cat >>confdefs.h <<_ACEOF
24977 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24982 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24983 if ${ac_cv_sys_large_files+:} false; then :
24984 $as_echo_n "(cached) " >&6
24986 ac_cv_sys_large_files=no
24987 ac_cv_sys_large_files=1
24988 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24991 ac_cv_sys_large_files=1 ;;
24993 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24999 $as_echo "$ac_cv_sys_large_files" >&6; }
25000 if test "$ac_cv_sys_large_files" != no; then
25002 cat >>confdefs.h <<_ACEOF
25003 #define _LARGE_FILES $ac_cv_sys_large_files
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25011 $as_echo_n "checking for X... " >&6; }
25014 # Check whether --with-x was given.
25015 if test "${with_x+set}" = set; then :
25019 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25020 if test "x$with_x" = xno; then
25021 # The user explicitly disabled X.
25024 case $x_includes,$x_libraries in #(
25025 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25026 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25027 $as_echo_n "(cached) " >&6
25029 # One or both of the vars are not set, and there is no cached value.
25030 ac_x_includes=no ac_x_libraries=no
25031 rm -f -r conftest.dir
25032 if mkdir conftest.dir; then
25034 cat >Imakefile <<'_ACEOF'
25036 @echo incroot='${INCROOT}'
25038 @echo usrlibdir='${USRLIBDIR}'
25040 @echo libdir='${LIBDIR}'
25042 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25043 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25044 for ac_var in incroot usrlibdir libdir; do
25045 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25047 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25048 for ac_extension in a so sl dylib la dll; do
25049 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25050 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25051 ac_im_usrlibdir=$ac_im_libdir; break
25054 # Screen out bogus values from the imake configuration. They are
25055 # bogus both because they are the default anyway, and because
25056 # using them would break gcc on systems where it needs fixed includes.
25057 case $ac_im_incroot in
25058 /usr/include) ac_x_includes= ;;
25059 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25061 case $ac_im_usrlibdir in
25062 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25063 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25067 rm -f -r conftest.dir
25070 # Standard set of common directories for X headers.
25071 # Check X11 before X11Rn because it is often a symlink to the current release.
25085 /usr/local/X11/include
25086 /usr/local/X11R7/include
25087 /usr/local/X11R6/include
25088 /usr/local/X11R5/include
25089 /usr/local/X11R4/include
25091 /usr/local/include/X11
25092 /usr/local/include/X11R7
25093 /usr/local/include/X11R6
25094 /usr/local/include/X11R5
25095 /usr/local/include/X11R4
25099 /usr/XFree86/include/X11
25103 /usr/unsupported/include
25104 /usr/athena/include
25105 /usr/local/x11r5/include
25106 /usr/lpp/Xamples/include
25108 /usr/openwin/include
25109 /usr/openwin/share/include'
25111 if test "$ac_x_includes" = no; then
25112 # Guess where to find include files, by looking for Xlib.h.
25113 # First, try using that file with no special directory specified.
25114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25115 /* end confdefs.h. */
25116 #include <X11/Xlib.h>
25118 if ac_fn_c_try_cpp "$LINENO"; then :
25119 # We can compile using X headers with no special include directory.
25122 for ac_dir in $ac_x_header_dirs; do
25123 if test -r "$ac_dir/X11/Xlib.h"; then
25124 ac_x_includes=$ac_dir
25129 rm -f conftest.err conftest.i conftest.$ac_ext
25130 fi # $ac_x_includes = no
25132 if test "$ac_x_libraries" = no; then
25133 # Check for the libraries.
25134 # See if we find them without any special options.
25135 # Don't add to $LIBS permanently.
25138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25139 /* end confdefs.h. */
25140 #include <X11/Xlib.h>
25149 if ac_fn_c_try_link "$LINENO"; then :
25151 # We can link X programs with no special library path.
25155 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25157 # Don't even attempt the hair of trying to link an X program!
25158 for ac_extension in a so sl dylib la dll; do
25159 if test -r "$ac_dir/libX11.$ac_extension"; then
25160 ac_x_libraries=$ac_dir
25166 rm -f core conftest.err conftest.$ac_objext \
25167 conftest$ac_exeext conftest.$ac_ext
25168 fi # $ac_x_libraries = no
25170 case $ac_x_includes,$ac_x_libraries in #(
25171 no,* | *,no | *\'*)
25172 # Didn't find X, or a directory has "'" in its name.
25173 ac_cv_have_x="have_x=no";; #(
25175 # Record where we found X for the cache.
25176 ac_cv_have_x="have_x=yes\
25177 ac_x_includes='$ac_x_includes'\
25178 ac_x_libraries='$ac_x_libraries'"
25184 eval "$ac_cv_have_x"
25187 if test "$have_x" != yes; then
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25189 $as_echo "$have_x" >&6; }
25192 # If each of the values was on the command line, it overrides each guess.
25193 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25194 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25195 # Update the cache value to reflect the command line values.
25196 ac_cv_have_x="have_x=yes\
25197 ac_x_includes='$x_includes'\
25198 ac_x_libraries='$x_libraries'"
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25200 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25203 if test "$no_x" = yes; then
25204 # Not all programs may use this symbol, but it does not hurt to define it.
25206 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25208 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25210 if test -n "$x_includes"; then
25211 X_CFLAGS="$X_CFLAGS -I$x_includes"
25214 # It would also be nice to do this for all -L options, not just this one.
25215 if test -n "$x_libraries"; then
25216 X_LIBS="$X_LIBS -L$x_libraries"
25217 # For Solaris; some versions of Sun CC require a space after -R and
25218 # others require no space. Words are not sufficient . . . .
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25220 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25221 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25222 ac_xsave_c_werror_flag=$ac_c_werror_flag
25223 ac_c_werror_flag=yes
25224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25225 /* end confdefs.h. */
25235 if ac_fn_c_try_link "$LINENO"; then :
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25237 $as_echo "no" >&6; }
25238 X_LIBS="$X_LIBS -R$x_libraries"
25240 LIBS="$ac_xsave_LIBS -R $x_libraries"
25241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25242 /* end confdefs.h. */
25252 if ac_fn_c_try_link "$LINENO"; then :
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25254 $as_echo "yes" >&6; }
25255 X_LIBS="$X_LIBS -R $x_libraries"
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25258 $as_echo "neither works" >&6; }
25260 rm -f core conftest.err conftest.$ac_objext \
25261 conftest$ac_exeext conftest.$ac_ext
25263 rm -f core conftest.err conftest.$ac_objext \
25264 conftest$ac_exeext conftest.$ac_ext
25265 ac_c_werror_flag=$ac_xsave_c_werror_flag
25266 LIBS=$ac_xsave_LIBS
25269 # Check for system-dependent libraries X programs must link with.
25270 # Do this before checking for the system-independent R6 libraries
25271 # (-lICE), since we may need -lsocket or whatever for X linking.
25273 if test "$ISC" = yes; then
25274 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25276 # Martyn Johnson says this is needed for Ultrix, if the X
25277 # libraries were built with DECnet support. And Karl Berry says
25278 # the Alpha needs dnet_stub (dnet does not exist).
25279 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25281 /* end confdefs.h. */
25283 /* Override any GCC internal prototype to avoid an error.
25284 Use char because int might match the return type of a GCC
25285 builtin and then its argument prototype would still apply. */
25289 char XOpenDisplay ();
25293 return XOpenDisplay ();
25298 if ac_fn_c_try_link "$LINENO"; then :
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25302 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25303 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25304 $as_echo_n "(cached) " >&6
25306 ac_check_lib_save_LIBS=$LIBS
25307 LIBS="-ldnet $LIBS"
25308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25309 /* end confdefs.h. */
25311 /* Override any GCC internal prototype to avoid an error.
25312 Use char because int might match the return type of a GCC
25313 builtin and then its argument prototype would still apply. */
25321 return dnet_ntoa ();
25326 if ac_fn_c_try_link "$LINENO"; then :
25327 ac_cv_lib_dnet_dnet_ntoa=yes
25329 ac_cv_lib_dnet_dnet_ntoa=no
25331 rm -f core conftest.err conftest.$ac_objext \
25332 conftest$ac_exeext conftest.$ac_ext
25333 LIBS=$ac_check_lib_save_LIBS
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25336 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25337 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25338 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25341 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25343 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25344 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25345 $as_echo_n "(cached) " >&6
25347 ac_check_lib_save_LIBS=$LIBS
25348 LIBS="-ldnet_stub $LIBS"
25349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25350 /* end confdefs.h. */
25352 /* Override any GCC internal prototype to avoid an error.
25353 Use char because int might match the return type of a GCC
25354 builtin and then its argument prototype would still apply. */
25362 return dnet_ntoa ();
25367 if ac_fn_c_try_link "$LINENO"; then :
25368 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25370 ac_cv_lib_dnet_stub_dnet_ntoa=no
25372 rm -f core conftest.err conftest.$ac_objext \
25373 conftest$ac_exeext conftest.$ac_ext
25374 LIBS=$ac_check_lib_save_LIBS
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25377 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25378 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25379 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25384 rm -f core conftest.err conftest.$ac_objext \
25385 conftest$ac_exeext conftest.$ac_ext
25386 LIBS="$ac_xsave_LIBS"
25388 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25389 # to get the SysV transport functions.
25390 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25392 # The nsl library prevents programs from opening the X display
25393 # on Irix 5.2, according to T.E. Dickey.
25394 # The functions gethostbyname, getservbyname, and inet_addr are
25395 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25396 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25397 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25401 if test $ac_cv_func_gethostbyname = no; then
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25403 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25404 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25405 $as_echo_n "(cached) " >&6
25407 ac_check_lib_save_LIBS=$LIBS
25409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25410 /* end confdefs.h. */
25412 /* Override any GCC internal prototype to avoid an error.
25413 Use char because int might match the return type of a GCC
25414 builtin and then its argument prototype would still apply. */
25418 char gethostbyname ();
25422 return gethostbyname ();
25427 if ac_fn_c_try_link "$LINENO"; then :
25428 ac_cv_lib_nsl_gethostbyname=yes
25430 ac_cv_lib_nsl_gethostbyname=no
25432 rm -f core conftest.err conftest.$ac_objext \
25433 conftest$ac_exeext conftest.$ac_ext
25434 LIBS=$ac_check_lib_save_LIBS
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25437 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25438 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25439 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25442 if test $ac_cv_lib_nsl_gethostbyname = no; then
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25444 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25445 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25446 $as_echo_n "(cached) " >&6
25448 ac_check_lib_save_LIBS=$LIBS
25450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25451 /* end confdefs.h. */
25453 /* Override any GCC internal prototype to avoid an error.
25454 Use char because int might match the return type of a GCC
25455 builtin and then its argument prototype would still apply. */
25459 char gethostbyname ();
25463 return gethostbyname ();
25468 if ac_fn_c_try_link "$LINENO"; then :
25469 ac_cv_lib_bsd_gethostbyname=yes
25471 ac_cv_lib_bsd_gethostbyname=no
25473 rm -f core conftest.err conftest.$ac_objext \
25474 conftest$ac_exeext conftest.$ac_ext
25475 LIBS=$ac_check_lib_save_LIBS
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25478 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25479 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25480 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25486 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25487 # socket/setsockopt and other routines are undefined under SCO ODT
25488 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25489 # on later versions), says Simon Leinen: it contains gethostby*
25490 # variants that don't use the name server (or something). -lsocket
25491 # must be given before -lnsl if both are needed. We assume that
25492 # if connect needs -lnsl, so does gethostbyname.
25493 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25494 if test "x$ac_cv_func_connect" = xyes; then :
25498 if test $ac_cv_func_connect = no; then
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25500 $as_echo_n "checking for connect in -lsocket... " >&6; }
25501 if ${ac_cv_lib_socket_connect+:} false; then :
25502 $as_echo_n "(cached) " >&6
25504 ac_check_lib_save_LIBS=$LIBS
25505 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25507 /* end confdefs.h. */
25509 /* Override any GCC internal prototype to avoid an error.
25510 Use char because int might match the return type of a GCC
25511 builtin and then its argument prototype would still apply. */
25524 if ac_fn_c_try_link "$LINENO"; then :
25525 ac_cv_lib_socket_connect=yes
25527 ac_cv_lib_socket_connect=no
25529 rm -f core conftest.err conftest.$ac_objext \
25530 conftest$ac_exeext conftest.$ac_ext
25531 LIBS=$ac_check_lib_save_LIBS
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25534 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25535 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25536 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25541 # Guillermo Gomez says -lposix is necessary on A/UX.
25542 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25543 if test "x$ac_cv_func_remove" = xyes; then :
25547 if test $ac_cv_func_remove = no; then
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25549 $as_echo_n "checking for remove in -lposix... " >&6; }
25550 if ${ac_cv_lib_posix_remove+:} false; then :
25551 $as_echo_n "(cached) " >&6
25553 ac_check_lib_save_LIBS=$LIBS
25554 LIBS="-lposix $LIBS"
25555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25556 /* end confdefs.h. */
25558 /* Override any GCC internal prototype to avoid an error.
25559 Use char because int might match the return type of a GCC
25560 builtin and then its argument prototype would still apply. */
25573 if ac_fn_c_try_link "$LINENO"; then :
25574 ac_cv_lib_posix_remove=yes
25576 ac_cv_lib_posix_remove=no
25578 rm -f core conftest.err conftest.$ac_objext \
25579 conftest$ac_exeext conftest.$ac_ext
25580 LIBS=$ac_check_lib_save_LIBS
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25583 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25584 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25585 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25590 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25591 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25592 if test "x$ac_cv_func_shmat" = xyes; then :
25596 if test $ac_cv_func_shmat = no; then
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25598 $as_echo_n "checking for shmat in -lipc... " >&6; }
25599 if ${ac_cv_lib_ipc_shmat+:} false; then :
25600 $as_echo_n "(cached) " >&6
25602 ac_check_lib_save_LIBS=$LIBS
25604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25605 /* end confdefs.h. */
25607 /* Override any GCC internal prototype to avoid an error.
25608 Use char because int might match the return type of a GCC
25609 builtin and then its argument prototype would still apply. */
25622 if ac_fn_c_try_link "$LINENO"; then :
25623 ac_cv_lib_ipc_shmat=yes
25625 ac_cv_lib_ipc_shmat=no
25627 rm -f core conftest.err conftest.$ac_objext \
25628 conftest$ac_exeext conftest.$ac_ext
25629 LIBS=$ac_check_lib_save_LIBS
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25632 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25633 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25634 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25640 # Check for libraries that X11R6 Xt/Xaw programs need.
25641 ac_save_LDFLAGS=$LDFLAGS
25642 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25643 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25644 # check for ICE first), but we must link in the order -lSM -lICE or
25645 # we get undefined symbols. So assume we have SM if we have ICE.
25646 # These have to be linked with before -lX11, unlike the other
25647 # libraries we check for below, so use a different variable.
25648 # John Interrante, Karl Berry
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25650 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25651 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25652 $as_echo_n "(cached) " >&6
25654 ac_check_lib_save_LIBS=$LIBS
25655 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25657 /* end confdefs.h. */
25659 /* Override any GCC internal prototype to avoid an error.
25660 Use char because int might match the return type of a GCC
25661 builtin and then its argument prototype would still apply. */
25665 char IceConnectionNumber ();
25669 return IceConnectionNumber ();
25674 if ac_fn_c_try_link "$LINENO"; then :
25675 ac_cv_lib_ICE_IceConnectionNumber=yes
25677 ac_cv_lib_ICE_IceConnectionNumber=no
25679 rm -f core conftest.err conftest.$ac_objext \
25680 conftest$ac_exeext conftest.$ac_ext
25681 LIBS=$ac_check_lib_save_LIBS
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25684 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25685 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25686 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25689 LDFLAGS=$ac_save_LDFLAGS
25727 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25728 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25729 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25730 cat >>confdefs.h <<_ACEOF
25731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25739 $as_echo_n "checking for ANSI C header files... " >&6; }
25740 if ${ac_cv_header_stdc+:} false; then :
25741 $as_echo_n "(cached) " >&6
25743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25744 /* end confdefs.h. */
25745 #include <stdlib.h>
25746 #include <stdarg.h>
25747 #include <string.h>
25758 if ac_fn_c_try_compile "$LINENO"; then :
25759 ac_cv_header_stdc=yes
25761 ac_cv_header_stdc=no
25763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25765 if test $ac_cv_header_stdc = yes; then
25766 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25768 /* end confdefs.h. */
25769 #include <string.h>
25772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25773 $EGREP "memchr" >/dev/null 2>&1; then :
25776 ac_cv_header_stdc=no
25782 if test $ac_cv_header_stdc = yes; then
25783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25785 /* end confdefs.h. */
25786 #include <stdlib.h>
25789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25790 $EGREP "free" >/dev/null 2>&1; then :
25793 ac_cv_header_stdc=no
25799 if test $ac_cv_header_stdc = yes; then
25800 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25801 if test "$cross_compiling" = yes; then :
25804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25805 /* end confdefs.h. */
25807 #include <stdlib.h>
25808 #if ((' ' & 0x0FF) == 0x020)
25809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25812 # define ISLOWER(c) \
25813 (('a' <= (c) && (c) <= 'i') \
25814 || ('j' <= (c) && (c) <= 'r') \
25815 || ('s' <= (c) && (c) <= 'z'))
25816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25824 for (i = 0; i < 256; i++)
25825 if (XOR (islower (i), ISLOWER (i))
25826 || toupper (i) != TOUPPER (i))
25831 if ac_fn_c_try_run "$LINENO"; then :
25834 ac_cv_header_stdc=no
25836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25837 conftest.$ac_objext conftest.beam conftest.$ac_ext
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25843 $as_echo "$ac_cv_header_stdc" >&6; }
25844 if test $ac_cv_header_stdc = yes; then
25846 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25851 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25852 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25853 $as_echo_n "(cached) " >&6
25855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25856 /* end confdefs.h. */
25857 #include <sys/types.h>
25861 return makedev(0, 0);
25866 if ac_fn_c_try_link "$LINENO"; then :
25867 ac_cv_header_sys_types_h_makedev=yes
25869 ac_cv_header_sys_types_h_makedev=no
25871 rm -f core conftest.err conftest.$ac_objext \
25872 conftest$ac_exeext conftest.$ac_ext
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25876 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25878 if test $ac_cv_header_sys_types_h_makedev = no; then
25879 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25880 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25882 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25888 if test $ac_cv_header_sys_mkdev_h = no; then
25889 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25890 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25892 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25900 ac_header_dirent=no
25901 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25902 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25904 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25905 if eval \${$as_ac_Header+:} false; then :
25906 $as_echo_n "(cached) " >&6
25908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25909 /* end confdefs.h. */
25910 #include <sys/types.h>
25922 if ac_fn_c_try_compile "$LINENO"; then :
25923 eval "$as_ac_Header=yes"
25925 eval "$as_ac_Header=no"
25927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25929 eval ac_res=\$$as_ac_Header
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25931 $as_echo "$ac_res" >&6; }
25932 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25933 cat >>confdefs.h <<_ACEOF
25934 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25937 ac_header_dirent=$ac_hdr; break
25941 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25942 if test $ac_header_dirent = dirent.h; then
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25944 $as_echo_n "checking for library containing opendir... " >&6; }
25945 if ${ac_cv_search_opendir+:} false; then :
25946 $as_echo_n "(cached) " >&6
25948 ac_func_search_save_LIBS=$LIBS
25949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25950 /* end confdefs.h. */
25952 /* Override any GCC internal prototype to avoid an error.
25953 Use char because int might match the return type of a GCC
25954 builtin and then its argument prototype would still apply. */
25967 for ac_lib in '' dir; do
25968 if test -z "$ac_lib"; then
25969 ac_res="none required"
25972 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25974 if ac_fn_c_try_link "$LINENO"; then :
25975 ac_cv_search_opendir=$ac_res
25977 rm -f core conftest.err conftest.$ac_objext \
25979 if ${ac_cv_search_opendir+:} false; then :
25983 if ${ac_cv_search_opendir+:} false; then :
25986 ac_cv_search_opendir=no
25988 rm conftest.$ac_ext
25989 LIBS=$ac_func_search_save_LIBS
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25992 $as_echo "$ac_cv_search_opendir" >&6; }
25993 ac_res=$ac_cv_search_opendir
25994 if test "$ac_res" != no; then :
25995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26001 $as_echo_n "checking for library containing opendir... " >&6; }
26002 if ${ac_cv_search_opendir+:} false; then :
26003 $as_echo_n "(cached) " >&6
26005 ac_func_search_save_LIBS=$LIBS
26006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26007 /* end confdefs.h. */
26009 /* Override any GCC internal prototype to avoid an error.
26010 Use char because int might match the return type of a GCC
26011 builtin and then its argument prototype would still apply. */
26024 for ac_lib in '' x; do
26025 if test -z "$ac_lib"; then
26026 ac_res="none required"
26029 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26031 if ac_fn_c_try_link "$LINENO"; then :
26032 ac_cv_search_opendir=$ac_res
26034 rm -f core conftest.err conftest.$ac_objext \
26036 if ${ac_cv_search_opendir+:} false; then :
26040 if ${ac_cv_search_opendir+:} false; then :
26043 ac_cv_search_opendir=no
26045 rm conftest.$ac_ext
26046 LIBS=$ac_func_search_save_LIBS
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26049 $as_echo "$ac_cv_search_opendir" >&6; }
26050 ac_res=$ac_cv_search_opendir
26051 if test "$ac_res" != no; then :
26052 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26059 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26060 if ${ac_cv_header_stat_broken+:} false; then :
26061 $as_echo_n "(cached) " >&6
26063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26064 /* end confdefs.h. */
26065 #include <sys/types.h>
26066 #include <sys/stat.h>
26068 #if defined S_ISBLK && defined S_IFDIR
26069 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26072 #if defined S_ISBLK && defined S_IFCHR
26073 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26076 #if defined S_ISLNK && defined S_IFREG
26077 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26080 #if defined S_ISSOCK && defined S_IFREG
26081 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26085 if ac_fn_c_try_compile "$LINENO"; then :
26086 ac_cv_header_stat_broken=no
26088 ac_cv_header_stat_broken=yes
26090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26093 $as_echo "$ac_cv_header_stat_broken" >&6; }
26094 if test $ac_cv_header_stat_broken = yes; then
26096 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26101 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26102 if ${ac_cv_header_sys_wait_h+:} false; then :
26103 $as_echo_n "(cached) " >&6
26105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26106 /* end confdefs.h. */
26107 #include <sys/types.h>
26108 #include <sys/wait.h>
26109 #ifndef WEXITSTATUS
26110 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26113 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26121 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26126 if ac_fn_c_try_compile "$LINENO"; then :
26127 ac_cv_header_sys_wait_h=yes
26129 ac_cv_header_sys_wait_h=no
26131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26134 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26135 if test $ac_cv_header_sys_wait_h = yes; then
26137 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26142 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26143 if ${ac_cv_header_time+:} false; then :
26144 $as_echo_n "(cached) " >&6
26146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26147 /* end confdefs.h. */
26148 #include <sys/types.h>
26149 #include <sys/time.h>
26155 if ((struct tm *) 0)
26161 if ac_fn_c_try_compile "$LINENO"; then :
26162 ac_cv_header_time=yes
26164 ac_cv_header_time=no
26166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26169 $as_echo "$ac_cv_header_time" >&6; }
26170 if test $ac_cv_header_time = yes; then
26172 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26176 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26177 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26179 cat >>confdefs.h <<_ACEOF
26180 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26184 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26189 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26190 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26192 cat >>confdefs.h <<_ACEOF
26193 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26197 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26200 case " $LIBOBJS " in
26201 *" fileblocks.$ac_objext "* ) ;;
26202 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26210 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26211 if ${ac_cv_struct_tm+:} false; then :
26212 $as_echo_n "(cached) " >&6
26214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26215 /* end confdefs.h. */
26216 #include <sys/types.h>
26223 int *p = &tm.tm_sec;
26229 if ac_fn_c_try_compile "$LINENO"; then :
26230 ac_cv_struct_tm=time.h
26232 ac_cv_struct_tm=sys/time.h
26234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26237 $as_echo "$ac_cv_struct_tm" >&6; }
26238 if test $ac_cv_struct_tm = sys/time.h; then
26240 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26244 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26245 #include <$ac_cv_struct_tm>
26248 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26250 cat >>confdefs.h <<_ACEOF
26251 #define HAVE_STRUCT_TM_TM_ZONE 1
26257 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26259 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26262 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26264 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26270 cat >>confdefs.h <<_ACEOF
26271 #define HAVE_DECL_TZNAME $ac_have_decl
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26275 $as_echo_n "checking for tzname... " >&6; }
26276 if ${ac_cv_var_tzname+:} false; then :
26277 $as_echo_n "(cached) " >&6
26279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26280 /* end confdefs.h. */
26282 #if !HAVE_DECL_TZNAME
26283 extern char *tzname[];
26289 return tzname[0][0];
26294 if ac_fn_c_try_link "$LINENO"; then :
26295 ac_cv_var_tzname=yes
26297 ac_cv_var_tzname=no
26299 rm -f core conftest.err conftest.$ac_objext \
26300 conftest$ac_exeext conftest.$ac_ext
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26303 $as_echo "$ac_cv_var_tzname" >&6; }
26304 if test $ac_cv_var_tzname = yes; then
26306 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26313 $as_echo_n "checking for utime.h... " >&6; }
26314 if ${ba_cv_header_utime_h+:} false; then :
26315 $as_echo_n "(cached) " >&6
26318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26319 /* end confdefs.h. */
26321 #include <sys/types.h>
26334 if ac_fn_c_try_compile "$LINENO"; then :
26336 ba_cv_header_utime_h=yes
26340 ba_cv_header_utime_h=no
26344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26349 $as_echo "$ba_cv_header_utime_h" >&6; }
26350 test $ba_cv_header_utime_h = yes &&
26351 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26355 $as_echo_n "checking for socklen_t... " >&6; }
26356 if ${ba_cv_header_socklen_t+:} false; then :
26357 $as_echo_n "(cached) " >&6
26360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26361 /* end confdefs.h. */
26363 #include <sys/types.h>
26364 #include <sys/socket.h>
26376 if ac_fn_c_try_compile "$LINENO"; then :
26378 ba_cv_header_socklen_t=yes
26382 ba_cv_header_socklen_t=no
26386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26391 $as_echo "$ba_cv_header_socklen_t" >&6; }
26392 test $ba_cv_header_socklen_t = yes &&
26393 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26397 ac_cpp='$CXXCPP $CPPFLAGS'
26398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26403 $as_echo_n "checking for ioctl_req_t... " >&6; }
26404 if ${ba_cv_header_ioctl_req_t+:} false; then :
26405 $as_echo_n "(cached) " >&6
26408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26409 /* end confdefs.h. */
26411 #include <unistd.h>
26412 #include <sys/types.h>
26413 #include <sys/ioctl.h>
26419 int (*d_ioctl)(int fd, unsigned long int request, ...);
26426 if ac_fn_cxx_try_compile "$LINENO"; then :
26428 ba_cv_header_ioctl_req_t=yes
26432 ba_cv_header_ioctl_req_t=no
26436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26441 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26442 test $ba_cv_header_ioctl_req_t = yes &&
26443 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26447 ac_cpp='$CPP $CPPFLAGS'
26448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26454 ac_cpp='$CXXCPP $CPPFLAGS'
26455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26460 $as_echo_n "checking for typeof... " >&6; }
26461 if ${ba_cv_have_typeof+:} false; then :
26462 $as_echo_n "(cached) " >&6
26465 if test "$cross_compiling" = yes; then :
26467 ba_cv_have_typeof=no
26471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26472 /* end confdefs.h. */
26474 main(){char *a = 0; a = (typeof a)a;}
26477 if ac_fn_cxx_try_run "$LINENO"; then :
26479 ba_cv_have_typeof=yes
26483 ba_cv_have_typeof=no
26486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26487 conftest.$ac_objext conftest.beam conftest.$ac_ext
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26494 $as_echo "$ba_cv_have_typeof" >&6; }
26495 test $ba_cv_have_typeof = yes &&
26496 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26499 ac_cpp='$CPP $CPPFLAGS'
26500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26506 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26507 if ${ac_cv_c_const+:} false; then :
26508 $as_echo_n "(cached) " >&6
26510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26511 /* end confdefs.h. */
26517 #ifndef __cplusplus
26518 /* Ultrix mips cc rejects this sort of thing. */
26519 typedef int charset[2];
26520 const charset cs = { 0, 0 };
26521 /* SunOS 4.1.1 cc rejects this. */
26522 char const *const *pcpcc;
26524 /* NEC SVR4.0.2 mips cc rejects this. */
26525 struct point {int x, y;};
26526 static struct point const zero = {0,0};
26527 /* AIX XL C 1.02.0.0 rejects this.
26528 It does not let you subtract one const X* pointer from another in
26529 an arm of an if-expression whose if-part is not a constant
26531 const char *g = "string";
26532 pcpcc = &g + (g ? g-g : 0);
26533 /* HPUX 7.0 cc rejects these. */
26535 ppc = (char**) pcpcc;
26536 pcpcc = (char const *const *) ppc;
26537 { /* SCO 3.2v4 cc rejects this sort of thing. */
26540 char const *s = 0 ? (char *) 0 : (char const *) 0;
26545 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26546 int x[] = {25, 17};
26547 const int *foo = &x[0];
26550 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26551 typedef const int *iptr;
26555 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26556 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26557 struct s { int j; const int *ap[3]; } bx;
26558 struct s *b = &bx; b->j = 5;
26560 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26561 const int foo = 10;
26562 if (!foo) return 0;
26564 return !cs[0] && !zero.x;
26571 if ac_fn_c_try_compile "$LINENO"; then :
26576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26579 $as_echo "$ac_cv_c_const" >&6; }
26580 if test $ac_cv_c_const = no; then
26582 $as_echo "#define const /**/" >>confdefs.h
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26588 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26589 if ${ac_cv_c_bigendian+:} false; then :
26590 $as_echo_n "(cached) " >&6
26592 ac_cv_c_bigendian=unknown
26593 # See if we're dealing with a universal compiler.
26594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26595 /* end confdefs.h. */
26596 #ifndef __APPLE_CC__
26597 not a universal capable compiler
26602 if ac_fn_c_try_compile "$LINENO"; then :
26604 # Check for potential -arch flags. It is not universal unless
26605 # there are at least two -arch flags with different values.
26608 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26609 if test -n "$ac_prev"; then
26611 i?86 | x86_64 | ppc | ppc64)
26612 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26615 ac_cv_c_bigendian=universal
26621 elif test "x$ac_word" = "x-arch"; then
26626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26627 if test $ac_cv_c_bigendian = unknown; then
26628 # See if sys/param.h defines the BYTE_ORDER macro.
26629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26630 /* end confdefs.h. */
26631 #include <sys/types.h>
26632 #include <sys/param.h>
26637 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26638 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26640 bogus endian macros
26647 if ac_fn_c_try_compile "$LINENO"; then :
26648 # It does; now see whether it defined to BIG_ENDIAN or not.
26649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26650 /* end confdefs.h. */
26651 #include <sys/types.h>
26652 #include <sys/param.h>
26657 #if BYTE_ORDER != BIG_ENDIAN
26665 if ac_fn_c_try_compile "$LINENO"; then :
26666 ac_cv_c_bigendian=yes
26668 ac_cv_c_bigendian=no
26670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26674 if test $ac_cv_c_bigendian = unknown; then
26675 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26677 /* end confdefs.h. */
26678 #include <limits.h>
26683 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26684 bogus endian macros
26691 if ac_fn_c_try_compile "$LINENO"; then :
26692 # It does; now see whether it defined to _BIG_ENDIAN or not.
26693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26694 /* end confdefs.h. */
26695 #include <limits.h>
26700 #ifndef _BIG_ENDIAN
26708 if ac_fn_c_try_compile "$LINENO"; then :
26709 ac_cv_c_bigendian=yes
26711 ac_cv_c_bigendian=no
26713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26717 if test $ac_cv_c_bigendian = unknown; then
26718 # Compile a test program.
26719 if test "$cross_compiling" = yes; then :
26720 # Try to guess by grepping values from an object file.
26721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26722 /* end confdefs.h. */
26723 short int ascii_mm[] =
26724 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26725 short int ascii_ii[] =
26726 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26727 int use_ascii (int i) {
26728 return ascii_mm[i] + ascii_ii[i];
26730 short int ebcdic_ii[] =
26731 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26732 short int ebcdic_mm[] =
26733 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26734 int use_ebcdic (int i) {
26735 return ebcdic_mm[i] + ebcdic_ii[i];
26742 return use_ascii (foo) == use_ebcdic (foo);
26747 if ac_fn_c_try_compile "$LINENO"; then :
26748 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26749 ac_cv_c_bigendian=yes
26751 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26752 if test "$ac_cv_c_bigendian" = unknown; then
26753 ac_cv_c_bigendian=no
26755 # finding both strings is unlikely to happen, but who knows?
26756 ac_cv_c_bigendian=unknown
26760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26763 /* end confdefs.h. */
26764 $ac_includes_default
26769 /* Are we little or big endian? From Harbison&Steele. */
26773 char c[sizeof (long int)];
26776 return u.c[sizeof (long int) - 1] == 1;
26782 if ac_fn_c_try_run "$LINENO"; then :
26783 ac_cv_c_bigendian=no
26785 ac_cv_c_bigendian=yes
26787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26788 conftest.$ac_objext conftest.beam conftest.$ac_ext
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26794 $as_echo "$ac_cv_c_bigendian" >&6; }
26795 case $ac_cv_c_bigendian in #(
26798 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26802 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26806 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26810 as_fn_error $? "unknown endianness
26811 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26816 $as_echo_n "checking how to get filesystem type... " >&6; }
26818 # The order of these tests is important.
26819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26820 /* end confdefs.h. */
26822 #include <sys/statvfs.h>
26823 #include <sys/fstyp.h>
26826 if ac_fn_c_try_cpp "$LINENO"; then :
26827 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26831 rm -f conftest.err conftest.i conftest.$ac_ext
26832 if test $fstype = no; then
26833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26834 /* end confdefs.h. */
26836 #include <sys/statfs.h>
26837 #include <sys/fstyp.h>
26840 if ac_fn_c_try_cpp "$LINENO"; then :
26841 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26845 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/vmount.h>
26855 if ac_fn_c_try_cpp "$LINENO"; then :
26856 $as_echo "#define FSTYPE_AIX_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 <mntent.h>
26869 if ac_fn_c_try_cpp "$LINENO"; then :
26870 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26874 rm -f conftest.err conftest.i conftest.$ac_ext
26876 if test $fstype = no; then
26877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26878 /* end confdefs.h. */
26879 #include <sys/mount.h>
26882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26883 $EGREP "f_type;" >/dev/null 2>&1; then :
26884 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26890 if test $fstype = no; then
26891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26892 /* end confdefs.h. */
26894 #include <sys/mount.h>
26895 #include <sys/fs_types.h>
26898 if ac_fn_c_try_cpp "$LINENO"; then :
26899 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26903 rm -f conftest.err conftest.i conftest.$ac_ext
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26906 $as_echo "$fstype" >&6; }
26908 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26909 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26911 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26918 ac_cpp='$CXXCPP $CPPFLAGS'
26919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26923 for ac_func in backtrace
26925 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26926 if test "x$ac_cv_func_backtrace" = xyes; then :
26927 cat >>confdefs.h <<_ACEOF
26928 #define HAVE_BACKTRACE 1
26935 ac_cpp='$CPP $CPPFLAGS'
26936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26942 $as_echo_n "checking return type of signal handlers... " >&6; }
26943 if ${ac_cv_type_signal+:} false; then :
26944 $as_echo_n "(cached) " >&6
26946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26947 /* end confdefs.h. */
26948 #include <sys/types.h>
26949 #include <signal.h>
26954 return *(signal (0, 0)) (0) == 1;
26959 if ac_fn_c_try_compile "$LINENO"; then :
26960 ac_cv_type_signal=int
26962 ac_cv_type_signal=void
26964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26967 $as_echo "$ac_cv_type_signal" >&6; }
26969 cat >>confdefs.h <<_ACEOF
26970 #define RETSIGTYPE $ac_cv_type_signal
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26976 $as_echo_n "checking for type of signal functions... " >&6; }
26977 if ${bash_cv_signal_vintage+:} false; then :
26978 $as_echo_n "(cached) " >&6
26981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26982 /* end confdefs.h. */
26983 #include <signal.h>
26989 struct sigaction sa;
26990 sigemptyset(&ss); sigsuspend(&ss);
26991 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26992 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26998 if ac_fn_c_try_link "$LINENO"; then :
26999 bash_cv_signal_vintage="posix"
27002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27003 /* end confdefs.h. */
27004 #include <signal.h>
27009 int mask = sigmask(SIGINT);
27010 sigsetmask(mask); sigblock(mask); sigpause(mask);
27016 if ac_fn_c_try_link "$LINENO"; then :
27017 bash_cv_signal_vintage="4.2bsd"
27020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27021 /* end confdefs.h. */
27023 #include <signal.h>
27024 RETSIGTYPE foo() { }
27029 int mask = sigmask(SIGINT);
27030 sigset(SIGINT, foo); sigrelse(SIGINT);
27031 sighold(SIGINT); sigpause(SIGINT);
27037 if ac_fn_c_try_link "$LINENO"; then :
27038 bash_cv_signal_vintage="svr3"
27040 bash_cv_signal_vintage="v7"
27043 rm -f core conftest.err conftest.$ac_objext \
27044 conftest$ac_exeext conftest.$ac_ext
27047 rm -f core conftest.err conftest.$ac_objext \
27048 conftest$ac_exeext conftest.$ac_ext
27051 rm -f core conftest.err conftest.$ac_objext \
27052 conftest$ac_exeext conftest.$ac_ext
27056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27057 $as_echo "$bash_cv_signal_vintage" >&6; }
27058 if test "$bash_cv_signal_vintage" = "posix"; then
27059 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27061 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27062 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27064 elif test "$bash_cv_signal_vintage" = "svr3"; then
27065 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27069 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27070 if test "x$ac_cv_type_mode_t" = xyes; then :
27074 cat >>confdefs.h <<_ACEOF
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27081 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27082 if ${ac_cv_type_uid_t+:} false; then :
27083 $as_echo_n "(cached) " >&6
27085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27086 /* end confdefs.h. */
27087 #include <sys/types.h>
27090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27091 $EGREP "uid_t" >/dev/null 2>&1; then :
27092 ac_cv_type_uid_t=yes
27094 ac_cv_type_uid_t=no
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27100 $as_echo "$ac_cv_type_uid_t" >&6; }
27101 if test $ac_cv_type_uid_t = no; then
27103 $as_echo "#define uid_t int" >>confdefs.h
27106 $as_echo "#define gid_t int" >>confdefs.h
27110 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27111 if test "x$ac_cv_type_size_t" = xyes; then :
27115 cat >>confdefs.h <<_ACEOF
27116 #define size_t unsigned int
27121 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27122 if test "x$ac_cv_type_pid_t" = xyes; then :
27126 cat >>confdefs.h <<_ACEOF
27132 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27133 if test "x$ac_cv_type_off_t" = xyes; then :
27137 cat >>confdefs.h <<_ACEOF
27138 #define off_t long int
27144 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27145 if test "x$ac_cv_type_intptr_t" = xyes; then :
27147 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27150 for ac_type in 'int' 'long int' 'long long int'; do
27151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27152 /* end confdefs.h. */
27153 $ac_includes_default
27157 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27158 test_array [0] = 0;
27159 return test_array [0];
27165 if ac_fn_c_try_compile "$LINENO"; then :
27167 cat >>confdefs.h <<_ACEOF
27168 #define intptr_t $ac_type
27173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27174 test -z "$ac_type" && break
27180 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27181 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27183 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27186 for ac_type in 'unsigned int' 'unsigned long int' \
27187 'unsigned long long int'; do
27188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27189 /* end confdefs.h. */
27190 $ac_includes_default
27194 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27195 test_array [0] = 0;
27196 return test_array [0];
27202 if ac_fn_c_try_compile "$LINENO"; then :
27204 cat >>confdefs.h <<_ACEOF
27205 #define uintptr_t $ac_type
27210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27211 test -z "$ac_type" && break
27216 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27217 if test "x$ac_cv_type_ino_t" = xyes; then :
27221 cat >>confdefs.h <<_ACEOF
27222 #define ino_t unsigned long
27227 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27228 if test "x$ac_cv_type_dev_t" = xyes; then :
27232 cat >>confdefs.h <<_ACEOF
27233 #define dev_t unsigned long
27238 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27239 if test "x$ac_cv_type_daddr_t" = xyes; then :
27243 cat >>confdefs.h <<_ACEOF
27244 #define daddr_t long
27249 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27250 if test "x$ac_cv_type_major_t" = xyes; then :
27254 cat >>confdefs.h <<_ACEOF
27255 #define major_t int
27260 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27261 if test "x$ac_cv_type_minor_t" = xyes; then :
27265 cat >>confdefs.h <<_ACEOF
27266 #define minor_t int
27271 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27272 if test "x$ac_cv_type_ssize_t" = xyes; then :
27276 cat >>confdefs.h <<_ACEOF
27277 #define ssize_t int
27282 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27283 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27285 cat >>confdefs.h <<_ACEOF
27286 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27290 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27293 case " $LIBOBJS " in
27294 *" fileblocks.$ac_objext "* ) ;;
27295 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27302 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27303 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27305 cat >>confdefs.h <<_ACEOF
27306 #define HAVE_STRUCT_STAT_ST_RDEV 1
27310 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27316 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27317 if ${ac_cv_struct_tm+:} false; then :
27318 $as_echo_n "(cached) " >&6
27320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27321 /* end confdefs.h. */
27322 #include <sys/types.h>
27329 int *p = &tm.tm_sec;
27335 if ac_fn_c_try_compile "$LINENO"; then :
27336 ac_cv_struct_tm=time.h
27338 ac_cv_struct_tm=sys/time.h
27340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27343 $as_echo "$ac_cv_struct_tm" >&6; }
27344 if test $ac_cv_struct_tm = sys/time.h; then
27346 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27351 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27352 if ${ac_cv_c_const+:} false; then :
27353 $as_echo_n "(cached) " >&6
27355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27356 /* end confdefs.h. */
27362 #ifndef __cplusplus
27363 /* Ultrix mips cc rejects this sort of thing. */
27364 typedef int charset[2];
27365 const charset cs = { 0, 0 };
27366 /* SunOS 4.1.1 cc rejects this. */
27367 char const *const *pcpcc;
27369 /* NEC SVR4.0.2 mips cc rejects this. */
27370 struct point {int x, y;};
27371 static struct point const zero = {0,0};
27372 /* AIX XL C 1.02.0.0 rejects this.
27373 It does not let you subtract one const X* pointer from another in
27374 an arm of an if-expression whose if-part is not a constant
27376 const char *g = "string";
27377 pcpcc = &g + (g ? g-g : 0);
27378 /* HPUX 7.0 cc rejects these. */
27380 ppc = (char**) pcpcc;
27381 pcpcc = (char const *const *) ppc;
27382 { /* SCO 3.2v4 cc rejects this sort of thing. */
27385 char const *s = 0 ? (char *) 0 : (char const *) 0;
27390 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27391 int x[] = {25, 17};
27392 const int *foo = &x[0];
27395 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27396 typedef const int *iptr;
27400 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27401 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27402 struct s { int j; const int *ap[3]; } bx;
27403 struct s *b = &bx; b->j = 5;
27405 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27406 const int foo = 10;
27407 if (!foo) return 0;
27409 return !cs[0] && !zero.x;
27416 if ac_fn_c_try_compile "$LINENO"; then :
27421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27424 $as_echo "$ac_cv_c_const" >&6; }
27425 if test $ac_cv_c_const = no; then
27427 $as_echo "#define const /**/" >>confdefs.h
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27432 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27433 if ${ac_cv_c_restrict+:} false; then :
27434 $as_echo_n "(cached) " >&6
27436 ac_cv_c_restrict=no
27437 # The order here caters to the fact that C++ does not require restrict.
27438 for ac_kw in __restrict __restrict__ _Restrict restrict; do
27439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27440 /* end confdefs.h. */
27441 typedef int * int_ptr;
27442 int foo (int_ptr $ac_kw ip) {
27449 int * $ac_kw t = s;
27456 if ac_fn_c_try_compile "$LINENO"; then :
27457 ac_cv_c_restrict=$ac_kw
27459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27460 test "$ac_cv_c_restrict" != no && break
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27465 $as_echo "$ac_cv_c_restrict" >&6; }
27467 case $ac_cv_c_restrict in
27469 no) $as_echo "#define restrict /**/" >>confdefs.h
27471 *) cat >>confdefs.h <<_ACEOF
27472 #define restrict $ac_cv_c_restrict
27478 # The cast to long int works around a bug in the HP C Compiler
27479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27481 # This bug is HP SR number 8606223364.
27482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27483 $as_echo_n "checking size of char... " >&6; }
27484 if ${ac_cv_sizeof_char+:} false; then :
27485 $as_echo_n "(cached) " >&6
27487 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27490 if test "$ac_cv_type_char" = yes; then
27491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27493 as_fn_error 77 "cannot compute sizeof (char)
27494 See \`config.log' for more details" "$LINENO" 5; }
27496 ac_cv_sizeof_char=0
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27502 $as_echo "$ac_cv_sizeof_char" >&6; }
27506 cat >>confdefs.h <<_ACEOF
27507 #define SIZEOF_CHAR $ac_cv_sizeof_char
27511 # The cast to long int works around a bug in the HP C Compiler
27512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27514 # This bug is HP SR number 8606223364.
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27516 $as_echo_n "checking size of short int... " >&6; }
27517 if ${ac_cv_sizeof_short_int+:} false; then :
27518 $as_echo_n "(cached) " >&6
27520 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27523 if test "$ac_cv_type_short_int" = yes; then
27524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27526 as_fn_error 77 "cannot compute sizeof (short int)
27527 See \`config.log' for more details" "$LINENO" 5; }
27529 ac_cv_sizeof_short_int=0
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27535 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27539 cat >>confdefs.h <<_ACEOF
27540 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27544 # The cast to long int works around a bug in the HP C Compiler
27545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27547 # This bug is HP SR number 8606223364.
27548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27549 $as_echo_n "checking size of int... " >&6; }
27550 if ${ac_cv_sizeof_int+:} false; then :
27551 $as_echo_n "(cached) " >&6
27553 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27556 if test "$ac_cv_type_int" = yes; then
27557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27559 as_fn_error 77 "cannot compute sizeof (int)
27560 See \`config.log' for more details" "$LINENO" 5; }
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27568 $as_echo "$ac_cv_sizeof_int" >&6; }
27572 cat >>confdefs.h <<_ACEOF
27573 #define SIZEOF_INT $ac_cv_sizeof_int
27577 # The cast to long int works around a bug in the HP C Compiler
27578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27580 # This bug is HP SR number 8606223364.
27581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27582 $as_echo_n "checking size of long int... " >&6; }
27583 if ${ac_cv_sizeof_long_int+:} false; then :
27584 $as_echo_n "(cached) " >&6
27586 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27589 if test "$ac_cv_type_long_int" = yes; then
27590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27592 as_fn_error 77 "cannot compute sizeof (long int)
27593 See \`config.log' for more details" "$LINENO" 5; }
27595 ac_cv_sizeof_long_int=0
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27601 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27605 cat >>confdefs.h <<_ACEOF
27606 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27610 # The cast to long int works around a bug in the HP C Compiler
27611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27613 # This bug is HP SR number 8606223364.
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27615 $as_echo_n "checking size of long long int... " >&6; }
27616 if ${ac_cv_sizeof_long_long_int+:} false; then :
27617 $as_echo_n "(cached) " >&6
27619 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27622 if test "$ac_cv_type_long_long_int" = yes; then
27623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27625 as_fn_error 77 "cannot compute sizeof (long long int)
27626 See \`config.log' for more details" "$LINENO" 5; }
27628 ac_cv_sizeof_long_long_int=0
27633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27634 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27638 cat >>confdefs.h <<_ACEOF
27639 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27643 # The cast to long int works around a bug in the HP C Compiler
27644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27646 # This bug is HP SR number 8606223364.
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27648 $as_echo_n "checking size of int *... " >&6; }
27649 if ${ac_cv_sizeof_int_p+:} false; then :
27650 $as_echo_n "(cached) " >&6
27652 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27655 if test "$ac_cv_type_int_p" = yes; then
27656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27658 as_fn_error 77 "cannot compute sizeof (int *)
27659 See \`config.log' for more details" "$LINENO" 5; }
27661 ac_cv_sizeof_int_p=0
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27667 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27671 cat >>confdefs.h <<_ACEOF
27672 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27678 $as_echo_n "checking for u_int type... " >&6; }
27679 if ${ac_cv_have_u_int+:} false; then :
27680 $as_echo_n "(cached) " >&6
27683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27684 /* end confdefs.h. */
27686 #include <sys/types.h>
27698 if ac_fn_c_try_compile "$LINENO"; then :
27700 ac_cv_have_u_int="yes"
27704 ac_cv_have_u_int="no"
27708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27713 $as_echo "$ac_cv_have_u_int" >&6; }
27714 if test "x$ac_cv_have_u_int" = "xyes" ; then
27715 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27721 $as_echo_n "checking for intmax_t type... " >&6; }
27722 if ${ac_cv_have_intmax_t+:} false; then :
27723 $as_echo_n "(cached) " >&6
27726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27727 /* end confdefs.h. */
27729 #include <sys/types.h>
27741 if ac_fn_c_try_compile "$LINENO"; then :
27743 ac_cv_have_intmax_t="yes"
27747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27748 /* end confdefs.h. */
27750 #include <stdint.h>
27762 if ac_fn_c_try_compile "$LINENO"; then :
27764 ac_cv_have_intmax_t="yes"
27768 ac_cv_have_intmax_t="no"
27772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27781 $as_echo "$ac_cv_have_intmax_t" >&6; }
27782 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27783 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27789 $as_echo_n "checking for u_intmax_t type... " >&6; }
27790 if ${ac_cv_have_u_intmax_t+:} false; then :
27791 $as_echo_n "(cached) " >&6
27794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27795 /* end confdefs.h. */
27797 #include <sys/types.h>
27803 u_intmax_t a; a = 1;
27809 if ac_fn_c_try_compile "$LINENO"; then :
27811 ac_cv_have_u_intmax_t="yes"
27815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27816 /* end confdefs.h. */
27818 #include <stdint.h>
27824 u_intmax_t a; a = 1;
27830 if ac_fn_c_try_compile "$LINENO"; then :
27832 ac_cv_have_u_intmax_t="yes"
27836 ac_cv_have_u_intmax_t="no"
27840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27849 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27850 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27851 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27857 $as_echo_n "checking for intXX_t types... " >&6; }
27858 if ${ac_cv_have_intxx_t+:} false; then :
27859 $as_echo_n "(cached) " >&6
27862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27863 /* end confdefs.h. */
27865 #include <sys/types.h>
27871 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27877 if ac_fn_c_try_compile "$LINENO"; then :
27879 ac_cv_have_intxx_t="yes"
27883 ac_cv_have_intxx_t="no"
27887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27892 $as_echo "$ac_cv_have_intxx_t" >&6; }
27893 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27894 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27900 $as_echo_n "checking for int64_t type... " >&6; }
27901 if ${ac_cv_have_int64_t+:} false; then :
27902 $as_echo_n "(cached) " >&6
27905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27906 /* end confdefs.h. */
27908 #include <sys/types.h>
27920 if ac_fn_c_try_compile "$LINENO"; then :
27922 ac_cv_have_int64_t="yes"
27926 ac_cv_have_int64_t="no"
27930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27935 $as_echo "$ac_cv_have_int64_t" >&6; }
27936 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27937 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27943 $as_echo_n "checking for u_intXX_t types... " >&6; }
27944 if ${ac_cv_have_u_intxx_t+:} false; then :
27945 $as_echo_n "(cached) " >&6
27948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27949 /* end confdefs.h. */
27951 #include <sys/types.h>
27957 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27963 if ac_fn_c_try_compile "$LINENO"; then :
27965 ac_cv_have_u_intxx_t="yes"
27969 ac_cv_have_u_intxx_t="no"
27973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27978 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27979 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27980 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27986 $as_echo_n "checking for u_int64_t types... " >&6; }
27987 if ${ac_cv_have_u_int64_t+:} false; then :
27988 $as_echo_n "(cached) " >&6
27991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27992 /* end confdefs.h. */
27994 #include <sys/types.h>
28000 u_int64_t a; a = 1;
28006 if ac_fn_c_try_compile "$LINENO"; then :
28008 ac_cv_have_u_int64_t="yes"
28012 ac_cv_have_u_int64_t="no"
28016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28021 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28022 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28023 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28028 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28029 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28032 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28034 /* end confdefs.h. */
28036 #include <sys/bitypes.h>
28042 int8_t a; int16_t b; int32_t c;
28043 u_int8_t e; u_int16_t f; u_int32_t g;
28044 a = b = c = e = f = g = 1;
28050 if ac_fn_c_try_compile "$LINENO"; then :
28052 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28054 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28056 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28059 $as_echo "yes" >&6; }
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28064 $as_echo "no" >&6; }
28068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28071 if test -z "$have_u_intxx_t" ; then
28072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28073 $as_echo_n "checking for uintXX_t types... " >&6; }
28074 if ${ac_cv_have_uintxx_t+:} false; then :
28075 $as_echo_n "(cached) " >&6
28078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28079 /* end confdefs.h. */
28081 #include <sys/types.h>
28087 uint8_t a; uint16_t b;
28088 uint32_t c; a = b = c = 1;
28094 if ac_fn_c_try_compile "$LINENO"; then :
28096 ac_cv_have_uintxx_t="yes"
28100 ac_cv_have_uintxx_t="no"
28104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28109 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28110 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28111 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28116 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28117 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28120 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28122 /* end confdefs.h. */
28124 #include <sys/bitypes.h>
28130 int64_t a; u_int64_t b;
28137 if ac_fn_c_try_compile "$LINENO"; then :
28139 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28141 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28144 $as_echo "yes" >&6; }
28148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28149 $as_echo "no" >&6; }
28153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28156 if (test -z "$have_uintxx_t" && \
28157 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28160 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28162 /* end confdefs.h. */
28164 #include <sys/bitypes.h>
28170 uint8_t a; uint16_t b;
28171 uint32_t c; a = b = c = 1;
28177 if ac_fn_c_try_compile "$LINENO"; then :
28179 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28182 $as_echo "yes" >&6; }
28186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28187 $as_echo "no" >&6; }
28191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28210 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28211 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28212 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28213 cat >>confdefs.h <<_ACEOF
28214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28218 echo 'configure: cannot find needed function.'; exit 1
28224 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28227 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28229 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28234 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28237 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28239 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28244 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28245 if test "x$ac_cv_func_closefrom" = xyes; then :
28247 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28251 for ac_func in getpagesize
28253 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28254 if test "x$ac_cv_func_getpagesize" = xyes; then :
28255 cat >>confdefs.h <<_ACEOF
28256 #define HAVE_GETPAGESIZE 1
28259 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28264 for ac_func in malloc_trim
28266 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28267 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28268 cat >>confdefs.h <<_ACEOF
28269 #define HAVE_MALLOC_TRIM 1
28272 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28278 for ac_func in fchdir
28280 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28281 if test "x$ac_cv_func_fchdir" = xyes; then :
28282 cat >>confdefs.h <<_ACEOF
28283 #define HAVE_FCHDIR 1
28285 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28290 for ac_func in strtoll
28292 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28293 if test "x$ac_cv_func_strtoll" = xyes; then :
28294 cat >>confdefs.h <<_ACEOF
28295 #define HAVE_STRTOLL 1
28297 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28302 for ac_func in posix_fadvise
28304 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28305 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28306 cat >>confdefs.h <<_ACEOF
28307 #define HAVE_POSIX_FADVISE 1
28313 for ac_func in posix_fallocate
28315 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28316 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28317 cat >>confdefs.h <<_ACEOF
28318 #define HAVE_POSIX_FALLOCATE 1
28324 for ac_func in fdatasync
28326 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28327 if test "x$ac_cv_func_fdatasync" = xyes; then :
28328 cat >>confdefs.h <<_ACEOF
28329 #define HAVE_FDATASYNC 1
28336 for ac_func in chflags
28338 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28339 if test "x$ac_cv_func_chflags" = xyes; then :
28340 cat >>confdefs.h <<_ACEOF
28341 #define HAVE_CHFLAGS 1
28348 for ac_func in snprintf vsnprintf gethostid fseeko
28350 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28351 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28352 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28353 cat >>confdefs.h <<_ACEOF
28354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28362 $as_echo_n "checking for va_copy... " >&6; }
28363 if ${ba_cv_va_copy+:} false; then :
28364 $as_echo_n "(cached) " >&6
28367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28368 /* end confdefs.h. */
28370 #include <stdarg.h>
28371 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28372 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28378 call_use_va_copy(1,2,3)
28384 if ac_fn_c_try_link "$LINENO"; then :
28394 rm -f core conftest.err conftest.$ac_objext \
28395 conftest$ac_exeext conftest.$ac_ext
28399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28400 $as_echo "$ba_cv_va_copy" >&6; }
28401 test $ba_cv_va_copy = yes &&
28402 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28405 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28408 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28409 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28410 cat >>confdefs.h <<_ACEOF
28411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28418 # If resolver functions are not in libc check for -lnsl or -lresolv.
28419 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28420 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28422 $as_echo "using libc's resolver" >&6; }
28424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28425 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28426 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28427 $as_echo_n "(cached) " >&6
28429 ac_check_lib_save_LIBS=$LIBS
28431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28432 /* end confdefs.h. */
28434 /* Override any GCC internal prototype to avoid an error.
28435 Use char because int might match the return type of a GCC
28436 builtin and then its argument prototype would still apply. */
28440 char gethostbyname_r ();
28444 return gethostbyname_r ();
28449 if ac_fn_c_try_link "$LINENO"; then :
28450 ac_cv_lib_nsl_gethostbyname_r=yes
28452 ac_cv_lib_nsl_gethostbyname_r=no
28454 rm -f core conftest.err conftest.$ac_objext \
28455 conftest$ac_exeext conftest.$ac_ext
28456 LIBS=$ac_check_lib_save_LIBS
28458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28459 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28460 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28461 cat >>confdefs.h <<_ACEOF
28462 #define HAVE_LIBNSL 1
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28470 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28471 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28472 $as_echo_n "(cached) " >&6
28474 ac_check_lib_save_LIBS=$LIBS
28475 LIBS="-lresolv $LIBS"
28476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28477 /* end confdefs.h. */
28479 /* Override any GCC internal prototype to avoid an error.
28480 Use char because int might match the return type of a GCC
28481 builtin and then its argument prototype would still apply. */
28485 char gethostbyname_r ();
28489 return gethostbyname_r ();
28494 if ac_fn_c_try_link "$LINENO"; then :
28495 ac_cv_lib_resolv_gethostbyname_r=yes
28497 ac_cv_lib_resolv_gethostbyname_r=no
28499 rm -f core conftest.err conftest.$ac_objext \
28500 conftest$ac_exeext conftest.$ac_ext
28501 LIBS=$ac_check_lib_save_LIBS
28503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28504 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28505 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28506 cat >>confdefs.h <<_ACEOF
28507 #define HAVE_LIBRESOLV 1
28510 LIBS="-lresolv $LIBS"
28517 for ac_func in inet_pton
28519 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28520 if test "x$ac_cv_func_inet_pton" = xyes; then :
28521 cat >>confdefs.h <<_ACEOF
28522 #define HAVE_INET_PTON 1
28524 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28529 for ac_func in inet_ntop
28531 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28532 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28533 cat >>confdefs.h <<_ACEOF
28534 #define HAVE_INET_NTOP 1
28536 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28541 for ac_func in gethostbyname2
28543 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28544 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28545 cat >>confdefs.h <<_ACEOF
28546 #define HAVE_GETHOSTBYNAME2 1
28548 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28553 for ac_func in getnameinfo
28555 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28556 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28557 cat >>confdefs.h <<_ACEOF
28558 #define HAVE_GETNAMEINFO 1
28560 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28568 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28569 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28570 $as_echo_n "(cached) " >&6
28573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28574 /* end confdefs.h. */
28576 #include <sys/socket.h>
28582 struct sockaddr s; s.sa_len;
28588 if ac_fn_c_try_compile "$LINENO"; then :
28590 ac_cv_struct_sockaddr_sa_len=yes
28593 ac_cv_struct_sockaddr_sa_len=no
28597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28602 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28604 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28606 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28611 $as_echo_n "checking for working getaddrinfo... " >&6; }
28612 if ${ac_cv_working_getaddrinfo+:} false; then :
28613 $as_echo_n "(cached) " >&6
28616 if test "$cross_compiling" = yes; then :
28618 ac_cv_working_getaddrinfo="yes"
28622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28623 /* end confdefs.h. */
28626 #include <string.h>
28627 #include <sys/types.h>
28628 #include <sys/socket.h>
28631 struct addrinfo hints, *ai;
28634 memset(&hints, 0, sizeof(hints));
28635 hints.ai_family = AF_UNSPEC;
28636 hints.ai_socktype = SOCK_STREAM;
28637 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28641 if (ai->ai_addr->sa_family != AF_INET) {
28648 if ac_fn_c_try_run "$LINENO"; then :
28650 ac_cv_working_getaddrinfo="yes"
28654 ac_cv_working_getaddrinfo="no"
28657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28658 conftest.$ac_objext conftest.beam conftest.$ac_ext
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28665 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28666 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28667 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28669 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28674 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28675 if test "$ac_cv_func_gai_strerror" != "yes"; then
28676 ac_cv_working_getaddrinfo="no"
28679 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28684 for ac_func in strftime
28686 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28687 if test "x$ac_cv_func_strftime" = xyes; then :
28688 cat >>confdefs.h <<_ACEOF
28689 #define HAVE_STRFTIME 1
28693 # strftime is in -lintl on SCO UNIX.
28694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28695 $as_echo_n "checking for strftime in -lintl... " >&6; }
28696 if ${ac_cv_lib_intl_strftime+:} false; then :
28697 $as_echo_n "(cached) " >&6
28699 ac_check_lib_save_LIBS=$LIBS
28700 LIBS="-lintl $LIBS"
28701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28702 /* end confdefs.h. */
28704 /* Override any GCC internal prototype to avoid an error.
28705 Use char because int might match the return type of a GCC
28706 builtin and then its argument prototype would still apply. */
28714 return strftime ();
28719 if ac_fn_c_try_link "$LINENO"; then :
28720 ac_cv_lib_intl_strftime=yes
28722 ac_cv_lib_intl_strftime=no
28724 rm -f core conftest.err conftest.$ac_objext \
28725 conftest$ac_exeext conftest.$ac_ext
28726 LIBS=$ac_check_lib_save_LIBS
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28729 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28730 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28731 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28733 LIBS="-lintl $LIBS"
28739 for ac_func in vprintf
28741 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28742 if test "x$ac_cv_func_vprintf" = xyes; then :
28743 cat >>confdefs.h <<_ACEOF
28744 #define HAVE_VPRINTF 1
28747 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28748 if test "x$ac_cv_func__doprnt" = xyes; then :
28750 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28758 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28759 # for constant arguments. Useless!
28760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28761 $as_echo_n "checking for working alloca.h... " >&6; }
28762 if ${ac_cv_working_alloca_h+:} false; then :
28763 $as_echo_n "(cached) " >&6
28765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28766 /* end confdefs.h. */
28767 #include <alloca.h>
28771 char *p = (char *) alloca (2 * sizeof (int));
28777 if ac_fn_c_try_link "$LINENO"; then :
28778 ac_cv_working_alloca_h=yes
28780 ac_cv_working_alloca_h=no
28782 rm -f core conftest.err conftest.$ac_objext \
28783 conftest$ac_exeext conftest.$ac_ext
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28786 $as_echo "$ac_cv_working_alloca_h" >&6; }
28787 if test $ac_cv_working_alloca_h = yes; then
28789 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28794 $as_echo_n "checking for alloca... " >&6; }
28795 if ${ac_cv_func_alloca_works+:} false; then :
28796 $as_echo_n "(cached) " >&6
28798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28799 /* end confdefs.h. */
28801 # define alloca __builtin_alloca
28804 # include <malloc.h>
28805 # define alloca _alloca
28807 # ifdef HAVE_ALLOCA_H
28808 # include <alloca.h>
28813 # ifndef alloca /* predefined by HP cc +Olibcalls */
28814 void *alloca (size_t);
28824 char *p = (char *) alloca (1);
28830 if ac_fn_c_try_link "$LINENO"; then :
28831 ac_cv_func_alloca_works=yes
28833 ac_cv_func_alloca_works=no
28835 rm -f core conftest.err conftest.$ac_objext \
28836 conftest$ac_exeext conftest.$ac_ext
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28839 $as_echo "$ac_cv_func_alloca_works" >&6; }
28841 if test $ac_cv_func_alloca_works = yes; then
28843 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28846 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28847 # that cause trouble. Some versions do not even contain alloca or
28848 # contain a buggy version. If you still want to use their alloca,
28849 # use ar to extract alloca.o from them instead of compiling alloca.c.
28851 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28853 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28857 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28858 if ${ac_cv_os_cray+:} false; then :
28859 $as_echo_n "(cached) " >&6
28861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28862 /* end confdefs.h. */
28863 #if defined CRAY && ! defined CRAY2
28870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28871 $EGREP "webecray" >/dev/null 2>&1; then :
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28880 $as_echo "$ac_cv_os_cray" >&6; }
28881 if test $ac_cv_os_cray = yes; then
28882 for ac_func in _getb67 GETB67 getb67; do
28883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28884 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28885 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28887 cat >>confdefs.h <<_ACEOF
28888 #define CRAY_STACKSEG_END $ac_func
28897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28898 $as_echo_n "checking stack direction for C alloca... " >&6; }
28899 if ${ac_cv_c_stack_direction+:} false; then :
28900 $as_echo_n "(cached) " >&6
28902 if test "$cross_compiling" = yes; then :
28903 ac_cv_c_stack_direction=0
28905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28906 /* end confdefs.h. */
28907 $ac_includes_default
28909 find_stack_direction (int *addr, int depth)
28911 int dir, dummy = 0;
28914 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
28915 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
28916 return dir + dummy;
28920 main (int argc, char **argv)
28922 return find_stack_direction (0, argc + !argv + 20) < 0;
28925 if ac_fn_c_try_run "$LINENO"; then :
28926 ac_cv_c_stack_direction=1
28928 ac_cv_c_stack_direction=-1
28930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28931 conftest.$ac_objext conftest.beam conftest.$ac_ext
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28936 $as_echo "$ac_cv_c_stack_direction" >&6; }
28937 cat >>confdefs.h <<_ACEOF
28938 #define STACK_DIRECTION $ac_cv_c_stack_direction
28944 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28945 # -lseq on Dynix/PTX, -lgen on Unixware.
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28947 $as_echo_n "checking for library containing getmntent... " >&6; }
28948 if ${ac_cv_search_getmntent+:} false; then :
28949 $as_echo_n "(cached) " >&6
28951 ac_func_search_save_LIBS=$LIBS
28952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28953 /* end confdefs.h. */
28955 /* Override any GCC internal prototype to avoid an error.
28956 Use char because int might match the return type of a GCC
28957 builtin and then its argument prototype would still apply. */
28965 return getmntent ();
28970 for ac_lib in '' sun seq gen; do
28971 if test -z "$ac_lib"; then
28972 ac_res="none required"
28975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28977 if ac_fn_c_try_link "$LINENO"; then :
28978 ac_cv_search_getmntent=$ac_res
28980 rm -f core conftest.err conftest.$ac_objext \
28982 if ${ac_cv_search_getmntent+:} false; then :
28986 if ${ac_cv_search_getmntent+:} false; then :
28989 ac_cv_search_getmntent=no
28991 rm conftest.$ac_ext
28992 LIBS=$ac_func_search_save_LIBS
28994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28995 $as_echo "$ac_cv_search_getmntent" >&6; }
28996 ac_res=$ac_cv_search_getmntent
28997 if test "$ac_res" != no; then :
28998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28999 ac_cv_func_getmntent=yes
29001 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29004 ac_cv_func_getmntent=no
29008 for ac_func in getmntinfo
29010 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29011 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29012 cat >>confdefs.h <<_ACEOF
29013 #define HAVE_GETMNTINFO 1
29015 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29021 $as_echo_n "checking whether closedir returns void... " >&6; }
29022 if ${ac_cv_func_closedir_void+:} false; then :
29023 $as_echo_n "(cached) " >&6
29025 if test "$cross_compiling" = yes; then :
29026 ac_cv_func_closedir_void=yes
29028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29029 /* end confdefs.h. */
29030 $ac_includes_default
29031 #include <$ac_header_dirent>
29032 #ifndef __cplusplus
29039 return closedir (opendir (".")) != 0;
29044 if ac_fn_c_try_run "$LINENO"; then :
29045 ac_cv_func_closedir_void=no
29047 ac_cv_func_closedir_void=yes
29049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29050 conftest.$ac_objext conftest.beam conftest.$ac_ext
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29055 $as_echo "$ac_cv_func_closedir_void" >&6; }
29056 if test $ac_cv_func_closedir_void = yes; then
29058 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29063 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29064 if ${ac_cv_func_setpgrp_void+:} false; then :
29065 $as_echo_n "(cached) " >&6
29067 if test "$cross_compiling" = yes; then :
29068 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29071 /* end confdefs.h. */
29072 $ac_includes_default
29076 /* If this system has a BSD-style setpgrp which takes arguments,
29077 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29078 exit successfully. */
29079 return setpgrp (1,1) != -1;
29084 if ac_fn_c_try_run "$LINENO"; then :
29085 ac_cv_func_setpgrp_void=no
29087 ac_cv_func_setpgrp_void=yes
29089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29090 conftest.$ac_objext conftest.beam conftest.$ac_ext
29094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29095 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29096 if test $ac_cv_func_setpgrp_void = yes; then
29098 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29101 # AC_FUNC_FNMATCH dnl use local version
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29104 $as_echo_n "checking for gettext in -lintl... " >&6; }
29105 if ${ac_cv_lib_intl_gettext+:} false; then :
29106 $as_echo_n "(cached) " >&6
29108 ac_check_lib_save_LIBS=$LIBS
29109 LIBS="-lintl $LIBS"
29110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29111 /* end confdefs.h. */
29113 /* Override any GCC internal prototype to avoid an error.
29114 Use char because int might match the return type of a GCC
29115 builtin and then its argument prototype would still apply. */
29128 if ac_fn_c_try_link "$LINENO"; then :
29129 ac_cv_lib_intl_gettext=yes
29131 ac_cv_lib_intl_gettext=no
29133 rm -f core conftest.err conftest.$ac_objext \
29134 conftest$ac_exeext conftest.$ac_ext
29135 LIBS=$ac_check_lib_save_LIBS
29137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29138 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29139 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29140 LIBS="$LIBS -lintl"
29144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29145 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29146 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29147 $as_echo_n "(cached) " >&6
29149 ac_check_lib_save_LIBS=$LIBS
29151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29152 /* end confdefs.h. */
29154 /* Override any GCC internal prototype to avoid an error.
29155 Use char because int might match the return type of a GCC
29156 builtin and then its argument prototype would still apply. */
29164 return getpwnam ();
29169 if ac_fn_c_try_link "$LINENO"; then :
29170 ac_cv_lib_sun_getpwnam=yes
29172 ac_cv_lib_sun_getpwnam=no
29174 rm -f core conftest.err conftest.$ac_objext \
29175 conftest$ac_exeext conftest.$ac_ext
29176 LIBS=$ac_check_lib_save_LIBS
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29179 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29180 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29181 cat >>confdefs.h <<_ACEOF
29182 #define HAVE_LIBSUN 1
29190 for ac_header in zlib.h
29192 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29193 if test "x$ac_cv_header_zlib_h" = xyes; then :
29194 cat >>confdefs.h <<_ACEOF
29195 #define HAVE_ZLIB_H 1
29202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29203 $as_echo_n "checking for deflate in -lz... " >&6; }
29204 if ${ac_cv_lib_z_deflate+:} false; then :
29205 $as_echo_n "(cached) " >&6
29207 ac_check_lib_save_LIBS=$LIBS
29209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29210 /* end confdefs.h. */
29212 /* Override any GCC internal prototype to avoid an error.
29213 Use char because int might match the return type of a GCC
29214 builtin and then its argument prototype would still apply. */
29227 if ac_fn_c_try_link "$LINENO"; then :
29228 ac_cv_lib_z_deflate=yes
29230 ac_cv_lib_z_deflate=no
29232 rm -f core conftest.err conftest.$ac_objext \
29233 conftest$ac_exeext conftest.$ac_ext
29234 LIBS=$ac_check_lib_save_LIBS
29236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29237 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29238 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29243 if test x$ZLIBS = x-lz; then
29244 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29253 # Check whether --enable-afs was given.
29254 if test "${enable_afs+set}" = set; then :
29255 enableval=$enable_afs;
29256 if test x$enableval = xyes; then
29258 elif test x$enableval = xno; then
29267 if test x$support_afs = xyes -o x$support_afs = xauto; then
29269 # Check whether --with-afsdir was given.
29270 if test "${with_afsdir+set}" = set; then :
29271 withval=$with_afsdir; with_afsdir=$withval
29276 if test x$with_afsdir = x; then
29277 for root in /usr /usr/local; do
29278 if test -d ${root}/include/afs/ ; then
29279 with_afsdir=${root}
29282 if test -d ${root}/include/openafs/afs/ ; then
29283 with_afsdir=${root}
29289 if test -d ${with_afsdir}/include/afs/ ; then
29290 AFS_CFLAGS="-I${with_afsdir}/include"
29292 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29293 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29297 saved_CFLAGS="${CFLAGS}"
29298 saved_CPPFLAGS="${CPPFLAGS}"
29299 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29300 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29302 for ac_header in afs/afsint.h
29304 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29305 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29306 cat >>confdefs.h <<_ACEOF
29307 #define HAVE_AFS_AFSINT_H 1
29314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29315 /* end confdefs.h. */
29317 #include <afs/afsint.h>
29318 #include <afs/venus.h>
29321 if ac_fn_c_try_cpp "$LINENO"; then :
29323 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29327 rm -f conftest.err conftest.i conftest.$ac_ext
29329 CFLAGS="${saved_CFLAGS}"
29330 CPPFLAGS="${saved_CPPFLAGS}"
29332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29333 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29334 for dir in ${with_afsdir}/lib \
29335 ${with_afsdir}/lib/afs \
29336 ${with_afsdir}/lib/openafs \
29337 ${with_afsdir}/lib64 \
29338 ${with_afsdir}/lib64/afs \
29339 ${with_afsdir}/lib64/openafs
29341 for arch_type in .a .so
29343 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29345 if test $pkg = 0; then
29347 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29353 if test $have_afs = yes; then
29354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29355 $as_echo "yes" >&6; }
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29358 $as_echo "no" >&6; }
29361 if test x$support_afs = xyes -a $have_afs != yes; then
29362 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29363 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29365 if test $have_afs = yes; then
29367 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29370 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29379 # Check whether --enable-lzo was given.
29380 if test "${enable_lzo+set}" = set; then :
29381 enableval=$enable_lzo;
29382 if test x$enableval = xno; then
29395 if test x$support_lzo = xyes; then
29397 # Check whether --with-lzo was given.
29398 if test "${with_lzo+set}" = set; then :
29400 case "$with_lzo" in
29405 if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29406 LZO_INC="-I${with_lzo}/include"
29407 LZO_LDFLAGS="-L${with_lzo}/lib"
29408 with_lzo="${with_lzo}/include"
29410 with_lzo="/usr/include"
29413 as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29414 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29415 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29418 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29420 LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29426 echo "lzoconf.h not found. lzo turned off ..."
29438 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29439 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29441 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29442 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29445 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29446 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29447 $as_echo_n "(cached) " >&6
29449 ac_check_lib_save_LIBS=$LIBS
29450 LIBS="-llzo2 $LIBS"
29451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29452 /* end confdefs.h. */
29454 /* Override any GCC internal prototype to avoid an error.
29455 Use char because int might match the return type of a GCC
29456 builtin and then its argument prototype would still apply. */
29460 char lzo1x_1_compress ();
29464 return lzo1x_1_compress ();
29469 if ac_fn_c_try_link "$LINENO"; then :
29470 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29472 ac_cv_lib_lzo2_lzo1x_1_compress=no
29474 rm -f core conftest.err conftest.$ac_objext \
29475 conftest$ac_exeext conftest.$ac_ext
29476 LIBS=$ac_check_lib_save_LIBS
29478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29479 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29480 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29484 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29508 # Check whether --enable-acl was given.
29509 if test "${enable_acl+set}" = set; then :
29510 enableval=$enable_acl;
29511 if test x$enableval = xyes; then
29513 elif test x$enableval = xno; then
29522 have_extended_acl=no
29523 if test x$support_acl = xyes -o x$support_acl = xauto; then
29524 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29525 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29527 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29533 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29534 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29542 if test $have_acl = no; then
29543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29544 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29545 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29546 $as_echo_n "(cached) " >&6
29548 ac_check_lib_save_LIBS=$LIBS
29550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29551 /* end confdefs.h. */
29553 /* Override any GCC internal prototype to avoid an error.
29554 Use char because int might match the return type of a GCC
29555 builtin and then its argument prototype would still apply. */
29559 char acl_get_file ();
29563 return acl_get_file ();
29568 if ac_fn_c_try_link "$LINENO"; then :
29569 ac_cv_lib_acl_acl_get_file=yes
29571 ac_cv_lib_acl_acl_get_file=no
29573 rm -f core conftest.err conftest.$ac_objext \
29574 conftest$ac_exeext conftest.$ac_ext
29575 LIBS=$ac_check_lib_save_LIBS
29577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29578 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29579 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29582 if test $have_afs = yes; then
29583 if test -d /usr/lib64/; then
29584 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29586 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29589 FDLIBS="-lacl $FDLIBS"
29597 if test $have_acl = no -a \
29598 x${HAVE_OSF1_OS_TRUE} = x; then
29599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29600 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29601 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29602 $as_echo_n "(cached) " >&6
29604 ac_check_lib_save_LIBS=$LIBS
29605 LIBS="-lpacl $LIBS"
29606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29607 /* end confdefs.h. */
29609 /* Override any GCC internal prototype to avoid an error.
29610 Use char because int might match the return type of a GCC
29611 builtin and then its argument prototype would still apply. */
29615 char acl_get_file ();
29619 return acl_get_file ();
29624 if ac_fn_c_try_link "$LINENO"; then :
29625 ac_cv_lib_pacl_acl_get_file=yes
29627 ac_cv_lib_pacl_acl_get_file=no
29629 rm -f core conftest.err conftest.$ac_objext \
29630 conftest$ac_exeext conftest.$ac_ext
29631 LIBS=$ac_check_lib_save_LIBS
29633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29634 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29635 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29638 FDLIBS="-lpacl $FDLIBS"
29644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29645 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29646 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29647 if test $? = 0; then
29649 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29652 $as_echo "yes" >&6; }
29654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29655 $as_echo "no" >&6; }
29659 if test $have_acl = yes -a \
29660 x${HAVE_DARWIN_OS_TRUE} = x; then
29661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29662 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29663 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29664 if test $? = 0; then
29666 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29669 $as_echo "yes" >&6; }
29671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29672 $as_echo "no" >&6; }
29676 if test $have_acl = yes -a \
29677 x${HAVE_FREEBSD_OS_TRUE} = x; then
29678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29679 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29680 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29681 if test $? = 0; then
29683 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29686 $as_echo "yes" >&6; }
29688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29689 $as_echo "no" >&6; }
29693 if test $have_acl = no -a \
29694 x${HAVE_SUN_OS_TRUE} = x; then
29695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29696 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29697 if ${ac_cv_lib_sec_acltotext+:} false; then :
29698 $as_echo_n "(cached) " >&6
29700 ac_check_lib_save_LIBS=$LIBS
29702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29703 /* end confdefs.h. */
29705 /* Override any GCC internal prototype to avoid an error.
29706 Use char because int might match the return type of a GCC
29707 builtin and then its argument prototype would still apply. */
29715 return acltotext ();
29720 if ac_fn_c_try_link "$LINENO"; then :
29721 ac_cv_lib_sec_acltotext=yes
29723 ac_cv_lib_sec_acltotext=no
29725 rm -f core conftest.err conftest.$ac_objext \
29726 conftest$ac_exeext conftest.$ac_ext
29727 LIBS=$ac_check_lib_save_LIBS
29729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29730 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29731 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29734 FDLIBS="-lsec $FDLIBS"
29736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29737 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29738 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29739 $as_echo_n "(cached) " >&6
29741 ac_check_lib_save_LIBS=$LIBS
29743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29744 /* end confdefs.h. */
29746 /* Override any GCC internal prototype to avoid an error.
29747 Use char because int might match the return type of a GCC
29748 builtin and then its argument prototype would still apply. */
29752 char acl_totext ();
29756 return acl_totext ();
29761 if ac_fn_c_try_link "$LINENO"; then :
29762 ac_cv_lib_sec_acl_totext=yes
29764 ac_cv_lib_sec_acl_totext=no
29766 rm -f core conftest.err conftest.$ac_objext \
29767 conftest$ac_exeext conftest.$ac_ext
29768 LIBS=$ac_check_lib_save_LIBS
29770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29771 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29772 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29774 have_extended_acl=yes
29785 if test $have_acl = no -a \
29786 x${HAVE_AIX_OS_TRUE} = x; then
29787 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29788 if test "x$ac_cv_func_acl_get" = xyes; then :
29792 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29793 if test "x$ac_cv_func_aclx_get" = xyes; then :
29795 have_extended_acl=yes
29806 if test x$support_acl = xyes -a $have_acl != yes; then
29807 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29808 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29810 if test $have_acl = yes; then
29812 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29816 if test $have_extended_acl = yes; then
29818 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29825 # Check whether --enable-xattr was given.
29826 if test "${enable_xattr+set}" = set; then :
29827 enableval=$enable_xattr;
29828 if test x$enableval = xyes; then
29830 elif test x$enableval = xno; then
29839 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29840 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29841 x${HAVE_NETBSD_OS_TRUE} = x -o \
29842 x${HAVE_OPENBSD_OS_TRUE} = x; then
29843 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29844 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29846 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29851 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29852 if test "x$ac_cv_header_libutil_h" = xyes; then :
29854 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29859 for ac_func in extattr_get_link extattr_set_link extattr_list_link
29861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29862 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29863 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29864 cat >>confdefs.h <<_ACEOF
29865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29870 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29873 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29876 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29884 if test $have_xattr = no; then
29885 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29887 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29888 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29889 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29890 cat >>confdefs.h <<_ACEOF
29891 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29896 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29899 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29902 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29911 if test $have_xattr = yes; then
29912 have_extattr_string_in_libc=no
29913 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29915 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29916 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29917 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29918 cat >>confdefs.h <<_ACEOF
29919 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29922 have_extattr_string_in_libc=yes
29924 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29927 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29935 if test $have_extattr_string_in_libc = no; then
29936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29937 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29938 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29939 $as_echo_n "(cached) " >&6
29941 ac_check_lib_save_LIBS=$LIBS
29942 LIBS="-lutil $LIBS"
29943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29944 /* end confdefs.h. */
29946 /* Override any GCC internal prototype to avoid an error.
29947 Use char because int might match the return type of a GCC
29948 builtin and then its argument prototype would still apply. */
29952 char extattr_namespace_to_string extattr_string_to_namespace ();
29956 return extattr_namespace_to_string extattr_string_to_namespace ();
29961 if ac_fn_c_try_link "$LINENO"; then :
29962 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29964 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29966 rm -f core conftest.err conftest.$ac_objext \
29967 conftest$ac_exeext conftest.$ac_ext
29968 LIBS=$ac_check_lib_save_LIBS
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29971 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29972 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29975 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29978 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29980 FDLIBS="-lutil $FDLIBS"
29989 if test $have_xattr = no -a \
29990 x${HAVE_AIX_OS_TRUE} = x; then
29991 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29992 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
29994 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29999 for ac_func in llistea lgetea lsetea
30001 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30002 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30003 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30004 cat >>confdefs.h <<_ACEOF
30005 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30010 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30013 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30016 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30024 if test $have_xattr = no; then
30025 for ac_func in listea getea setea
30027 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30028 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30029 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30030 cat >>confdefs.h <<_ACEOF
30031 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30036 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30039 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30042 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30052 if test $have_xattr = no -a \
30053 x${HAVE_OSF1_OS_TRUE} = x; then
30054 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30055 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30057 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30062 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30064 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30065 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30066 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30067 cat >>confdefs.h <<_ACEOF
30068 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30073 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30076 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30079 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30082 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30085 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30094 if test $have_xattr = no -a \
30095 x${HAVE_SUN_OS_TRUE} = x; then
30096 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30097 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30099 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30104 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30105 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30107 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30112 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30113 if test "x$ac_cv_header_attr_h" = xyes; then :
30115 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30121 for ac_func in openat fstatat unlinkat fchownat futimesat
30123 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30124 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30125 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30126 cat >>confdefs.h <<_ACEOF
30127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30132 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30135 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30138 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30141 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30144 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30152 if test $have_xattr = yes; then
30153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30154 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30155 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30156 $as_echo_n "(cached) " >&6
30158 ac_check_lib_save_LIBS=$LIBS
30159 LIBS="-lnvpair $LIBS"
30160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30161 /* end confdefs.h. */
30163 /* Override any GCC internal prototype to avoid an error.
30164 Use char because int might match the return type of a GCC
30165 builtin and then its argument prototype would still apply. */
30169 char nvlist_next_nvpair ();
30173 return nvlist_next_nvpair ();
30178 if ac_fn_c_try_link "$LINENO"; then :
30179 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30181 ac_cv_lib_nvpair_nvlist_next_nvpair=no
30183 rm -f core conftest.err conftest.$ac_objext \
30184 conftest$ac_exeext conftest.$ac_ext
30185 LIBS=$ac_check_lib_save_LIBS
30187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30188 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30189 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30192 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30194 FDLIBS="-lnvpair $FDLIBS"
30202 if test $have_xattr = no; then
30203 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30204 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30206 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30211 for ac_func in llistxattr lgetxattr lsetxattr
30213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30215 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30216 cat >>confdefs.h <<_ACEOF
30217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30222 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30225 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30228 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30236 if test $have_xattr = no; then
30237 for ac_func in listxattr getxattr setxattr
30239 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30240 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30241 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30242 cat >>confdefs.h <<_ACEOF
30243 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30248 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30251 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30254 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30264 if test x$support_xattr = xyes -a $have_xattr != yes; then
30265 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30266 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30268 if test $have_xattr = yes; then
30270 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30278 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30279 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30280 $as_echo_n "(cached) " >&6
30282 ac_check_lib_save_LIBS=$LIBS
30283 LIBS="-lpthread $LIBS"
30284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30285 /* end confdefs.h. */
30287 /* Override any GCC internal prototype to avoid an error.
30288 Use char because int might match the return type of a GCC
30289 builtin and then its argument prototype would still apply. */
30293 char pthread_create ();
30297 return pthread_create ();
30302 if ac_fn_c_try_link "$LINENO"; then :
30303 ac_cv_lib_pthread_pthread_create=yes
30305 ac_cv_lib_pthread_pthread_create=no
30307 rm -f core conftest.err conftest.$ac_objext \
30308 conftest$ac_exeext conftest.$ac_ext
30309 LIBS=$ac_check_lib_save_LIBS
30311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30312 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30313 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30314 PTHREAD_LIB="-lpthread"
30317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30318 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30319 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30320 $as_echo_n "(cached) " >&6
30322 ac_check_lib_save_LIBS=$LIBS
30323 LIBS="-lpthreads $LIBS"
30324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30325 /* end confdefs.h. */
30327 /* Override any GCC internal prototype to avoid an error.
30328 Use char because int might match the return type of a GCC
30329 builtin and then its argument prototype would still apply. */
30333 char pthread_create ();
30337 return pthread_create ();
30342 if ac_fn_c_try_link "$LINENO"; then :
30343 ac_cv_lib_pthreads_pthread_create=yes
30345 ac_cv_lib_pthreads_pthread_create=no
30347 rm -f core conftest.err conftest.$ac_objext \
30348 conftest$ac_exeext conftest.$ac_ext
30349 LIBS=$ac_check_lib_save_LIBS
30351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30352 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30353 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30354 PTHREAD_LIB="-lpthreads"
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30358 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30359 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30360 $as_echo_n "(cached) " >&6
30362 ac_check_lib_save_LIBS=$LIBS
30364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30365 /* end confdefs.h. */
30367 /* Override any GCC internal prototype to avoid an error.
30368 Use char because int might match the return type of a GCC
30369 builtin and then its argument prototype would still apply. */
30373 char pthread_create ();
30377 return pthread_create ();
30382 if ac_fn_c_try_link "$LINENO"; then :
30383 ac_cv_lib_c_r_pthread_create=yes
30385 ac_cv_lib_c_r_pthread_create=no
30387 rm -f core conftest.err conftest.$ac_objext \
30388 conftest$ac_exeext conftest.$ac_ext
30389 LIBS=$ac_check_lib_save_LIBS
30391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30392 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30393 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30394 PTHREAD_LIB="-lc_r"
30397 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30398 if test "x$ac_cv_func_pthread_create" = xyes; then :
30415 for ac_header in sys/prctl.h sys/capability.h
30417 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30418 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30419 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30420 cat >>confdefs.h <<_ACEOF
30421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30428 for ac_func in prctl setreuid
30430 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30431 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30432 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30433 cat >>confdefs.h <<_ACEOF
30434 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30441 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30442 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30443 $as_echo_n "(cached) " >&6
30445 ac_check_lib_save_LIBS=$LIBS
30447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30448 /* end confdefs.h. */
30450 /* Override any GCC internal prototype to avoid an error.
30451 Use char because int might match the return type of a GCC
30452 builtin and then its argument prototype would still apply. */
30456 char cap_set_proc ();
30460 return cap_set_proc ();
30465 if ac_fn_c_try_link "$LINENO"; then :
30466 ac_cv_lib_cap_cap_set_proc=yes
30468 ac_cv_lib_cap_cap_set_proc=no
30470 rm -f core conftest.err conftest.$ac_objext \
30471 conftest$ac_exeext conftest.$ac_ext
30472 LIBS=$ac_check_lib_save_LIBS
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30475 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30476 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30482 if test x$CAP_LIBS = x-lcap; then
30484 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30490 $as_echo "#define FDLIBS 1" >>confdefs.h
30493 CFLAGS=${CFLAGS--O}
30495 if test x$have_gcc = xyes ; then
30496 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30497 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30499 LDFLAGS=${LDFLAGS--O}
30500 CPPFLAGS="$CPPFLAGS"
30529 COMPRESS_MANPAGES=yes
30531 case "$DISTNAME" in
30534 PSCMD="ps -e -o pid,comm"
30535 PFILES="${PFILES} platforms/aix/Makefile"
30536 TAPEDRIVE="/dev/rmt0.1"
30540 PTHREAD_LIB="-lpthread -lexc"
30541 if test "${CC}" = "gcc" ; then
30548 TAPEDRIVE="/dev/nrmt0"
30551 DISTVER=`uname -a |awk '{print $3}'`
30552 TAPEDRIVE="/dev/nrmt0"
30553 PTHREAD_LIB="-pthread"
30554 CFLAGS="${CFLAGS} -pthread"
30555 PSCMD="ps -ax -o pid,command"
30558 PFILES="${PFILES} \
30559 platforms/bsdi/Makefile \
30560 platforms/bsdi/bacula-fd \
30561 platforms/bsdi/bacula-sd \
30562 platforms/bsdi/bacula-dir"
30563 largefile_support="yes"
30566 DISTVER=`uname -a |awk '{print $3}'`
30567 TAPEDRIVE="/dev/nrst0"
30569 WCFLAGS="-mwindows"
30570 WLDFLAGS="-mwindows"
30574 TAPEDRIVE="/dev/nst0"
30575 PSCMD="ps -e -o pid,command"
30577 PFILES="${PFILES} \
30578 platforms/darwin/Makefile"
30582 TAPEDRIVE="/dev/nst0"
30583 PSCMD="ps -e -o pid,command"
30585 PFILES="${PFILES} \
30586 platforms/osx/Makefile"
30589 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30592 DISTVER=`cat /etc/debian_version`
30593 if test -f /etc/lsb-release ; then
30595 if test "x$DISTRIB_ID" != "x" ; then
30596 DISTNAME=$DISTRIB_ID
30598 if test "x$DISTRIB_RELEASE" != "x" ; then
30599 DISTVER=$DISTRIB_RELEASE
30602 if test "$DISTNAME" = "Ubuntu" ; then
30605 TAPEDRIVE="/dev/nst0"
30606 PSCMD="ps -e -o pid,command"
30607 if test "$DISTNAME" = "ubuntu" ; then
30608 PFILES="${PFILES} \
30609 platforms/ubuntu/Makefile \
30610 platforms/ubuntu/bacula-fd \
30611 platforms/ubuntu/bacula-sd \
30612 platforms/ubuntu/bacula-dir"
30614 PFILES="${PFILES} \
30615 platforms/debian/Makefile \
30616 platforms/debian/bacula-fd \
30617 platforms/debian/bacula-sd \
30618 platforms/debian/bacula-dir"
30622 DISTVER=`uname -a |awk '{print $3}'`
30623 VER=`echo $DISTVER | cut -c 1`
30624 if test x$VER = x4 ; then
30625 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30626 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30630 TAPEDRIVE="/dev/nrsa0"
30631 PSCMD="ps -ax -o pid,command"
30632 PFILES="${PFILES} \
30633 platforms/freebsd/Makefile \
30634 platforms/freebsd/bacula-fd \
30635 platforms/freebsd/bacula-sd \
30636 platforms/freebsd/bacula-dir"
30637 largefile_support="yes"
30641 TAPEDRIVE="/dev/nst0"
30642 PSCMD="ps -e -o pid,command"
30643 PFILES="${PFILES} \
30644 platforms/hurd/Makefile \
30645 platforms/hurd/bacula-fd \
30646 platforms/hurd/bacula-sd \
30647 platforms/hurd/bacula-dir"
30650 PSCMD="UNIX95=1; ps -e -o pid,comm"
30651 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30653 TAPEDRIVE="/dev/rmt/0hnb"
30654 PTHREAD_LIB="-lpthread"
30655 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30660 TAPEDRIVE="/dev/rmt/0cbn"
30661 PSCMD="ps -e -o pid,comm"
30662 PFILES="${PFILES} \
30663 platforms/irix/Makefile \
30664 platforms/irix/bacula-fd \
30665 platforms/irix/bacula-sd \
30666 platforms/irix/bacula-dir"
30669 DISTVER=`uname -a |awk '{print $3}'`
30672 TAPEDRIVE="/dev/nrst0"
30673 PSCMD="ps -ax -o pid,command"
30674 PTHREAD_LIB="-pthread"
30675 CFLAGS="${CFLAGS} -pthread"
30678 DISTVER=`uname -a |awk '{print $3}'`
30681 TAPEDRIVE="/dev/nrst0"
30682 PSCMD="ps -ax -o pid,command"
30683 PTHREAD_LIB="-pthread"
30684 CFLAGS="${CFLAGS} -pthread"
30685 PFILES="${PFILES} \
30686 platforms/openbsd/Makefile \
30687 platforms/openbsd/bacula-fd \
30688 platforms/openbsd/bacula-sd \
30689 platforms/openbsd/bacula-dir"
30692 if test -f /etc/whitebox-release ; then
30693 f=/etc/whitebox-release
30695 f=/etc/redhat-release
30697 if test `cat $f | grep release |\
30698 cut -f 3 -d ' '`x = "Enterprise"x ; then
30699 DISTVER="Enterprise "`cat $f | grep release |\
30702 DISTVER=`cat /etc/redhat-release | grep release |\
30705 TAPEDRIVE="/dev/nst0"
30706 PSCMD="ps -e -o pid,command"
30707 PFILES="${PFILES} \
30708 platforms/redhat/Makefile \
30709 platforms/redhat/bacula-fd \
30710 platforms/redhat/bacula-sd \
30711 platforms/redhat/bacula-dir
30715 DISTVER=`cat /etc/mandrake-release | grep release |\
30717 TAPEDRIVE="/dev/nst0"
30718 PSCMD="ps -e -o pid,command"
30719 PFILES="${PFILES} \
30720 platforms/mandrake/Makefile \
30721 platforms/mandrake/bacula-fd \
30722 platforms/mandrake/bacula-sd \
30723 platforms/mandrake/bacula-dir \
30727 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30728 TAPEDRIVE="/dev/nst0"
30729 PSCMD="ps -e -o pid,command"
30730 PFILES="${PFILES} \
30731 platforms/gentoo/Makefile \
30732 platforms/gentoo/bacula-init \
30733 platforms/gentoo/bacula-fd \
30734 platforms/gentoo/bacula-sd \
30735 platforms/gentoo/bacula-dir"
30738 DISTVER=`cat /etc/slackware-version`
30739 TAPEDRIVE="/dev/nst0"
30740 PSCMD="ps -e -o pid,command"
30741 PFILES="${PFILES} \
30742 platforms/slackware/Makefile \
30743 platforms/slackware/rc.bacula-fd \
30744 platforms/slackware/rc.bacula-sd \
30745 platforms/slackware/rc.bacula-dir\
30746 platforms/slackware/functions.bacula"
30750 TAPEDRIVE="/dev/rmt/0cbn"
30751 PSCMD="ps -e -o pid,comm"
30752 PFILES="${PFILES} \
30753 platforms/solaris/Makefile \
30754 platforms/solaris/bacula-fd \
30755 platforms/solaris/bacula-sd \
30756 platforms/solaris/bacula-dir"
30760 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30762 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30766 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30772 LIBS="$LIBS -lresolv -lrt"
30775 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30777 TAPEDRIVE="/dev/nst0"
30778 PSCMD="ps -e -o pid,command"
30779 PFILES="${PFILES} \
30780 platforms/suse/Makefile \
30781 platforms/suse/bacula-fd \
30782 platforms/suse/bacula-sd \
30783 platforms/suse/bacula-dir \
30784 platforms/suse/bacula"
30789 TAPEDRIVE="/dev/nst0"
30790 PSCMD="ps -e -o pid,command"
30791 PFILES="${PFILES} \
30792 platforms/suse/Makefile \
30793 platforms/suse/bacula-fd \
30794 platforms/suse/bacula-sd \
30795 platforms/suse/bacula-dir"
30799 TAPEDRIVE="/dev/nst0"
30802 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30807 $as_echo_n "checking for systemd support... " >&6; }
30809 # Check whether --with-systemd was given.
30810 if test "${with_systemd+set}" = set; then :
30811 withval=$with_systemd;
30812 if test "$withval" != "no"; then
30813 if test "$withval" = "yes"; then
30814 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30816 SYSTEMD_UNITDIR="${withval}"
30819 PFILES="${PFILES} \
30820 platforms/systemd/Makefile \
30821 platforms/systemd/bacula-dir.service \
30822 platforms/systemd/bacula-fd.service \
30823 platforms/systemd/bacula-sd.service"
30825 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30828 $as_echo "yes" >&6; }
30829 support_systemd="yes"
30831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30832 $as_echo "no" >&6; }
30833 support_systemd="no"
30838 support_systemd="no"
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30840 $as_echo "no" >&6; }
30849 LIBS="$PTHREAD_LIB $LIBS"
30851 cat >>confdefs.h <<_ACEOF
30855 cat >>confdefs.h <<_ACEOF
30867 MCOMMON=./autoconf/Make.common
30870 if test "x${subsysdir}" = "x${sbindir}" ; then
30873 echo "You have set both --sbindir and --with-subsys-dir"
30874 echo " equal to: ${subsysdir} "
30875 echo "This is not permitted. Please reconfigure."
30877 echo "Aborting configuration ..."
30884 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.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"
30886 ac_config_commands="$ac_config_commands default"
30888 cat >confcache <<\_ACEOF
30889 # This file is a shell script that caches the results of configure
30890 # tests run on this system so they can be shared between configure
30891 # scripts and configure runs, see configure's option --config-cache.
30892 # It is not useful on other systems. If it contains results you don't
30893 # want to keep, you may remove or edit it.
30895 # config.status only pays attention to the cache file if you give it
30896 # the --recheck option to rerun configure.
30898 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30899 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30900 # following values.
30904 # The following way of writing the cache mishandles newlines in values,
30905 # but we know of no workaround that is simple, portable, and efficient.
30906 # So, we kill variables containing newlines.
30907 # Ultrix sh set writes to stderr and can't be redirected directly,
30908 # and sets the high bit in the cache file unless we assign to the vars.
30910 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30911 eval ac_val=\$$ac_var
30915 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30916 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30919 _ | IFS | as_nl) ;; #(
30920 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30921 *) { eval $ac_var=; unset $ac_var;} ;;
30927 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30928 *${as_nl}ac_space=\ *)
30929 # `set' does not quote correctly, so add quotes: double-quote
30930 # substitution turns \\\\ into \\, and sed turns \\ into \.
30933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30936 # `set' quotes correctly as required by POSIX, so do not add quotes.
30937 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30946 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30948 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30950 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30951 if test -w "$cache_file"; then
30952 if test "x$cache_file" != "x/dev/null"; then
30953 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30954 $as_echo "$as_me: updating cache $cache_file" >&6;}
30955 if test ! -f "$cache_file" || test -h "$cache_file"; then
30956 cat confcache >"$cache_file"
30958 case $cache_file in #(
30960 mv -f confcache "$cache_file"$$ &&
30961 mv -f "$cache_file"$$ "$cache_file" ;; #(
30963 mv -f confcache "$cache_file" ;;
30968 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30969 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30975 # Let make expand exec_prefix.
30976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30978 DEFS=-DHAVE_CONFIG_H
30983 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30984 # 1. Remove the extension, and $U if already installed.
30985 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30986 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30987 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30988 # will be set to the directory where LIBOBJS objects are built.
30989 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30990 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30992 LIBOBJS=$ac_libobjs
30994 LTLIBOBJS=$ac_ltlibobjs
30999 : "${CONFIG_STATUS=./config.status}"
31001 ac_clean_files_save=$ac_clean_files
31002 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31003 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31004 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31006 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31008 # Generated by $as_me.
31009 # Run this file to recreate the current configuration.
31010 # Compiler output produced by configure, useful for debugging
31011 # configure, is in config.log if it exists.
31014 ac_cs_recheck=false
31017 SHELL=\${CONFIG_SHELL-$SHELL}
31020 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31021 ## -------------------- ##
31022 ## M4sh Initialization. ##
31023 ## -------------------- ##
31025 # Be more Bourne compatible
31026 DUALCASE=1; export DUALCASE # for MKS sh
31027 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31030 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31031 # is contrary to our usage. Disable this feature.
31032 alias -g '${1+"$@"}'='"$@"'
31033 setopt NO_GLOB_SUBST
31035 case `(set -o) 2>/dev/null` in #(
31047 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31048 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31049 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31050 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31051 # Prefer a ksh shell builtin over an external printf program on Solaris,
31052 # but without wasting forks for bash or zsh.
31053 if test -z "$BASH_VERSION$ZSH_VERSION" \
31054 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31055 as_echo='print -r --'
31056 as_echo_n='print -rn --'
31057 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31058 as_echo='printf %s\n'
31059 as_echo_n='printf %s'
31061 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31062 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31063 as_echo_n='/usr/ucb/echo -n'
31065 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31066 as_echo_n_body='eval
31070 expr "X$arg" : "X\\(.*\\)$as_nl";
31071 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31073 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31075 export as_echo_n_body
31076 as_echo_n='sh -c $as_echo_n_body as_echo'
31078 export as_echo_body
31079 as_echo='sh -c $as_echo_body as_echo'
31082 # The user is always right.
31083 if test "${PATH_SEPARATOR+set}" != set; then
31085 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31086 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31093 # We need space, tab and new line, in precisely that order. Quoting is
31094 # there to prevent editors from complaining about space-tab.
31095 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31096 # splitting by setting IFS to empty value.)
31099 # Find who we are. Look in the path if we contain no directory separator.
31102 *[\\/]* ) as_myself=$0 ;;
31103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31104 for as_dir in $PATH
31107 test -z "$as_dir" && as_dir=.
31108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31114 # We did not find ourselves, most probably we were run as `sh COMMAND'
31115 # in which case we are not to be found in the path.
31116 if test "x$as_myself" = x; then
31119 if test ! -f "$as_myself"; then
31120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31124 # Unset variables that we do not need and which cause bugs (e.g. in
31125 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31126 # suppresses any "Segmentation fault" message there. '((' could
31127 # trigger a bug in pdksh 5.2.14.
31128 for as_var in BASH_ENV ENV MAIL MAILPATH
31129 do eval test x\${$as_var+set} = xset \
31130 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31146 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31147 # ----------------------------------------
31148 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31149 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31150 # script with STATUS, using 1 if that was 0.
31153 as_status=$1; test $as_status -eq 0 && as_status=1
31155 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31156 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31158 $as_echo "$as_me: error: $2" >&2
31159 as_fn_exit $as_status
31163 # as_fn_set_status STATUS
31164 # -----------------------
31165 # Set $? to STATUS, without forking.
31166 as_fn_set_status ()
31169 } # as_fn_set_status
31171 # as_fn_exit STATUS
31172 # -----------------
31173 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31177 as_fn_set_status $1
31183 # Portably unset VAR.
31186 { eval $1=; unset $1;}
31188 as_unset=as_fn_unset
31189 # as_fn_append VAR VALUE
31190 # ----------------------
31191 # Append the text in VALUE to the end of the definition contained in VAR. Take
31192 # advantage of any shell optimizations that allow amortized linear growth over
31193 # repeated appends, instead of the typical quadratic growth present in naive
31195 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31196 eval 'as_fn_append ()
31207 # as_fn_arith ARG...
31208 # ------------------
31209 # Perform arithmetic evaluation on the ARGs, and store the result in the
31210 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31211 # must be portable across $(()) and expr.
31212 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31213 eval 'as_fn_arith ()
31220 as_val=`expr "$@" || test $? -eq 1`
31225 if expr a : '\(a\)' >/dev/null 2>&1 &&
31226 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31232 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31233 as_basename=basename
31238 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31244 as_me=`$as_basename -- "$0" ||
31245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31246 X"$0" : 'X\(//\)$' \| \
31247 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31249 sed '/^.*\/\([^/][^/]*\)\/*$/{
31263 # Avoid depending upon Character Ranges.
31264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31267 as_cr_digits='0123456789'
31268 as_cr_alnum=$as_cr_Letters$as_cr_digits
31270 ECHO_C= ECHO_N= ECHO_T=
31271 case `echo -n x` in #(((((
31273 case `echo 'xy\c'` in
31274 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31276 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31283 rm -f conf$$ conf$$.exe conf$$.file
31284 if test -d conf$$.dir; then
31285 rm -f conf$$.dir/conf$$.file
31288 mkdir conf$$.dir 2>/dev/null
31290 if (echo >conf$$.file) 2>/dev/null; then
31291 if ln -s conf$$.file conf$$ 2>/dev/null; then
31293 # ... but there are two gotchas:
31294 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31295 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31296 # In both cases, we have to default to `cp -pR'.
31297 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31299 elif ln conf$$.file conf$$ 2>/dev/null; then
31307 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31308 rmdir conf$$.dir 2>/dev/null
31313 # Create "$as_dir" as a directory, including parents if necessary.
31318 -*) as_dir=./$as_dir;;
31320 test -d "$as_dir" || eval $as_mkdir_p || {
31324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31325 *) as_qdir=$as_dir;;
31327 as_dirs="'$as_qdir' $as_dirs"
31328 as_dir=`$as_dirname -- "$as_dir" ||
31329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31330 X"$as_dir" : 'X\(//\)[^/]' \| \
31331 X"$as_dir" : 'X\(//\)$' \| \
31332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31333 $as_echo X"$as_dir" |
31334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31338 /^X\(\/\/\)[^/].*/{
31351 test -d "$as_dir" && break
31353 test -z "$as_dirs" || eval "mkdir $as_dirs"
31354 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31358 if mkdir -p . 2>/dev/null; then
31359 as_mkdir_p='mkdir -p "$as_dir"'
31361 test -d ./-p && rmdir ./-p
31366 # as_fn_executable_p FILE
31367 # -----------------------
31368 # Test if FILE is an executable regular file.
31369 as_fn_executable_p ()
31371 test -f "$1" && test -x "$1"
31372 } # as_fn_executable_p
31373 as_test_x='test -x'
31374 as_executable_p=as_fn_executable_p
31376 # Sed expression to map a string onto a valid CPP name.
31377 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31379 # Sed expression to map a string onto a valid variable name.
31380 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31384 ## ----------------------------------- ##
31385 ## Main body of $CONFIG_STATUS script. ##
31386 ## ----------------------------------- ##
31388 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31391 # Save the log message, to keep $0 and so on meaningful, and to
31392 # report actual input values of CONFIG_FILES etc. instead of their
31393 # values after options handling.
31395 This file was extended by bacula $as_me 7.2.0, which was
31396 generated by GNU Autoconf 2.69. Invocation command line was
31398 CONFIG_FILES = $CONFIG_FILES
31399 CONFIG_HEADERS = $CONFIG_HEADERS
31400 CONFIG_LINKS = $CONFIG_LINKS
31401 CONFIG_COMMANDS = $CONFIG_COMMANDS
31404 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31409 case $ac_config_files in *"
31410 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31413 case $ac_config_headers in *"
31414 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31419 # Files that config.status was made for.
31420 config_files="$ac_config_files"
31421 config_headers="$ac_config_headers"
31422 config_commands="$ac_config_commands"
31426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31428 \`$as_me' instantiates files and other configuration actions
31429 from templates according to the current configuration. Unless the files
31430 and actions are specified as TAGs, all are instantiated by default.
31432 Usage: $0 [OPTION]... [TAG]...
31434 -h, --help print this help, then exit
31435 -V, --version print version number and configuration settings, then exit
31436 --config print configuration, then exit
31437 -q, --quiet, --silent
31438 do not print progress messages
31439 -d, --debug don't remove temporary files
31440 --recheck update $as_me by reconfiguring in the same conditions
31441 --file=FILE[:TEMPLATE]
31442 instantiate the configuration file FILE
31443 --header=FILE[:TEMPLATE]
31444 instantiate the configuration header FILE
31446 Configuration files:
31449 Configuration headers:
31452 Configuration commands:
31455 Report bugs to the package provider."
31458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31459 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31461 bacula config.status 7.2.0
31462 configured by $0, generated by GNU Autoconf 2.69,
31463 with options \\"\$ac_cs_config\\"
31465 Copyright (C) 2012 Free Software Foundation, Inc.
31466 This config.status script is free software; the Free Software Foundation
31467 gives unlimited permission to copy, distribute and modify it."
31473 test -n "\$AWK" || AWK=awk
31476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31477 # The default lists apply if the user does not specify any file.
31483 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31484 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31488 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31500 # Handling of the options.
31501 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31503 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31504 $as_echo "$ac_cs_version"; exit ;;
31505 --config | --confi | --conf | --con | --co | --c )
31506 $as_echo "$ac_cs_config"; exit ;;
31507 --debug | --debu | --deb | --de | --d | -d )
31509 --file | --fil | --fi | --f )
31512 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31513 '') as_fn_error $? "missing file argument" ;;
31515 as_fn_append CONFIG_FILES " '$ac_optarg'"
31516 ac_need_defaults=false;;
31517 --header | --heade | --head | --hea )
31520 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31522 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31523 ac_need_defaults=false;;
31525 # Conflict between --help and --header
31526 as_fn_error $? "ambiguous option: \`$1'
31527 Try \`$0 --help' for more information.";;
31528 --help | --hel | -h )
31529 $as_echo "$ac_cs_usage"; exit ;;
31530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31531 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31534 # This is an error.
31535 -*) as_fn_error $? "unrecognized option: \`$1'
31536 Try \`$0 --help' for more information." ;;
31538 *) as_fn_append ac_config_targets " $1"
31539 ac_need_defaults=false ;;
31545 ac_configure_extra_args=
31547 if $ac_cs_silent; then
31549 ac_configure_extra_args="$ac_configure_extra_args --silent"
31553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31554 if \$ac_cs_recheck; then
31555 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31557 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31558 CONFIG_SHELL='$SHELL'
31559 export CONFIG_SHELL
31564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31568 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31569 ## Running $as_me. ##
31575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31581 # The HP-UX ksh and POSIX shell print the target directory to stdout
31582 # if CDPATH is set.
31583 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31585 sed_quote_subst='$sed_quote_subst'
31586 double_quote_subst='$double_quote_subst'
31587 delay_variable_subst='$delay_variable_subst'
31588 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31589 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31590 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31591 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31592 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31593 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31594 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31595 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31596 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31597 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31598 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31599 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31600 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31601 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31602 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31603 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31604 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31605 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31606 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31607 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31608 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31609 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31610 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31611 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31612 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31613 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31614 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31615 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31616 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31617 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31618 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31619 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31620 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31621 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31622 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31623 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31624 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31625 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31626 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31627 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31628 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31629 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31630 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31631 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31632 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31633 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31634 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31635 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31636 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31637 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31638 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31639 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31640 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31641 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31642 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31643 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31644 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"`'
31645 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31646 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31647 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31648 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31649 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31650 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31651 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31652 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31653 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31654 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31655 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31656 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31657 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31658 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31659 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31660 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31661 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31662 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31663 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31664 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31665 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31666 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31667 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31668 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31669 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31670 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31671 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31672 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31673 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31674 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31675 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31676 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31677 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31678 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31679 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31680 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31681 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31682 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31683 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31684 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31685 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31686 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31687 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31688 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31689 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31690 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31691 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31692 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31693 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31694 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31695 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31696 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31697 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31698 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31699 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31700 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31701 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31702 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31703 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31704 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31705 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31706 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31707 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31708 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31709 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31710 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31711 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31712 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31713 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31714 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31715 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31716 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31717 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31718 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31719 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31720 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31721 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31722 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31723 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31724 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31725 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31726 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31727 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31728 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31729 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31730 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31731 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31732 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31733 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31734 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31735 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31736 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31737 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31738 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31739 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31740 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31741 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31742 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31743 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31744 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31745 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31746 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31747 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31748 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31749 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31750 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31751 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31752 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31753 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31754 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31755 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31756 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31757 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31758 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31759 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31760 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31761 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31762 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31763 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31764 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31765 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31766 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31767 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31768 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31769 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31770 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31771 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31774 LTCFLAGS='$LTCFLAGS'
31775 compiler='$compiler_DEFAULT'
31777 # A function that is used when there is no print builtin or printf.
31778 func_fallback_echo ()
31780 eval 'cat <<_LTECHO_EOF
31785 # Quote evaled strings.
31800 deplibs_check_method \
31805 sharedlib_from_linklib_cmd \
31808 archiver_list_spec \
31814 lt_cv_sys_global_symbol_pipe \
31815 lt_cv_sys_global_symbol_to_cdecl \
31816 lt_cv_sys_global_symbol_to_c_name_address \
31817 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31818 nm_file_list_spec \
31819 lt_prog_compiler_no_builtin_flag \
31820 lt_prog_compiler_pic \
31821 lt_prog_compiler_wl \
31822 lt_prog_compiler_static \
31823 lt_cv_prog_compiler_c_o \
31832 export_dynamic_flag_spec \
31833 whole_archive_flag_spec \
31834 compiler_needs_object \
31836 allow_undefined_flag \
31837 no_undefined_flag \
31838 hardcode_libdir_flag_spec \
31839 hardcode_libdir_separator \
31843 variables_saved_for_relink \
31845 library_names_spec \
31847 install_override_mode \
31851 compiler_lib_search_dirs \
31856 compiler_lib_search_path \
31860 lt_prog_compiler_no_builtin_flag_CXX \
31861 lt_prog_compiler_pic_CXX \
31862 lt_prog_compiler_wl_CXX \
31863 lt_prog_compiler_static_CXX \
31864 lt_cv_prog_compiler_c_o_CXX \
31865 export_dynamic_flag_spec_CXX \
31866 whole_archive_flag_spec_CXX \
31867 compiler_needs_object_CXX \
31869 allow_undefined_flag_CXX \
31870 no_undefined_flag_CXX \
31871 hardcode_libdir_flag_spec_CXX \
31872 hardcode_libdir_separator_CXX \
31873 exclude_expsyms_CXX \
31874 include_expsyms_CXX \
31875 file_list_spec_CXX \
31876 compiler_lib_search_dirs_CXX \
31877 predep_objects_CXX \
31878 postdep_objects_CXX \
31881 compiler_lib_search_path_CXX; do
31882 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31883 *[\\\\\\\`\\"\\\$]*)
31884 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31887 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31892 # Double-quote double-evaled strings.
31893 for var in reload_cmds \
31894 old_postinstall_cmds \
31895 old_postuninstall_cmds \
31897 extract_expsyms_cmds \
31898 old_archive_from_new_cmds \
31899 old_archive_from_expsyms_cmds \
31901 archive_expsym_cmds \
31903 module_expsym_cmds \
31904 export_symbols_cmds \
31908 postuninstall_cmds \
31910 sys_lib_search_path_spec \
31911 sys_lib_dlsearch_path_spec \
31913 old_archive_cmds_CXX \
31914 old_archive_from_new_cmds_CXX \
31915 old_archive_from_expsyms_cmds_CXX \
31917 archive_expsym_cmds_CXX \
31919 module_expsym_cmds_CXX \
31920 export_symbols_cmds_CXX \
31922 postlink_cmds_CXX; do
31923 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31924 *[\\\\\\\`\\"\\\$]*)
31925 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31928 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31933 ac_aux_dir='$ac_aux_dir'
31934 xsi_shell='$xsi_shell'
31935 lt_shell_append='$lt_shell_append'
31937 # See if we are running on zsh, and set the options which allow our
31938 # commands through without removal of \ escapes INIT.
31939 if test -n "\${ZSH_VERSION+set}" ; then
31940 setopt NO_GLOB_SUBST
31946 TIMESTAMP='$TIMESTAMP'
31954 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31955 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31957 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31958 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31959 LINGUAS="${LINGUAS-%UNSET%}"
31964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31966 # Handling of arguments.
31967 for ac_config_target in $ac_config_targets
31969 case $ac_config_target in
31970 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31971 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31972 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31973 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31974 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31975 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31976 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31977 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31978 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31979 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31980 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31981 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31982 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31983 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31984 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31985 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31986 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31987 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31988 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31989 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31990 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31991 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31992 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31993 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31994 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31995 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31996 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31997 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31998 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31999 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32000 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32001 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32002 "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32003 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32004 "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32005 "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32006 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32007 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32008 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32009 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32010 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32011 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32012 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32013 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32014 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32015 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32016 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32017 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32018 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32019 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32020 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32021 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32022 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32023 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32024 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32025 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32026 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32027 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32028 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32029 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32030 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32031 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32032 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32033 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32034 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32035 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32036 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32037 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32038 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32039 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32040 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32041 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32042 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32043 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32044 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32045 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32046 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32047 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32048 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32049 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32050 "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32051 "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32052 "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32053 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32054 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32055 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32056 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32057 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32058 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32059 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32060 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32061 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32062 "updatedb/update_mysql_tables_12_to_13") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_13" ;;
32063 "updatedb/update_postgresql_tables_12_to_13") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_13" ;;
32064 "updatedb/update_mysql_tables_13_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_13_to_14" ;;
32065 "updatedb/update_postgresql_tables_13_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_13_to_14" ;;
32066 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32067 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32068 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32069 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32070 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32071 "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32072 "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32073 "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32074 "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32075 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32076 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32078 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32083 # If the user did not use the arguments to specify the items to instantiate,
32084 # then the envvar interface is used. Set only those that are not.
32085 # We use the long form for the default assignment because of an extremely
32086 # bizarre bug on SunOS 4.1.3.
32087 if $ac_need_defaults; then
32088 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32089 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32090 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32093 # Have a temporary directory for convenience. Make it in the build tree
32094 # simply because there is no reason against having it here, and in addition,
32095 # creating and moving files from /tmp can sometimes cause problems.
32096 # Hook for its removal unless debugging.
32097 # Note that there is a small window in which the directory will not be cleaned:
32098 # after its creation but before its name has been assigned to `$tmp'.
32102 trap 'exit_status=$?
32103 : "${ac_tmp:=$tmp}"
32104 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32106 trap 'as_fn_exit 1' 1 2 13 15
32108 # Create a (secure) tmp directory for tmp files.
32111 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32115 tmp=./conf$$-$RANDOM
32116 (umask 077 && mkdir "$tmp")
32117 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32120 # Set up the scripts for CONFIG_FILES section.
32121 # No need to generate them if there are no CONFIG_FILES.
32122 # This happens for instance with `./config.status config.h'.
32123 if test -n "$CONFIG_FILES"; then
32125 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32126 ac_cs_awk_getline=:
32127 ac_cs_awk_pipe_init=
32128 ac_cs_awk_read_file='
32129 while ((getline aline < (F[key])) > 0)
32132 ac_cs_awk_pipe_fini=
32134 ac_cs_awk_getline=false
32135 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32136 ac_cs_awk_read_file='
32138 print "cat " F[key] " &&"
32139 '$ac_cs_awk_pipe_init
32140 # The final `:' finishes the AND list.
32141 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32143 ac_cr=`echo X | tr X '\015'`
32144 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32145 # But we know of no other shell where ac_cr would be empty at this
32146 # point, so we can use a bashism as a fallback.
32147 if test "x$ac_cr" = x; then
32148 eval ac_cr=\$\'\\r\'
32150 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32151 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32154 ac_cs_awk_cr=$ac_cr
32157 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32160 # Create commands to substitute file output variables.
32162 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32163 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32164 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32167 } >conf$$files.sh &&
32168 . ./conf$$files.sh ||
32169 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32170 rm -f conf$$files.sh
32173 echo "cat >conf$$subs.awk <<_ACEOF" &&
32174 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32176 } >conf$$subs.sh ||
32177 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32178 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32180 for ac_last_try in false false false false false :; do
32181 . ./conf$$subs.sh ||
32182 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32184 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32185 if test $ac_delim_n = $ac_delim_num; then
32187 elif $ac_last_try; then
32188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32190 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32193 rm -f conf$$subs.sh
32195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32196 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32200 s/^/S["/; s/!.*/"]=/
32210 s/\(.\{148\}\)..*/\1/
32212 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32217 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32224 s/\(.\{148\}\)..*/\1/
32226 s/["\\]/\\&/g; s/^/"/; s/$/"/
32230 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32235 ' <conf$$subs.awk | sed '
32240 ' >>$CONFIG_STATUS || ac_write_fail=1
32241 rm -f conf$$subs.awk
32242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32244 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32245 for (key in S) S_is_set[key] = 1
32247 \$ac_cs_awk_pipe_init
32251 nfields = split(line, field, "@")
32253 len = length(field[1])
32254 for (i = 2; i < nfields; i++) {
32256 keylen = length(key)
32257 if (S_is_set[key]) {
32259 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32260 len += length(value) + length(field[++i])
32265 if (nfields == 3 && !substed) {
32267 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32268 \$ac_cs_awk_read_file
32274 \$ac_cs_awk_pipe_fini
32277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32278 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32279 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32282 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32283 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32286 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32287 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32288 # trailing colons and then remove the whole line if VPATH becomes empty
32289 # (actually we leave an empty line to preserve line numbers).
32290 if test "x$srcdir" = x.; then
32291 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32310 fi # test -n "$CONFIG_FILES"
32312 # Set up the scripts for CONFIG_HEADERS section.
32313 # No need to generate them if there are no CONFIG_HEADERS.
32314 # This happens for instance with `./config.status Makefile'.
32315 if test -n "$CONFIG_HEADERS"; then
32316 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32320 # Transform confdefs.h into an awk script `defines.awk', embedded as
32321 # here-document in config.status, that substitutes the proper values into
32322 # config.h.in to produce config.h.
32324 # Create a delimiter string that does not exist in confdefs.h, to ease
32325 # handling of long lines.
32327 for ac_last_try in false false :; do
32328 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32329 if test -z "$ac_tt"; then
32331 elif $ac_last_try; then
32332 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32334 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32338 # For the awk script, D is an array of macro values keyed by name,
32339 # likewise P contains macro parameters if any. Preserve backslash
32340 # newline sequences.
32342 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32344 s/.\{148\}/&'"$ac_delim"'/g
32347 s/^[ ]*#[ ]*define[ ][ ]*/ /
32354 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32356 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32360 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32361 D["\1"]=" \3\\\\\\n"\\/p
32363 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32368 s/.\{148\}/&'"$ac_delim"'/g
32373 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32376 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32378 ' <confdefs.h | sed '
32379 s/'"$ac_delim"'/"\\\
32380 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32383 for (key in D) D_is_set[key] = 1
32386 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32388 split(line, arg, " ")
32389 if (arg[1] == "#") {
32393 defundef = substr(arg[1], 2)
32396 split(mac1, mac2, "(") #)
32398 prefix = substr(line, 1, index(line, defundef) - 1)
32399 if (D_is_set[macro]) {
32400 # Preserve the white space surrounding the "#".
32401 print prefix "define", macro P[macro] D[macro]
32404 # Replace #undef with comments. This is necessary, for example,
32405 # in the case of _POSIX_SOURCE, which is predefined and required
32406 # on some systems where configure will not decide to define it.
32407 if (defundef == "undef") {
32408 print "/*", prefix defundef, macro, "*/"
32416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32417 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32418 fi # test -n "$CONFIG_HEADERS"
32421 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32426 :[FHLC]) ac_mode=$ac_tag; continue;;
32428 case $ac_mode$ac_tag in
32430 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32431 :[FH]-) ac_tag=-:-;;
32432 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32449 -) ac_f="$ac_tmp/stdin";;
32450 *) # Look for the file first in the build tree, then in the source tree
32451 # (if the path is not absolute). The absolute path cannot be DOS-style,
32452 # because $ac_f cannot contain `:'.
32456 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32458 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32460 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32461 as_fn_append ac_file_inputs " '$ac_f'"
32464 # Let's still pretend it is `configure' which instantiates (i.e., don't
32465 # use $as_me), people would be surprised to read:
32466 # /* config.h. Generated by config.status. */
32467 configure_input='Generated from '`
32468 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32470 if test x"$ac_file" != x-; then
32471 configure_input="$ac_file. $configure_input"
32472 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32473 $as_echo "$as_me: creating $ac_file" >&6;}
32475 # Neutralize special characters interpreted by sed in replacement strings.
32476 case $configure_input in #(
32477 *\&* | *\|* | *\\* )
32478 ac_sed_conf_input=`$as_echo "$configure_input" |
32479 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32480 *) ac_sed_conf_input=$configure_input;;
32484 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32485 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32490 ac_dir=`$as_dirname -- "$ac_file" ||
32491 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32492 X"$ac_file" : 'X\(//\)[^/]' \| \
32493 X"$ac_file" : 'X\(//\)$' \| \
32494 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32495 $as_echo X"$ac_file" |
32496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32500 /^X\(\/\/\)[^/].*/{
32513 as_dir="$ac_dir"; as_fn_mkdir_p
32517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32519 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32520 # A ".." for each directory in $ac_dir_suffix.
32521 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32522 case $ac_top_builddir_sub in
32523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32527 ac_abs_top_builddir=$ac_pwd
32528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32529 # for backward compatibility:
32530 ac_top_builddir=$ac_top_build_prefix
32533 .) # We are building in place.
32535 ac_top_srcdir=$ac_top_builddir_sub
32536 ac_abs_top_srcdir=$ac_pwd ;;
32537 [\\/]* | ?:[\\/]* ) # Absolute name.
32538 ac_srcdir=$srcdir$ac_dir_suffix;
32539 ac_top_srcdir=$srcdir
32540 ac_abs_top_srcdir=$srcdir ;;
32541 *) # Relative name.
32542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32543 ac_top_srcdir=$ac_top_build_prefix$srcdir
32544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32556 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32557 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32562 # If the template does not know about datarootdir, expand it.
32563 # FIXME: This hack should be removed a few years after 2.60.
32564 ac_datarootdir_hack=; ac_datarootdir_seen=
32575 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32576 *datarootdir*) ac_datarootdir_seen=yes;;
32577 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32579 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32582 ac_datarootdir_hack='
32583 s&@datadir@&$datadir&g
32584 s&@docdir@&$docdir&g
32585 s&@infodir@&$infodir&g
32586 s&@localedir@&$localedir&g
32587 s&@mandir@&$mandir&g
32588 s&\\\${datarootdir}&$datarootdir&g' ;;
32592 # Neutralize VPATH when `$srcdir' = `.'.
32593 # Shell code in configure.ac might set extrasub.
32594 # FIXME: do we really want to maintain this feature?
32595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32596 ac_sed_extra="$ac_vpsub
32599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32602 s|@configure_input@|$ac_sed_conf_input|;t t
32603 s&@top_builddir@&$ac_top_builddir_sub&;t t
32604 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32605 s&@srcdir@&$ac_srcdir&;t t
32606 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32607 s&@top_srcdir@&$ac_top_srcdir&;t t
32608 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32609 s&@builddir@&$ac_builddir&;t t
32610 s&@abs_builddir@&$ac_abs_builddir&;t t
32611 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32612 s&@INSTALL@&$ac_INSTALL&;t t
32613 $ac_datarootdir_hack
32615 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32616 if $ac_cs_awk_getline; then
32617 $AWK -f "$ac_tmp/subs.awk"
32619 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32621 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32623 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32624 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32625 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32626 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32628 which seems to be undefined. Please make sure it is defined" >&5
32629 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32630 which seems to be undefined. Please make sure it is defined" >&2;}
32632 rm -f "$ac_tmp/stdin"
32634 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32635 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32637 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32643 if test x"$ac_file" != x-; then
32645 $as_echo "/* $configure_input */" \
32646 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32647 } >"$ac_tmp/config.h" \
32648 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32649 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32650 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32651 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32654 mv "$ac_tmp/config.h" "$ac_file" \
32655 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32658 $as_echo "/* $configure_input */" \
32659 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32660 || as_fn_error $? "could not create -" "$LINENO" 5
32664 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32665 $as_echo "$as_me: executing $ac_file commands" >&6;}
32670 case $ac_file$ac_mode in
32673 # See if we are running on zsh, and set the options which allow our
32674 # commands through without removal of \ escapes.
32675 if test -n "${ZSH_VERSION+set}" ; then
32676 setopt NO_GLOB_SUBST
32679 cfgfile="${ofile}T"
32680 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32683 cat <<_LT_EOF >> "$cfgfile"
32686 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32687 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32688 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32689 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32691 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32692 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32694 # Written by Gordon Matzigkeit, 1996
32696 # This file is part of GNU Libtool.
32698 # GNU Libtool is free software; you can redistribute it and/or
32699 # modify it under the terms of the GNU General Public License as
32700 # published by the Free Software Foundation; either version 2 of
32701 # the License, or (at your option) any later version.
32703 # As a special exception to the GNU General Public License,
32704 # if you distribute this file as part of a program or library that
32705 # is built using GNU Libtool, you may include this file under the
32706 # same distribution terms that you use for the rest of that program.
32708 # GNU Libtool is distributed in the hope that it will be useful,
32709 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32710 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32711 # GNU General Public License for more details.
32713 # You should have received a copy of the GNU General Public License
32714 # along with GNU Libtool; see the file COPYING. If not, a copy
32715 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32716 # obtained by writing to the Free Software Foundation, Inc.,
32717 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32720 # The names of the tagged configurations supported by this script.
32721 available_tags="CXX "
32723 # ### BEGIN LIBTOOL CONFIG
32725 # Which release of libtool.m4 was used?
32726 macro_version=$macro_version
32727 macro_revision=$macro_revision
32729 # Whether or not to build shared libraries.
32730 build_libtool_libs=$enable_shared
32732 # Whether or not to build static libraries.
32733 build_old_libs=$enable_static
32735 # What type of objects to build.
32738 # Whether or not to optimize for fast installation.
32739 fast_install=$enable_fast_install
32741 # Shell to use when invoking shell scripts.
32744 # An echo program that protects backslashes.
32747 # The PATH separator for the build system.
32748 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32751 host_alias=$host_alias
32755 # The build system.
32756 build_alias=$build_alias
32760 # A sed program that does not truncate output.
32763 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32764 Xsed="\$SED -e 1s/^X//"
32766 # A grep program that handles long lines.
32772 # A literal string matcher.
32775 # A BSD- or MS-compatible name lister.
32778 # Whether we need soft or hard links.
32781 # What is the maximum length of a command?
32782 max_cmd_len=$max_cmd_len
32784 # Object file suffix (normally "o").
32787 # Executable file suffix (normally "").
32790 # whether the shell understands "unset".
32793 # turn spaces into newlines.
32796 # turn newlines into spaces.
32799 # convert \$build file names to \$host format.
32800 to_host_file_cmd=$lt_cv_to_host_file_cmd
32802 # convert \$build files to toolchain format.
32803 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32805 # An object symbol dumper.
32806 OBJDUMP=$lt_OBJDUMP
32808 # Method to check whether dependent libraries are shared objects.
32809 deplibs_check_method=$lt_deplibs_check_method
32811 # Command to use when deplibs_check_method = "file_magic".
32812 file_magic_cmd=$lt_file_magic_cmd
32814 # How to find potential files when deplibs_check_method = "file_magic".
32815 file_magic_glob=$lt_file_magic_glob
32817 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32818 want_nocaseglob=$lt_want_nocaseglob
32820 # DLL creation program.
32821 DLLTOOL=$lt_DLLTOOL
32823 # Command to associate shared and link libraries.
32824 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32829 # Flags to create an archive.
32830 AR_FLAGS=$lt_AR_FLAGS
32832 # How to feed a file listing to the archiver.
32833 archiver_list_spec=$lt_archiver_list_spec
32835 # A symbol stripping program.
32838 # Commands used to install an old-style archive.
32840 old_postinstall_cmds=$lt_old_postinstall_cmds
32841 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32843 # Whether to use a lock for old archive extraction.
32844 lock_old_archive_extraction=$lock_old_archive_extraction
32849 # LTCC compiler flags.
32850 LTCFLAGS=$lt_CFLAGS
32852 # Take the output of nm and produce a listing of raw symbols and C names.
32853 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32855 # Transform the output of nm in a proper C declaration.
32856 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32858 # Transform the output of nm in a C name address pair.
32859 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32861 # Transform the output of nm in a C name address pair when lib prefix is needed.
32862 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32864 # Specify filename containing input files for \$NM.
32865 nm_file_list_spec=$lt_nm_file_list_spec
32867 # The root where to search for dependent libraries,and in which our libraries should be installed.
32868 lt_sysroot=$lt_sysroot
32870 # The name of the directory that contains temporary libtool files.
32873 # Used to examine libraries when file_magic_cmd begins with "file".
32874 MAGIC_CMD=$MAGIC_CMD
32876 # Must we lock files when doing compilation?
32877 need_locks=$lt_need_locks
32880 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32882 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32883 DSYMUTIL=$lt_DSYMUTIL
32885 # Tool to change global to local symbols on Mac OS X.
32888 # Tool to manipulate fat objects and archives on Mac OS X.
32891 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32894 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32895 OTOOL64=$lt_OTOOL64
32897 # Old archive suffix (normally "a").
32900 # Shared library suffix (normally ".so").
32901 shrext_cmds=$lt_shrext_cmds
32903 # The commands to extract the exported symbol list from a shared archive.
32904 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32906 # Variables whose values should be saved in libtool wrapper scripts and
32907 # restored at link time.
32908 variables_saved_for_relink=$lt_variables_saved_for_relink
32910 # Do we need the "lib" prefix for modules?
32911 need_lib_prefix=$need_lib_prefix
32913 # Do we need a version for libraries?
32914 need_version=$need_version
32916 # Library versioning type.
32917 version_type=$version_type
32919 # Shared library runtime path variable.
32920 runpath_var=$runpath_var
32922 # Shared library path variable.
32923 shlibpath_var=$shlibpath_var
32925 # Is shlibpath searched before the hard-coded library search path?
32926 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32928 # Format of library name prefix.
32929 libname_spec=$lt_libname_spec
32931 # List of archive names. First name is the real one, the rest are links.
32932 # The last name is the one that the linker finds with -lNAME
32933 library_names_spec=$lt_library_names_spec
32935 # The coded name of the library, if different from the real name.
32936 soname_spec=$lt_soname_spec
32938 # Permission mode override for installation of shared libraries.
32939 install_override_mode=$lt_install_override_mode
32941 # Command to use after installation of a shared archive.
32942 postinstall_cmds=$lt_postinstall_cmds
32944 # Command to use after uninstallation of a shared archive.
32945 postuninstall_cmds=$lt_postuninstall_cmds
32947 # Commands used to finish a libtool library installation in a directory.
32948 finish_cmds=$lt_finish_cmds
32950 # As "finish_cmds", except a single script fragment to be evaled but
32952 finish_eval=$lt_finish_eval
32954 # Whether we should hardcode library paths into libraries.
32955 hardcode_into_libs=$hardcode_into_libs
32957 # Compile-time system search path for libraries.
32958 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32960 # Run-time system search path for libraries.
32961 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32963 # Whether dlopen is supported.
32964 dlopen_support=$enable_dlopen
32966 # Whether dlopen of programs is supported.
32967 dlopen_self=$enable_dlopen_self
32969 # Whether dlopen of statically linked programs is supported.
32970 dlopen_self_static=$enable_dlopen_self_static
32972 # Commands to strip libraries.
32973 old_striplib=$lt_old_striplib
32974 striplib=$lt_striplib
32977 # The linker used to build libraries.
32980 # How to create reloadable object files.
32981 reload_flag=$lt_reload_flag
32982 reload_cmds=$lt_reload_cmds
32984 # Commands used to build an old-style archive.
32985 old_archive_cmds=$lt_old_archive_cmds
32987 # A language specific compiler.
32990 # Is the compiler the GNU compiler?
32993 # Compiler flag to turn off builtin functions.
32994 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32996 # Additional compiler flags for building library objects.
32997 pic_flag=$lt_lt_prog_compiler_pic
32999 # How to pass a linker flag through the compiler.
33000 wl=$lt_lt_prog_compiler_wl
33002 # Compiler flag to prevent dynamic linking.
33003 link_static_flag=$lt_lt_prog_compiler_static
33005 # Does compiler simultaneously support -c and -o options?
33006 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33008 # Whether or not to add -lc for building shared libraries.
33009 build_libtool_need_lc=$archive_cmds_need_lc
33011 # Whether or not to disallow shared libs when runtime libs are static.
33012 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33014 # Compiler flag to allow reflexive dlopens.
33015 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33017 # Compiler flag to generate shared objects directly from archives.
33018 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33020 # Whether the compiler copes with passing no objects directly.
33021 compiler_needs_object=$lt_compiler_needs_object
33023 # Create an old-style archive from a shared archive.
33024 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33026 # Create a temporary old-style archive to link instead of a shared archive.
33027 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33029 # Commands used to build a shared archive.
33030 archive_cmds=$lt_archive_cmds
33031 archive_expsym_cmds=$lt_archive_expsym_cmds
33033 # Commands used to build a loadable module if different from building
33034 # a shared archive.
33035 module_cmds=$lt_module_cmds
33036 module_expsym_cmds=$lt_module_expsym_cmds
33038 # Whether we are building with GNU ld or not.
33039 with_gnu_ld=$lt_with_gnu_ld
33041 # Flag that allows shared libraries with undefined symbols to be built.
33042 allow_undefined_flag=$lt_allow_undefined_flag
33044 # Flag that enforces no undefined symbols.
33045 no_undefined_flag=$lt_no_undefined_flag
33047 # Flag to hardcode \$libdir into a binary during linking.
33048 # This must work even if \$libdir does not exist
33049 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33051 # Whether we need a single "-rpath" flag with a separated argument.
33052 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33054 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33055 # DIR into the resulting binary.
33056 hardcode_direct=$hardcode_direct
33058 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33059 # DIR into the resulting binary and the resulting library dependency is
33060 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33061 # library is relocated.
33062 hardcode_direct_absolute=$hardcode_direct_absolute
33064 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33065 # into the resulting binary.
33066 hardcode_minus_L=$hardcode_minus_L
33068 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33069 # into the resulting binary.
33070 hardcode_shlibpath_var=$hardcode_shlibpath_var
33072 # Set to "yes" if building a shared library automatically hardcodes DIR
33073 # into the library and all subsequent libraries and executables linked
33075 hardcode_automatic=$hardcode_automatic
33077 # Set to yes if linker adds runtime paths of dependent libraries
33078 # to runtime path list.
33079 inherit_rpath=$inherit_rpath
33081 # Whether libtool must link a program against all its dependency libraries.
33082 link_all_deplibs=$link_all_deplibs
33084 # Set to "yes" if exported symbols are required.
33085 always_export_symbols=$always_export_symbols
33087 # The commands to list exported symbols.
33088 export_symbols_cmds=$lt_export_symbols_cmds
33090 # Symbols that should not be listed in the preloaded symbols.
33091 exclude_expsyms=$lt_exclude_expsyms
33093 # Symbols that must always be exported.
33094 include_expsyms=$lt_include_expsyms
33096 # Commands necessary for linking programs (against libraries) with templates.
33097 prelink_cmds=$lt_prelink_cmds
33099 # Commands necessary for finishing linking programs.
33100 postlink_cmds=$lt_postlink_cmds
33102 # Specify filename containing input files.
33103 file_list_spec=$lt_file_list_spec
33105 # How to hardcode a shared library path into an executable.
33106 hardcode_action=$hardcode_action
33108 # The directories searched by this compiler when creating a shared library.
33109 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33111 # Dependencies to place before and after the objects being linked to
33112 # create a shared library.
33113 predep_objects=$lt_predep_objects
33114 postdep_objects=$lt_postdep_objects
33115 predeps=$lt_predeps
33116 postdeps=$lt_postdeps
33118 # The library search path used internally by the compiler when linking
33119 # a shared library.
33120 compiler_lib_search_path=$lt_compiler_lib_search_path
33122 # ### END LIBTOOL CONFIG
33128 cat <<\_LT_EOF >> "$cfgfile"
33129 # AIX sometimes has problems with the GCC collect2 program. For some
33130 # reason, if we set the COLLECT_NAMES environment variable, the problems
33131 # vanish in a puff of smoke.
33132 if test "X${COLLECT_NAMES+set}" != Xset; then
33134 export COLLECT_NAMES
33141 ltmain="$ac_aux_dir/ltmain.sh"
33144 # We use sed instead of cat because bash on DJGPP gets confused if
33145 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33146 # text mode, it properly converts lines to CR/LF. This bash problem
33147 # is reportedly fixed, but why not run on old versions too?
33148 sed '$q' "$ltmain" >> "$cfgfile" \
33149 || (rm -f "$cfgfile"; exit 1)
33151 if test x"$xsi_shell" = xyes; then
33152 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33156 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33157 \ * ) func_dirname_result="${3}" ;;\
33159 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33160 && mv -f "$cfgfile.tmp" "$cfgfile" \
33161 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33162 test 0 -eq $? || _lt_function_replace_fail=:
33165 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33168 \ func_basename_result="${1##*/}"\
33169 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33170 && mv -f "$cfgfile.tmp" "$cfgfile" \
33171 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33172 test 0 -eq $? || _lt_function_replace_fail=:
33175 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33176 func_dirname_and_basename ()\
33179 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33180 \ * ) func_dirname_result="${3}" ;;\
33182 \ func_basename_result="${1##*/}"\
33183 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33184 && mv -f "$cfgfile.tmp" "$cfgfile" \
33185 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33186 test 0 -eq $? || _lt_function_replace_fail=:
33189 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33192 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33193 \ # positional parameters, so assign one to ordinary parameter first.\
33194 \ func_stripname_result=${3}\
33195 \ func_stripname_result=${func_stripname_result#"${1}"}\
33196 \ func_stripname_result=${func_stripname_result%"${2}"}\
33197 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33198 && mv -f "$cfgfile.tmp" "$cfgfile" \
33199 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33200 test 0 -eq $? || _lt_function_replace_fail=:
33203 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33204 func_split_long_opt ()\
33206 \ func_split_long_opt_name=${1%%=*}\
33207 \ func_split_long_opt_arg=${1#*=}\
33208 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33209 && mv -f "$cfgfile.tmp" "$cfgfile" \
33210 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33211 test 0 -eq $? || _lt_function_replace_fail=:
33214 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33215 func_split_short_opt ()\
33217 \ func_split_short_opt_arg=${1#??}\
33218 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33219 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33220 && mv -f "$cfgfile.tmp" "$cfgfile" \
33221 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33222 test 0 -eq $? || _lt_function_replace_fail=:
33225 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33229 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33230 \ *) func_lo2o_result=${1} ;;\
33232 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33233 && mv -f "$cfgfile.tmp" "$cfgfile" \
33234 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33235 test 0 -eq $? || _lt_function_replace_fail=:
33238 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33241 func_xform_result=${1%.*}.lo\
33242 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33243 && mv -f "$cfgfile.tmp" "$cfgfile" \
33244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33245 test 0 -eq $? || _lt_function_replace_fail=:
33248 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33251 func_arith_result=$(( $* ))\
33252 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33253 && mv -f "$cfgfile.tmp" "$cfgfile" \
33254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33255 test 0 -eq $? || _lt_function_replace_fail=:
33258 sed -e '/^func_len ()$/,/^} # func_len /c\
33261 func_len_result=${#1}\
33262 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33263 && mv -f "$cfgfile.tmp" "$cfgfile" \
33264 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33265 test 0 -eq $? || _lt_function_replace_fail=:
33269 if test x"$lt_shell_append" = xyes; then
33270 sed -e '/^func_append ()$/,/^} # func_append /c\
33273 eval "${1}+=\\${2}"\
33274 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33275 && mv -f "$cfgfile.tmp" "$cfgfile" \
33276 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33277 test 0 -eq $? || _lt_function_replace_fail=:
33280 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33281 func_append_quoted ()\
33283 \ func_quote_for_eval "${2}"\
33284 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33285 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33286 && mv -f "$cfgfile.tmp" "$cfgfile" \
33287 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33288 test 0 -eq $? || _lt_function_replace_fail=:
33291 # Save a `func_append' function call where possible by direct use of '+='
33292 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33293 && mv -f "$cfgfile.tmp" "$cfgfile" \
33294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33295 test 0 -eq $? || _lt_function_replace_fail=:
33297 # Save a `func_append' function call even when '+=' is not available
33298 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33299 && mv -f "$cfgfile.tmp" "$cfgfile" \
33300 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33301 test 0 -eq $? || _lt_function_replace_fail=:
33304 if test x"$_lt_function_replace_fail" = x":"; then
33305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33306 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33310 mv -f "$cfgfile" "$ofile" ||
33311 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33315 cat <<_LT_EOF >> "$ofile"
33317 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33319 # The linker used to build libraries.
33322 # How to create reloadable object files.
33323 reload_flag=$lt_reload_flag_CXX
33324 reload_cmds=$lt_reload_cmds_CXX
33326 # Commands used to build an old-style archive.
33327 old_archive_cmds=$lt_old_archive_cmds_CXX
33329 # A language specific compiler.
33330 CC=$lt_compiler_CXX
33332 # Is the compiler the GNU compiler?
33335 # Compiler flag to turn off builtin functions.
33336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33338 # Additional compiler flags for building library objects.
33339 pic_flag=$lt_lt_prog_compiler_pic_CXX
33341 # How to pass a linker flag through the compiler.
33342 wl=$lt_lt_prog_compiler_wl_CXX
33344 # Compiler flag to prevent dynamic linking.
33345 link_static_flag=$lt_lt_prog_compiler_static_CXX
33347 # Does compiler simultaneously support -c and -o options?
33348 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33350 # Whether or not to add -lc for building shared libraries.
33351 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33353 # Whether or not to disallow shared libs when runtime libs are static.
33354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33356 # Compiler flag to allow reflexive dlopens.
33357 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33359 # Compiler flag to generate shared objects directly from archives.
33360 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33362 # Whether the compiler copes with passing no objects directly.
33363 compiler_needs_object=$lt_compiler_needs_object_CXX
33365 # Create an old-style archive from a shared archive.
33366 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33368 # Create a temporary old-style archive to link instead of a shared archive.
33369 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33371 # Commands used to build a shared archive.
33372 archive_cmds=$lt_archive_cmds_CXX
33373 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33375 # Commands used to build a loadable module if different from building
33376 # a shared archive.
33377 module_cmds=$lt_module_cmds_CXX
33378 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33380 # Whether we are building with GNU ld or not.
33381 with_gnu_ld=$lt_with_gnu_ld_CXX
33383 # Flag that allows shared libraries with undefined symbols to be built.
33384 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33386 # Flag that enforces no undefined symbols.
33387 no_undefined_flag=$lt_no_undefined_flag_CXX
33389 # Flag to hardcode \$libdir into a binary during linking.
33390 # This must work even if \$libdir does not exist
33391 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33393 # Whether we need a single "-rpath" flag with a separated argument.
33394 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33396 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33397 # DIR into the resulting binary.
33398 hardcode_direct=$hardcode_direct_CXX
33400 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33401 # DIR into the resulting binary and the resulting library dependency is
33402 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33403 # library is relocated.
33404 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33406 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33407 # into the resulting binary.
33408 hardcode_minus_L=$hardcode_minus_L_CXX
33410 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33411 # into the resulting binary.
33412 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33414 # Set to "yes" if building a shared library automatically hardcodes DIR
33415 # into the library and all subsequent libraries and executables linked
33417 hardcode_automatic=$hardcode_automatic_CXX
33419 # Set to yes if linker adds runtime paths of dependent libraries
33420 # to runtime path list.
33421 inherit_rpath=$inherit_rpath_CXX
33423 # Whether libtool must link a program against all its dependency libraries.
33424 link_all_deplibs=$link_all_deplibs_CXX
33426 # Set to "yes" if exported symbols are required.
33427 always_export_symbols=$always_export_symbols_CXX
33429 # The commands to list exported symbols.
33430 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33432 # Symbols that should not be listed in the preloaded symbols.
33433 exclude_expsyms=$lt_exclude_expsyms_CXX
33435 # Symbols that must always be exported.
33436 include_expsyms=$lt_include_expsyms_CXX
33438 # Commands necessary for linking programs (against libraries) with templates.
33439 prelink_cmds=$lt_prelink_cmds_CXX
33441 # Commands necessary for finishing linking programs.
33442 postlink_cmds=$lt_postlink_cmds_CXX
33444 # Specify filename containing input files.
33445 file_list_spec=$lt_file_list_spec_CXX
33447 # How to hardcode a shared library path into an executable.
33448 hardcode_action=$hardcode_action_CXX
33450 # The directories searched by this compiler when creating a shared library.
33451 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33453 # Dependencies to place before and after the objects being linked to
33454 # create a shared library.
33455 predep_objects=$lt_predep_objects_CXX
33456 postdep_objects=$lt_postdep_objects_CXX
33457 predeps=$lt_predeps_CXX
33458 postdeps=$lt_postdeps_CXX
33460 # The library search path used internally by the compiler when linking
33461 # a shared library.
33462 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33464 # ### END LIBTOOL TAG CONFIG: CXX
33469 for ac_file in $CONFIG_FILES; do
33470 # Support "outfile[:infile[:infile...]]"
33472 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33474 # PO directories have a Makefile.in generated from Makefile.in.in.
33475 case "$ac_file" in */Makefile.in)
33476 # Adjust a relative srcdir.
33477 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33478 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33479 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33480 # In autoconf-2.13 it is called $ac_given_srcdir.
33481 # In autoconf-2.50 it is called $srcdir.
33482 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33483 case "$ac_given_srcdir" in
33484 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33485 /*) top_srcdir="$ac_given_srcdir" ;;
33486 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33488 # Treat a directory as a PO directory if and only if it has a
33489 # POTFILES.in file. This allows packages to have multiple PO
33490 # directories under different names or in different locations.
33491 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33492 rm -f "$ac_dir/POTFILES"
33493 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33494 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33495 POMAKEFILEDEPS="POTFILES.in"
33496 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33497 # on $ac_dir but don't depend on user-specified configuration
33499 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33500 # The LINGUAS file contains the set of available languages.
33501 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33502 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33504 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33505 # Hide the ALL_LINGUAS assigment from automake.
33506 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33507 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33509 # The set of available languages was given in configure.in.
33510 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33513 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33514 # Compute UPDATEPOFILES
33515 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33516 # Compute DUMMYPOFILES
33517 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33519 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33520 case "$ac_given_srcdir" in
33522 *) srcdirpre='$(srcdir)/' ;;
33528 for lang in $ALL_LINGUAS; do
33529 POFILES="$POFILES $srcdirpre$lang.po"
33530 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33531 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33532 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33534 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33535 # environment variable.
33537 if test -n "$ALL_LINGUAS"; then
33538 for presentlang in $ALL_LINGUAS; do
33540 if test "%UNSET%" != "$LINGUAS"; then
33541 desiredlanguages="$LINGUAS"
33543 desiredlanguages="$ALL_LINGUAS"
33545 for desiredlang in $desiredlanguages; do
33546 # Use the presentlang catalog if desiredlang is
33547 # a. equal to presentlang, or
33548 # b. a variant of presentlang (because in this case,
33549 # presentlang can be used as a fallback for messages
33550 # which are not translated in the desiredlang catalog).
33551 case "$desiredlang" in
33552 "$presentlang"*) useit=yes;;
33555 if test $useit = yes; then
33556 INST_LINGUAS="$INST_LINGUAS $presentlang"
33561 if test -n "$INST_LINGUAS"; then
33562 for lang in $INST_LINGUAS; do
33563 CATALOGS="$CATALOGS $lang.gmo"
33566 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33567 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"
33568 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33569 if test -f "$f"; then
33571 *.orig | *.bak | *~) ;;
33572 *) cat "$f" >> "$ac_dir/Makefile" ;;
33589 ac_clean_files=$ac_clean_files_save
33591 test $ac_write_fail = 0 ||
33592 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33595 # configure is writing to config.log, and then calls config.status.
33596 # config.status does its own redirection, appending to config.log.
33597 # Unfortunately, on DOS this fails, as config.log is still kept open
33598 # by configure, so config.status won't be able to write to it; its
33599 # output is simply discarded. So we exec the FD to /dev/null,
33600 # effectively closing config.log, so it can be properly (re)opened and
33601 # appended to by config.status. When coming back to configure, we
33602 # need to make the FD available again.
33603 if test "$no_create" != yes; then
33605 ac_config_status_args=
33606 test "$silent" = yes &&
33607 ac_config_status_args="$ac_config_status_args --quiet"
33609 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33611 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33612 # would make configure fail if this is the last instruction.
33613 $ac_cs_success || as_fn_exit 1
33615 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33617 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33621 if test "${support_bat}" = "yes" ; then
33622 if test "x$QMAKE" = "xnone"; then
33623 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33627 echo "Creating bat Makefile"
33633 ${MAKE:-make} clean
33637 if test X"$GCC" = "Xyes" ; then
33638 echo "Doing make of dependencies"
33639 ${MAKE:-make} depend
33643 chmod 755 install_conf_file build-depkgs-qt-console
33647 chmod 755 bacula btraceback mtx-changer
33648 chmod 755 dvd-handler dvd-simulator
33649 chmod 755 bconsole disk-changer devel_bacula logrotate
33653 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33654 chmod 755 $c/update_postgresql_tables_10_to_11
33655 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33656 chmod 755 $c/update_postgresql_tables_11_to_12
33661 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33662 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33664 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33665 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33667 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33668 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33670 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33671 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33673 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33674 chmod 755 $c/sqlite
33677 chmod 755 $c/install-default-backend
33679 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33680 largefile_support="yes"
33683 if test X"$GCC" = "Xyes" ; then
33684 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33685 if test "x${CCVERSION}" = "x" ; then
33686 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33688 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33689 if test x"${CXXVERSION}" = x ; then
33690 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33694 # clean up any old junk
33698 ${MAKE:-make} clean
33701 Configuration on `date`:
33703 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33704 Bacula version: ${BACULA} ${VERSION} (${DATE})
33705 Source code location: ${srcdir}
33706 Install binaries: ${sbindir}
33707 Install libraries: ${libdir}
33708 Install config files: ${sysconfdir}
33709 Scripts directory: ${scriptdir}
33710 Archive directory: ${archivedir}
33711 Working directory: ${working_dir}
33712 PID directory: ${piddir}
33713 Subsys directory: ${subsysdir}
33714 Man directory: ${mandir}
33715 Data directory: ${datarootdir}
33716 Plugin directory: ${plugindir}
33717 C Compiler: ${CC} ${CCVERSION}
33718 C++ Compiler: ${CXX} ${CXXVERSION}
33719 Compiler flags: ${WCFLAGS} ${CFLAGS}
33720 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33722 Statically Linked Tools: ${support_static_tools}
33723 Statically Linked FD: ${support_static_fd}
33724 Statically Linked SD: ${support_static_sd}
33725 Statically Linked DIR: ${support_static_dir}
33726 Statically Linked CONS: ${support_static_cons}
33727 Database backends: ${db_backends}
33728 Database port: ${db_port}
33729 Database name: ${db_name}
33730 Database user: ${db_user}
33732 Job Output Email: ${job_email}
33733 Traceback Email: ${dump_email}
33734 SMTP Host Address: ${smtp_host}
33736 Director Port: ${dir_port}
33737 File daemon Port: ${fd_port}
33738 Storage daemon Port: ${sd_port}
33740 Director User: ${dir_user}
33741 Director Group: ${dir_group}
33742 Storage Daemon User: ${sd_user}
33743 Storage DaemonGroup: ${sd_group}
33744 File Daemon User: ${fd_user}
33745 File Daemon Group: ${fd_group}
33747 Large file support: $largefile_support
33748 Bacula conio support: ${got_conio} ${CONS_LIBS}
33749 readline support: ${got_readline} ${PRTREADLINE_SRC}
33750 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33751 TLS support: ${support_tls}
33752 Encryption support: ${support_crypto}
33753 ZLIB support: ${have_zlib}
33754 LZO support: ${have_lzo}
33755 enable-smartalloc: ${support_smartalloc}
33756 enable-lockmgr: ${support_lockmgr}
33757 bat support: ${support_bat}
33758 client-only: ${build_client_only}
33759 build-dird: ${build_dird}
33760 build-stored: ${build_stored}
33761 Plugin support: ${have_plugins}
33762 AFS support: ${have_afs}
33763 ACL support: ${have_acl}
33764 XATTR support: ${have_xattr}
33765 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
33766 Batch insert enabled: ${batch_insert_db_backends}
33770 # create a small shell script useful for support with
33771 # configure options and config.out info
33772 cat > scripts/bacula_config << EOF
33775 $ $0 $ac_configure_args
33777 cat config.out >> scripts/bacula_config
33778 echo __EOC__ >> scripts/bacula_config
33779 chmod 755 scripts/bacula_config