2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bacula 7.4.4.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='bacula'
589 PACKAGE_TARNAME='bacula'
590 PACKAGE_VERSION='7.4.4'
591 PACKAGE_STRING='bacula 7.4.4'
595 ac_unique_file="src/version.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
633 ac_subst_vars='LTLIBOBJS
663 SHARED_CATALOG_TARGETS
734 INTL_LIBTOOL_SUFFIX_PREFIX
741 BUILD_INCLUDED_LIBINTL
764 HAVE_KFREEBSD_OS_FALSE
765 HAVE_KFREEBSD_OS_TRUE
774 HAVE_OPENBSD_OS_FALSE
778 HAVE_FREEBSD_OS_FALSE
792 INCLUDE_UNINSTALL_TARGET
793 INCLUDE_INSTALL_TARGET
797 LIBTOOL_UNINSTALL_TARGET
798 LIBTOOL_INSTALL_TARGET
799 DEFAULT_SHARED_OBJECT_TYPE
878 LIBBACFIND_LT_RELEASE
879 LIBBACCATS_LT_RELEASE
923 program_transform_name
934 ac_subst_files='MCOMMON'
936 enable_option_checking
950 with_included_gettext
985 with_mon_dir_password
1015 ac_precious_vars='build_alias
1031 # Initialize some variables set by options.
1033 ac_init_version=false
1034 ac_unrecognized_opts=
1035 ac_unrecognized_sep=
1036 # The variables have the same names as the options, with
1037 # dashes changed to underlines.
1038 cache_file=/dev/null
1045 program_transform_name=s,x,x,
1053 # Installation directory options.
1054 # These are left unexpanded so users can "make install exec_prefix=/foo"
1055 # and all the variables that are supposed to be based on exec_prefix
1056 # by default will actually change.
1057 # Use braces instead of parens because sh, perl, etc. also accept them.
1058 # (The list follows the same order as the GNU Coding Standards.)
1059 bindir='${exec_prefix}/bin'
1060 sbindir='${exec_prefix}/sbin'
1061 libexecdir='${exec_prefix}/libexec'
1062 datarootdir='${prefix}/share'
1063 datadir='${datarootdir}'
1064 sysconfdir='${prefix}/etc'
1065 sharedstatedir='${prefix}/com'
1066 localstatedir='${prefix}/var'
1067 includedir='${prefix}/include'
1068 oldincludedir='/usr/include'
1069 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1070 infodir='${datarootdir}/info'
1075 libdir='${exec_prefix}/lib'
1076 localedir='${datarootdir}/locale'
1077 mandir='${datarootdir}/man'
1083 # If the previous option needs an argument, assign it.
1084 if test -n "$ac_prev"; then
1085 eval $ac_prev=\$ac_option
1091 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1096 # Accept the important Cygnus configure options, so we can diagnose typos.
1098 case $ac_dashdash$ac_option in
1102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1105 bindir=$ac_optarg ;;
1107 -build | --build | --buil | --bui | --bu)
1108 ac_prev=build_alias ;;
1109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1110 build_alias=$ac_optarg ;;
1112 -cache-file | --cache-file | --cache-fil | --cache-fi \
1113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1114 ac_prev=cache_file ;;
1115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1117 cache_file=$ac_optarg ;;
1119 --config-cache | -C)
1120 cache_file=config.cache ;;
1122 -datadir | --datadir | --datadi | --datad)
1124 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1125 datadir=$ac_optarg ;;
1127 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1128 | --dataroo | --dataro | --datar)
1129 ac_prev=datarootdir ;;
1130 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1131 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1132 datarootdir=$ac_optarg ;;
1134 -disable-* | --disable-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid feature name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1143 "enable_$ac_useropt"
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1148 eval enable_$ac_useropt=no ;;
1150 -docdir | --docdir | --docdi | --doc | --do)
1152 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1153 docdir=$ac_optarg ;;
1155 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1157 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1158 dvidir=$ac_optarg ;;
1160 -enable-* | --enable-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error $? "invalid feature name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1169 "enable_$ac_useropt"
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1174 eval enable_$ac_useropt=\$ac_optarg ;;
1176 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1177 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1178 | --exec | --exe | --ex)
1179 ac_prev=exec_prefix ;;
1180 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1181 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1182 | --exec=* | --exe=* | --ex=*)
1183 exec_prefix=$ac_optarg ;;
1185 -gas | --gas | --ga | --g)
1186 # Obsolete; use --with-gas.
1189 -help | --help | --hel | --he | -h)
1190 ac_init_help=long ;;
1191 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1192 ac_init_help=recursive ;;
1193 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1194 ac_init_help=short ;;
1196 -host | --host | --hos | --ho)
1197 ac_prev=host_alias ;;
1198 -host=* | --host=* | --hos=* | --ho=*)
1199 host_alias=$ac_optarg ;;
1201 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1203 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1205 htmldir=$ac_optarg ;;
1207 -includedir | --includedir | --includedi | --included | --include \
1208 | --includ | --inclu | --incl | --inc)
1209 ac_prev=includedir ;;
1210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1211 | --includ=* | --inclu=* | --incl=* | --inc=*)
1212 includedir=$ac_optarg ;;
1214 -infodir | --infodir | --infodi | --infod | --info | --inf)
1216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1217 infodir=$ac_optarg ;;
1219 -libdir | --libdir | --libdi | --libd)
1221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1222 libdir=$ac_optarg ;;
1224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1225 | --libexe | --libex | --libe)
1226 ac_prev=libexecdir ;;
1227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1228 | --libexe=* | --libex=* | --libe=*)
1229 libexecdir=$ac_optarg ;;
1231 -localedir | --localedir | --localedi | --localed | --locale)
1232 ac_prev=localedir ;;
1233 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1234 localedir=$ac_optarg ;;
1236 -localstatedir | --localstatedir | --localstatedi | --localstated \
1237 | --localstate | --localstat | --localsta | --localst | --locals)
1238 ac_prev=localstatedir ;;
1239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1240 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1241 localstatedir=$ac_optarg ;;
1243 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1245 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1246 mandir=$ac_optarg ;;
1248 -nfp | --nfp | --nf)
1249 # Obsolete; use --without-fp.
1252 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1253 | --no-cr | --no-c | -n)
1256 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1257 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1260 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1261 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1262 | --oldin | --oldi | --old | --ol | --o)
1263 ac_prev=oldincludedir ;;
1264 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1265 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1266 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1267 oldincludedir=$ac_optarg ;;
1269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1272 prefix=$ac_optarg ;;
1274 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1275 | --program-pre | --program-pr | --program-p)
1276 ac_prev=program_prefix ;;
1277 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1278 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1279 program_prefix=$ac_optarg ;;
1281 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1282 | --program-suf | --program-su | --program-s)
1283 ac_prev=program_suffix ;;
1284 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1285 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1286 program_suffix=$ac_optarg ;;
1288 -program-transform-name | --program-transform-name \
1289 | --program-transform-nam | --program-transform-na \
1290 | --program-transform-n | --program-transform- \
1291 | --program-transform | --program-transfor \
1292 | --program-transfo | --program-transf \
1293 | --program-trans | --program-tran \
1294 | --progr-tra | --program-tr | --program-t)
1295 ac_prev=program_transform_name ;;
1296 -program-transform-name=* | --program-transform-name=* \
1297 | --program-transform-nam=* | --program-transform-na=* \
1298 | --program-transform-n=* | --program-transform-=* \
1299 | --program-transform=* | --program-transfor=* \
1300 | --program-transfo=* | --program-transf=* \
1301 | --program-trans=* | --program-tran=* \
1302 | --progr-tra=* | --program-tr=* | --program-t=*)
1303 program_transform_name=$ac_optarg ;;
1305 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1307 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1308 pdfdir=$ac_optarg ;;
1310 -psdir | --psdir | --psdi | --psd | --ps)
1312 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1316 | -silent | --silent | --silen | --sile | --sil)
1319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1323 sbindir=$ac_optarg ;;
1325 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1327 | --sharedst | --shareds | --shared | --share | --shar \
1329 ac_prev=sharedstatedir ;;
1330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1334 sharedstatedir=$ac_optarg ;;
1336 -site | --site | --sit)
1338 -site=* | --site=* | --sit=*)
1341 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1343 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1344 srcdir=$ac_optarg ;;
1346 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1347 | --syscon | --sysco | --sysc | --sys | --sy)
1348 ac_prev=sysconfdir ;;
1349 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1350 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1351 sysconfdir=$ac_optarg ;;
1353 -target | --target | --targe | --targ | --tar | --ta | --t)
1354 ac_prev=target_alias ;;
1355 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1356 target_alias=$ac_optarg ;;
1358 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1361 -version | --version | --versio | --versi | --vers | -V)
1362 ac_init_version=: ;;
1365 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1366 # Reject names that are not valid shell variable names.
1367 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1368 as_fn_error $? "invalid package name: $ac_useropt"
1369 ac_useropt_orig=$ac_useropt
1370 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1371 case $ac_user_opts in
1375 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1376 ac_unrecognized_sep=', ';;
1378 eval with_$ac_useropt=\$ac_optarg ;;
1380 -without-* | --without-*)
1381 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1382 # Reject names that are not valid shell variable names.
1383 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1384 as_fn_error $? "invalid package name: $ac_useropt"
1385 ac_useropt_orig=$ac_useropt
1386 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1387 case $ac_user_opts in
1391 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1392 ac_unrecognized_sep=', ';;
1394 eval with_$ac_useropt=no ;;
1397 # Obsolete; use --with-x.
1400 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1401 | --x-incl | --x-inc | --x-in | --x-i)
1402 ac_prev=x_includes ;;
1403 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1404 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1405 x_includes=$ac_optarg ;;
1407 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1408 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1409 ac_prev=x_libraries ;;
1410 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1411 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1412 x_libraries=$ac_optarg ;;
1414 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1415 Try \`$0 --help' for more information"
1419 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1420 # Reject names that are not valid shell variable names.
1421 case $ac_envvar in #(
1422 '' | [0-9]* | *[!_$as_cr_alnum]* )
1423 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1425 eval $ac_envvar=\$ac_optarg
1426 export $ac_envvar ;;
1429 # FIXME: should be removed in autoconf 3.0.
1430 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1431 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1432 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1433 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1439 if test -n "$ac_prev"; then
1440 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1441 as_fn_error $? "missing argument to $ac_option"
1444 if test -n "$ac_unrecognized_opts"; then
1445 case $enable_option_checking in
1447 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1448 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1452 # Check all directory arguments for consistency.
1453 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1454 datadir sysconfdir sharedstatedir localstatedir includedir \
1455 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1456 libdir localedir mandir
1458 eval ac_val=\$$ac_var
1459 # Remove trailing slashes.
1462 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1463 eval $ac_var=\$ac_val;;
1465 # Be sure to have absolute directory names.
1467 [\\/$]* | ?:[\\/]* ) continue;;
1468 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1470 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1473 # There might be people who depend on the old broken behavior: `$host'
1474 # used to hold the argument of --host etc.
1475 # FIXME: To remove some day.
1478 target=$target_alias
1480 # FIXME: To remove some day.
1481 if test "x$host_alias" != x; then
1482 if test "x$build_alias" = x; then
1483 cross_compiling=maybe
1484 elif test "x$build_alias" != "x$host_alias"; then
1490 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1492 test "$silent" = yes && exec 6>/dev/null
1495 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1496 ac_ls_di=`ls -di .` &&
1497 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1498 as_fn_error $? "working directory cannot be determined"
1499 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1500 as_fn_error $? "pwd does not report name of working directory"
1503 # Find the source files, if location was not specified.
1504 if test -z "$srcdir"; then
1505 ac_srcdir_defaulted=yes
1506 # Try the directory containing this script, then the parent directory.
1507 ac_confdir=`$as_dirname -- "$as_myself" ||
1508 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1509 X"$as_myself" : 'X\(//\)[^/]' \| \
1510 X"$as_myself" : 'X\(//\)$' \| \
1511 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1512 $as_echo X"$as_myself" |
1513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1531 if test ! -r "$srcdir/$ac_unique_file"; then
1535 ac_srcdir_defaulted=no
1537 if test ! -r "$srcdir/$ac_unique_file"; then
1538 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1539 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1541 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1543 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1545 # When building in place, set srcdir=.
1546 if test "$ac_abs_confdir" = "$ac_pwd"; then
1549 # Remove unnecessary trailing slashes from srcdir.
1550 # Double slashes in file names in object file debugging info
1551 # mess up M-x gdb in Emacs.
1553 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1555 for ac_var in $ac_precious_vars; do
1556 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1557 eval ac_env_${ac_var}_value=\$${ac_var}
1558 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1559 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1563 # Report the --help message.
1565 if test "$ac_init_help" = "long"; then
1566 # Omit some internal or obsolete options to make the list less imposing.
1567 # This message is too long to be a string in the A/UX 3.1 sh.
1569 \`configure' configures bacula 7.4.4 to adapt to many kinds of systems.
1571 Usage: $0 [OPTION]... [VAR=VALUE]...
1573 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1574 VAR=VALUE. See below for descriptions of some of the useful variables.
1576 Defaults for the options are specified in brackets.
1579 -h, --help display this help and exit
1580 --help=short display options specific to this package
1581 --help=recursive display the short help of all the included packages
1582 -V, --version display version information and exit
1583 -q, --quiet, --silent do not print \`checking ...' messages
1584 --cache-file=FILE cache test results in FILE [disabled]
1585 -C, --config-cache alias for \`--cache-file=config.cache'
1586 -n, --no-create do not create output files
1587 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1589 Installation directories:
1590 --prefix=PREFIX install architecture-independent files in PREFIX
1591 [$ac_default_prefix]
1592 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1595 By default, \`make install' will install all the files in
1596 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1597 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1598 for instance \`--prefix=\$HOME'.
1600 For better control, use the options below.
1602 Fine tuning of the installation directories:
1603 --bindir=DIR user executables [EPREFIX/bin]
1604 --sbindir=DIR system admin executables [EPREFIX/sbin]
1605 --libexecdir=DIR program executables [EPREFIX/libexec]
1606 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1607 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1608 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1609 --libdir=DIR object code libraries [EPREFIX/lib]
1610 --includedir=DIR C header files [PREFIX/include]
1611 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1612 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1613 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1614 --infodir=DIR info documentation [DATAROOTDIR/info]
1615 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1616 --mandir=DIR man documentation [DATAROOTDIR/man]
1617 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1618 --htmldir=DIR html documentation [DOCDIR]
1619 --dvidir=DIR dvi documentation [DOCDIR]
1620 --pdfdir=DIR pdf documentation [DOCDIR]
1621 --psdir=DIR ps documentation [DOCDIR]
1627 --x-includes=DIR X include files are in DIR
1628 --x-libraries=DIR X library files are in DIR
1631 --build=BUILD configure for building on BUILD [guessed]
1632 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1636 if test -n "$ac_init_help"; then
1637 case $ac_init_help in
1638 short | recursive ) echo "Configuration of bacula 7.4.4:";;
1643 --disable-option-checking ignore unrecognized --enable/--with options
1644 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1645 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1646 --enable-libtool enable building using GNU libtool [default=yes]
1647 --enable-shared[=PKGS] build shared libraries [default=yes]
1648 --enable-static[=PKGS] build static libraries [default=no]
1649 --enable-fast-install[=PKGS]
1650 optimize for fast installation [default=yes]
1651 --disable-libtool-lock avoid locking (might break parallel builds)
1652 --enable-includes enable installing of include files [default=no]
1653 --disable-nls do not use Native Language Support
1654 --disable-rpath do not hardcode runtime library paths
1655 --enable-bat enable build of bat Qt4 GUI [default=no]
1656 --enable-smartalloc enable smartalloc debugging support [default=no]
1657 --enable-lockmgr enable lock manager support [default=no]
1658 --enable-static-tools enable static tape tools [default=no]
1659 --enable-static-fd enable static File daemon [default=no]
1660 --enable-static-sd enable static Storage daemon [default=no]
1661 --enable-static-dir enable static Director [default=no]
1662 --enable-static-cons enable static Console [default=no]
1663 --enable-client-only build client (File daemon) only [default=no]
1664 --enable-build-dird enable building of dird (Director) [default=yes]
1665 --enable-build-stored enable building of stored (Storage daemon)
1667 --disable-conio disable conio support [default=no]
1668 --enable-ipv6 enable ipv6 support [default=yes]
1669 --disable-readline disable readline support [default=yes]
1670 --enable-batch-insert enable the DB batch insert code [default=yes]
1671 --disable-largefile omit support for large files
1672 --disable-afs disable afs support [default=auto]
1673 --disable-lzo disable lzo support [default=yes]
1674 --disable-acl disable acl support [default=auto]
1675 --disable-xattr disable xattr support [default=auto]
1678 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1679 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1680 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1682 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1683 --with-sysroot=DIR Search for dependent libraries within DIR
1684 (or the compiler's sysroot if not specified).
1685 --with-gnu-ld assume the C compiler uses GNU ld default=no
1686 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1687 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1688 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1689 --without-libintl-prefix don't search for libintl in includedir and libdir
1690 --with-included-gettext use the GNU gettext library included here
1691 --with-readline[=DIR] specify readline library directory
1692 --with-tcp-wrappers[=DIR]
1693 enable tcpwrappers support
1694 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1695 --with-working-dir=PATH specify path of Bacula working directory
1696 --with-archivedir=PATH specify path of SD archive directory
1697 --with-basename=RESNAME specify base resource name for daemons
1698 --with-hostname=RESNAME specify host name for daemons
1699 --with-scriptdir=PATH specify path of Bacula scripts directory
1700 --with-bsrdir=PATH specify path of Bacula bsrs directory
1701 --with-logdir=PATH specify path of Bacula logs directory
1702 --with-plugindir=PATH specify path of Bacula plugins directory
1703 --with-dump-email=EMAIL dump email address
1704 --with-job-email=EMAIL job output email address
1705 --with-smtp-host=HOST SMTP mail host address
1706 --with-pid-dir=PATH specify location of Bacula pid files
1707 --with-subsys-dir=PATH specify location of Bacula subsys file
1708 --with-baseport=PORT specify base port address for daemons
1709 --with-dir-password=PASSWORD
1710 specify Director's password
1711 --with-fd-password=PASSWORD
1712 specify Client's password
1713 --with-sd-password=PASSWORD
1714 specify Storage daemon's password
1715 --with-mon-dir-password=PASSWORD
1716 specify Director's password used by the monitor
1717 --with-mon-fd-password=PASSWORD
1718 specify Client's password used by the monitor
1719 --with-mon-sd-password=PASSWORD
1720 specify Storage daemon's password used by the
1722 --with-db-name=DBNAME specify database name [default=bacula]
1723 --with-db-user=UNAME specify database user [default=bacula]
1724 --with-db-password=PWD specify database password [default=*none*]
1725 --with-db-port=DBPORT specify a database port [default=null]
1726 --with-db-ssl-options=DBSSLOPTIONS
1727 specify SSL options for database user connection
1729 --with-dir-user=USER specify user for Director daemon
1730 --with-dir-group=GROUP specify group for Director daemon
1731 --with-sd-user=USER specify user for Storage daemon
1732 --with-sd-group=GROUP specify group for Storage daemon
1733 --with-fd-user=USER specify user for File daemon
1734 --with-fd-group=GROUP specify group for File daemon
1735 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1736 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1737 base install directory, [default=/usr/local/pgsql]
1738 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1739 directory, default is to search through a number of
1740 common places for the MySQL files.
1741 --with-embedded-mysql[=DIR]
1742 Include MySQL support. DIR is the MySQL base install
1743 directory, default is to search through a number of
1744 common places for the MySQL files.
1745 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1746 install directory, default is to search through a
1747 number of common places for the SQLite3 files.
1748 --with-x use the X Window System
1749 --with-afsdir[=DIR] Directory holding AFS includes/libs
1750 --with-lzo[=DIR] specify lzo library directory
1751 --with-systemd[=UNITDIR]
1752 Include systemd support. UNITDIR is where systemd
1753 system .service files are located, default is to ask
1756 Some influential environment variables:
1757 CC C compiler command
1758 CFLAGS C compiler flags
1759 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1760 nonstandard directory <lib dir>
1761 LIBS libraries to pass to the linker, e.g. -l<library>
1762 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1763 you have headers in a nonstandard directory <include dir>
1764 CXX C++ compiler command
1765 CXXFLAGS C++ compiler flags
1767 CXXCPP C++ preprocessor
1768 XMKMF Path to xmkmf, Makefile generator for X Window System
1770 Use these variables to override the choices made by `configure' or to help
1771 it to find libraries and programs with nonstandard names/locations.
1773 Report bugs to the package provider.
1778 if test "$ac_init_help" = "recursive"; then
1779 # If there are subdirs, report their specific --help.
1780 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1781 test -d "$ac_dir" ||
1782 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1790 # A ".." for each directory in $ac_dir_suffix.
1791 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1792 case $ac_top_builddir_sub in
1793 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1797 ac_abs_top_builddir=$ac_pwd
1798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799 # for backward compatibility:
1800 ac_top_builddir=$ac_top_build_prefix
1803 .) # We are building in place.
1805 ac_top_srcdir=$ac_top_builddir_sub
1806 ac_abs_top_srcdir=$ac_pwd ;;
1807 [\\/]* | ?:[\\/]* ) # Absolute name.
1808 ac_srcdir=$srcdir$ac_dir_suffix;
1809 ac_top_srcdir=$srcdir
1810 ac_abs_top_srcdir=$srcdir ;;
1812 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813 ac_top_srcdir=$ac_top_build_prefix$srcdir
1814 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1818 cd "$ac_dir" || { ac_status=$?; continue; }
1819 # Check for guested configure.
1820 if test -f "$ac_srcdir/configure.gnu"; then
1822 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823 elif test -f "$ac_srcdir/configure"; then
1825 $SHELL "$ac_srcdir/configure" --help=recursive
1827 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1829 cd "$ac_pwd" || { ac_status=$?; break; }
1833 test -n "$ac_init_help" && exit $ac_status
1834 if $ac_init_version; then
1836 bacula configure 7.4.4
1837 generated by GNU Autoconf 2.69
1839 Copyright (C) 2012 Free Software Foundation, Inc.
1840 This configure script is free software; the Free Software Foundation
1841 gives unlimited permission to copy, distribute and modify it.
1846 ## ------------------------ ##
1847 ## Autoconf initialization. ##
1848 ## ------------------------ ##
1850 # ac_fn_c_try_compile LINENO
1851 # --------------------------
1852 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_compile ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext
1857 if { { ac_try="$ac_compile"
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_compile") 2>conftest.err
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_c_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest.$ac_objext; then :
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 as_fn_set_status $ac_retval
1886 } # ac_fn_c_try_compile
1888 # ac_fn_cxx_try_compile LINENO
1889 # ----------------------------
1890 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_cxx_try_compile ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 rm -f conftest.$ac_objext
1895 if { { ac_try="$ac_compile"
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_compile") 2>conftest.err
1904 if test -s conftest.err; then
1905 grep -v '^ *+' conftest.err >conftest.er1
1906 cat conftest.er1 >&5
1907 mv -f conftest.er1 conftest.err
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; } && {
1911 test -z "$ac_cxx_werror_flag" ||
1912 test ! -s conftest.err
1913 } && test -s conftest.$ac_objext; then :
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1924 } # ac_fn_cxx_try_compile
1926 # ac_fn_c_try_cpp LINENO
1927 # ----------------------
1928 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if { { ac_try="$ac_cpp conftest.$ac_ext"
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } > conftest.i && {
1948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1949 test ! -s conftest.err
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1963 # ac_fn_c_try_link LINENO
1964 # -----------------------
1965 # Try to link conftest.$ac_ext, and return whether this succeeded.
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 rm -f conftest.$ac_objext conftest$ac_exeext
1970 if { { ac_try="$ac_link"
1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977 (eval "$ac_link") 2>conftest.err
1979 if test -s conftest.err; then
1980 grep -v '^ *+' conftest.err >conftest.er1
1981 cat conftest.er1 >&5
1982 mv -f conftest.er1 conftest.err
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; } && {
1986 test -z "$ac_c_werror_flag" ||
1987 test ! -s conftest.err
1988 } && test -s conftest$ac_exeext && {
1989 test "$cross_compiling" = yes ||
1990 test -x conftest$ac_exeext
1994 $as_echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1999 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2000 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2001 # interfere with the next link command; also delete a directory that is
2002 # left behind by Apple's compiler. We do this before executing the actions.
2003 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 as_fn_set_status $ac_retval
2007 } # ac_fn_c_try_link
2009 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2010 # -------------------------------------------------------
2011 # Tests whether HEADER exists and can be compiled using the include files in
2012 # INCLUDES, setting the cache variable VAR accordingly.
2013 ac_fn_c_check_header_compile ()
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2026 if ac_fn_c_try_compile "$LINENO"; then :
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038 } # ac_fn_c_check_header_compile
2040 # ac_fn_c_try_run LINENO
2041 # ----------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2043 # that executables *can* be run.
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if { { ac_try="$ac_link"
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_link") 2>&5
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2058 { { case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_try") 2>&5
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; }; }; then :
2070 $as_echo "$as_me: program exited with status $ac_status" >&5
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 ac_retval=$ac_status
2076 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 as_fn_set_status $ac_retval
2082 # ac_fn_c_check_func LINENO FUNC VAR
2083 # ----------------------------------
2084 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2085 ac_fn_c_check_func ()
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if eval \${$3+:} false; then :
2091 $as_echo_n "(cached) " >&6
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2095 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2097 #define $2 innocuous_$2
2099 /* System header to define __stub macros and hopefully few prototypes,
2100 which can conflict with char $2 (); below.
2101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2102 <limits.h> exists even on freestanding compilers. */
2105 # include <limits.h>
2107 # include <assert.h>
2112 /* Override any GCC internal prototype to avoid an error.
2113 Use char because int might match the return type of a GCC
2114 builtin and then its argument prototype would still apply. */
2119 /* The GNU C library defines this for functions which it implements
2120 to always fail with ENOSYS. Some functions are actually named
2121 something starting with __ and the normal name is an alias. */
2122 #if defined __stub_$2 || defined __stub___$2
2134 if ac_fn_c_try_link "$LINENO"; then :
2139 rm -f core conftest.err conftest.$ac_objext \
2140 conftest$ac_exeext conftest.$ac_ext
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 $as_echo "$ac_res" >&6; }
2145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147 } # ac_fn_c_check_func
2149 # ac_fn_cxx_try_cpp LINENO
2150 # ------------------------
2151 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2152 ac_fn_cxx_try_cpp ()
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 if { { ac_try="$ac_cpp conftest.$ac_ext"
2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158 *) ac_try_echo=$ac_try;;
2160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2161 $as_echo "$ac_try_echo"; } >&5
2162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2164 if test -s conftest.err; then
2165 grep -v '^ *+' conftest.err >conftest.er1
2166 cat conftest.er1 >&5
2167 mv -f conftest.er1 conftest.err
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } > conftest.i && {
2171 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2172 test ! -s conftest.err
2176 $as_echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 as_fn_set_status $ac_retval
2184 } # ac_fn_cxx_try_cpp
2186 # ac_fn_cxx_try_link LINENO
2187 # -------------------------
2188 # Try to link conftest.$ac_ext, and return whether this succeeded.
2189 ac_fn_cxx_try_link ()
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 rm -f conftest.$ac_objext conftest$ac_exeext
2193 if { { ac_try="$ac_link"
2195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196 *) ac_try_echo=$ac_try;;
2198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199 $as_echo "$ac_try_echo"; } >&5
2200 (eval "$ac_link") 2>conftest.err
2202 if test -s conftest.err; then
2203 grep -v '^ *+' conftest.err >conftest.er1
2204 cat conftest.er1 >&5
2205 mv -f conftest.er1 conftest.err
2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208 test $ac_status = 0; } && {
2209 test -z "$ac_cxx_werror_flag" ||
2210 test ! -s conftest.err
2211 } && test -s conftest$ac_exeext && {
2212 test "$cross_compiling" = yes ||
2213 test -x conftest$ac_exeext
2217 $as_echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2222 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2223 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2224 # interfere with the next link command; also delete a directory that is
2225 # left behind by Apple's compiler. We do this before executing the actions.
2226 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228 as_fn_set_status $ac_retval
2230 } # ac_fn_cxx_try_link
2232 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2233 # ---------------------------------------------
2234 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2236 ac_fn_c_check_decl ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 as_decl_name=`echo $2|sed 's/ *(.*//'`
2240 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2242 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2243 if eval \${$3+:} false; then :
2244 $as_echo_n "(cached) " >&6
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2252 #ifndef $as_decl_name
2254 (void) $as_decl_use;
2256 (void) $as_decl_name;
2264 if ac_fn_c_try_compile "$LINENO"; then :
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276 } # ac_fn_c_check_decl
2278 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2279 # -------------------------------------------
2280 # Tests whether TYPE exists after having included INCLUDES, setting cache
2281 # variable VAR accordingly.
2282 ac_fn_c_check_type ()
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2286 $as_echo_n "checking for $2... " >&6; }
2287 if eval \${$3+:} false; then :
2288 $as_echo_n "(cached) " >&6
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2316 if ac_fn_c_try_compile "$LINENO"; then :
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327 $as_echo "$ac_res" >&6; }
2328 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2330 } # ac_fn_c_check_type
2332 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2333 # -------------------------------------------------------
2334 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2335 # the include files in INCLUDES and setting the cache variable VAR
2337 ac_fn_c_check_header_mongrel ()
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 if eval \${$3+:} false; then :
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if eval \${$3+:} false; then :
2344 $as_echo_n "(cached) " >&6
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2348 $as_echo "$ac_res" >&6; }
2350 # Is the header compilable?
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2352 $as_echo_n "checking $2 usability... " >&6; }
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2358 if ac_fn_c_try_compile "$LINENO"; then :
2359 ac_header_compiler=yes
2361 ac_header_compiler=no
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2365 $as_echo "$ac_header_compiler" >&6; }
2367 # Is the header present?
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2369 $as_echo_n "checking $2 presence... " >&6; }
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2374 if ac_fn_c_try_cpp "$LINENO"; then :
2375 ac_header_preproc=yes
2377 ac_header_preproc=no
2379 rm -f conftest.err conftest.i conftest.$ac_ext
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2381 $as_echo "$ac_header_preproc" >&6; }
2383 # So? What about this header?
2384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2387 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2389 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2393 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2395 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2397 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2399 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2401 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2405 $as_echo_n "checking for $2... " >&6; }
2406 if eval \${$3+:} false; then :
2407 $as_echo_n "(cached) " >&6
2409 eval "$3=\$ac_header_compiler"
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2413 $as_echo "$ac_res" >&6; }
2415 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417 } # ac_fn_c_check_header_mongrel
2419 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2420 # --------------------------------------------
2421 # Tries to find the compile-time value of EXPR in a program that includes
2422 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2424 ac_fn_c_compute_int ()
2426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427 if test "$cross_compiling" = yes; then
2428 # Depending upon the size, compute the lo and hi bounds.
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2435 static int test_array [1 - 2 * !(($2) >= 0)];
2437 return test_array [0];
2443 if ac_fn_c_try_compile "$LINENO"; then :
2446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h. */
2452 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2454 return test_array [0];
2460 if ac_fn_c_try_compile "$LINENO"; then :
2461 ac_hi=$ac_mid; break
2463 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2464 if test $ac_lo -le $ac_mid; then
2468 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h. */
2479 static int test_array [1 - 2 * !(($2) < 0)];
2481 return test_array [0];
2487 if ac_fn_c_try_compile "$LINENO"; then :
2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h. */
2496 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2498 return test_array [0];
2504 if ac_fn_c_try_compile "$LINENO"; then :
2505 ac_lo=$ac_mid; break
2507 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2508 if test $ac_mid -le $ac_hi; then
2512 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522 # Binary search between lo and hi bounds.
2523 while test "x$ac_lo" != "x$ac_hi"; do
2524 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2531 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2533 return test_array [0];
2539 if ac_fn_c_try_compile "$LINENO"; then :
2542 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2547 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2554 static long int longval () { return $2; }
2555 static unsigned long int ulongval () { return $2; }
2562 FILE *f = fopen ("conftest.val", "w");
2567 long int i = longval ();
2570 fprintf (f, "%ld", i);
2574 unsigned long int i = ulongval ();
2577 fprintf (f, "%lu", i);
2579 /* Do not output a trailing newline, as this causes \r\n confusion
2580 on some platforms. */
2581 return ferror (f) || fclose (f) != 0;
2587 if ac_fn_c_try_run "$LINENO"; then :
2588 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2593 conftest.$ac_objext conftest.beam conftest.$ac_ext
2597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2598 as_fn_set_status $ac_retval
2600 } # ac_fn_c_compute_int
2602 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2603 # ----------------------------------------------------
2604 # Tries to find if the field MEMBER exists in type AGGR, after including
2605 # INCLUDES, setting cache variable VAR accordingly.
2606 ac_fn_c_check_member ()
2608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2610 $as_echo_n "checking for $2.$3... " >&6; }
2611 if eval \${$4+:} false; then :
2612 $as_echo_n "(cached) " >&6
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h. */
2627 if ac_fn_c_try_compile "$LINENO"; then :
2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h. */
2637 if (sizeof ac_aggr.$3)
2643 if ac_fn_c_try_compile "$LINENO"; then :
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2654 $as_echo "$ac_res" >&6; }
2655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2657 } # ac_fn_c_check_member
2659 # ac_fn_cxx_try_run LINENO
2660 # ------------------------
2661 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2662 # that executables *can* be run.
2663 ac_fn_cxx_try_run ()
2665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666 if { { ac_try="$ac_link"
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2672 $as_echo "$ac_try_echo"; } >&5
2673 (eval "$ac_link") 2>&5
2675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2676 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2677 { { case "(($ac_try" in
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2682 $as_echo "$ac_try_echo"; } >&5
2683 (eval "$ac_try") 2>&5
2685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2686 test $ac_status = 0; }; }; then :
2689 $as_echo "$as_me: program exited with status $ac_status" >&5
2690 $as_echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2693 ac_retval=$ac_status
2695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2697 as_fn_set_status $ac_retval
2699 } # ac_fn_cxx_try_run
2701 # ac_fn_cxx_check_func LINENO FUNC VAR
2702 # ------------------------------------
2703 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2704 ac_fn_cxx_check_func ()
2706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2708 $as_echo_n "checking for $2... " >&6; }
2709 if eval \${$3+:} false; then :
2710 $as_echo_n "(cached) " >&6
2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h. */
2714 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2716 #define $2 innocuous_$2
2718 /* System header to define __stub macros and hopefully few prototypes,
2719 which can conflict with char $2 (); below.
2720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2721 <limits.h> exists even on freestanding compilers. */
2724 # include <limits.h>
2726 # include <assert.h>
2731 /* Override any GCC internal prototype to avoid an error.
2732 Use char because int might match the return type of a GCC
2733 builtin and then its argument prototype would still apply. */
2738 /* The GNU C library defines this for functions which it implements
2739 to always fail with ENOSYS. Some functions are actually named
2740 something starting with __ and the normal name is an alias. */
2741 #if defined __stub_$2 || defined __stub___$2
2753 if ac_fn_cxx_try_link "$LINENO"; then :
2758 rm -f core conftest.err conftest.$ac_objext \
2759 conftest$ac_exeext conftest.$ac_ext
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2763 $as_echo "$ac_res" >&6; }
2764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2766 } # ac_fn_cxx_check_func
2767 cat >config.log <<_ACEOF
2768 This file contains any messages produced by compilers while
2769 running configure, to aid debugging if configure makes a mistake.
2771 It was created by bacula $as_me 7.4.4, which was
2772 generated by GNU Autoconf 2.69. Invocation command line was
2784 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2785 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2786 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2787 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2788 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2790 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2791 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2793 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2794 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2795 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2796 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2797 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2798 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2799 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir=.
2808 $as_echo "PATH: $as_dir"
2824 # Keep a trace of the command line.
2825 # Strip out --no-create and --no-recursion so they do not pile up.
2826 # Strip out --silent because we don't want to record it for future runs.
2827 # Also quote any args containing shell meta-characters.
2828 # Make two passes to allow for proper duplicate-argument suppression.
2832 ac_must_keep_next=false
2838 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2839 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2840 | -silent | --silent | --silen | --sile | --sil)
2843 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2846 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2848 as_fn_append ac_configure_args1 " '$ac_arg'"
2849 if test $ac_must_keep_next = true; then
2850 ac_must_keep_next=false # Got value, back to normal.
2853 *=* | --config-cache | -C | -disable-* | --disable-* \
2854 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2855 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2856 | -with-* | --with-* | -without-* | --without-* | --x)
2857 case "$ac_configure_args0 " in
2858 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2861 -* ) ac_must_keep_next=true ;;
2864 as_fn_append ac_configure_args " '$ac_arg'"
2869 { ac_configure_args0=; unset ac_configure_args0;}
2870 { ac_configure_args1=; unset ac_configure_args1;}
2872 # When interrupted or exit'd, cleanup temporary files, and complete
2873 # config.log. We remove comments because anyway the quotes in there
2874 # would cause problems or look ugly.
2875 # WARNING: Use '\'' to represent an apostrophe within the trap.
2876 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2877 trap 'exit_status=$?
2878 # Save into config.log some information that might help in debugging.
2882 $as_echo "## ---------------- ##
2883 ## Cache variables. ##
2884 ## ---------------- ##"
2886 # The following way of writing the cache mishandles newlines in values,
2888 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2889 eval ac_val=\$$ac_var
2893 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2894 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2897 _ | IFS | as_nl) ;; #(
2898 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2899 *) { eval $ac_var=; unset $ac_var;} ;;
2904 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2905 *${as_nl}ac_space=\ *)
2907 "s/'\''/'\''\\\\'\'''\''/g;
2908 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2911 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2918 $as_echo "## ----------------- ##
2919 ## Output variables. ##
2920 ## ----------------- ##"
2922 for ac_var in $ac_subst_vars
2924 eval ac_val=\$$ac_var
2926 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2928 $as_echo "$ac_var='\''$ac_val'\''"
2932 if test -n "$ac_subst_files"; then
2933 $as_echo "## ------------------- ##
2934 ## File substitutions. ##
2935 ## ------------------- ##"
2937 for ac_var in $ac_subst_files
2939 eval ac_val=\$$ac_var
2941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2943 $as_echo "$ac_var='\''$ac_val'\''"
2948 if test -s confdefs.h; then
2949 $as_echo "## ----------- ##
2956 test "$ac_signal" != 0 &&
2957 $as_echo "$as_me: caught signal $ac_signal"
2958 $as_echo "$as_me: exit $exit_status"
2960 rm -f core *.core core.conftest.* &&
2961 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2964 for ac_signal in 1 2 13 15; do
2965 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2969 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2970 rm -f -r conftest* confdefs.h
2972 $as_echo "/* confdefs.h */" > confdefs.h
2974 # Predefined preprocessor variables.
2976 cat >>confdefs.h <<_ACEOF
2977 #define PACKAGE_NAME "$PACKAGE_NAME"
2980 cat >>confdefs.h <<_ACEOF
2981 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2984 cat >>confdefs.h <<_ACEOF
2985 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2988 cat >>confdefs.h <<_ACEOF
2989 #define PACKAGE_STRING "$PACKAGE_STRING"
2992 cat >>confdefs.h <<_ACEOF
2993 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2996 cat >>confdefs.h <<_ACEOF
2997 #define PACKAGE_URL "$PACKAGE_URL"
3001 # Let the site file select an alternate cache file if it wants to.
3002 # Prefer an explicitly selected file to automatically selected ones.
3005 if test -n "$CONFIG_SITE"; then
3006 # We do not want a PATH search for config.site.
3007 case $CONFIG_SITE in #((
3008 -*) ac_site_file1=./$CONFIG_SITE;;
3009 */*) ac_site_file1=$CONFIG_SITE;;
3010 *) ac_site_file1=./$CONFIG_SITE;;
3012 elif test "x$prefix" != xNONE; then
3013 ac_site_file1=$prefix/share/config.site
3014 ac_site_file2=$prefix/etc/config.site
3016 ac_site_file1=$ac_default_prefix/share/config.site
3017 ac_site_file2=$ac_default_prefix/etc/config.site
3019 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3021 test "x$ac_site_file" = xNONE && continue
3022 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3024 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3025 sed 's/^/| /' "$ac_site_file" >&5
3027 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029 as_fn_error $? "failed to load site script $ac_site_file
3030 See \`config.log' for more details" "$LINENO" 5; }
3034 if test -r "$cache_file"; then
3035 # Some versions of bash will fail to source /dev/null (special files
3036 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3037 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3039 $as_echo "$as_me: loading cache $cache_file" >&6;}
3041 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3042 *) . "./$cache_file";;
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3047 $as_echo "$as_me: creating cache $cache_file" >&6;}
3051 as_fn_append ac_header_list " stdlib.h"
3052 as_fn_append ac_header_list " unistd.h"
3053 as_fn_append ac_header_list " sys/param.h"
3054 # Check that the precious variables saved in the cache have kept the same
3056 ac_cache_corrupted=false
3057 for ac_var in $ac_precious_vars; do
3058 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3059 eval ac_new_set=\$ac_env_${ac_var}_set
3060 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3061 eval ac_new_val=\$ac_env_${ac_var}_value
3062 case $ac_old_set,$ac_new_set in
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3065 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3066 ac_cache_corrupted=: ;;
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3069 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3070 ac_cache_corrupted=: ;;
3073 if test "x$ac_old_val" != "x$ac_new_val"; then
3074 # differences in whitespace do not lead to failure.
3075 ac_old_val_w=`echo x $ac_old_val`
3076 ac_new_val_w=`echo x $ac_new_val`
3077 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3079 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3080 ac_cache_corrupted=:
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3083 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3084 eval $ac_var=\$ac_old_val
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3087 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3089 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3092 # Pass precious variables to config.status.
3093 if test "$ac_new_set" = set; then
3095 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3096 *) ac_arg=$ac_var=$ac_new_val ;;
3098 case " $ac_configure_args " in
3099 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3100 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3104 if $ac_cache_corrupted; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3108 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3109 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3111 ## -------------------- ##
3112 ## Main body of script. ##
3113 ## -------------------- ##
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3132 if test -f "$ac_dir/install-sh"; then
3134 ac_install_sh="$ac_aux_dir/install-sh -c"
3136 elif test -f "$ac_dir/install.sh"; then
3138 ac_install_sh="$ac_aux_dir/install.sh -c"
3140 elif test -f "$ac_dir/shtool"; then
3142 ac_install_sh="$ac_aux_dir/shtool install -c"
3146 if test -z "$ac_aux_dir"; then
3147 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3150 # These three variables are undocumented and unsupported,
3151 # and are intended to be withdrawn in a future Autoconf release.
3152 # They can cause serious problems if a builder's source tree is in a directory
3153 # whose full name contains unusual characters.
3154 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3155 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3156 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3159 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3164 # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_path_TRUEPRG+:} false; then :
3169 $as_echo_n "(cached) " >&6
3173 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 TRUEPRG=$ac_cv_path_TRUEPRG
3195 if test -n "$TRUEPRG"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3197 $as_echo "$TRUEPRG" >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3204 test -n "$TRUEPRG" && break
3206 test -n "$TRUEPRG" || TRUEPRG=":"
3208 for ac_prog in false
3210 # Extract the first word of "$ac_prog", so it can be a program name with args.
3211 set dummy $ac_prog; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_path_FALSEPRG+:} false; then :
3215 $as_echo_n "(cached) " >&6
3219 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 FALSEPRG=$ac_cv_path_FALSEPRG
3241 if test -n "$FALSEPRG"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3243 $as_echo "$FALSEPRG" >&6; }
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3250 test -n "$FALSEPRG" && break
3252 test -n "$FALSEPRG" || FALSEPRG=":"
3257 if test "x$BACULA" != x; then
3258 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3260 BACULA=${BACULA:-Bacula}
3261 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3262 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3263 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3264 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3265 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3266 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3267 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3268 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3270 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3271 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3272 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3274 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3275 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3278 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3279 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3281 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3282 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3285 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3287 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3291 PFILES="platforms/Makefile"
3293 echo "configuring for ${BACULA} $VERSION ($DATE)"
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302 if test -n "$ac_tool_prefix"; then
3303 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3304 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_CC+:} false; then :
3308 $as_echo_n "(cached) " >&6
3310 if test -n "$CC"; then
3311 ac_cv_prog_CC="$CC" # Let the user override the test.
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 if test -n "$CC"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333 $as_echo "$CC" >&6; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3341 if test -z "$ac_cv_prog_CC"; then
3343 # Extract the first word of "gcc", so it can be a program name with args.
3344 set dummy gcc; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3348 $as_echo_n "(cached) " >&6
3350 if test -n "$ac_ct_CC"; then
3351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360 ac_cv_prog_ac_ct_CC="gcc"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3371 if test -n "$ac_ct_CC"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3373 $as_echo "$ac_ct_CC" >&6; }
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3379 if test "x$ac_ct_CC" = x; then
3382 case $cross_compiling:$ac_tool_warned in
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386 ac_tool_warned=yes ;;
3394 if test -z "$CC"; then
3395 if test -n "$ac_tool_prefix"; then
3396 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3397 set dummy ${ac_tool_prefix}cc; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_CC+:} false; then :
3401 $as_echo_n "(cached) " >&6
3403 if test -n "$CC"; then
3404 ac_cv_prog_CC="$CC" # Let the user override the test.
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 ac_cv_prog_CC="${ac_tool_prefix}cc"
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 if test -n "$CC"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426 $as_echo "$CC" >&6; }
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3435 if test -z "$CC"; then
3436 # Extract the first word of "cc", so it can be a program name with args.
3437 set dummy cc; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if ${ac_cv_prog_CC+:} false; then :
3441 $as_echo_n "(cached) " >&6
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455 ac_prog_rejected=yes
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 if test $ac_prog_rejected = yes; then
3467 # We found a bogon in the path, so make sure we never use it.
3468 set dummy $ac_cv_prog_CC
3470 if test $# != 0; then
3471 # We chose a different compiler from the bogus one.
3472 # However, it has the same basename, so the bogon will be chosen
3473 # first if we set CC to just the basename; use the full file name.
3475 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3481 if test -n "$CC"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483 $as_echo "$CC" >&6; }
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3491 if test -z "$CC"; then
3492 if test -n "$ac_tool_prefix"; then
3493 for ac_prog in cl.exe
3495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_CC+:} false; then :
3500 $as_echo_n "(cached) " >&6
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3532 test -n "$CC" && break
3535 if test -z "$CC"; then
3537 for ac_prog in cl.exe
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3544 $as_echo_n "(cached) " >&6
3546 if test -n "$ac_ct_CC"; then
3547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_ac_ct_CC="$ac_prog"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3567 if test -n "$ac_ct_CC"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3569 $as_echo "$ac_ct_CC" >&6; }
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3576 test -n "$ac_ct_CC" && break
3579 if test "x$ac_ct_CC" = x; then
3582 case $cross_compiling:$ac_tool_warned in
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned=yes ;;
3595 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error $? "no acceptable C compiler found in \$PATH
3598 See \`config.log' for more details" "$LINENO" 5; }
3600 # Provide some information about the compiler.
3601 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3604 for ac_option in --version -v -V -qversion; do
3605 { { ac_try="$ac_compiler $ac_option >&5"
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611 $as_echo "$ac_try_echo"; } >&5
3612 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3614 if test -s conftest.err; then
3616 ... rest of stderr output deleted ...
3617 10q' conftest.err >conftest.er1
3618 cat conftest.er1 >&5
3620 rm -f conftest.er1 conftest.err
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3636 ac_clean_files_save=$ac_clean_files
3637 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3638 # Try to create an executable without -o first, disregard a.out.
3639 # It will help us diagnose broken compilers, and finding out an intuition
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3642 $as_echo_n "checking whether the C compiler works... " >&6; }
3643 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3645 # The possible output files:
3646 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3649 for ac_file in $ac_files
3652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3653 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3658 if { { ac_try="$ac_link_default"
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_link_default") 2>&5
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }; then :
3669 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3670 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3671 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3672 # so that the user can short-circuit this test for compilers unknown to
3674 for ac_file in $ac_files ''
3676 test -f "$ac_file" || continue
3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3681 # We found the default executable, but exeext='' is most
3685 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3687 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3689 # We set ac_cv_exeext here because the later test for it is not
3690 # safe: cross compilers may not add the suffix if given an `-o'
3691 # argument, so we may need to know it at that point already.
3692 # Even if this section looks crufty: it has the advantage of
3699 test "$ac_cv_exeext" = no && ac_cv_exeext=
3704 if test -z "$ac_file"; then :
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706 $as_echo "no" >&6; }
3707 $as_echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error 77 "C compiler cannot create executables
3713 See \`config.log' for more details" "$LINENO" 5; }
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3716 $as_echo "yes" >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3719 $as_echo_n "checking for C compiler default output file name... " >&6; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3721 $as_echo "$ac_file" >&6; }
3722 ac_exeext=$ac_cv_exeext
3724 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3725 ac_clean_files=$ac_clean_files_save
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3727 $as_echo_n "checking for suffix of executables... " >&6; }
3728 if { { ac_try="$ac_link"
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 $as_echo "$ac_try_echo"; } >&5
3735 (eval "$ac_link") 2>&5
3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }; then :
3739 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3740 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3741 # work properly (i.e., refer to `conftest.exe'), while it won't with
3743 for ac_file in conftest.exe conftest conftest.*; do
3744 test -f "$ac_file" || continue
3746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3747 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3756 See \`config.log' for more details" "$LINENO" 5; }
3758 rm -f conftest conftest$ac_cv_exeext
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3760 $as_echo "$ac_cv_exeext" >&6; }
3762 rm -f conftest.$ac_ext
3763 EXEEXT=$ac_cv_exeext
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3771 FILE *f = fopen ("conftest.out", "w");
3772 return ferror (f) || fclose (f) != 0;
3778 ac_clean_files="$ac_clean_files conftest.out"
3779 # Check that the compiler produces executables we can run. If not, either
3780 # the compiler is broken, or we cross compile.
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3782 $as_echo_n "checking whether we are cross compiling... " >&6; }
3783 if test "$cross_compiling" != yes; then
3784 { { ac_try="$ac_link"
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790 $as_echo "$ac_try_echo"; } >&5
3791 (eval "$ac_link") 2>&5
3793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794 test $ac_status = 0; }
3795 if { ac_try='./conftest$ac_cv_exeext'
3796 { { case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_try") 2>&5
3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805 test $ac_status = 0; }; }; then
3808 if test "$cross_compiling" = maybe; then
3811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813 as_fn_error $? "cannot run C compiled programs.
3814 If you meant to cross compile, use \`--host'.
3815 See \`config.log' for more details" "$LINENO" 5; }
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3820 $as_echo "$cross_compiling" >&6; }
3822 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3823 ac_clean_files=$ac_clean_files_save
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3825 $as_echo_n "checking for suffix of object files... " >&6; }
3826 if ${ac_cv_objext+:} false; then :
3827 $as_echo_n "(cached) " >&6
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3840 rm -f conftest.o conftest.obj
3841 if { { ac_try="$ac_compile"
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848 (eval "$ac_compile") 2>&5
3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851 test $ac_status = 0; }; then :
3852 for ac_file in conftest.o conftest.obj conftest.*; do
3853 test -f "$ac_file" || continue;
3855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3856 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3861 $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866 as_fn_error $? "cannot compute suffix of object files: cannot compile
3867 See \`config.log' for more details" "$LINENO" 5; }
3869 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3872 $as_echo "$ac_cv_objext" >&6; }
3873 OBJEXT=$ac_cv_objext
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3876 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3877 if ${ac_cv_c_compiler_gnu+:} false; then :
3878 $as_echo_n "(cached) " >&6
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3894 if ac_fn_c_try_compile "$LINENO"; then :
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3904 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3905 if test $ac_compiler_gnu = yes; then
3910 ac_test_CFLAGS=${CFLAGS+set}
3911 ac_save_CFLAGS=$CFLAGS
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3913 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3914 if ${ac_cv_prog_cc_g+:} false; then :
3915 $as_echo_n "(cached) " >&6
3917 ac_save_c_werror_flag=$ac_c_werror_flag
3918 ac_c_werror_flag=yes
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3932 if ac_fn_c_try_compile "$LINENO"; then :
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3947 if ac_fn_c_try_compile "$LINENO"; then :
3950 ac_c_werror_flag=$ac_save_c_werror_flag
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3963 if ac_fn_c_try_compile "$LINENO"; then :
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 ac_c_werror_flag=$ac_save_c_werror_flag
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3974 $as_echo "$ac_cv_prog_cc_g" >&6; }
3975 if test "$ac_test_CFLAGS" = set; then
3976 CFLAGS=$ac_save_CFLAGS
3977 elif test $ac_cv_prog_cc_g = yes; then
3978 if test "$GCC" = yes; then
3984 if test "$GCC" = yes; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3991 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3992 if ${ac_cv_prog_cc_c89+:} false; then :
3993 $as_echo_n "(cached) " >&6
3995 ac_cv_prog_cc_c89=no
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4003 struct buf { int x; };
4004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4005 static char *e (p, i)
4011 static char *f (char * (*g) (char **, int), char **p, ...)
4016 s = g (p, va_arg (v,int));
4021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4022 function prototypes and stuff, but not '\xHH' hex character constants.
4023 These don't provoke an error unfortunately, instead are silently treated
4024 as 'x'. The following induces an error, until -std is added to get
4025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4026 array size at least. It's necessary to write '\x00'==0 to get something
4027 that's true only with -std. */
4028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4030 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4031 inside strings and character constants. */
4033 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4035 int test (int i, double x);
4036 struct s1 {int (*f) (int a);};
4037 struct s2 {int (*f) (double a);};
4038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4044 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4049 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4050 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4052 CC="$ac_save_CC $ac_arg"
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054 ac_cv_prog_cc_c89=$ac_arg
4056 rm -f core conftest.err conftest.$ac_objext
4057 test "x$ac_cv_prog_cc_c89" != "xno" && break
4059 rm -f conftest.$ac_ext
4064 case "x$ac_cv_prog_cc_c89" in
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4067 $as_echo "none needed" >&6; } ;;
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4070 $as_echo "unsupported" >&6; } ;;
4072 CC="$CC $ac_cv_prog_cc_c89"
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4074 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4076 if test "x$ac_cv_prog_cc_c89" != xno; then :
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086 ac_cpp='$CXXCPP $CPPFLAGS'
4087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4090 if test -z "$CXX"; then
4091 if test -n "$CCC"; then
4094 if test -n "$ac_tool_prefix"; then
4095 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if ${ac_cv_prog_CXX+:} false; then :
4102 $as_echo_n "(cached) " >&6
4104 if test -n "$CXX"; then
4105 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 if test -n "$CXX"; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4127 $as_echo "$CXX" >&6; }
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4134 test -n "$CXX" && break
4137 if test -z "$CXX"; then
4139 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4141 # Extract the first word of "$ac_prog", so it can be a program name with args.
4142 set dummy $ac_prog; ac_word=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4146 $as_echo_n "(cached) " >&6
4148 if test -n "$ac_ct_CXX"; then
4149 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_ac_ct_CXX="$ac_prog"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4169 if test -n "$ac_ct_CXX"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4171 $as_echo "$ac_ct_CXX" >&6; }
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4178 test -n "$ac_ct_CXX" && break
4181 if test "x$ac_ct_CXX" = x; then
4184 case $cross_compiling:$ac_tool_warned in
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4188 ac_tool_warned=yes ;;
4196 # Provide some information about the compiler.
4197 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4200 for ac_option in --version -v -V -qversion; do
4201 { { ac_try="$ac_compiler $ac_option >&5"
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4207 $as_echo "$ac_try_echo"; } >&5
4208 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4210 if test -s conftest.err; then
4212 ... rest of stderr output deleted ...
4213 10q' conftest.err >conftest.er1
4214 cat conftest.er1 >&5
4216 rm -f conftest.er1 conftest.err
4217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4218 test $ac_status = 0; }
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4222 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4223 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4224 $as_echo_n "(cached) " >&6
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4240 if ac_fn_cxx_try_compile "$LINENO"; then :
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4250 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4251 if test $ac_compiler_gnu = yes; then
4256 ac_test_CXXFLAGS=${CXXFLAGS+set}
4257 ac_save_CXXFLAGS=$CXXFLAGS
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4259 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4260 if ${ac_cv_prog_cxx_g+:} false; then :
4261 $as_echo_n "(cached) " >&6
4263 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4264 ac_cxx_werror_flag=yes
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4278 if ac_fn_cxx_try_compile "$LINENO"; then :
4279 ac_cv_prog_cxx_g=yes
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4293 if ac_fn_cxx_try_compile "$LINENO"; then :
4296 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4309 if ac_fn_cxx_try_compile "$LINENO"; then :
4310 ac_cv_prog_cxx_g=yes
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4320 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4321 if test "$ac_test_CXXFLAGS" = set; then
4322 CXXFLAGS=$ac_save_CXXFLAGS
4323 elif test $ac_cv_prog_cxx_g = yes; then
4324 if test "$GXX" = yes; then
4330 if test "$GXX" = yes; then
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342 if test "x$CC" != xcc; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4344 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4347 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4349 set dummy $CC; ac_cc=`$as_echo "$2" |
4350 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4351 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4352 $as_echo_n "(cached) " >&6
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4365 # Make sure it works both with $CC and with simple cc.
4366 # We do the test twice because some compilers refuse to overwrite an
4367 # existing .o file with -o, though they will create one.
4368 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4370 if { { case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375 $as_echo "$ac_try_echo"; } >&5
4376 (eval "$ac_try") 2>&5
4378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4379 test $ac_status = 0; } &&
4380 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385 $as_echo "$ac_try_echo"; } >&5
4386 (eval "$ac_try") 2>&5
4388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389 test $ac_status = 0; };
4391 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4392 if test "x$CC" != xcc; then
4393 # Test first that cc exists at all.
4394 if { ac_try='cc -c conftest.$ac_ext >&5'
4395 { { case "(($ac_try" in
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4400 $as_echo "$ac_try_echo"; } >&5
4401 (eval "$ac_try") 2>&5
4403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4404 test $ac_status = 0; }; }; then
4405 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4407 if { { case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4412 $as_echo "$ac_try_echo"; } >&5
4413 (eval "$ac_try") 2>&5
4415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416 test $ac_status = 0; } &&
4417 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4422 $as_echo "$ac_try_echo"; } >&5
4423 (eval "$ac_try") 2>&5
4425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4426 test $ac_status = 0; };
4431 # cc exists but doesn't like -o.
4432 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4437 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4439 rm -f core conftest*
4442 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4444 $as_echo "yes" >&6; }
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4449 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4454 ac_cpp='$CPP $CPPFLAGS'
4455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4459 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4460 # On Suns, sometimes $CPP names a directory.
4461 if test -n "$CPP" && test -d "$CPP"; then
4464 if test -z "$CPP"; then
4465 if ${ac_cv_prog_CPP+:} false; then :
4466 $as_echo_n "(cached) " >&6
4468 # Double quotes because CPP needs to be expanded
4469 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4472 for ac_c_preproc_warn_flag in '' yes
4474 # Use a header file that comes with gcc, so configuring glibc
4475 # with a fresh cross-compiler works.
4476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4477 # <limits.h> exists even on freestanding compilers.
4478 # On the NeXT, cc -E runs the code through the compiler's parser,
4479 # not just through cpp. "Syntax error" is here to catch this case.
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4483 # include <limits.h>
4485 # include <assert.h>
4489 if ac_fn_c_try_cpp "$LINENO"; then :
4492 # Broken: fails on valid input.
4495 rm -f conftest.err conftest.i conftest.$ac_ext
4497 # OK, works on sane cases. Now check whether nonexistent headers
4498 # can be detected and how.
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4501 #include <ac_nonexistent.h>
4503 if ac_fn_c_try_cpp "$LINENO"; then :
4504 # Broken: success on invalid input.
4507 # Passes both tests.
4511 rm -f conftest.err conftest.i conftest.$ac_ext
4514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4515 rm -f conftest.i conftest.err conftest.$ac_ext
4516 if $ac_preproc_ok; then :
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4529 $as_echo "$CPP" >&6; }
4531 for ac_c_preproc_warn_flag in '' yes
4533 # Use a header file that comes with gcc, so configuring glibc
4534 # with a fresh cross-compiler works.
4535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4536 # <limits.h> exists even on freestanding compilers.
4537 # On the NeXT, cc -E runs the code through the compiler's parser,
4538 # not just through cpp. "Syntax error" is here to catch this case.
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4542 # include <limits.h>
4544 # include <assert.h>
4548 if ac_fn_c_try_cpp "$LINENO"; then :
4551 # Broken: fails on valid input.
4554 rm -f conftest.err conftest.i conftest.$ac_ext
4556 # OK, works on sane cases. Now check whether nonexistent headers
4557 # can be detected and how.
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560 #include <ac_nonexistent.h>
4562 if ac_fn_c_try_cpp "$LINENO"; then :
4563 # Broken: success on invalid input.
4566 # Passes both tests.
4570 rm -f conftest.err conftest.i conftest.$ac_ext
4573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4574 rm -f conftest.i conftest.err conftest.$ac_ext
4575 if $ac_preproc_ok; then :
4578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4580 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4581 See \`config.log' for more details" "$LINENO" 5; }
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4592 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4593 if ${ac_cv_path_GREP+:} false; then :
4594 $as_echo_n "(cached) " >&6
4596 if test -z "$GREP"; then
4597 ac_path_GREP_found=false
4598 # Loop through the user's path and test for each of PROGNAME-LIST
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4603 test -z "$as_dir" && as_dir=.
4604 for ac_prog in grep ggrep; do
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4607 as_fn_executable_p "$ac_path_GREP" || continue
4608 # Check for GNU ac_path_GREP and select it if it is found.
4609 # Check for GNU $ac_path_GREP
4610 case `"$ac_path_GREP" --version 2>&1` in
4612 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4615 $as_echo_n 0123456789 >"conftest.in"
4618 cat "conftest.in" "conftest.in" >"conftest.tmp"
4619 mv "conftest.tmp" "conftest.in"
4620 cp "conftest.in" "conftest.nl"
4621 $as_echo 'GREP' >> "conftest.nl"
4622 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624 as_fn_arith $ac_count + 1 && ac_count=$as_val
4625 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4626 # Best one so far, save it but keep looking for a better one
4627 ac_cv_path_GREP="$ac_path_GREP"
4628 ac_path_GREP_max=$ac_count
4630 # 10*(2^10) chars as input seems more than enough
4631 test $ac_count -gt 10 && break
4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4636 $ac_path_GREP_found && break 3
4641 if test -z "$ac_cv_path_GREP"; then
4642 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4645 ac_cv_path_GREP=$GREP
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4650 $as_echo "$ac_cv_path_GREP" >&6; }
4651 GREP="$ac_cv_path_GREP"
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4655 $as_echo_n "checking for egrep... " >&6; }
4656 if ${ac_cv_path_EGREP+:} false; then :
4657 $as_echo_n "(cached) " >&6
4659 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4660 then ac_cv_path_EGREP="$GREP -E"
4662 if test -z "$EGREP"; then
4663 ac_path_EGREP_found=false
4664 # Loop through the user's path and test for each of PROGNAME-LIST
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4669 test -z "$as_dir" && as_dir=.
4670 for ac_prog in egrep; do
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4673 as_fn_executable_p "$ac_path_EGREP" || continue
4674 # Check for GNU ac_path_EGREP and select it if it is found.
4675 # Check for GNU $ac_path_EGREP
4676 case `"$ac_path_EGREP" --version 2>&1` in
4678 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4681 $as_echo_n 0123456789 >"conftest.in"
4684 cat "conftest.in" "conftest.in" >"conftest.tmp"
4685 mv "conftest.tmp" "conftest.in"
4686 cp "conftest.in" "conftest.nl"
4687 $as_echo 'EGREP' >> "conftest.nl"
4688 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4690 as_fn_arith $ac_count + 1 && ac_count=$as_val
4691 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4692 # Best one so far, save it but keep looking for a better one
4693 ac_cv_path_EGREP="$ac_path_EGREP"
4694 ac_path_EGREP_max=$ac_count
4696 # 10*(2^10) chars as input seems more than enough
4697 test $ac_count -gt 10 && break
4699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4702 $ac_path_EGREP_found && break 3
4707 if test -z "$ac_cv_path_EGREP"; then
4708 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4711 ac_cv_path_EGREP=$EGREP
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4717 $as_echo "$ac_cv_path_EGREP" >&6; }
4718 EGREP="$ac_cv_path_EGREP"
4721 if test $ac_cv_c_compiler_gnu = yes; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4723 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4724 if ${ac_cv_prog_gcc_traditional+:} false; then :
4725 $as_echo_n "(cached) " >&6
4727 ac_pattern="Autoconf.*'x'"
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4734 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4735 ac_cv_prog_gcc_traditional=yes
4737 ac_cv_prog_gcc_traditional=no
4742 if test $ac_cv_prog_gcc_traditional = no; then
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4749 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4750 ac_cv_prog_gcc_traditional=yes
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4757 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4758 if test $ac_cv_prog_gcc_traditional = yes; then
4759 CC="$CC -traditional"
4763 BASECC=`basename $CC`
4765 if test x"$GCC" = "xyes"; then
4766 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4770 # Extract the first word of "$CXX", so it can be a program name with args.
4771 set dummy $CXX; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if ${ac_cv_path_CXX+:} false; then :
4775 $as_echo_n "(cached) " >&6
4779 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4802 if test -n "$CXX"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4804 $as_echo "$CXX" >&6; }
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4811 if test ! -e $CXX; then
4812 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4815 # Find a good install program. We prefer a C program (faster),
4816 # so one script is as good as another. But avoid the broken or
4817 # incompatible versions:
4818 # SysV /etc/install, /usr/sbin/install
4819 # SunOS /usr/etc/install
4820 # IRIX /sbin/install
4822 # AmigaOS /C/install, which installs bootblocks on floppy discs
4823 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4824 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4825 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4826 # OS/2's system install, which has a completely different semantic
4827 # ./install, which can be erroneously created by make from ./install.sh.
4828 # Reject install programs that cannot install multiple files.
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4830 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4831 if test -z "$INSTALL"; then
4832 if ${ac_cv_path_install+:} false; then :
4833 $as_echo_n "(cached) " >&6
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 test -z "$as_dir" && as_dir=.
4840 # Account for people who put trailing slashes in PATH elements.
4841 case $as_dir/ in #((
4842 ./ | .// | /[cC]/* | \
4843 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4844 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4847 # OSF1 and SCO ODT 3.0 have their own names for install.
4848 # Don't use installbsd from OSF since it installs stuff as root
4850 for ac_prog in ginstall scoinst install; do
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4853 if test $ac_prog = install &&
4854 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4855 # AIX install. It has an incompatible calling convention.
4857 elif test $ac_prog = install &&
4858 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4859 # program-specific install script used by HP pwplus--don't use.
4862 rm -rf conftest.one conftest.two conftest.dir
4863 echo one > conftest.one
4864 echo two > conftest.two
4866 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4867 test -s conftest.one && test -s conftest.two &&
4868 test -s conftest.dir/conftest.one &&
4869 test -s conftest.dir/conftest.two
4871 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4884 rm -rf conftest.one conftest.two conftest.dir
4887 if test "${ac_cv_path_install+set}" = set; then
4888 INSTALL=$ac_cv_path_install
4890 # As a last resort, use the slow shell script. Don't cache a
4891 # value for INSTALL within a source directory, because that will
4892 # break other packages using the cache if that directory is
4893 # removed, or if the value is a relative name.
4894 INSTALL=$ac_install_sh
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4898 $as_echo "$INSTALL" >&6; }
4900 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4901 # It thinks the first close brace ends the variable substitution.
4902 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4904 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4906 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4908 # Extract the first word of "mv", so it can be a program name with args.
4909 set dummy mv; ac_word=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if ${ac_cv_path_MV+:} false; then :
4913 $as_echo_n "(cached) " >&6
4917 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4940 if test -n "$MV"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4942 $as_echo "$MV" >&6; }
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4949 # Extract the first word of "rm", so it can be a program name with args.
4950 set dummy rm; ac_word=$2
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952 $as_echo_n "checking for $ac_word... " >&6; }
4953 if ${ac_cv_path_REMOVE+:} false; then :
4954 $as_echo_n "(cached) " >&6
4958 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4980 REMOVE=$ac_cv_path_REMOVE
4981 if test -n "$REMOVE"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4983 $as_echo "$REMOVE" >&6; }
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4990 # Extract the first word of "cp", so it can be a program name with args.
4991 set dummy cp; ac_word=$2
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if ${ac_cv_path_CP+:} false; then :
4995 $as_echo_n "(cached) " >&6
4999 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5022 if test -n "$CP"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5024 $as_echo "$CP" >&6; }
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5031 # Extract the first word of "sed", so it can be a program name with args.
5032 set dummy sed; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_path_SED+:} false; then :
5036 $as_echo_n "(cached) " >&6
5040 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5063 if test -n "$SED"; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5065 $as_echo "$SED" >&6; }
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068 $as_echo "no" >&6; }
5072 # Extract the first word of "echo", so it can be a program name with args.
5073 set dummy echo; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if ${ac_cv_path_ECHO+:} false; then :
5077 $as_echo_n "(cached) " >&6
5081 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5103 ECHO=$ac_cv_path_ECHO
5104 if test -n "$ECHO"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5106 $as_echo "$ECHO" >&6; }
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5113 # Extract the first word of "cmp", so it can be a program name with args.
5114 set dummy cmp; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_path_CMP+:} false; then :
5118 $as_echo_n "(cached) " >&6
5122 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5145 if test -n "$CMP"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5147 $as_echo "$CMP" >&6; }
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5154 # Extract the first word of "tbl", so it can be a program name with args.
5155 set dummy tbl; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_path_TBL+:} false; then :
5159 $as_echo_n "(cached) " >&6
5163 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5186 if test -n "$TBL"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5188 $as_echo "$TBL" >&6; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5195 # Extract the first word of "ar", so it can be a program name with args.
5196 set dummy ar; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_path_AR+:} false; then :
5200 $as_echo_n "(cached) " >&6
5204 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5227 if test -n "$AR"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5229 $as_echo "$AR" >&6; }
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5236 # Extract the first word of "openssl", so it can be a program name with args.
5237 set dummy openssl; ac_word=$2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if ${ac_cv_path_OPENSSL+:} false; then :
5241 $as_echo_n "(cached) " >&6
5245 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5267 OPENSSL=$ac_cv_path_OPENSSL
5268 if test -n "$OPENSSL"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5270 $as_echo "$OPENSSL" >&6; }
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5277 # Extract the first word of "mtx", so it can be a program name with args.
5278 set dummy mtx; ac_word=$2
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if ${ac_cv_path_MTX+:} false; then :
5282 $as_echo_n "(cached) " >&6
5286 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5296 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5309 if test -n "$MTX"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5311 $as_echo "$MTX" >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5318 # Extract the first word of "dd", so it can be a program name with args.
5319 set dummy dd; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if ${ac_cv_path_DD+:} false; then :
5323 $as_echo_n "(cached) " >&6
5327 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5350 if test -n "$DD"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5352 $as_echo "$DD" >&6; }
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5359 # Extract the first word of "mkisofs", so it can be a program name with args.
5360 set dummy mkisofs; ac_word=$2
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362 $as_echo_n "checking for $ac_word... " >&6; }
5363 if ${ac_cv_path_MKISOFS+:} false; then :
5364 $as_echo_n "(cached) " >&6
5368 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5390 MKISOFS=$ac_cv_path_MKISOFS
5391 if test -n "$MKISOFS"; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5393 $as_echo "$MKISOFS" >&6; }
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5400 # Extract the first word of "python", so it can be a program name with args.
5401 set dummy python; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if ${ac_cv_path_PYTHON+:} false; then :
5405 $as_echo_n "(cached) " >&6
5409 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5431 PYTHON=$ac_cv_path_PYTHON
5432 if test -n "$PYTHON"; then
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5434 $as_echo "$PYTHON" >&6; }
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5441 # Extract the first word of "growisofs", so it can be a program name with args.
5442 set dummy growisofs; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_path_GROWISOFS+:} false; then :
5446 $as_echo_n "(cached) " >&6
5450 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5472 GROWISOFS=$ac_cv_path_GROWISOFS
5473 if test -n "$GROWISOFS"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5475 $as_echo "$GROWISOFS" >&6; }
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5482 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5483 set dummy dvd+rw-mediainfo; ac_word=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5487 $as_echo_n "(cached) " >&6
5489 case $DVDRWMEDIAINFO in
5491 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5513 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5514 if test -n "$DVDRWMEDIAINFO"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5516 $as_echo "$DVDRWMEDIAINFO" >&6; }
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5523 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5524 set dummy dvd+rw-format; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5528 $as_echo_n "(cached) " >&6
5530 case $DVDRWFORMAT in
5532 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5554 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5555 if test -n "$DVDRWFORMAT"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5557 $as_echo "$DVDRWFORMAT" >&6; }
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5564 # Extract the first word of "pkg-config", so it can be a program name with args.
5565 set dummy pkg-config; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_path_PKGCONFIG+:} false; then :
5569 $as_echo_n "(cached) " >&6
5573 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5595 PKGCONFIG=$ac_cv_path_PKGCONFIG
5596 if test -n "$PKGCONFIG"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5598 $as_echo "$PKGCONFIG" >&6; }
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5605 # Extract the first word of "qmake", so it can be a program name with args.
5606 set dummy qmake; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if ${ac_cv_path_QMAKE+:} false; then :
5610 $as_echo_n "(cached) " >&6
5614 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5636 QMAKE=$ac_cv_path_QMAKE
5637 if test -n "$QMAKE"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5639 $as_echo "$QMAKE" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5646 # Extract the first word of "gmake", so it can be a program name with args.
5647 set dummy gmake; ac_word=$2
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649 $as_echo_n "checking for $ac_word... " >&6; }
5650 if ${ac_cv_path_GMAKE+:} false; then :
5651 $as_echo_n "(cached) " >&6
5655 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 test -z "$as_dir" && as_dir=.
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5677 GMAKE=$ac_cv_path_GMAKE
5678 if test -n "$GMAKE"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5680 $as_echo "$GMAKE" >&6; }
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5687 # Extract the first word of "pidof", so it can be a program name with args.
5688 set dummy pidof; ac_word=$2
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if ${ac_cv_path_PIDOF+:} false; then :
5692 $as_echo_n "(cached) " >&6
5696 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5706 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5718 PIDOF=$ac_cv_path_PIDOF
5719 if test -n "$PIDOF"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5721 $as_echo "$PIDOF" >&6; }
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5728 for ac_prog in gawk mawk nawk awk
5730 # Extract the first word of "$ac_prog", so it can be a program name with args.
5731 set dummy $ac_prog; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_prog_AWK+:} false; then :
5735 $as_echo_n "(cached) " >&6
5737 if test -n "$AWK"; then
5738 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747 ac_cv_prog_AWK="$ac_prog"
5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 if test -n "$AWK"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5760 $as_echo "$AWK" >&6; }
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5767 test -n "$AWK" && break
5770 # Some AWK programs fail, so test it and warn the user
5771 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5772 { if ((prog == $2) || (("(" prog ")") == $2) ||
5773 (("" prog "") == $2) ||
5774 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5776 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5777 The regex engine of $AWK is too broken to be used you
5778 might want to install GNU AWK.
5779 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5782 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5783 set dummy $THE_AWK; ac_word=$2
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 $as_echo_n "checking for $ac_word... " >&6; }
5786 if ${ac_cv_path_AWK+:} false; then :
5787 $as_echo_n "(cached) " >&6
5791 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5801 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5814 if test -n "$AWK"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5816 $as_echo "$AWK" >&6; }
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5825 test -n "$ARFLAG" || ARFLAGS="cr"
5837 # Check whether --enable-libtool was given.
5838 if test "${enable_libtool+set}" = set; then :
5839 enableval=$enable_libtool;
5840 if test x$enableval = xno; then
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5850 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5855 macro_version='2.4.2'
5856 macro_revision='1.3337'
5870 ltmain="$ac_aux_dir/ltmain.sh"
5872 # Make sure we can run config.sub.
5873 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5874 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5877 $as_echo_n "checking build system type... " >&6; }
5878 if ${ac_cv_build+:} false; then :
5879 $as_echo_n "(cached) " >&6
5881 ac_build_alias=$build_alias
5882 test "x$ac_build_alias" = x &&
5883 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5884 test "x$ac_build_alias" = x &&
5885 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5886 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5887 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5891 $as_echo "$ac_cv_build" >&6; }
5892 case $ac_cv_build in
5894 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5897 ac_save_IFS=$IFS; IFS='-'
5903 # Remember, the first character of IFS is used to create $*,
5904 # except with old shells:
5907 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5911 $as_echo_n "checking host system type... " >&6; }
5912 if ${ac_cv_host+:} false; then :
5913 $as_echo_n "(cached) " >&6
5915 if test "x$host_alias" = x; then
5916 ac_cv_host=$ac_cv_build
5918 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5919 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5924 $as_echo "$ac_cv_host" >&6; }
5927 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5930 ac_save_IFS=$IFS; IFS='-'
5936 # Remember, the first character of IFS is used to create $*,
5937 # except with old shells:
5940 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5943 # Backslashify metacharacters that are still active within
5944 # double-quoted strings.
5945 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5947 # Same as above, but do not quote variable references.
5948 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5950 # Sed substitution to delay expansion of an escaped shell variable in a
5951 # double_quote_subst'ed string.
5952 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5954 # Sed substitution to delay expansion of an escaped single quote.
5955 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5957 # Sed substitution to avoid accidental globbing in evaled expressions
5958 no_glob_subst='s/\*/\\\*/g'
5960 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5961 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5962 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5965 $as_echo_n "checking how to print strings... " >&6; }
5966 # Test print first, because it will be a builtin if present.
5967 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5968 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5970 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5973 # Use this function as a fallback that always works.
5974 func_fallback_echo ()
5976 eval 'cat <<_LTECHO_EOF
5980 ECHO='func_fallback_echo'
5983 # func_echo_all arg...
5984 # Invoke $ECHO with all args, space-separated.
5991 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5992 $as_echo "printf" >&6; } ;;
5993 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5994 $as_echo "print -r" >&6; } ;;
5995 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5996 $as_echo "cat" >&6; } ;;
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6013 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6014 if ${ac_cv_path_SED+:} false; then :
6015 $as_echo_n "(cached) " >&6
6017 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6018 for ac_i in 1 2 3 4 5 6 7; do
6019 ac_script="$ac_script$as_nl$ac_script"
6021 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6022 { ac_script=; unset ac_script;}
6023 if test -z "$SED"; then
6024 ac_path_SED_found=false
6025 # Loop through the user's path and test for each of PROGNAME-LIST
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 test -z "$as_dir" && as_dir=.
6031 for ac_prog in sed gsed; do
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6034 as_fn_executable_p "$ac_path_SED" || continue
6035 # Check for GNU ac_path_SED and select it if it is found.
6036 # Check for GNU $ac_path_SED
6037 case `"$ac_path_SED" --version 2>&1` in
6039 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6042 $as_echo_n 0123456789 >"conftest.in"
6045 cat "conftest.in" "conftest.in" >"conftest.tmp"
6046 mv "conftest.tmp" "conftest.in"
6047 cp "conftest.in" "conftest.nl"
6048 $as_echo '' >> "conftest.nl"
6049 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6051 as_fn_arith $ac_count + 1 && ac_count=$as_val
6052 if test $ac_count -gt ${ac_path_SED_max-0}; then
6053 # Best one so far, save it but keep looking for a better one
6054 ac_cv_path_SED="$ac_path_SED"
6055 ac_path_SED_max=$ac_count
6057 # 10*(2^10) chars as input seems more than enough
6058 test $ac_count -gt 10 && break
6060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6063 $ac_path_SED_found && break 3
6068 if test -z "$ac_cv_path_SED"; then
6069 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6077 $as_echo "$ac_cv_path_SED" >&6; }
6078 SED="$ac_cv_path_SED"
6081 test -z "$SED" && SED=sed
6082 Xsed="$SED -e 1s/^X//"
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6095 $as_echo_n "checking for fgrep... " >&6; }
6096 if ${ac_cv_path_FGREP+:} false; then :
6097 $as_echo_n "(cached) " >&6
6099 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6100 then ac_cv_path_FGREP="$GREP -F"
6102 if test -z "$FGREP"; then
6103 ac_path_FGREP_found=false
6104 # Loop through the user's path and test for each of PROGNAME-LIST
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6109 test -z "$as_dir" && as_dir=.
6110 for ac_prog in fgrep; do
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6113 as_fn_executable_p "$ac_path_FGREP" || continue
6114 # Check for GNU ac_path_FGREP and select it if it is found.
6115 # Check for GNU $ac_path_FGREP
6116 case `"$ac_path_FGREP" --version 2>&1` in
6118 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6121 $as_echo_n 0123456789 >"conftest.in"
6124 cat "conftest.in" "conftest.in" >"conftest.tmp"
6125 mv "conftest.tmp" "conftest.in"
6126 cp "conftest.in" "conftest.nl"
6127 $as_echo 'FGREP' >> "conftest.nl"
6128 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6129 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6130 as_fn_arith $ac_count + 1 && ac_count=$as_val
6131 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6132 # Best one so far, save it but keep looking for a better one
6133 ac_cv_path_FGREP="$ac_path_FGREP"
6134 ac_path_FGREP_max=$ac_count
6136 # 10*(2^10) chars as input seems more than enough
6137 test $ac_count -gt 10 && break
6139 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6142 $ac_path_FGREP_found && break 3
6147 if test -z "$ac_cv_path_FGREP"; then
6148 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6151 ac_cv_path_FGREP=$FGREP
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6157 $as_echo "$ac_cv_path_FGREP" >&6; }
6158 FGREP="$ac_cv_path_FGREP"
6161 test -z "$GREP" && GREP=grep
6181 # Check whether --with-gnu-ld was given.
6182 if test "${with_gnu_ld+set}" = set; then :
6183 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6189 if test "$GCC" = yes; then
6190 # Check if gcc -print-prog-name=ld gives a path.
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6192 $as_echo_n "checking for ld used by $CC... " >&6; }
6195 # gcc leaves a trailing carriage return which upsets mingw
6196 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6198 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6201 # Accept absolute paths.
6203 re_direlt='/[^/][^/]*/\.\./'
6204 # Canonicalize the pathname of ld
6205 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6206 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6207 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6209 test -z "$LD" && LD="$ac_prog"
6212 # If it fails, then pretend we aren't using GCC.
6216 # If it is relative, then search for the first ld in PATH.
6220 elif test "$with_gnu_ld" = yes; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6222 $as_echo_n "checking for GNU ld... " >&6; }
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6225 $as_echo_n "checking for non-GNU ld... " >&6; }
6227 if ${lt_cv_path_LD+:} false; then :
6228 $as_echo_n "(cached) " >&6
6230 if test -z "$LD"; then
6231 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6232 for ac_dir in $PATH; do
6234 test -z "$ac_dir" && ac_dir=.
6235 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6236 lt_cv_path_LD="$ac_dir/$ac_prog"
6237 # Check to see if the program is GNU ld. I'd rather use --version,
6238 # but apparently some variants of GNU ld only accept -v.
6239 # Break only if it was the GNU/non-GNU ld that we prefer.
6240 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6241 *GNU* | *'with BFD'*)
6242 test "$with_gnu_ld" != no && break
6245 test "$with_gnu_ld" != yes && break
6252 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6257 if test -n "$LD"; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6259 $as_echo "$LD" >&6; }
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262 $as_echo "no" >&6; }
6264 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6266 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6267 if ${lt_cv_prog_gnu_ld+:} false; then :
6268 $as_echo_n "(cached) " >&6
6270 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6271 case `$LD -v 2>&1 </dev/null` in
6272 *GNU* | *'with BFD'*)
6273 lt_cv_prog_gnu_ld=yes
6276 lt_cv_prog_gnu_ld=no
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6281 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6282 with_gnu_ld=$lt_cv_prog_gnu_ld
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6293 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6294 if ${lt_cv_path_NM+:} false; then :
6295 $as_echo_n "(cached) " >&6
6297 if test -n "$NM"; then
6298 # Let the user override the test.
6301 lt_nm_to_check="${ac_tool_prefix}nm"
6302 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6303 lt_nm_to_check="$lt_nm_to_check nm"
6305 for lt_tmp_nm in $lt_nm_to_check; do
6306 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6307 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6309 test -z "$ac_dir" && ac_dir=.
6310 tmp_nm="$ac_dir/$lt_tmp_nm"
6311 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6312 # Check to see if the nm accepts a BSD-compat flag.
6313 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6314 # nm: unknown option "B" ignored
6315 # Tru64's nm complains that /dev/null is an invalid object file
6316 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6317 */dev/null* | *'Invalid file or object type'*)
6318 lt_cv_path_NM="$tmp_nm -B"
6322 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6324 lt_cv_path_NM="$tmp_nm -p"
6328 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6329 continue # so that we can try to find one that supports BSD flags
6338 : ${lt_cv_path_NM=no}
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6342 $as_echo "$lt_cv_path_NM" >&6; }
6343 if test "$lt_cv_path_NM" != "no"; then
6346 # Didn't find any BSD compatible name lister, look for dumpbin.
6347 if test -n "$DUMPBIN"; then :
6348 # Let the user override the test.
6350 if test -n "$ac_tool_prefix"; then
6351 for ac_prog in dumpbin "link -dump"
6353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if ${ac_cv_prog_DUMPBIN+:} false; then :
6358 $as_echo_n "(cached) " >&6
6360 if test -n "$DUMPBIN"; then
6361 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6370 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 DUMPBIN=$ac_cv_prog_DUMPBIN
6381 if test -n "$DUMPBIN"; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6383 $as_echo "$DUMPBIN" >&6; }
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6390 test -n "$DUMPBIN" && break
6393 if test -z "$DUMPBIN"; then
6394 ac_ct_DUMPBIN=$DUMPBIN
6395 for ac_prog in dumpbin "link -dump"
6397 # Extract the first word of "$ac_prog", so it can be a program name with args.
6398 set dummy $ac_prog; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6402 $as_echo_n "(cached) " >&6
6404 if test -n "$ac_ct_DUMPBIN"; then
6405 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6425 if test -n "$ac_ct_DUMPBIN"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6427 $as_echo "$ac_ct_DUMPBIN" >&6; }
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6434 test -n "$ac_ct_DUMPBIN" && break
6437 if test "x$ac_ct_DUMPBIN" = x; then
6440 case $cross_compiling:$ac_tool_warned in
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6444 ac_tool_warned=yes ;;
6446 DUMPBIN=$ac_ct_DUMPBIN
6450 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6452 DUMPBIN="$DUMPBIN -symbols"
6460 if test "$DUMPBIN" != ":"; then
6464 test -z "$NM" && NM=nm
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6472 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6473 if ${lt_cv_nm_interface+:} false; then :
6474 $as_echo_n "(cached) " >&6
6476 lt_cv_nm_interface="BSD nm"
6477 echo "int some_variable = 0;" > conftest.$ac_ext
6478 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6479 (eval "$ac_compile" 2>conftest.err)
6480 cat conftest.err >&5
6481 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6482 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6483 cat conftest.err >&5
6484 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6485 cat conftest.out >&5
6486 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6487 lt_cv_nm_interface="MS dumpbin"
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6492 $as_echo "$lt_cv_nm_interface" >&6; }
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6495 $as_echo_n "checking whether ln -s works... " >&6; }
6497 if test "$LN_S" = "ln -s"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6499 $as_echo "yes" >&6; }
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6502 $as_echo "no, using $LN_S" >&6; }
6505 # find the maximum length of command line arguments
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6507 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6508 if ${lt_cv_sys_max_cmd_len+:} false; then :
6509 $as_echo_n "(cached) " >&6
6516 # On DJGPP, this test can blow up pretty badly due to problems in libc
6517 # (any single argument exceeding 2000 bytes causes a buffer overrun
6518 # during glob expansion). Even if it were fixed, the result of this
6519 # check would be larger than it should be.
6520 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6524 # Under GNU Hurd, this test is not required because there is
6525 # no limit to the length of command line arguments.
6526 # Libtool will interpret -1 as no limit whatsoever
6527 lt_cv_sys_max_cmd_len=-1;
6530 cygwin* | mingw* | cegcc*)
6531 # On Win9x/ME, this test blows up -- it succeeds, but takes
6532 # about 5 minutes as the teststring grows exponentially.
6533 # Worse, since 9x/ME are not pre-emptively multitasking,
6534 # you end up with a "frozen" computer, even though with patience
6535 # the test eventually succeeds (with a max line length of 256k).
6536 # Instead, let's just punt: use the minimum linelength reported by
6537 # all of the supported platforms: 8192 (on NT/2K/XP).
6538 lt_cv_sys_max_cmd_len=8192;
6542 # On MiNT this can take a long time and run out of memory.
6543 lt_cv_sys_max_cmd_len=8192;
6547 # On AmigaOS with pdksh, this test takes hours, literally.
6548 # So we just punt and use a minimum line length of 8192.
6549 lt_cv_sys_max_cmd_len=8192;
6552 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6553 # This has been around since 386BSD, at least. Likely further.
6554 if test -x /sbin/sysctl; then
6555 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6556 elif test -x /usr/sbin/sysctl; then
6557 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6559 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6561 # And add a safety zone
6562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6567 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6568 lt_cv_sys_max_cmd_len=196608
6572 # The test takes a long time on OS/2.
6573 lt_cv_sys_max_cmd_len=8192
6577 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6578 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6579 # nice to cause kernel panics so lets avoid the loop below.
6580 # First set a reasonable default.
6581 lt_cv_sys_max_cmd_len=16384
6583 if test -x /sbin/sysconfig; then
6584 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6585 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6590 lt_cv_sys_max_cmd_len=102400
6592 sysv5* | sco5v6* | sysv4.2uw2*)
6593 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6594 if test -n "$kargmax"; then
6595 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6597 lt_cv_sys_max_cmd_len=32768
6601 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6602 if test -n "$lt_cv_sys_max_cmd_len" && \
6603 test undefined != "$lt_cv_sys_max_cmd_len"; then
6604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6607 # Make teststring a little bigger before we do anything with it.
6608 # a 1K string should be a reasonable start.
6609 for i in 1 2 3 4 5 6 7 8 ; do
6610 teststring=$teststring$teststring
6612 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6613 # If test is not a shell built-in, we'll probably end up computing a
6614 # maximum length that is only half of the actual maximum length, but
6616 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6617 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6618 test $i != 17 # 1/2 MB should be enough
6621 teststring=$teststring$teststring
6623 # Only check the string length outside the loop.
6624 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6626 # Add a significant safety factor because C++ compilers can tack on
6627 # massive amounts of additional arguments before passing them to the
6628 # linker. It appears as though 1/2 is a usable value.
6629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6636 if test -n $lt_cv_sys_max_cmd_len ; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6638 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6641 $as_echo "none" >&6; }
6643 max_cmd_len=$lt_cv_sys_max_cmd_len
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6655 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6656 # Try some XSI features
6659 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6661 && eval 'test $(( 1 + 1 )) -eq 2 \
6662 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6665 $as_echo "$xsi_shell" >&6; }
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6669 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6671 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6673 && lt_shell_append=yes
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6675 $as_echo "$lt_shell_append" >&6; }
6678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6688 # test EBCDIC or ASCII
6689 case `echo X|tr X '\101'` in
6690 A) # ASCII based system
6691 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6692 lt_SP2NL='tr \040 \012'
6693 lt_NL2SP='tr \015\012 \040\040'
6695 *) # EBCDIC based system
6696 lt_SP2NL='tr \100 \n'
6697 lt_NL2SP='tr \r\n \100\100'
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6710 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6711 if ${lt_cv_to_host_file_cmd+:} false; then :
6712 $as_echo_n "(cached) " >&6
6717 *-*-mingw* ) # actually msys
6718 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6721 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6723 * ) # otherwise, assume *nix
6724 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6730 *-*-mingw* ) # actually msys
6731 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6734 lt_cv_to_host_file_cmd=func_convert_file_noop
6736 * ) # otherwise, assume *nix
6737 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6741 * ) # unhandled hosts (and "normal" native builds)
6742 lt_cv_to_host_file_cmd=func_convert_file_noop
6748 to_host_file_cmd=$lt_cv_to_host_file_cmd
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6750 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6757 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6758 if ${lt_cv_to_tool_file_cmd+:} false; then :
6759 $as_echo_n "(cached) " >&6
6761 #assume ordinary cross tools, or native build.
6762 lt_cv_to_tool_file_cmd=func_convert_file_noop
6766 *-*-mingw* ) # actually msys
6767 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6775 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6777 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6784 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6785 if ${lt_cv_ld_reload_flag+:} false; then :
6786 $as_echo_n "(cached) " >&6
6788 lt_cv_ld_reload_flag='-r'
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6791 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6792 reload_flag=$lt_cv_ld_reload_flag
6793 case $reload_flag in
6795 *) reload_flag=" $reload_flag" ;;
6797 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6799 cygwin* | mingw* | pw32* | cegcc*)
6800 if test "$GCC" != yes; then
6805 if test "$GCC" = yes; then
6806 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6808 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6821 if test -n "$ac_tool_prefix"; then
6822 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6823 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_OBJDUMP+:} false; then :
6827 $as_echo_n "(cached) " >&6
6829 if test -n "$OBJDUMP"; then
6830 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 OBJDUMP=$ac_cv_prog_OBJDUMP
6850 if test -n "$OBJDUMP"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6852 $as_echo "$OBJDUMP" >&6; }
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6860 if test -z "$ac_cv_prog_OBJDUMP"; then
6861 ac_ct_OBJDUMP=$OBJDUMP
6862 # Extract the first word of "objdump", so it can be a program name with args.
6863 set dummy objdump; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6867 $as_echo_n "(cached) " >&6
6869 if test -n "$ac_ct_OBJDUMP"; then
6870 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6879 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6890 if test -n "$ac_ct_OBJDUMP"; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6892 $as_echo "$ac_ct_OBJDUMP" >&6; }
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6898 if test "x$ac_ct_OBJDUMP" = x; then
6901 case $cross_compiling:$ac_tool_warned in
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905 ac_tool_warned=yes ;;
6907 OBJDUMP=$ac_ct_OBJDUMP
6910 OBJDUMP="$ac_cv_prog_OBJDUMP"
6913 test -z "$OBJDUMP" && OBJDUMP=objdump
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6924 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6925 if ${lt_cv_deplibs_check_method+:} false; then :
6926 $as_echo_n "(cached) " >&6
6928 lt_cv_file_magic_cmd='$MAGIC_CMD'
6929 lt_cv_file_magic_test_file=
6930 lt_cv_deplibs_check_method='unknown'
6931 # Need to set the preceding variable on all platforms that support
6932 # interlibrary dependencies.
6933 # 'none' -- dependencies not supported.
6934 # `unknown' -- same as none, but documents that we really don't know.
6935 # 'pass_all' -- all dependencies passed with no checks.
6936 # 'test_compile' -- check by making test program.
6937 # 'file_magic [[regex]]' -- check by looking for files in library path
6938 # which responds to the $file_magic_cmd with a given extended regex.
6939 # If you have `file' or equivalent on your system and you're not sure
6940 # whether `pass_all' will *always* work, you probably want this one.
6944 lt_cv_deplibs_check_method=pass_all
6948 lt_cv_deplibs_check_method=pass_all
6952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6953 lt_cv_file_magic_cmd='/usr/bin/file -L'
6954 lt_cv_file_magic_test_file=/shlib/libc.so
6958 # func_win32_libid is a shell function defined in ltmain.sh
6959 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6960 lt_cv_file_magic_cmd='func_win32_libid'
6964 # Base MSYS/MinGW do not provide the 'file' command needed by
6965 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6966 # unless we find 'file', for example because we are cross-compiling.
6967 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6968 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6969 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6970 lt_cv_file_magic_cmd='func_win32_libid'
6972 # Keep this pattern in sync with the one in func_win32_libid.
6973 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6974 lt_cv_file_magic_cmd='$OBJDUMP -f'
6979 # use the weaker test based on 'objdump'. See mingw*.
6980 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6981 lt_cv_file_magic_cmd='$OBJDUMP -f'
6984 darwin* | rhapsody*)
6985 lt_cv_deplibs_check_method=pass_all
6988 freebsd* | dragonfly*)
6989 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6992 # Not sure whether the presence of OpenBSD here was a mistake.
6993 # Let's accept both of them until this is cleared up.
6994 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6995 lt_cv_file_magic_cmd=/usr/bin/file
6996 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7000 lt_cv_deplibs_check_method=pass_all
7005 lt_cv_deplibs_check_method=pass_all
7008 hpux10.20* | hpux11*)
7009 lt_cv_file_magic_cmd=/usr/bin/file
7012 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7013 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7017 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7020 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7021 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7027 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7031 irix5* | irix6* | nonstopux*)
7033 *-32|*"-32 ") libmagic=32-bit;;
7034 *-n32|*"-n32 ") libmagic=N32;;
7035 *-64|*"-64 ") libmagic=64-bit;;
7036 *) libmagic=never-match;;
7038 lt_cv_deplibs_check_method=pass_all
7041 # This must be glibc/ELF.
7042 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7043 lt_cv_deplibs_check_method=pass_all
7046 netbsd* | netbsdelf*-gnu)
7047 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7050 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7056 lt_cv_file_magic_cmd=/usr/bin/file
7057 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7061 lt_cv_deplibs_check_method=pass_all
7065 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7072 osf3* | osf4* | osf5*)
7073 lt_cv_deplibs_check_method=pass_all
7077 lt_cv_deplibs_check_method=pass_all
7081 lt_cv_deplibs_check_method=pass_all
7084 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7085 lt_cv_deplibs_check_method=pass_all
7089 case $host_vendor in
7091 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7092 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7095 lt_cv_deplibs_check_method=pass_all
7098 lt_cv_file_magic_cmd='/bin/file'
7099 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7102 lt_cv_file_magic_cmd='/bin/file'
7103 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7104 lt_cv_file_magic_test_file=/lib/libc.so
7107 lt_cv_deplibs_check_method=pass_all
7110 lt_cv_deplibs_check_method=pass_all
7116 lt_cv_deplibs_check_method=pass_all
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7122 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7126 if test "$build" = "$host"; then
7129 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7132 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7138 file_magic_cmd=$lt_cv_file_magic_cmd
7139 deplibs_check_method=$lt_cv_deplibs_check_method
7140 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7163 if test -n "$ac_tool_prefix"; then
7164 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7165 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if ${ac_cv_prog_DLLTOOL+:} false; then :
7169 $as_echo_n "(cached) " >&6
7171 if test -n "$DLLTOOL"; then
7172 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 DLLTOOL=$ac_cv_prog_DLLTOOL
7192 if test -n "$DLLTOOL"; then
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7194 $as_echo "$DLLTOOL" >&6; }
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7202 if test -z "$ac_cv_prog_DLLTOOL"; then
7203 ac_ct_DLLTOOL=$DLLTOOL
7204 # Extract the first word of "dlltool", so it can be a program name with args.
7205 set dummy dlltool; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7209 $as_echo_n "(cached) " >&6
7211 if test -n "$ac_ct_DLLTOOL"; then
7212 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7232 if test -n "$ac_ct_DLLTOOL"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7234 $as_echo "$ac_ct_DLLTOOL" >&6; }
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7240 if test "x$ac_ct_DLLTOOL" = x; then
7243 case $cross_compiling:$ac_tool_warned in
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7247 ac_tool_warned=yes ;;
7249 DLLTOOL=$ac_ct_DLLTOOL
7252 DLLTOOL="$ac_cv_prog_DLLTOOL"
7255 test -z "$DLLTOOL" && DLLTOOL=dlltool
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7267 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7268 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7269 $as_echo_n "(cached) " >&6
7271 lt_cv_sharedlib_from_linklib_cmd='unknown'
7274 cygwin* | mingw* | pw32* | cegcc*)
7275 # two different shell functions defined in ltmain.sh
7276 # decide which to use based on capabilities of $DLLTOOL
7277 case `$DLLTOOL --help 2>&1` in
7278 *--identify-strict*)
7279 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7282 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7287 # fallback: assume linklib IS sharedlib
7288 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7294 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7295 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7296 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7304 if test -n "$ac_tool_prefix"; then
7307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_AR+:} false; then :
7312 $as_echo_n "(cached) " >&6
7314 if test -n "$AR"; then
7315 ac_cv_prog_AR="$AR" # Let the user override the test.
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 if test -n "$AR"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7337 $as_echo "$AR" >&6; }
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7344 test -n "$AR" && break
7347 if test -z "$AR"; then
7351 # Extract the first word of "$ac_prog", so it can be a program name with args.
7352 set dummy $ac_prog; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7356 $as_echo_n "(cached) " >&6
7358 if test -n "$ac_ct_AR"; then
7359 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368 ac_cv_prog_ac_ct_AR="$ac_prog"
7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7379 if test -n "$ac_ct_AR"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7381 $as_echo "$ac_ct_AR" >&6; }
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7388 test -n "$ac_ct_AR" && break
7391 if test "x$ac_ct_AR" = x; then
7394 case $cross_compiling:$ac_tool_warned in
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398 ac_tool_warned=yes ;;
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7418 $as_echo_n "checking for archiver @FILE support... " >&6; }
7419 if ${lt_cv_ar_at_file+:} false; then :
7420 $as_echo_n "(cached) " >&6
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7434 if ac_fn_c_try_compile "$LINENO"; then :
7435 echo conftest.$ac_objext > conftest.lst
7436 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7438 (eval $lt_ar_try) 2>&5
7440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7441 test $ac_status = 0; }
7442 if test "$ac_status" -eq 0; then
7443 # Ensure the archiver fails upon bogus file names.
7444 rm -f conftest.$ac_objext libconftest.a
7445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7446 (eval $lt_ar_try) 2>&5
7448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449 test $ac_status = 0; }
7450 if test "$ac_status" -ne 0; then
7454 rm -f conftest.* libconftest.a
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7461 $as_echo "$lt_cv_ar_at_file" >&6; }
7463 if test "x$lt_cv_ar_at_file" = xno; then
7466 archiver_list_spec=$lt_cv_ar_at_file
7475 if test -n "$ac_tool_prefix"; then
7476 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7477 set dummy ${ac_tool_prefix}strip; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_STRIP+:} false; then :
7481 $as_echo_n "(cached) " >&6
7483 if test -n "$STRIP"; then
7484 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 STRIP=$ac_cv_prog_STRIP
7504 if test -n "$STRIP"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7506 $as_echo "$STRIP" >&6; }
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7514 if test -z "$ac_cv_prog_STRIP"; then
7516 # Extract the first word of "strip", so it can be a program name with args.
7517 set dummy strip; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7521 $as_echo_n "(cached) " >&6
7523 if test -n "$ac_ct_STRIP"; then
7524 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533 ac_cv_prog_ac_ct_STRIP="strip"
7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7544 if test -n "$ac_ct_STRIP"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7546 $as_echo "$ac_ct_STRIP" >&6; }
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7552 if test "x$ac_ct_STRIP" = x; then
7555 case $cross_compiling:$ac_tool_warned in
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7559 ac_tool_warned=yes ;;
7564 STRIP="$ac_cv_prog_STRIP"
7567 test -z "$STRIP" && STRIP=:
7574 if test -n "$ac_tool_prefix"; then
7575 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7576 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if ${ac_cv_prog_RANLIB+:} false; then :
7580 $as_echo_n "(cached) " >&6
7582 if test -n "$RANLIB"; then
7583 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 RANLIB=$ac_cv_prog_RANLIB
7603 if test -n "$RANLIB"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7605 $as_echo "$RANLIB" >&6; }
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7613 if test -z "$ac_cv_prog_RANLIB"; then
7614 ac_ct_RANLIB=$RANLIB
7615 # Extract the first word of "ranlib", so it can be a program name with args.
7616 set dummy ranlib; ac_word=$2
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618 $as_echo_n "checking for $ac_word... " >&6; }
7619 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7620 $as_echo_n "(cached) " >&6
7622 if test -n "$ac_ct_RANLIB"; then
7623 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632 ac_cv_prog_ac_ct_RANLIB="ranlib"
7633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7643 if test -n "$ac_ct_RANLIB"; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7645 $as_echo "$ac_ct_RANLIB" >&6; }
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7651 if test "x$ac_ct_RANLIB" = x; then
7654 case $cross_compiling:$ac_tool_warned in
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7658 ac_tool_warned=yes ;;
7660 RANLIB=$ac_ct_RANLIB
7663 RANLIB="$ac_cv_prog_RANLIB"
7666 test -z "$RANLIB" && RANLIB=:
7673 # Determine commands to create old-style static archives.
7674 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7675 old_postinstall_cmds='chmod 644 $oldlib'
7676 old_postuninstall_cmds=
7678 if test -n "$RANLIB"; then
7681 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7684 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7687 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7692 lock_old_archive_extraction=yes ;;
7694 lock_old_archive_extraction=no ;;
7735 # If no C compiler was specified, use CC.
7738 # If no C compiler flags were specified, use CFLAGS.
7739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7741 # Allow CC to be a program name with arguments.
7745 # Check for command to grab the raw symbol name followed by C symbol from nm.
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7747 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7748 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7749 $as_echo_n "(cached) " >&6
7752 # These are sane defaults that work on at least a few old systems.
7753 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7755 # Character class describing NM global symbol codes.
7756 symcode='[BCDEGRST]'
7758 # Regexp to match symbols that can be accessed directly from C.
7759 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7761 # Define system-specific variables.
7766 cygwin* | mingw* | pw32* | cegcc*)
7767 symcode='[ABCDGISTW]'
7770 if test "$host_cpu" = ia64; then
7771 symcode='[ABCDEGRST]'
7775 symcode='[BCDEGRST]'
7778 symcode='[BCDEGQRST]'
7789 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7797 # If we're using GNU nm, then use its standard symbol codes.
7798 case `$NM -V 2>&1` in
7799 *GNU* | *'with BFD'*)
7800 symcode='[ABCDGIRSTW]' ;;
7803 # Transform an extracted symbol line into a proper C declaration.
7804 # Some systems (esp. on ia64) link data and code symbols differently,
7805 # so use this general approach.
7806 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7808 # Transform an extracted symbol line into symbol name and symbol address
7809 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7810 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7812 # Handle CRLF in mingw tool chain
7816 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7820 # Try without a prefix underscore, then with it.
7821 for ac_symprfx in "" "_"; do
7823 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7824 symxfrm="\\1 $ac_symprfx\\2 \\2"
7826 # Write the raw and C identifiers.
7827 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7828 # Fake it for dumpbin and say T for any non-static function
7829 # and D for any global variable.
7830 # Also find C++ and __fastcall symbols from MSVC++,
7831 # which start with @ or ?.
7832 lt_cv_sys_global_symbol_pipe="$AWK '"\
7833 " {last_section=section; section=\$ 3};"\
7834 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7835 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7836 " \$ 0!~/External *\|/{next};"\
7837 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7838 " {if(hide[section]) next};"\
7839 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7840 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7841 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7842 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7843 " ' prfx=^$ac_symprfx"
7845 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7847 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7849 # Check to see that the pipe works correctly.
7853 cat > conftest.$ac_ext <<_LT_EOF
7858 void nm_test_func(void);
7859 void nm_test_func(void){}
7863 int main(){nm_test_var='a';nm_test_func();return(0);}
7866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7867 (eval $ac_compile) 2>&5
7869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7870 test $ac_status = 0; }; then
7871 # Now try to grab the symbols.
7873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7874 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7877 test $ac_status = 0; } && test -s "$nlist"; then
7878 # Try sorting and uniquifying the output.
7879 if sort "$nlist" | uniq > "$nlist"T; then
7880 mv -f "$nlist"T "$nlist"
7885 # Make sure that we snagged all the symbols we need.
7886 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7887 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7888 cat <<_LT_EOF > conftest.$ac_ext
7889 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7890 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7891 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7892 relocations are performed -- see ld's documentation on pseudo-relocs. */
7893 # define LT_DLSYM_CONST
7894 #elif defined(__osf__)
7895 /* This system does not cope well with relocations in const data. */
7896 # define LT_DLSYM_CONST
7898 # define LT_DLSYM_CONST const
7906 # Now generate the symbol file.
7907 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7909 cat <<_LT_EOF >> conftest.$ac_ext
7911 /* The mapping between symbol names and symbols. */
7912 LT_DLSYM_CONST struct {
7916 lt__PROGRAM__LTX_preloaded_symbols[] =
7918 { "@PROGRAM@", (void *) 0 },
7920 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7921 cat <<\_LT_EOF >> conftest.$ac_ext
7925 /* This works around a problem in FreeBSD linker */
7926 #ifdef FREEBSD_WORKAROUND
7927 static const void *lt_preloaded_setup() {
7928 return lt__PROGRAM__LTX_preloaded_symbols;
7936 # Now try linking the two files.
7937 mv conftest.$ac_objext conftstm.$ac_objext
7938 lt_globsym_save_LIBS=$LIBS
7939 lt_globsym_save_CFLAGS=$CFLAGS
7940 LIBS="conftstm.$ac_objext"
7941 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7943 (eval $ac_link) 2>&5
7945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7946 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7949 LIBS=$lt_globsym_save_LIBS
7950 CFLAGS=$lt_globsym_save_CFLAGS
7952 echo "cannot find nm_test_func in $nlist" >&5
7955 echo "cannot find nm_test_var in $nlist" >&5
7958 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7961 echo "$progname: failed program was:" >&5
7962 cat conftest.$ac_ext >&5
7964 rm -rf conftest* conftst*
7966 # Do not use the global_symbol_pipe unless it works.
7967 if test "$pipe_works" = yes; then
7970 lt_cv_sys_global_symbol_pipe=
7976 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7977 lt_cv_sys_global_symbol_to_cdecl=
7979 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7981 $as_echo "failed" >&6; }
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7984 $as_echo "ok" >&6; }
7987 # Response file support.
7988 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7989 nm_file_list_spec='@'
7990 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7991 nm_file_list_spec='@'
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8021 $as_echo_n "checking for sysroot... " >&6; }
8023 # Check whether --with-sysroot was given.
8024 if test "${with_sysroot+set}" = set; then :
8025 withval=$with_sysroot;
8032 case ${with_sysroot} in #(
8034 if test "$GCC" = yes; then
8035 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8039 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8045 $as_echo "${with_sysroot}" >&6; }
8046 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8051 $as_echo "${lt_sysroot:-no}" >&6; }
8057 # Check whether --enable-libtool-lock was given.
8058 if test "${enable_libtool_lock+set}" = set; then :
8059 enableval=$enable_libtool_lock;
8062 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8064 # Some flags need to be propagated to the compiler or linker for good
8068 # Find out which ABI we are using.
8069 echo 'int i;' > conftest.$ac_ext
8070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8071 (eval $ac_compile) 2>&5
8073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8074 test $ac_status = 0; }; then
8075 case `/usr/bin/file conftest.$ac_objext` in
8087 # Find out which ABI we are using.
8088 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8090 (eval $ac_compile) 2>&5
8092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8093 test $ac_status = 0; }; then
8094 if test "$lt_cv_prog_gnu_ld" = yes; then
8095 case `/usr/bin/file conftest.$ac_objext` in
8097 LD="${LD-ld} -melf32bsmip"
8100 LD="${LD-ld} -melf32bmipn32"
8103 LD="${LD-ld} -melf64bmip"
8107 case `/usr/bin/file conftest.$ac_objext` in
8123 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8124 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8125 # Find out which ABI we are using.
8126 echo 'int i;' > conftest.$ac_ext
8127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8128 (eval $ac_compile) 2>&5
8130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8131 test $ac_status = 0; }; then
8132 case `/usr/bin/file conftest.o` in
8135 x86_64-*kfreebsd*-gnu)
8136 LD="${LD-ld} -m elf_i386_fbsd"
8139 case `/usr/bin/file conftest.o` in
8141 LD="${LD-ld} -m elf32_x86_64"
8144 LD="${LD-ld} -m elf_i386"
8149 LD="${LD-ld} -m elf32lppclinux"
8152 LD="${LD-ld} -m elf32ppclinux"
8155 LD="${LD-ld} -m elf_s390"
8158 LD="${LD-ld} -m elf32_sparc"
8164 x86_64-*kfreebsd*-gnu)
8165 LD="${LD-ld} -m elf_x86_64_fbsd"
8168 LD="${LD-ld} -m elf_x86_64"
8171 LD="${LD-ld} -m elf64lppc"
8174 LD="${LD-ld} -m elf64ppc"
8176 s390*-*linux*|s390*-*tpf*)
8177 LD="${LD-ld} -m elf64_s390"
8180 LD="${LD-ld} -m elf64_sparc"
8190 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8191 SAVE_CFLAGS="$CFLAGS"
8192 CFLAGS="$CFLAGS -belf"
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8194 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8195 if ${lt_cv_cc_needs_belf+:} false; then :
8196 $as_echo_n "(cached) " >&6
8199 ac_cpp='$CPP $CPPFLAGS'
8200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8215 if ac_fn_c_try_link "$LINENO"; then :
8216 lt_cv_cc_needs_belf=yes
8218 lt_cv_cc_needs_belf=no
8220 rm -f core conftest.err conftest.$ac_objext \
8221 conftest$ac_exeext conftest.$ac_ext
8223 ac_cpp='$CPP $CPPFLAGS'
8224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8230 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8231 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8232 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8233 CFLAGS="$SAVE_CFLAGS"
8237 # Find out which ABI we are using.
8238 echo 'int i;' > conftest.$ac_ext
8239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8240 (eval $ac_compile) 2>&5
8242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8243 test $ac_status = 0; }; then
8244 case `/usr/bin/file conftest.o` in
8246 case $lt_cv_prog_gnu_ld in
8250 LD="${LD-ld} -m elf_x86_64"
8253 LD="${LD-ld} -m elf64_sparc"
8256 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8257 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8262 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8274 need_locks="$enable_libtool_lock"
8276 if test -n "$ac_tool_prefix"; then
8277 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8278 set dummy ${ac_tool_prefix}mt; ac_word=$2
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 $as_echo_n "checking for $ac_word... " >&6; }
8281 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8282 $as_echo_n "(cached) " >&6
8284 if test -n "$MANIFEST_TOOL"; then
8285 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 test -z "$as_dir" && as_dir=.
8292 for ac_exec_ext in '' $ac_executable_extensions; do
8293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8294 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8305 if test -n "$MANIFEST_TOOL"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8307 $as_echo "$MANIFEST_TOOL" >&6; }
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8315 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8316 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8317 # Extract the first word of "mt", so it can be a program name with args.
8318 set dummy mt; ac_word=$2
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320 $as_echo_n "checking for $ac_word... " >&6; }
8321 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8322 $as_echo_n "(cached) " >&6
8324 if test -n "$ac_ct_MANIFEST_TOOL"; then
8325 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 test -z "$as_dir" && as_dir=.
8332 for ac_exec_ext in '' $ac_executable_extensions; do
8333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8334 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8345 if test -n "$ac_ct_MANIFEST_TOOL"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8347 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8353 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8356 case $cross_compiling:$ac_tool_warned in
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8360 ac_tool_warned=yes ;;
8362 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8365 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8368 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8370 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8371 if ${lt_cv_path_mainfest_tool+:} false; then :
8372 $as_echo_n "(cached) " >&6
8374 lt_cv_path_mainfest_tool=no
8375 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8376 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8377 cat conftest.err >&5
8378 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8379 lt_cv_path_mainfest_tool=yes
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8384 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8385 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8395 rhapsody* | darwin*)
8396 if test -n "$ac_tool_prefix"; then
8397 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8398 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8402 $as_echo_n "(cached) " >&6
8404 if test -n "$DSYMUTIL"; then
8405 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8425 if test -n "$DSYMUTIL"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8427 $as_echo "$DSYMUTIL" >&6; }
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8435 if test -z "$ac_cv_prog_DSYMUTIL"; then
8436 ac_ct_DSYMUTIL=$DSYMUTIL
8437 # Extract the first word of "dsymutil", so it can be a program name with args.
8438 set dummy dsymutil; ac_word=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8442 $as_echo_n "(cached) " >&6
8444 if test -n "$ac_ct_DSYMUTIL"; then
8445 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8454 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8465 if test -n "$ac_ct_DSYMUTIL"; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8467 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8473 if test "x$ac_ct_DSYMUTIL" = x; then
8476 case $cross_compiling:$ac_tool_warned in
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8480 ac_tool_warned=yes ;;
8482 DSYMUTIL=$ac_ct_DSYMUTIL
8485 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8488 if test -n "$ac_tool_prefix"; then
8489 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8490 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if ${ac_cv_prog_NMEDIT+:} false; then :
8494 $as_echo_n "(cached) " >&6
8496 if test -n "$NMEDIT"; then
8497 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 test -z "$as_dir" && as_dir=.
8504 for ac_exec_ext in '' $ac_executable_extensions; do
8505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8506 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 NMEDIT=$ac_cv_prog_NMEDIT
8517 if test -n "$NMEDIT"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8519 $as_echo "$NMEDIT" >&6; }
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8527 if test -z "$ac_cv_prog_NMEDIT"; then
8528 ac_ct_NMEDIT=$NMEDIT
8529 # Extract the first word of "nmedit", so it can be a program name with args.
8530 set dummy nmedit; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8534 $as_echo_n "(cached) " >&6
8536 if test -n "$ac_ct_NMEDIT"; then
8537 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8557 if test -n "$ac_ct_NMEDIT"; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8559 $as_echo "$ac_ct_NMEDIT" >&6; }
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8565 if test "x$ac_ct_NMEDIT" = x; then
8568 case $cross_compiling:$ac_tool_warned in
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8572 ac_tool_warned=yes ;;
8574 NMEDIT=$ac_ct_NMEDIT
8577 NMEDIT="$ac_cv_prog_NMEDIT"
8580 if test -n "$ac_tool_prefix"; then
8581 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8582 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584 $as_echo_n "checking for $ac_word... " >&6; }
8585 if ${ac_cv_prog_LIPO+:} false; then :
8586 $as_echo_n "(cached) " >&6
8588 if test -n "$LIPO"; then
8589 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8598 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8608 LIPO=$ac_cv_prog_LIPO
8609 if test -n "$LIPO"; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8611 $as_echo "$LIPO" >&6; }
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8619 if test -z "$ac_cv_prog_LIPO"; then
8621 # Extract the first word of "lipo", so it can be a program name with args.
8622 set dummy lipo; ac_word=$2
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624 $as_echo_n "checking for $ac_word... " >&6; }
8625 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8626 $as_echo_n "(cached) " >&6
8628 if test -n "$ac_ct_LIPO"; then
8629 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635 test -z "$as_dir" && as_dir=.
8636 for ac_exec_ext in '' $ac_executable_extensions; do
8637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8638 ac_cv_prog_ac_ct_LIPO="lipo"
8639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8649 if test -n "$ac_ct_LIPO"; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8651 $as_echo "$ac_ct_LIPO" >&6; }
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8657 if test "x$ac_ct_LIPO" = x; then
8660 case $cross_compiling:$ac_tool_warned in
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8664 ac_tool_warned=yes ;;
8669 LIPO="$ac_cv_prog_LIPO"
8672 if test -n "$ac_tool_prefix"; then
8673 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8674 set dummy ${ac_tool_prefix}otool; ac_word=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if ${ac_cv_prog_OTOOL+:} false; then :
8678 $as_echo_n "(cached) " >&6
8680 if test -n "$OTOOL"; then
8681 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 OTOOL=$ac_cv_prog_OTOOL
8701 if test -n "$OTOOL"; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8703 $as_echo "$OTOOL" >&6; }
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 $as_echo "no" >&6; }
8711 if test -z "$ac_cv_prog_OTOOL"; then
8713 # Extract the first word of "otool", so it can be a program name with args.
8714 set dummy otool; ac_word=$2
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716 $as_echo_n "checking for $ac_word... " >&6; }
8717 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8718 $as_echo_n "(cached) " >&6
8720 if test -n "$ac_ct_OTOOL"; then
8721 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 test -z "$as_dir" && as_dir=.
8728 for ac_exec_ext in '' $ac_executable_extensions; do
8729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8730 ac_cv_prog_ac_ct_OTOOL="otool"
8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8741 if test -n "$ac_ct_OTOOL"; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8743 $as_echo "$ac_ct_OTOOL" >&6; }
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8749 if test "x$ac_ct_OTOOL" = x; then
8752 case $cross_compiling:$ac_tool_warned in
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8756 ac_tool_warned=yes ;;
8761 OTOOL="$ac_cv_prog_OTOOL"
8764 if test -n "$ac_tool_prefix"; then
8765 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8766 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768 $as_echo_n "checking for $ac_word... " >&6; }
8769 if ${ac_cv_prog_OTOOL64+:} false; then :
8770 $as_echo_n "(cached) " >&6
8772 if test -n "$OTOOL64"; then
8773 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779 test -z "$as_dir" && as_dir=.
8780 for ac_exec_ext in '' $ac_executable_extensions; do
8781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8782 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 OTOOL64=$ac_cv_prog_OTOOL64
8793 if test -n "$OTOOL64"; then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8795 $as_echo "$OTOOL64" >&6; }
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8803 if test -z "$ac_cv_prog_OTOOL64"; then
8804 ac_ct_OTOOL64=$OTOOL64
8805 # Extract the first word of "otool64", so it can be a program name with args.
8806 set dummy otool64; ac_word=$2
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8808 $as_echo_n "checking for $ac_word... " >&6; }
8809 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8810 $as_echo_n "(cached) " >&6
8812 if test -n "$ac_ct_OTOOL64"; then
8813 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 test -z "$as_dir" && as_dir=.
8820 for ac_exec_ext in '' $ac_executable_extensions; do
8821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8822 ac_cv_prog_ac_ct_OTOOL64="otool64"
8823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8833 if test -n "$ac_ct_OTOOL64"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8835 $as_echo "$ac_ct_OTOOL64" >&6; }
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8841 if test "x$ac_ct_OTOOL64" = x; then
8844 case $cross_compiling:$ac_tool_warned in
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8848 ac_tool_warned=yes ;;
8850 OTOOL64=$ac_ct_OTOOL64
8853 OTOOL64="$ac_cv_prog_OTOOL64"
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8883 $as_echo_n "checking for -single_module linker flag... " >&6; }
8884 if ${lt_cv_apple_cc_single_mod+:} false; then :
8885 $as_echo_n "(cached) " >&6
8887 lt_cv_apple_cc_single_mod=no
8888 if test -z "${LT_MULTI_MODULE}"; then
8889 # By default we will add the -single_module flag. You can override
8890 # by either setting the environment variable LT_MULTI_MODULE
8891 # non-empty at configure time, or by adding -multi_module to the
8893 rm -rf libconftest.dylib*
8894 echo "int foo(void){return 1;}" > conftest.c
8895 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8896 -dynamiclib -Wl,-single_module conftest.c" >&5
8897 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8898 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8900 # If there is a non-empty error log, and "single_module"
8901 # appears in it, assume the flag caused a linker warning
8902 if test -s conftest.err && $GREP single_module conftest.err; then
8903 cat conftest.err >&5
8904 # Otherwise, if the output was created with a 0 exit code from
8905 # the compiler, it worked.
8906 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8907 lt_cv_apple_cc_single_mod=yes
8909 cat conftest.err >&5
8911 rm -rf libconftest.dylib*
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8916 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8919 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8920 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8921 $as_echo_n "(cached) " >&6
8923 lt_cv_ld_exported_symbols_list=no
8924 save_LDFLAGS=$LDFLAGS
8925 echo "_main" > conftest.sym
8926 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8938 if ac_fn_c_try_link "$LINENO"; then :
8939 lt_cv_ld_exported_symbols_list=yes
8941 lt_cv_ld_exported_symbols_list=no
8943 rm -f core conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8945 LDFLAGS="$save_LDFLAGS"
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8949 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8952 $as_echo_n "checking for -force_load linker flag... " >&6; }
8953 if ${lt_cv_ld_force_load+:} false; then :
8954 $as_echo_n "(cached) " >&6
8956 lt_cv_ld_force_load=no
8957 cat > conftest.c << _LT_EOF
8958 int forced_loaded() { return 2;}
8960 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8961 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8962 echo "$AR cru libconftest.a conftest.o" >&5
8963 $AR cru libconftest.a conftest.o 2>&5
8964 echo "$RANLIB libconftest.a" >&5
8965 $RANLIB libconftest.a 2>&5
8966 cat > conftest.c << _LT_EOF
8967 int main() { return 0;}
8969 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8970 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8972 if test -s conftest.err && $GREP force_load conftest.err; then
8973 cat conftest.err >&5
8974 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8975 lt_cv_ld_force_load=yes
8977 cat conftest.err >&5
8979 rm -f conftest.err libconftest.a conftest conftest.c
8980 rm -rf conftest.dSYM
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8984 $as_echo "$lt_cv_ld_force_load" >&6; }
8986 rhapsody* | darwin1.[012])
8987 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8989 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8990 darwin*) # darwin 5.x on
8991 # if running on 10.5 or later, the deployment target defaults
8992 # to the OS version, if on x86, and 10.4, the deployment
8993 # target defaults to 10.4. Don't you love it?
8994 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8995 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8996 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8998 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9000 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9004 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9005 _lt_dar_single_mod='$single_module'
9007 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9008 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9010 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9012 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9013 _lt_dsymutil='~$DSYMUTIL $lib || :'
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9021 $as_echo_n "checking for ANSI C header files... " >&6; }
9022 if ${ac_cv_header_stdc+:} false; then :
9023 $as_echo_n "(cached) " >&6
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9040 if ac_fn_c_try_compile "$LINENO"; then :
9041 ac_cv_header_stdc=yes
9043 ac_cv_header_stdc=no
9045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 if test $ac_cv_header_stdc = yes; then
9048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9055 $EGREP "memchr" >/dev/null 2>&1; then :
9058 ac_cv_header_stdc=no
9064 if test $ac_cv_header_stdc = yes; then
9065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9072 $EGREP "free" >/dev/null 2>&1; then :
9075 ac_cv_header_stdc=no
9081 if test $ac_cv_header_stdc = yes; then
9082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9083 if test "$cross_compiling" = yes; then :
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9090 #if ((' ' & 0x0FF) == 0x020)
9091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9094 # define ISLOWER(c) \
9095 (('a' <= (c) && (c) <= 'i') \
9096 || ('j' <= (c) && (c) <= 'r') \
9097 || ('s' <= (c) && (c) <= 'z'))
9098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9106 for (i = 0; i < 256; i++)
9107 if (XOR (islower (i), ISLOWER (i))
9108 || toupper (i) != TOUPPER (i))
9113 if ac_fn_c_try_run "$LINENO"; then :
9116 ac_cv_header_stdc=no
9118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9119 conftest.$ac_objext conftest.beam conftest.$ac_ext
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9125 $as_echo "$ac_cv_header_stdc" >&6; }
9126 if test $ac_cv_header_stdc = yes; then
9128 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9133 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9134 inttypes.h stdint.h unistd.h
9136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9137 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9140 cat >>confdefs.h <<_ACEOF
9141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9149 for ac_header in dlfcn.h
9151 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9153 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9154 cat >>confdefs.h <<_ACEOF
9155 #define HAVE_DLFCN_H 1
9165 func_stripname_cnf ()
9168 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9169 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9171 } # func_stripname_cnf
9178 # Check whether --enable-shared was given.
9179 if test "${enable_shared+set}" = set; then :
9180 enableval=$enable_shared; p=${PACKAGE-default}
9182 yes) enable_shared=yes ;;
9183 no) enable_shared=no ;;
9186 # Look at the argument we got. We use all the common list separators.
9187 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9188 for pkg in $enableval; do
9190 if test "X$pkg" = "X$p"; then
9207 # Check whether --enable-static was given.
9208 if test "${enable_static+set}" = set; then :
9209 enableval=$enable_static; p=${PACKAGE-default}
9211 yes) enable_static=yes ;;
9212 no) enable_static=no ;;
9215 # Look at the argument we got. We use all the common list separators.
9216 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9217 for pkg in $enableval; do
9219 if test "X$pkg" = "X$p"; then
9248 # Check whether --with-pic was given.
9249 if test "${with_pic+set}" = set; then :
9250 withval=$with_pic; lt_p=${PACKAGE-default}
9252 yes|no) pic_mode=$withval ;;
9255 # Look at the argument we got. We use all the common list separators.
9256 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9257 for lt_pkg in $withval; do
9259 if test "X$lt_pkg" = "X$lt_p"; then
9271 test -z "$pic_mode" && pic_mode=default
9279 # Check whether --enable-fast-install was given.
9280 if test "${enable_fast_install+set}" = set; then :
9281 enableval=$enable_fast_install; p=${PACKAGE-default}
9283 yes) enable_fast_install=yes ;;
9284 no) enable_fast_install=no ;;
9286 enable_fast_install=no
9287 # Look at the argument we got. We use all the common list separators.
9288 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9289 for pkg in $enableval; do
9291 if test "X$pkg" = "X$p"; then
9292 enable_fast_install=yes
9299 enable_fast_install=yes
9312 # This can be used to rebuild libtool when needed
9313 LIBTOOL_DEPS="$ltmain"
9315 # Always use our own libtool.
9316 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9347 test -z "$LN_S" && LN_S="ln -s"
9362 if test -n "${ZSH_VERSION+set}" ; then
9363 setopt NO_GLOB_SUBST
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9367 $as_echo_n "checking for objdir... " >&6; }
9368 if ${lt_cv_objdir+:} false; then :
9369 $as_echo_n "(cached) " >&6
9371 rm -f .libs 2>/dev/null
9372 mkdir .libs 2>/dev/null
9373 if test -d .libs; then
9376 # MS-DOS does not allow filenames that begin with a dot.
9379 rmdir .libs 2>/dev/null
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9382 $as_echo "$lt_cv_objdir" >&6; }
9383 objdir=$lt_cv_objdir
9389 cat >>confdefs.h <<_ACEOF
9390 #define LT_OBJDIR "$lt_cv_objdir/"
9398 # AIX sometimes has problems with the GCC collect2 program. For some
9399 # reason, if we set the COLLECT_NAMES environment variable, the problems
9400 # vanish in a puff of smoke.
9401 if test "X${COLLECT_NAMES+set}" != Xset; then
9403 export COLLECT_NAMES
9410 can_build_shared=yes
9412 # All known linkers require a `.a' archive for static linking (except MSVC,
9413 # which needs '.lib').
9416 with_gnu_ld="$lt_cv_prog_gnu_ld"
9419 old_CFLAGS="$CFLAGS"
9421 # Set sane defaults for various variables
9422 test -z "$CC" && CC=cc
9423 test -z "$LTCC" && LTCC=$CC
9424 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9425 test -z "$LD" && LD=ld
9426 test -z "$ac_objext" && ac_objext=o
9428 for cc_temp in $compiler""; do
9430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9436 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9439 # Only perform the check for file, if the check method requires it
9440 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9441 case $deplibs_check_method in
9443 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9445 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9446 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9447 $as_echo_n "(cached) " >&6
9451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9454 lt_save_MAGIC_CMD="$MAGIC_CMD"
9455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9456 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9457 for ac_dir in $ac_dummy; do
9459 test -z "$ac_dir" && ac_dir=.
9460 if test -f $ac_dir/${ac_tool_prefix}file; then
9461 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9462 if test -n "$file_magic_test_file"; then
9463 case $deplibs_check_method in
9465 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9467 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9468 $EGREP "$file_magic_regex" > /dev/null; then
9473 *** Warning: the command libtool uses to detect shared libraries,
9474 *** $file_magic_cmd, produces output that libtool cannot recognize.
9475 *** The result is that libtool may fail to recognize shared libraries
9476 *** as such. This will affect the creation of libtool libraries that
9477 *** depend on shared libraries, but programs linked with such libtool
9478 *** libraries will work regardless of this problem. Nevertheless, you
9479 *** may want to report the problem to your system manager and/or to
9480 *** bug-libtool@gnu.org
9490 MAGIC_CMD="$lt_save_MAGIC_CMD"
9495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9496 if test -n "$MAGIC_CMD"; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9498 $as_echo "$MAGIC_CMD" >&6; }
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9501 $as_echo "no" >&6; }
9508 if test -z "$lt_cv_path_MAGIC_CMD"; then
9509 if test -n "$ac_tool_prefix"; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9511 $as_echo_n "checking for file... " >&6; }
9512 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9513 $as_echo_n "(cached) " >&6
9517 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9520 lt_save_MAGIC_CMD="$MAGIC_CMD"
9521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9522 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9523 for ac_dir in $ac_dummy; do
9525 test -z "$ac_dir" && ac_dir=.
9526 if test -f $ac_dir/file; then
9527 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9528 if test -n "$file_magic_test_file"; then
9529 case $deplibs_check_method in
9531 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9533 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9534 $EGREP "$file_magic_regex" > /dev/null; then
9539 *** Warning: the command libtool uses to detect shared libraries,
9540 *** $file_magic_cmd, produces output that libtool cannot recognize.
9541 *** The result is that libtool may fail to recognize shared libraries
9542 *** as such. This will affect the creation of libtool libraries that
9543 *** depend on shared libraries, but programs linked with such libtool
9544 *** libraries will work regardless of this problem. Nevertheless, you
9545 *** may want to report the problem to your system manager and/or to
9546 *** bug-libtool@gnu.org
9556 MAGIC_CMD="$lt_save_MAGIC_CMD"
9561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9562 if test -n "$MAGIC_CMD"; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9564 $as_echo "$MAGIC_CMD" >&6; }
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9580 # Use C for the default configuration in the libtool script
9584 ac_cpp='$CPP $CPPFLAGS'
9585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9590 # Source file extension for C test sources.
9593 # Object file extension for compiled C test sources.
9597 # Code to be used in simple compile tests
9598 lt_simple_compile_test_code="int some_variable = 0;"
9600 # Code to be used in simple link tests
9601 lt_simple_link_test_code='int main(){return(0);}'
9609 # If no C compiler was specified, use CC.
9612 # If no C compiler flags were specified, use CFLAGS.
9613 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9615 # Allow CC to be a program name with arguments.
9618 # Save the default compiler, since it gets overwritten when the other
9619 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9620 compiler_DEFAULT=$CC
9622 # save warnings/boilerplate of simple test code
9623 ac_outfile=conftest.$ac_objext
9624 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9625 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9626 _lt_compiler_boilerplate=`cat conftest.err`
9629 ac_outfile=conftest.$ac_objext
9630 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9631 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9632 _lt_linker_boilerplate=`cat conftest.err`
9637 ## There is no encapsulation within the following macros, do not change
9638 ## the running order or otherwise move them around unless you know exactly
9639 ## what you are doing...
9640 if test -n "$compiler"; then
9642 lt_prog_compiler_no_builtin_flag=
9644 if test "$GCC" = yes; then
9645 case $cc_basename in
9647 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9649 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9653 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9654 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9655 $as_echo_n "(cached) " >&6
9657 lt_cv_prog_compiler_rtti_exceptions=no
9658 ac_outfile=conftest.$ac_objext
9659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9660 lt_compiler_flag="-fno-rtti -fno-exceptions"
9661 # Insert the option either (1) after the last *FLAGS variable, or
9662 # (2) before a word containing "conftest.", or (3) at the end.
9663 # Note that $ac_compile itself does not contain backslashes and begins
9664 # with a dollar sign (not a hyphen), so the echo should work correctly.
9665 # The option is referenced via a variable to avoid confusing sed.
9666 lt_compile=`echo "$ac_compile" | $SED \
9667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9669 -e 's:$: $lt_compiler_flag:'`
9670 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9671 (eval "$lt_compile" 2>conftest.err)
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 if (exit $ac_status) && test -s "$ac_outfile"; then
9676 # The compiler can only warn and ignore the option if not recognized
9677 # So say no if there are warnings other than the usual output.
9678 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9680 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9681 lt_cv_prog_compiler_rtti_exceptions=yes
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9688 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9690 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9691 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9703 lt_prog_compiler_wl=
9704 lt_prog_compiler_pic=
9705 lt_prog_compiler_static=
9708 if test "$GCC" = yes; then
9709 lt_prog_compiler_wl='-Wl,'
9710 lt_prog_compiler_static='-static'
9714 # All AIX code is PIC.
9715 if test "$host_cpu" = ia64; then
9716 # AIX 5 now supports IA64 processor
9717 lt_prog_compiler_static='-Bstatic'
9724 # see comment about AmigaOS4 .so support
9725 lt_prog_compiler_pic='-fPIC'
9728 # FIXME: we need at least 68020 code to build shared libraries, but
9729 # adding the `-m68020' flag to GCC prevents building anything better,
9731 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9736 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9737 # PIC is the default for these OSes.
9740 mingw* | cygwin* | pw32* | os2* | cegcc*)
9741 # This hack is so that the source file can tell whether it is being
9742 # built for inclusion in a dll (and should export symbols for example).
9743 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9744 # (--disable-auto-import) libraries
9745 lt_prog_compiler_pic='-DDLL_EXPORT'
9748 darwin* | rhapsody*)
9749 # PIC is the default on this platform
9750 # Common symbols not allowed in MH_DYLIB files
9751 lt_prog_compiler_pic='-fno-common'
9755 # PIC is the default for Haiku.
9756 # The "-static" flag exists, but is broken.
9757 lt_prog_compiler_static=
9761 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9762 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9763 # sets the default TLS model and affects inlining.
9769 lt_prog_compiler_pic='-fPIC'
9775 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9776 # Instead, we relocate shared libraries at runtime.
9780 # Just because we use GCC doesn't mean we suddenly get shared libraries
9781 # on systems that don't support them.
9782 lt_prog_compiler_can_build_shared=no
9787 # QNX uses GNU C++, but need to define -shared option too, otherwise
9789 lt_prog_compiler_pic='-fPIC -shared'
9793 if test -d /usr/nec; then
9794 lt_prog_compiler_pic=-Kconform_pic
9799 lt_prog_compiler_pic='-fPIC'
9803 case $cc_basename in
9804 nvcc*) # Cuda Compiler Driver 2.2
9805 lt_prog_compiler_wl='-Xlinker '
9806 if test -n "$lt_prog_compiler_pic"; then
9807 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9812 # PORTME Check for flag to pass linker flags through the system compiler.
9815 lt_prog_compiler_wl='-Wl,'
9816 if test "$host_cpu" = ia64; then
9817 # AIX 5 now supports IA64 processor
9818 lt_prog_compiler_static='-Bstatic'
9820 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9824 mingw* | cygwin* | pw32* | os2* | cegcc*)
9825 # This hack is so that the source file can tell whether it is being
9826 # built for inclusion in a dll (and should export symbols for example).
9827 lt_prog_compiler_pic='-DDLL_EXPORT'
9830 hpux9* | hpux10* | hpux11*)
9831 lt_prog_compiler_wl='-Wl,'
9832 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9839 lt_prog_compiler_pic='+Z'
9842 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9843 lt_prog_compiler_static='${wl}-a ${wl}archive'
9846 irix5* | irix6* | nonstopux*)
9847 lt_prog_compiler_wl='-Wl,'
9848 # PIC (with -KPIC) is the default.
9849 lt_prog_compiler_static='-non_shared'
9852 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9853 case $cc_basename in
9854 # old Intel for x86_64 which still supported -KPIC.
9856 lt_prog_compiler_wl='-Wl,'
9857 lt_prog_compiler_pic='-KPIC'
9858 lt_prog_compiler_static='-static'
9860 # icc used to be incompatible with GCC.
9861 # ICC 10 doesn't accept -KPIC any more.
9863 lt_prog_compiler_wl='-Wl,'
9864 lt_prog_compiler_pic='-fPIC'
9865 lt_prog_compiler_static='-static'
9867 # Lahey Fortran 8.1.
9869 lt_prog_compiler_wl='-Wl,'
9870 lt_prog_compiler_pic='--shared'
9871 lt_prog_compiler_static='--static'
9874 # NAG Fortran compiler
9875 lt_prog_compiler_wl='-Wl,-Wl,,'
9876 lt_prog_compiler_pic='-PIC'
9877 lt_prog_compiler_static='-Bstatic'
9879 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9880 # Portland Group compilers (*not* the Pentium gcc compiler,
9881 # which looks to be a dead project)
9882 lt_prog_compiler_wl='-Wl,'
9883 lt_prog_compiler_pic='-fpic'
9884 lt_prog_compiler_static='-Bstatic'
9887 lt_prog_compiler_wl='-Wl,'
9888 # All Alpha code is PIC.
9889 lt_prog_compiler_static='-non_shared'
9891 xl* | bgxl* | bgf* | mpixl*)
9892 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9893 lt_prog_compiler_wl='-Wl,'
9894 lt_prog_compiler_pic='-qpic'
9895 lt_prog_compiler_static='-qstaticlink'
9898 case `$CC -V 2>&1 | sed 5q` in
9899 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9900 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9901 lt_prog_compiler_pic='-KPIC'
9902 lt_prog_compiler_static='-Bstatic'
9903 lt_prog_compiler_wl=''
9905 *Sun\ F* | *Sun*Fortran*)
9906 lt_prog_compiler_pic='-KPIC'
9907 lt_prog_compiler_static='-Bstatic'
9908 lt_prog_compiler_wl='-Qoption ld '
9912 lt_prog_compiler_pic='-KPIC'
9913 lt_prog_compiler_static='-Bstatic'
9914 lt_prog_compiler_wl='-Wl,'
9916 *Intel*\ [CF]*Compiler*)
9917 lt_prog_compiler_wl='-Wl,'
9918 lt_prog_compiler_pic='-fPIC'
9919 lt_prog_compiler_static='-static'
9922 lt_prog_compiler_wl='-Wl,'
9923 lt_prog_compiler_pic='-fpic'
9924 lt_prog_compiler_static='-Bstatic'
9932 lt_prog_compiler_pic='-KPIC'
9933 lt_prog_compiler_static='-Bstatic'
9937 # QNX uses GNU C++, but need to define -shared option too, otherwise
9939 lt_prog_compiler_pic='-fPIC -shared'
9942 osf3* | osf4* | osf5*)
9943 lt_prog_compiler_wl='-Wl,'
9944 # All OSF/1 code is PIC.
9945 lt_prog_compiler_static='-non_shared'
9949 lt_prog_compiler_static='-non_shared'
9953 lt_prog_compiler_pic='-KPIC'
9954 lt_prog_compiler_static='-Bstatic'
9955 case $cc_basename in
9956 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9957 lt_prog_compiler_wl='-Qoption ld ';;
9959 lt_prog_compiler_wl='-Wl,';;
9964 lt_prog_compiler_wl='-Qoption ld '
9965 lt_prog_compiler_pic='-PIC'
9966 lt_prog_compiler_static='-Bstatic'
9969 sysv4 | sysv4.2uw2* | sysv4.3*)
9970 lt_prog_compiler_wl='-Wl,'
9971 lt_prog_compiler_pic='-KPIC'
9972 lt_prog_compiler_static='-Bstatic'
9976 if test -d /usr/nec ;then
9977 lt_prog_compiler_pic='-Kconform_pic'
9978 lt_prog_compiler_static='-Bstatic'
9982 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9983 lt_prog_compiler_wl='-Wl,'
9984 lt_prog_compiler_pic='-KPIC'
9985 lt_prog_compiler_static='-Bstatic'
9989 lt_prog_compiler_wl='-Wl,'
9990 lt_prog_compiler_can_build_shared=no
9994 lt_prog_compiler_pic='-pic'
9995 lt_prog_compiler_static='-Bstatic'
9999 lt_prog_compiler_can_build_shared=no
10005 # For platforms which do not support PIC, -DPIC is meaningless:
10007 lt_prog_compiler_pic=
10010 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10015 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10016 if ${lt_cv_prog_compiler_pic+:} false; then :
10017 $as_echo_n "(cached) " >&6
10019 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10022 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10023 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10026 # Check to make sure the PIC flag actually works.
10028 if test -n "$lt_prog_compiler_pic"; then
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10030 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10031 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10032 $as_echo_n "(cached) " >&6
10034 lt_cv_prog_compiler_pic_works=no
10035 ac_outfile=conftest.$ac_objext
10036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10037 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10038 # Insert the option either (1) after the last *FLAGS variable, or
10039 # (2) before a word containing "conftest.", or (3) at the end.
10040 # Note that $ac_compile itself does not contain backslashes and begins
10041 # with a dollar sign (not a hyphen), so the echo should work correctly.
10042 # The option is referenced via a variable to avoid confusing sed.
10043 lt_compile=`echo "$ac_compile" | $SED \
10044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10046 -e 's:$: $lt_compiler_flag:'`
10047 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10048 (eval "$lt_compile" 2>conftest.err)
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 if (exit $ac_status) && test -s "$ac_outfile"; then
10053 # The compiler can only warn and ignore the option if not recognized
10054 # So say no if there are warnings other than the usual output.
10055 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10057 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10058 lt_cv_prog_compiler_pic_works=yes
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10065 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10067 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10068 case $lt_prog_compiler_pic in
10070 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10073 lt_prog_compiler_pic=
10074 lt_prog_compiler_can_build_shared=no
10090 # Check to make sure the static flag actually works.
10092 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10094 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10095 if ${lt_cv_prog_compiler_static_works+:} false; then :
10096 $as_echo_n "(cached) " >&6
10098 lt_cv_prog_compiler_static_works=no
10099 save_LDFLAGS="$LDFLAGS"
10100 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10101 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10102 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10103 # The linker can only warn and ignore the option if not recognized
10104 # So say no if there are warnings
10105 if test -s conftest.err; then
10106 # Append any errors to the config.log.
10107 cat conftest.err 1>&5
10108 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10110 if diff conftest.exp conftest.er2 >/dev/null; then
10111 lt_cv_prog_compiler_static_works=yes
10114 lt_cv_prog_compiler_static_works=yes
10118 LDFLAGS="$save_LDFLAGS"
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10122 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10124 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10127 lt_prog_compiler_static=
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10137 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10138 if ${lt_cv_prog_compiler_c_o+:} false; then :
10139 $as_echo_n "(cached) " >&6
10141 lt_cv_prog_compiler_c_o=no
10142 $RM -r conftest 2>/dev/null
10146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10148 lt_compiler_flag="-o out/conftest2.$ac_objext"
10149 # Insert the option either (1) after the last *FLAGS variable, or
10150 # (2) before a word containing "conftest.", or (3) at the end.
10151 # Note that $ac_compile itself does not contain backslashes and begins
10152 # with a dollar sign (not a hyphen), so the echo should work correctly.
10153 lt_compile=`echo "$ac_compile" | $SED \
10154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10156 -e 's:$: $lt_compiler_flag:'`
10157 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10158 (eval "$lt_compile" 2>out/conftest.err)
10160 cat out/conftest.err >&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10164 # The compiler can only warn and ignore the option if not recognized
10165 # So say no if there are warnings
10166 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10167 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10168 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10169 lt_cv_prog_compiler_c_o=yes
10174 # SGI C++ compiler will create directory out/ii_files/ for
10175 # template instantiation
10176 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10177 $RM out/* && rmdir out
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10184 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10192 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10193 if ${lt_cv_prog_compiler_c_o+:} false; then :
10194 $as_echo_n "(cached) " >&6
10196 lt_cv_prog_compiler_c_o=no
10197 $RM -r conftest 2>/dev/null
10201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10203 lt_compiler_flag="-o out/conftest2.$ac_objext"
10204 # Insert the option either (1) after the last *FLAGS variable, or
10205 # (2) before a word containing "conftest.", or (3) at the end.
10206 # Note that $ac_compile itself does not contain backslashes and begins
10207 # with a dollar sign (not a hyphen), so the echo should work correctly.
10208 lt_compile=`echo "$ac_compile" | $SED \
10209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10211 -e 's:$: $lt_compiler_flag:'`
10212 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10213 (eval "$lt_compile" 2>out/conftest.err)
10215 cat out/conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10219 # The compiler can only warn and ignore the option if not recognized
10220 # So say no if there are warnings
10221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10222 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10223 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10224 lt_cv_prog_compiler_c_o=yes
10229 # SGI C++ compiler will create directory out/ii_files/ for
10230 # template instantiation
10231 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10232 $RM out/* && rmdir out
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10239 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10244 hard_links="nottested"
10245 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10246 # do not overwrite the value of need_locks provided by the user
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10248 $as_echo_n "checking if we can lock with hard links... " >&6; }
10251 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10253 ln conftest.a conftest.b 2>&5 || hard_links=no
10254 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10256 $as_echo "$hard_links" >&6; }
10257 if test "$hard_links" = no; then
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10259 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10272 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10275 allow_undefined_flag=
10276 always_export_symbols=no
10278 archive_expsym_cmds=
10279 compiler_needs_object=no
10280 enable_shared_with_static_runtimes=no
10281 export_dynamic_flag_spec=
10282 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10283 hardcode_automatic=no
10285 hardcode_direct_absolute=no
10286 hardcode_libdir_flag_spec=
10287 hardcode_libdir_separator=
10288 hardcode_minus_L=no
10289 hardcode_shlibpath_var=unsupported
10291 link_all_deplibs=unknown
10293 module_expsym_cmds=
10294 old_archive_from_new_cmds=
10295 old_archive_from_expsyms_cmds=
10296 thread_safe_flag_spec=
10297 whole_archive_flag_spec=
10298 # include_expsyms should be a list of space-separated symbols to be *always*
10299 # included in the symbol list
10301 # exclude_expsyms can be an extended regexp of symbols to exclude
10302 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10303 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10304 # as well as any symbol that contains `d'.
10305 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10306 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10307 # platforms (ab)use it in PIC code, but their linkers get confused if
10308 # the symbol is explicitly referenced. Since portable code cannot
10309 # rely on this symbol name, it's probably fine to never include it in
10310 # preloaded symbol tables.
10311 # Exclude shared library initialization/finalization symbols.
10312 extract_expsyms_cmds=
10315 cygwin* | mingw* | pw32* | cegcc*)
10316 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10317 # When not using gcc, we currently assume that we are using
10318 # Microsoft Visual C++.
10319 if test "$GCC" != yes; then
10324 # we just hope/assume this is gcc and not c89 (= MSVC++)
10330 linux* | k*bsd*-gnu | gnu*)
10331 link_all_deplibs=no
10337 # On some targets, GNU ld is compatible enough with the native linker
10338 # that we're better off using the native interface for both.
10339 lt_use_gnu_ld_interface=no
10340 if test "$with_gnu_ld" = yes; then
10343 # The AIX port of GNU ld has always aspired to compatibility
10344 # with the native linker. However, as the warning in the GNU ld
10345 # block says, versions before 2.19.5* couldn't really create working
10346 # shared libraries, regardless of the interface used.
10347 case `$LD -v 2>&1` in
10348 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10349 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10350 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10352 lt_use_gnu_ld_interface=yes
10357 lt_use_gnu_ld_interface=yes
10362 if test "$lt_use_gnu_ld_interface" = yes; then
10363 # If archive_cmds runs LD, not CC, wlarc should be empty
10366 # Set some defaults for GNU ld with shared library support. These
10367 # are reset later if shared libraries are not supported. Putting them
10368 # here allows them to be overridden if necessary.
10369 runpath_var=LD_RUN_PATH
10370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10371 export_dynamic_flag_spec='${wl}--export-dynamic'
10372 # ancient GNU ld didn't support --whole-archive et. al.
10373 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10374 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10376 whole_archive_flag_spec=
10378 supports_anon_versioning=no
10379 case `$LD -v 2>&1` in
10380 *GNU\ gold*) supports_anon_versioning=yes ;;
10381 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10382 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10383 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10384 *\ 2.11.*) ;; # other 2.11 versions
10385 *) supports_anon_versioning=yes ;;
10388 # See if GNU ld supports shared libraries.
10391 # On AIX/PPC, the GNU linker is very broken
10392 if test "$host_cpu" != ia64; then
10396 *** Warning: the GNU linker, at least up to release 2.19, is reported
10397 *** to be unable to reliably create shared libraries on AIX.
10398 *** Therefore, libtool is disabling shared libraries support. If you
10399 *** really care for shared libraries, you may want to install binutils
10400 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10401 *** You will then need to restart the configuration process.
10410 # see comment about AmigaOS4 .so support
10411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10412 archive_expsym_cmds=''
10415 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10416 hardcode_libdir_flag_spec='-L$libdir'
10417 hardcode_minus_L=yes
10423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10424 allow_undefined_flag=unsupported
10425 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10426 # support --undefined. This deserves some investigation. FIXME
10427 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10433 cygwin* | mingw* | pw32* | cegcc*)
10434 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10435 # as there is no search path for DLLs.
10436 hardcode_libdir_flag_spec='-L$libdir'
10437 export_dynamic_flag_spec='${wl}--export-all-symbols'
10438 allow_undefined_flag=unsupported
10439 always_export_symbols=no
10440 enable_shared_with_static_runtimes=yes
10441 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10442 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10444 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10446 # If the export-symbols file already is a .def file (1st line
10447 # is EXPORTS), use it as is; otherwise, prepend...
10448 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10449 cp $export_symbols $output_objdir/$soname.def;
10451 echo EXPORTS > $output_objdir/$soname.def;
10452 cat $export_symbols >> $output_objdir/$soname.def;
10454 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10462 link_all_deplibs=yes
10467 hardcode_shlibpath_var=no
10468 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10469 export_dynamic_flag_spec='${wl}-E'
10470 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10471 # Instead, shared libraries are loaded at an image base (0x10000000 by
10472 # default) and relocated if they conflict, which is a slow very memory
10473 # consuming and fragmenting process. To avoid this, we pick a random,
10474 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10475 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10476 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10477 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10480 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10482 if test "$host_os" = linux-dietlibc; then
10483 case $cc_basename in
10484 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10487 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10488 && test "$tmp_diet" = no
10490 tmp_addflag=' $pic_flag'
10491 tmp_sharedflag='-shared'
10492 case $cc_basename,$host_cpu in
10493 pgcc*) # Portland Group C compiler
10494 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10495 tmp_addflag=' $pic_flag'
10497 pgf77* | pgf90* | pgf95* | pgfortran*)
10498 # Portland Group f77 and f90 compilers
10499 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10500 tmp_addflag=' $pic_flag -Mnomain' ;;
10501 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10502 tmp_addflag=' -i_dynamic' ;;
10503 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10504 tmp_addflag=' -i_dynamic -nofor_main' ;;
10505 ifc* | ifort*) # Intel Fortran compiler
10506 tmp_addflag=' -nofor_main' ;;
10507 lf95*) # Lahey Fortran 8.1
10508 whole_archive_flag_spec=
10509 tmp_sharedflag='--shared' ;;
10510 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10511 tmp_sharedflag='-qmkshrobj'
10513 nvcc*) # Cuda Compiler Driver 2.2
10514 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10515 compiler_needs_object=yes
10518 case `$CC -V 2>&1 | sed 5q` in
10519 *Sun\ C*) # Sun C 5.9
10520 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10521 compiler_needs_object=yes
10522 tmp_sharedflag='-G' ;;
10523 *Sun\ F*) # Sun Fortran 8.3
10524 tmp_sharedflag='-G' ;;
10526 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10528 if test "x$supports_anon_versioning" = xyes; then
10529 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10530 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10531 echo "local: *; };" >> $output_objdir/$libname.ver~
10532 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10535 case $cc_basename in
10536 xlf* | bgf* | bgxlf* | mpixlf*)
10537 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10538 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10540 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10541 if test "x$supports_anon_versioning" = xyes; then
10542 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10543 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10544 echo "local: *; };" >> $output_objdir/$libname.ver~
10545 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10554 netbsd* | netbsdelf*-gnu)
10555 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10556 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10559 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10560 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10565 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10569 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10570 *** create shared libraries on Solaris systems. Therefore, libtool
10571 *** is disabling shared libraries support. We urge you to upgrade GNU
10572 *** binutils to release 2.9.1 or newer. Another option is to modify
10573 *** your PATH or compiler configuration so that the native linker is
10574 *** used, and then restart.
10577 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10578 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10579 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10586 case `$LD -v 2>&1` in
10587 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10591 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10592 *** reliably create shared libraries on SCO systems. Therefore, libtool
10593 *** is disabling shared libraries support. We urge you to upgrade GNU
10594 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10595 *** your PATH or compiler configuration so that the native linker is
10596 *** used, and then restart.
10601 # For security reasons, it is highly recommended that you always
10602 # use absolute paths for naming shared libraries, and exclude the
10603 # DT_RUNPATH tag from executables and libraries. But doing so
10604 # requires that you compile everything twice, which is a pain.
10605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10608 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10617 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10619 hardcode_direct=yes
10620 hardcode_shlibpath_var=no
10624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10625 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10626 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10633 if test "$ld_shlibs" = no; then
10635 hardcode_libdir_flag_spec=
10636 export_dynamic_flag_spec=
10637 whole_archive_flag_spec=
10640 # PORTME fill in a description of your system's linker (not GNU ld)
10643 allow_undefined_flag=unsupported
10644 always_export_symbols=yes
10645 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10646 # Note: this linker hardcodes the directories in LIBPATH if there
10647 # are no directories specified by -L.
10648 hardcode_minus_L=yes
10649 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10650 # Neither direct hardcoding nor static linking is supported with a
10652 hardcode_direct=unsupported
10657 if test "$host_cpu" = ia64; then
10658 # On IA64, the linker does run time linking by default, so we don't
10659 # have to do anything special.
10660 aix_use_runtimelinking=no
10661 exp_sym_flag='-Bexport'
10664 # If we're using GNU nm, then we don't want the "-C" option.
10665 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10666 # Also, AIX nm treats weak defined symbols like other global
10667 # defined symbols, whereas GNU nm marks them as "W".
10668 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10669 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10671 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10673 aix_use_runtimelinking=no
10675 # Test if we are trying to use run time linking or normal
10676 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10677 # need to do runtime linking.
10678 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10679 for ld_flag in $LDFLAGS; do
10680 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10681 aix_use_runtimelinking=yes
10688 exp_sym_flag='-bexport'
10689 no_entry_flag='-bnoentry'
10692 # When large executables or shared objects are built, AIX ld can
10693 # have problems creating the table of contents. If linking a library
10694 # or program results in "error TOC overflow" add -mminimal-toc to
10695 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10696 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10699 hardcode_direct=yes
10700 hardcode_direct_absolute=yes
10701 hardcode_libdir_separator=':'
10702 link_all_deplibs=yes
10703 file_list_spec='${wl}-f,'
10705 if test "$GCC" = yes; then
10706 case $host_os in aix4.[012]|aix4.[012].*)
10707 # We only want to do this on AIX 4.2 and lower, the check
10708 # below for broken collect2 doesn't work under 4.3+
10709 collect2name=`${CC} -print-prog-name=collect2`
10710 if test -f "$collect2name" &&
10711 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10713 # We have reworked collect2
10716 # We have old collect2
10717 hardcode_direct=unsupported
10718 # It fails to find uninstalled libraries when the uninstalled
10719 # path is not listed in the libpath. Setting hardcode_minus_L
10720 # to unsupported forces relinking
10721 hardcode_minus_L=yes
10722 hardcode_libdir_flag_spec='-L$libdir'
10723 hardcode_libdir_separator=
10727 shared_flag='-shared'
10728 if test "$aix_use_runtimelinking" = yes; then
10729 shared_flag="$shared_flag "'${wl}-G'
10731 link_all_deplibs=no
10734 if test "$host_cpu" = ia64; then
10735 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10736 # chokes on -Wl,-G. The following line is correct:
10739 if test "$aix_use_runtimelinking" = yes; then
10740 shared_flag='${wl}-G'
10742 shared_flag='${wl}-bM:SRE'
10747 export_dynamic_flag_spec='${wl}-bexpall'
10748 # It seems that -bexpall does not export symbols beginning with
10749 # underscore (_), so it is better to generate a list of symbols to export.
10750 always_export_symbols=yes
10751 if test "$aix_use_runtimelinking" = yes; then
10752 # Warning - without using the other runtime loading flags (-brtl),
10753 # -berok will link without error, but may produce a broken library.
10754 allow_undefined_flag='-berok'
10755 # Determine the default libpath from the value encoded in an
10756 # empty executable.
10757 if test "${lt_cv_aix_libpath+set}" = set; then
10758 aix_libpath=$lt_cv_aix_libpath
10760 if ${lt_cv_aix_libpath_+:} false; then :
10761 $as_echo_n "(cached) " >&6
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10774 if ac_fn_c_try_link "$LINENO"; then :
10776 lt_aix_libpath_sed='
10777 /Import File Strings/,/^$/ {
10779 s/^0 *\([^ ]*\) *$/\1/
10783 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10784 # Check for a 64-bit object if we didn't find anything.
10785 if test -z "$lt_cv_aix_libpath_"; then
10786 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10789 rm -f core conftest.err conftest.$ac_objext \
10790 conftest$ac_exeext conftest.$ac_ext
10791 if test -z "$lt_cv_aix_libpath_"; then
10792 lt_cv_aix_libpath_="/usr/lib:/lib"
10797 aix_libpath=$lt_cv_aix_libpath_
10800 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10801 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10803 if test "$host_cpu" = ia64; then
10804 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10805 allow_undefined_flag="-z nodefs"
10806 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10808 # Determine the default libpath from the value encoded in an
10809 # empty executable.
10810 if test "${lt_cv_aix_libpath+set}" = set; then
10811 aix_libpath=$lt_cv_aix_libpath
10813 if ${lt_cv_aix_libpath_+:} false; then :
10814 $as_echo_n "(cached) " >&6
10816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h. */
10827 if ac_fn_c_try_link "$LINENO"; then :
10829 lt_aix_libpath_sed='
10830 /Import File Strings/,/^$/ {
10832 s/^0 *\([^ ]*\) *$/\1/
10836 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10837 # Check for a 64-bit object if we didn't find anything.
10838 if test -z "$lt_cv_aix_libpath_"; then
10839 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10842 rm -f core conftest.err conftest.$ac_objext \
10843 conftest$ac_exeext conftest.$ac_ext
10844 if test -z "$lt_cv_aix_libpath_"; then
10845 lt_cv_aix_libpath_="/usr/lib:/lib"
10850 aix_libpath=$lt_cv_aix_libpath_
10853 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10854 # Warning - without using the other run time loading flags,
10855 # -berok will link without error, but may produce a broken library.
10856 no_undefined_flag=' ${wl}-bernotok'
10857 allow_undefined_flag=' ${wl}-berok'
10858 if test "$with_gnu_ld" = yes; then
10859 # We only use this code for GNU lds that support --whole-archive.
10860 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10862 # Exported symbols can be pulled into shared objects from archives
10863 whole_archive_flag_spec='$convenience'
10865 archive_cmds_need_lc=yes
10866 # This is similar to how AIX traditionally builds its shared libraries.
10867 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10875 # see comment about AmigaOS4 .so support
10876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10877 archive_expsym_cmds=''
10880 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10881 hardcode_libdir_flag_spec='-L$libdir'
10882 hardcode_minus_L=yes
10888 export_dynamic_flag_spec=-rdynamic
10891 cygwin* | mingw* | pw32* | cegcc*)
10892 # When not using gcc, we currently assume that we are using
10893 # Microsoft Visual C++.
10894 # hardcode_libdir_flag_spec is actually meaningless, as there is
10895 # no search path for DLLs.
10896 case $cc_basename in
10899 hardcode_libdir_flag_spec=' '
10900 allow_undefined_flag=unsupported
10901 always_export_symbols=yes
10903 # Tell ltmain to make .lib files, not .a files.
10905 # Tell ltmain to make .dll files, not .so files.
10907 # FIXME: Setting linknames here is a bad hack.
10908 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10909 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10910 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10912 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10914 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10916 # The linker will not automatically build a static lib if we build a DLL.
10917 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10918 enable_shared_with_static_runtimes=yes
10919 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10920 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10922 old_postinstall_cmds='chmod 644 $oldlib'
10923 postlink_cmds='lt_outputfile="@OUTPUT@"~
10924 lt_tool_outputfile="@TOOL_OUTPUT@"~
10925 case $lt_outputfile in
10928 lt_outputfile="$lt_outputfile.exe"
10929 lt_tool_outputfile="$lt_tool_outputfile.exe"
10932 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10933 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10934 $RM "$lt_outputfile.manifest";
10938 # Assume MSVC wrapper
10939 hardcode_libdir_flag_spec=' '
10940 allow_undefined_flag=unsupported
10941 # Tell ltmain to make .lib files, not .a files.
10943 # Tell ltmain to make .dll files, not .so files.
10945 # FIXME: Setting linknames here is a bad hack.
10946 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10947 # The linker will automatically build a .lib file if we build a DLL.
10948 old_archive_from_new_cmds='true'
10949 # FIXME: Should let the user specify the lib program.
10950 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10951 enable_shared_with_static_runtimes=yes
10956 darwin* | rhapsody*)
10959 archive_cmds_need_lc=no
10961 hardcode_automatic=yes
10962 hardcode_shlibpath_var=unsupported
10963 if test "$lt_cv_ld_force_load" = "yes"; then
10964 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10967 whole_archive_flag_spec=''
10969 link_all_deplibs=yes
10970 allow_undefined_flag="$_lt_dar_allow_undefined"
10971 case $cc_basename in
10972 ifort*) _lt_dar_can_shared=yes ;;
10973 *) _lt_dar_can_shared=$GCC ;;
10975 if test "$_lt_dar_can_shared" = "yes"; then
10976 output_verbose_link_cmd=func_echo_all
10977 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10978 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10979 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10980 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990 hardcode_libdir_flag_spec='-L$libdir'
10991 hardcode_shlibpath_var=no
10994 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10995 # support. Future versions do this automatically, but an explicit c++rt0.o
10996 # does not break anything, and helps significantly (at the cost of a little
10999 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11000 hardcode_libdir_flag_spec='-R$libdir'
11001 hardcode_direct=yes
11002 hardcode_shlibpath_var=no
11005 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11007 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11008 hardcode_direct=yes
11009 hardcode_minus_L=yes
11010 hardcode_shlibpath_var=no
11013 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11014 freebsd* | dragonfly*)
11015 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11016 hardcode_libdir_flag_spec='-R$libdir'
11017 hardcode_direct=yes
11018 hardcode_shlibpath_var=no
11022 if test "$GCC" = yes; then
11023 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11025 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11027 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11028 hardcode_libdir_separator=:
11029 hardcode_direct=yes
11031 # hardcode_minus_L: Not really in the search PATH,
11032 # but as the default location of the library.
11033 hardcode_minus_L=yes
11034 export_dynamic_flag_spec='${wl}-E'
11038 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11039 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11041 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11043 if test "$with_gnu_ld" = no; then
11044 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11045 hardcode_libdir_separator=:
11046 hardcode_direct=yes
11047 hardcode_direct_absolute=yes
11048 export_dynamic_flag_spec='${wl}-E'
11049 # hardcode_minus_L: Not really in the search PATH,
11050 # but as the default location of the library.
11051 hardcode_minus_L=yes
11056 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11059 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11062 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11065 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11071 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11074 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11078 # Older versions of the 11.00 compiler do not understand -b yet
11079 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11081 $as_echo_n "checking if $CC understands -b... " >&6; }
11082 if ${lt_cv_prog_compiler__b+:} false; then :
11083 $as_echo_n "(cached) " >&6
11085 lt_cv_prog_compiler__b=no
11086 save_LDFLAGS="$LDFLAGS"
11087 LDFLAGS="$LDFLAGS -b"
11088 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11089 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11090 # The linker can only warn and ignore the option if not recognized
11091 # So say no if there are warnings
11092 if test -s conftest.err; then
11093 # Append any errors to the config.log.
11094 cat conftest.err 1>&5
11095 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11097 if diff conftest.exp conftest.er2 >/dev/null; then
11098 lt_cv_prog_compiler__b=yes
11101 lt_cv_prog_compiler__b=yes
11105 LDFLAGS="$save_LDFLAGS"
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11109 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11111 if test x"$lt_cv_prog_compiler__b" = xyes; then
11112 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11114 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11120 if test "$with_gnu_ld" = no; then
11121 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11122 hardcode_libdir_separator=:
11127 hardcode_shlibpath_var=no
11130 hardcode_direct=yes
11131 hardcode_direct_absolute=yes
11132 export_dynamic_flag_spec='${wl}-E'
11134 # hardcode_minus_L: Not really in the search PATH,
11135 # but as the default location of the library.
11136 hardcode_minus_L=yes
11142 irix5* | irix6* | nonstopux*)
11143 if test "$GCC" = yes; then
11144 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11145 # Try to use the -exported_symbol ld option, if it does not
11146 # work, assume that -exports_file does not work either and
11147 # implicitly export all symbols.
11148 # This should be the same for all languages, so no per-tag cache variable.
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11150 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11151 if ${lt_cv_irix_exported_symbol+:} false; then :
11152 $as_echo_n "(cached) " >&6
11154 save_LDFLAGS="$LDFLAGS"
11155 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11158 int foo (void) { return 0; }
11160 if ac_fn_c_try_link "$LINENO"; then :
11161 lt_cv_irix_exported_symbol=yes
11163 lt_cv_irix_exported_symbol=no
11165 rm -f core conftest.err conftest.$ac_objext \
11166 conftest$ac_exeext conftest.$ac_ext
11167 LDFLAGS="$save_LDFLAGS"
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11170 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11171 if test "$lt_cv_irix_exported_symbol" = yes; then
11172 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11176 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11178 archive_cmds_need_lc='no'
11179 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11180 hardcode_libdir_separator=:
11182 link_all_deplibs=yes
11185 netbsd* | netbsdelf*-gnu)
11186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11189 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11191 hardcode_libdir_flag_spec='-R$libdir'
11192 hardcode_direct=yes
11193 hardcode_shlibpath_var=no
11197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11198 hardcode_direct=yes
11199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11200 hardcode_libdir_separator=:
11201 hardcode_shlibpath_var=no
11208 if test -f /usr/libexec/ld.so; then
11209 hardcode_direct=yes
11210 hardcode_shlibpath_var=no
11211 hardcode_direct_absolute=yes
11212 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11213 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11214 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11215 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11216 export_dynamic_flag_spec='${wl}-E'
11219 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11221 hardcode_libdir_flag_spec='-R$libdir'
11224 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11225 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11235 hardcode_libdir_flag_spec='-L$libdir'
11236 hardcode_minus_L=yes
11237 allow_undefined_flag=unsupported
11238 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11239 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11243 if test "$GCC" = yes; then
11244 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11245 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11247 allow_undefined_flag=' -expect_unresolved \*'
11248 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11250 archive_cmds_need_lc='no'
11251 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11252 hardcode_libdir_separator=:
11255 osf4* | osf5*) # as osf3* with the addition of -msym flag
11256 if test "$GCC" = yes; then
11257 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11258 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11259 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11261 allow_undefined_flag=' -expect_unresolved \*'
11262 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11263 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11264 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11266 # Both c and cxx compiler support -rpath directly
11267 hardcode_libdir_flag_spec='-rpath $libdir'
11269 archive_cmds_need_lc='no'
11270 hardcode_libdir_separator=:
11274 no_undefined_flag=' -z defs'
11275 if test "$GCC" = yes; then
11277 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11278 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11279 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11281 case `$CC -V 2>&1` in
11284 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11285 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11286 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11290 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11291 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11292 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11296 hardcode_libdir_flag_spec='-R$libdir'
11297 hardcode_shlibpath_var=no
11299 solaris2.[0-5] | solaris2.[0-5].*) ;;
11301 # The compiler driver will combine and reorder linker options,
11302 # but understands `-z linker_flag'. GCC discards it without `$wl',
11303 # but is careful enough not to reorder.
11304 # Supported since Solaris 2.6 (maybe 2.5.1?)
11305 if test "$GCC" = yes; then
11306 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11308 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11312 link_all_deplibs=yes
11316 if test "x$host_vendor" = xsequent; then
11317 # Use $CC to link under sequent, because it throws in some extra .o
11318 # files that make .init and .fini sections work.
11319 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11321 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11323 hardcode_libdir_flag_spec='-L$libdir'
11324 hardcode_direct=yes
11325 hardcode_minus_L=yes
11326 hardcode_shlibpath_var=no
11330 case $host_vendor in
11332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11333 hardcode_direct=yes # is this really true???
11336 ## LD is ld it makes a PLAMLIB
11337 ## CC just makes a GrossModule.
11338 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11339 reload_cmds='$CC -r -o $output$reload_objs'
11343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11347 runpath_var='LD_RUN_PATH'
11348 hardcode_shlibpath_var=no
11352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11353 hardcode_shlibpath_var=no
11354 export_dynamic_flag_spec='-Bexport'
11358 if test -d /usr/nec; then
11359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11360 hardcode_shlibpath_var=no
11361 runpath_var=LD_RUN_PATH
11362 hardcode_runpath_var=yes
11367 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11368 no_undefined_flag='${wl}-z,text'
11369 archive_cmds_need_lc=no
11370 hardcode_shlibpath_var=no
11371 runpath_var='LD_RUN_PATH'
11373 if test "$GCC" = yes; then
11374 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11375 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11377 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11378 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11382 sysv5* | sco3.2v5* | sco5v6*)
11383 # Note: We can NOT use -z defs as we might desire, because we do not
11384 # link with -lc, and that would cause any symbols used from libc to
11385 # always be unresolved, which means just about no library would
11386 # ever link correctly. If we're not using GNU ld we use -z text
11387 # though, which does catch some bad symbols but isn't as heavy-handed
11389 no_undefined_flag='${wl}-z,text'
11390 allow_undefined_flag='${wl}-z,nodefs'
11391 archive_cmds_need_lc=no
11392 hardcode_shlibpath_var=no
11393 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11394 hardcode_libdir_separator=':'
11395 link_all_deplibs=yes
11396 export_dynamic_flag_spec='${wl}-Bexport'
11397 runpath_var='LD_RUN_PATH'
11399 if test "$GCC" = yes; then
11400 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11401 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11403 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11404 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11410 hardcode_libdir_flag_spec='-L$libdir'
11411 hardcode_shlibpath_var=no
11419 if test x$host_vendor = xsni; then
11421 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11422 export_dynamic_flag_spec='${wl}-Blargedynsym'
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11429 $as_echo "$ld_shlibs" >&6; }
11430 test "$ld_shlibs" = no && can_build_shared=no
11432 with_gnu_ld=$with_gnu_ld
11449 # Do we need to explicitly link libc?
11451 case "x$archive_cmds_need_lc" in
11453 # Assume -lc should be added
11454 archive_cmds_need_lc=yes
11456 if test "$enable_shared" = yes && test "$GCC" = yes; then
11457 case $archive_cmds in
11459 # FIXME: we may have to deal with multi-command sequences.
11462 # Test whether the compiler implicitly links with -lc since on some
11463 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11464 # to ld, don't add -lc before -lgcc.
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11466 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11467 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11468 $as_echo_n "(cached) " >&6
11471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11474 (eval $ac_compile) 2>&5
11476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11477 test $ac_status = 0; } 2>conftest.err; then
11480 libobjs=conftest.$ac_objext
11482 wl=$lt_prog_compiler_wl
11483 pic_flag=$lt_prog_compiler_pic
11489 lt_save_allow_undefined_flag=$allow_undefined_flag
11490 allow_undefined_flag=
11491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11492 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11495 test $ac_status = 0; }
11497 lt_cv_archive_cmds_need_lc=no
11499 lt_cv_archive_cmds_need_lc=yes
11501 allow_undefined_flag=$lt_save_allow_undefined_flag
11503 cat conftest.err 1>&5
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11509 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11510 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11669 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11671 if test "$GCC" = yes; then
11673 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11674 *) lt_awk_arg="/^libraries:/" ;;
11677 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11678 *) lt_sed_strip_eq="s,=/,/,g" ;;
11680 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11681 case $lt_search_path_spec in
11683 # if the path contains ";" then we assume it to be the separator
11684 # otherwise default to the standard path separator (i.e. ":") - it is
11685 # assumed that no part of a normal pathname contains ";" but that should
11686 # okay in the real world where ";" in dirpaths is itself problematic.
11687 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11690 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11693 # Ok, now we have the path, separated by spaces, we can step through it
11694 # and add multilib dir if necessary.
11695 lt_tmp_lt_search_path_spec=
11696 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11697 for lt_sys_path in $lt_search_path_spec; do
11698 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11699 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11701 test -d "$lt_sys_path" && \
11702 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11705 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11706 BEGIN {RS=" "; FS="/|\n";} {
11709 for (lt_i = NF; lt_i > 0; lt_i--) {
11710 if ($lt_i != "" && $lt_i != ".") {
11711 if ($lt_i == "..") {
11714 if (lt_count == 0) {
11715 lt_foo="/" $lt_i lt_foo;
11722 if (lt_foo != "") { lt_freq[lt_foo]++; }
11723 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11725 # AWK program above erroneously prepends '/' to C:/dos/paths
11728 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11729 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11731 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11735 library_names_spec=
11736 libname_spec='lib$name'
11740 postuninstall_cmds=
11744 shlibpath_overrides_runpath=unknown
11746 dynamic_linker="$host_os ld.so"
11747 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11748 need_lib_prefix=unknown
11749 hardcode_into_libs=no
11751 # when you set need_version to no, make sure it does not cause -set_version
11752 # flags to be left without arguments
11753 need_version=unknown
11757 version_type=linux # correct to gnu/linux during the next big refactor
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11759 shlibpath_var=LIBPATH
11761 # AIX 3 has no versioning support, so we append a major version to the name.
11762 soname_spec='${libname}${release}${shared_ext}$major'
11766 version_type=linux # correct to gnu/linux during the next big refactor
11769 hardcode_into_libs=yes
11770 if test "$host_cpu" = ia64; then
11771 # AIX 5 supports IA64
11772 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11773 shlibpath_var=LD_LIBRARY_PATH
11775 # With GCC up to 2.95.x, collect2 would create an import file
11776 # for dependence libraries. The import file would start with
11777 # the line `#! .'. This would cause the generated library to
11778 # depend on `.', always an invalid library. This was fixed in
11779 # development snapshots of GCC prior to 3.0.
11781 aix4 | aix4.[01] | aix4.[01].*)
11782 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11784 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11787 can_build_shared=no
11791 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11792 # soname into executable. Probably we can add versioning support to
11793 # collect2, so additional links can be useful in future.
11794 if test "$aix_use_runtimelinking" = yes; then
11795 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11796 # instead of lib<name>.a to let people know that these are not
11797 # typical AIX shared libraries.
11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11800 # We preserve .a as extension for shared libraries through AIX4.2
11801 # and later when we are not doing run time linking.
11802 library_names_spec='${libname}${release}.a $libname.a'
11803 soname_spec='${libname}${release}${shared_ext}$major'
11805 shlibpath_var=LIBPATH
11812 # Since July 2007 AmigaOS4 officially supports .so libraries.
11813 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817 library_names_spec='$libname.ixlibrary $libname.a'
11818 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11819 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11825 library_names_spec='${libname}${shared_ext}'
11826 dynamic_linker="$host_os ld.so"
11827 shlibpath_var=LIBRARY_PATH
11831 version_type=linux # correct to gnu/linux during the next big refactor
11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11834 soname_spec='${libname}${release}${shared_ext}$major'
11835 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11836 shlibpath_var=LD_LIBRARY_PATH
11837 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11838 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11839 # the default ld.so.conf also contains /usr/contrib/lib and
11840 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11841 # libtool to hard-code these into programs
11844 cygwin* | mingw* | pw32* | cegcc*)
11845 version_type=windows
11850 case $GCC,$cc_basename in
11853 library_names_spec='$libname.dll.a'
11854 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11855 postinstall_cmds='base_file=`basename \${file}`~
11856 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11857 dldir=$destdir/`dirname \$dlpath`~
11858 test -d \$dldir || mkdir -p \$dldir~
11859 $install_prog $dir/$dlname \$dldir/$dlname~
11860 chmod a+x \$dldir/$dlname~
11861 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11862 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11864 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11865 dlpath=$dir/\$dldll~
11867 shlibpath_overrides_runpath=yes
11871 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11872 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11874 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11877 # MinGW DLLs use traditional 'lib' prefix
11878 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11881 # pw32 DLLs use 'pw' prefix rather than 'lib'
11882 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11885 dynamic_linker='Win32 ld.exe'
11890 libname_spec='$name'
11891 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11892 library_names_spec='${libname}.dll.lib'
11896 sys_lib_search_path_spec=
11899 for lt_path in $LIB
11902 # Let DOS variable expansion print the short 8.3 style file name.
11903 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11904 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11907 # Convert to MSYS style.
11908 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11911 # Convert to unix form, then to dos form, then back to unix form
11912 # but this time dos style (no spaces!) so that the unix form looks
11913 # like /cygdrive/c/PROGRA~1:/cygdr...
11914 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11915 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11916 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11919 sys_lib_search_path_spec="$LIB"
11920 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11921 # It is most probably a Windows format PATH.
11922 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11924 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11926 # FIXME: find the short name or the path components, as spaces are
11927 # common. (e.g. "Program Files" -> "PROGRA~1")
11931 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11932 postinstall_cmds='base_file=`basename \${file}`~
11933 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11934 dldir=$destdir/`dirname \$dlpath`~
11935 test -d \$dldir || mkdir -p \$dldir~
11936 $install_prog $dir/$dlname \$dldir/$dlname'
11937 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11938 dlpath=$dir/\$dldll~
11940 shlibpath_overrides_runpath=yes
11941 dynamic_linker='Win32 link.exe'
11945 # Assume MSVC wrapper
11946 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11947 dynamic_linker='Win32 ld.exe'
11950 # FIXME: first we should search . and the directory the executable is in
11954 darwin* | rhapsody*)
11955 dynamic_linker="$host_os dyld"
11956 version_type=darwin
11959 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11960 soname_spec='${libname}${release}${major}$shared_ext'
11961 shlibpath_overrides_runpath=yes
11962 shlibpath_var=DYLD_LIBRARY_PATH
11963 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11965 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11966 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11970 version_type=linux # correct to gnu/linux during the next big refactor
11973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11974 soname_spec='${libname}${release}${shared_ext}$major'
11975 shlibpath_var=LD_LIBRARY_PATH
11978 freebsd* | dragonfly*)
11979 # DragonFly does not have aout. When/if they implement a new
11980 # versioning mechanism, adjust this.
11981 if test -x /usr/bin/objformat; then
11982 objformat=`/usr/bin/objformat`
11985 freebsd[23].*) objformat=aout ;;
11986 *) objformat=elf ;;
11989 version_type=freebsd-$objformat
11990 case $version_type in
11992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11997 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12001 shlibpath_var=LD_LIBRARY_PATH
12004 shlibpath_overrides_runpath=yes
12006 freebsd3.[01]* | freebsdelf3.[01]*)
12007 shlibpath_overrides_runpath=yes
12008 hardcode_into_libs=yes
12010 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12011 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12012 shlibpath_overrides_runpath=no
12013 hardcode_into_libs=yes
12015 *) # from 4.6 on, and DragonFly
12016 shlibpath_overrides_runpath=yes
12017 hardcode_into_libs=yes
12023 version_type=linux # correct to gnu/linux during the next big refactor
12026 dynamic_linker="$host_os runtime_loader"
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12028 soname_spec='${libname}${release}${shared_ext}$major'
12029 shlibpath_var=LIBRARY_PATH
12030 shlibpath_overrides_runpath=yes
12031 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12032 hardcode_into_libs=yes
12035 hpux9* | hpux10* | hpux11*)
12036 # Give a soname corresponding to the major version so that dld.sl refuses to
12037 # link against other versions.
12044 hardcode_into_libs=yes
12045 dynamic_linker="$host_os dld.so"
12046 shlibpath_var=LD_LIBRARY_PATH
12047 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12049 soname_spec='${libname}${release}${shared_ext}$major'
12050 if test "X$HPUX_IA64_MODE" = X32; then
12051 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12053 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12059 hardcode_into_libs=yes
12060 dynamic_linker="$host_os dld.sl"
12061 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12062 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12064 soname_spec='${libname}${release}${shared_ext}$major'
12065 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12066 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12070 dynamic_linker="$host_os dld.sl"
12071 shlibpath_var=SHLIB_PATH
12072 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12074 soname_spec='${libname}${release}${shared_ext}$major'
12077 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12078 postinstall_cmds='chmod 555 $lib'
12079 # or fails outright, so override atomically:
12080 install_override_mode=555
12084 version_type=linux # correct to gnu/linux during the next big refactor
12087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12088 soname_spec='${libname}${release}${shared_ext}$major'
12089 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12090 shlibpath_var=LD_LIBRARY_PATH
12091 shlibpath_overrides_runpath=no
12092 hardcode_into_libs=yes
12095 irix5* | irix6* | nonstopux*)
12097 nonstopux*) version_type=nonstopux ;;
12099 if test "$lt_cv_prog_gnu_ld" = yes; then
12100 version_type=linux # correct to gnu/linux during the next big refactor
12107 soname_spec='${libname}${release}${shared_ext}$major'
12108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12110 irix5* | nonstopux*)
12111 libsuff= shlibsuff=
12114 case $LD in # libtool.m4 will add one of these switches to LD
12115 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12116 libsuff= shlibsuff= libmagic=32-bit;;
12117 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12118 libsuff=32 shlibsuff=N32 libmagic=N32;;
12119 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12120 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12121 *) libsuff= shlibsuff= libmagic=never-match;;
12125 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12126 shlibpath_overrides_runpath=no
12127 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12128 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12129 hardcode_into_libs=yes
12132 # No shared lib support for Linux oldld, aout, or coff.
12133 linux*oldld* | linux*aout* | linux*coff*)
12137 # This must be glibc/ELF.
12138 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12139 version_type=linux # correct to gnu/linux during the next big refactor
12142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12143 soname_spec='${libname}${release}${shared_ext}$major'
12144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12145 shlibpath_var=LD_LIBRARY_PATH
12146 shlibpath_overrides_runpath=no
12148 # Some binutils ld are patched to set DT_RUNPATH
12149 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12150 $as_echo_n "(cached) " >&6
12152 lt_cv_shlibpath_overrides_runpath=no
12153 save_LDFLAGS=$LDFLAGS
12154 save_libdir=$libdir
12155 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12156 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12168 if ac_fn_c_try_link "$LINENO"; then :
12169 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12170 lt_cv_shlibpath_overrides_runpath=yes
12173 rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12175 LDFLAGS=$save_LDFLAGS
12176 libdir=$save_libdir
12180 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12182 # This implies no fast_install, which is unacceptable.
12183 # Some rework will be needed to allow for fast_install
12184 # before this can be enabled.
12185 hardcode_into_libs=yes
12187 # Append ld.so.conf contents to the search path
12188 if test -f /etc/ld.so.conf; then
12189 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12190 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12193 # We used to test for /lib/ld.so.1 and disable shared libraries on
12194 # powerpc, because MkLinux only supported shared libraries with the
12195 # GNU dynamic linker. Since this was broken with cross compilers,
12196 # most powerpc-linux boxes support dynamic linking these days and
12197 # people can always --disable-shared, the test was removed, and we
12198 # assume the GNU/Linux dynamic linker is in use.
12199 dynamic_linker='GNU/Linux ld.so'
12206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12207 soname_spec='${libname}${release}${shared_ext}$major'
12208 shlibpath_var=LD_LIBRARY_PATH
12209 shlibpath_overrides_runpath=no
12210 hardcode_into_libs=yes
12211 dynamic_linker='NetBSD ld.elf_so'
12218 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12221 dynamic_linker='NetBSD (a.out) ld.so'
12223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12224 soname_spec='${libname}${release}${shared_ext}$major'
12225 dynamic_linker='NetBSD ld.elf_so'
12227 shlibpath_var=LD_LIBRARY_PATH
12228 shlibpath_overrides_runpath=yes
12229 hardcode_into_libs=yes
12233 version_type=linux # correct to gnu/linux during the next big refactor
12234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12235 shlibpath_var=LD_LIBRARY_PATH
12236 shlibpath_overrides_runpath=yes
12243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12244 soname_spec='${libname}${release}${shared_ext}$major'
12245 shlibpath_var=LD_LIBRARY_PATH
12246 shlibpath_overrides_runpath=no
12247 hardcode_into_libs=yes
12248 dynamic_linker='ldqnx.so'
12253 sys_lib_dlsearch_path_spec="/usr/lib"
12255 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12257 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12258 *) need_version=no ;;
12260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12262 shlibpath_var=LD_LIBRARY_PATH
12263 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12265 openbsd2.[89] | openbsd2.[89].*)
12266 shlibpath_overrides_runpath=no
12269 shlibpath_overrides_runpath=yes
12273 shlibpath_overrides_runpath=yes
12278 libname_spec='$name'
12281 library_names_spec='$libname${shared_ext} $libname.a'
12282 dynamic_linker='OS/2 ld.exe'
12283 shlibpath_var=LIBPATH
12286 osf3* | osf4* | osf5*)
12290 soname_spec='${libname}${release}${shared_ext}$major'
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12292 shlibpath_var=LD_LIBRARY_PATH
12293 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12294 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12302 version_type=linux # correct to gnu/linux during the next big refactor
12305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12306 soname_spec='${libname}${release}${shared_ext}$major'
12307 shlibpath_var=LD_LIBRARY_PATH
12308 shlibpath_overrides_runpath=yes
12309 hardcode_into_libs=yes
12310 # ldd complains unless libraries are executable
12311 postinstall_cmds='chmod +x $lib'
12316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12317 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12318 shlibpath_var=LD_LIBRARY_PATH
12319 shlibpath_overrides_runpath=yes
12320 if test "$with_gnu_ld" = yes; then
12327 version_type=linux # correct to gnu/linux during the next big refactor
12328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12329 soname_spec='${libname}${release}${shared_ext}$major'
12330 shlibpath_var=LD_LIBRARY_PATH
12331 case $host_vendor in
12333 shlibpath_overrides_runpath=no
12335 runpath_var=LD_RUN_PATH
12343 shlibpath_overrides_runpath=no
12344 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12350 if test -d /usr/nec ;then
12351 version_type=linux # correct to gnu/linux during the next big refactor
12352 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12353 soname_spec='$libname${shared_ext}.$major'
12354 shlibpath_var=LD_LIBRARY_PATH
12358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12359 version_type=freebsd-elf
12362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12363 soname_spec='${libname}${release}${shared_ext}$major'
12364 shlibpath_var=LD_LIBRARY_PATH
12365 shlibpath_overrides_runpath=yes
12366 hardcode_into_libs=yes
12367 if test "$with_gnu_ld" = yes; then
12368 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12370 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12373 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12377 sys_lib_dlsearch_path_spec='/usr/lib'
12381 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12382 version_type=linux # correct to gnu/linux during the next big refactor
12385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12386 shlibpath_var=LD_LIBRARY_PATH
12387 shlibpath_overrides_runpath=no
12388 hardcode_into_libs=yes
12392 version_type=linux # correct to gnu/linux during the next big refactor
12393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394 soname_spec='${libname}${release}${shared_ext}$major'
12395 shlibpath_var=LD_LIBRARY_PATH
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12403 $as_echo "$dynamic_linker" >&6; }
12404 test "$dynamic_linker" = no && can_build_shared=no
12406 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12407 if test "$GCC" = yes; then
12408 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12411 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12412 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12414 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12415 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12510 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12512 if test -n "$hardcode_libdir_flag_spec" ||
12513 test -n "$runpath_var" ||
12514 test "X$hardcode_automatic" = "Xyes" ; then
12516 # We can hardcode non-existent directories.
12517 if test "$hardcode_direct" != no &&
12518 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12519 # have to relink, otherwise we might link with an installed library
12520 # when we should be linking with a yet-to-be-installed one
12521 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12522 test "$hardcode_minus_L" != no; then
12523 # Linking always hardcodes the temporary library directory.
12524 hardcode_action=relink
12526 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12527 hardcode_action=immediate
12530 # We cannot hardcode anything, or else we can only hardcode existing
12532 hardcode_action=unsupported
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12535 $as_echo "$hardcode_action" >&6; }
12537 if test "$hardcode_action" = relink ||
12538 test "$inherit_rpath" = yes; then
12539 # Fast installation is not supported
12540 enable_fast_install=no
12541 elif test "$shlibpath_overrides_runpath" = yes ||
12542 test "$enable_shared" = no; then
12543 # Fast installation is not necessary
12544 enable_fast_install=needless
12552 if test "x$enable_dlopen" != xyes; then
12553 enable_dlopen=unknown
12554 enable_dlopen_self=unknown
12555 enable_dlopen_self_static=unknown
12562 lt_cv_dlopen="load_add_on"
12564 lt_cv_dlopen_self=yes
12567 mingw* | pw32* | cegcc*)
12568 lt_cv_dlopen="LoadLibrary"
12573 lt_cv_dlopen="dlopen"
12578 # if libdl is installed we need to link against it
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12580 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12581 if ${ac_cv_lib_dl_dlopen+:} false; then :
12582 $as_echo_n "(cached) " >&6
12584 ac_check_lib_save_LIBS=$LIBS
12586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h. */
12589 /* Override any GCC internal prototype to avoid an error.
12590 Use char because int might match the return type of a GCC
12591 builtin and then its argument prototype would still apply. */
12604 if ac_fn_c_try_link "$LINENO"; then :
12605 ac_cv_lib_dl_dlopen=yes
12607 ac_cv_lib_dl_dlopen=no
12609 rm -f core conftest.err conftest.$ac_objext \
12610 conftest$ac_exeext conftest.$ac_ext
12611 LIBS=$ac_check_lib_save_LIBS
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12614 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12615 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12619 lt_cv_dlopen="dyld"
12621 lt_cv_dlopen_self=yes
12628 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12629 if test "x$ac_cv_func_shl_load" = xyes; then :
12630 lt_cv_dlopen="shl_load"
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12633 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12634 if ${ac_cv_lib_dld_shl_load+:} false; then :
12635 $as_echo_n "(cached) " >&6
12637 ac_check_lib_save_LIBS=$LIBS
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12642 /* Override any GCC internal prototype to avoid an error.
12643 Use char because int might match the return type of a GCC
12644 builtin and then its argument prototype would still apply. */
12652 return shl_load ();
12657 if ac_fn_c_try_link "$LINENO"; then :
12658 ac_cv_lib_dld_shl_load=yes
12660 ac_cv_lib_dld_shl_load=no
12662 rm -f core conftest.err conftest.$ac_objext \
12663 conftest$ac_exeext conftest.$ac_ext
12664 LIBS=$ac_check_lib_save_LIBS
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12667 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12668 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12669 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12671 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12672 if test "x$ac_cv_func_dlopen" = xyes; then :
12673 lt_cv_dlopen="dlopen"
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12676 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12677 if ${ac_cv_lib_dl_dlopen+:} false; then :
12678 $as_echo_n "(cached) " >&6
12680 ac_check_lib_save_LIBS=$LIBS
12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h. */
12685 /* Override any GCC internal prototype to avoid an error.
12686 Use char because int might match the return type of a GCC
12687 builtin and then its argument prototype would still apply. */
12700 if ac_fn_c_try_link "$LINENO"; then :
12701 ac_cv_lib_dl_dlopen=yes
12703 ac_cv_lib_dl_dlopen=no
12705 rm -f core conftest.err conftest.$ac_objext \
12706 conftest$ac_exeext conftest.$ac_ext
12707 LIBS=$ac_check_lib_save_LIBS
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12710 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12711 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12715 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12716 if ${ac_cv_lib_svld_dlopen+:} false; then :
12717 $as_echo_n "(cached) " >&6
12719 ac_check_lib_save_LIBS=$LIBS
12720 LIBS="-lsvld $LIBS"
12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12724 /* Override any GCC internal prototype to avoid an error.
12725 Use char because int might match the return type of a GCC
12726 builtin and then its argument prototype would still apply. */
12739 if ac_fn_c_try_link "$LINENO"; then :
12740 ac_cv_lib_svld_dlopen=yes
12742 ac_cv_lib_svld_dlopen=no
12744 rm -f core conftest.err conftest.$ac_objext \
12745 conftest$ac_exeext conftest.$ac_ext
12746 LIBS=$ac_check_lib_save_LIBS
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12749 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12750 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12754 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12755 if ${ac_cv_lib_dld_dld_link+:} false; then :
12756 $as_echo_n "(cached) " >&6
12758 ac_check_lib_save_LIBS=$LIBS
12760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12761 /* end confdefs.h. */
12763 /* Override any GCC internal prototype to avoid an error.
12764 Use char because int might match the return type of a GCC
12765 builtin and then its argument prototype would still apply. */
12773 return dld_link ();
12778 if ac_fn_c_try_link "$LINENO"; then :
12779 ac_cv_lib_dld_dld_link=yes
12781 ac_cv_lib_dld_dld_link=no
12783 rm -f core conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12785 LIBS=$ac_check_lib_save_LIBS
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12788 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12789 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12790 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12811 if test "x$lt_cv_dlopen" != xno; then
12817 case $lt_cv_dlopen in
12819 save_CPPFLAGS="$CPPFLAGS"
12820 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12822 save_LDFLAGS="$LDFLAGS"
12823 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12826 LIBS="$lt_cv_dlopen_libs $LIBS"
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12829 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12830 if ${lt_cv_dlopen_self+:} false; then :
12831 $as_echo_n "(cached) " >&6
12833 if test "$cross_compiling" = yes; then :
12834 lt_cv_dlopen_self=cross
12836 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12837 lt_status=$lt_dlunknown
12838 cat > conftest.$ac_ext <<_LT_EOF
12839 #line $LINENO "configure"
12840 #include "confdefs.h"
12849 # define LT_DLGLOBAL RTLD_GLOBAL
12852 # define LT_DLGLOBAL DL_GLOBAL
12854 # define LT_DLGLOBAL 0
12858 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12859 find out it does not work in some platform. */
12860 #ifndef LT_DLLAZY_OR_NOW
12862 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12865 # define LT_DLLAZY_OR_NOW DL_LAZY
12868 # define LT_DLLAZY_OR_NOW RTLD_NOW
12871 # define LT_DLLAZY_OR_NOW DL_NOW
12873 # define LT_DLLAZY_OR_NOW 0
12880 /* When -fvisbility=hidden is used, assume the code has been annotated
12881 correspondingly for the symbols needed. */
12882 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12883 int fnord () __attribute__((visibility("default")));
12886 int fnord () { return 42; }
12889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12890 int status = $lt_dlunknown;
12894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12897 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12898 else puts (dlerror ());
12900 /* dlclose (self); */
12908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12909 (eval $ac_link) 2>&5
12911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12912 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12913 (./conftest; exit; ) >&5 2>/dev/null
12915 case x$lt_status in
12916 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12917 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12918 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12921 # compilation failed
12922 lt_cv_dlopen_self=no
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12930 $as_echo "$lt_cv_dlopen_self" >&6; }
12932 if test "x$lt_cv_dlopen_self" = xyes; then
12933 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12935 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12936 if ${lt_cv_dlopen_self_static+:} false; then :
12937 $as_echo_n "(cached) " >&6
12939 if test "$cross_compiling" = yes; then :
12940 lt_cv_dlopen_self_static=cross
12942 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12943 lt_status=$lt_dlunknown
12944 cat > conftest.$ac_ext <<_LT_EOF
12945 #line $LINENO "configure"
12946 #include "confdefs.h"
12955 # define LT_DLGLOBAL RTLD_GLOBAL
12958 # define LT_DLGLOBAL DL_GLOBAL
12960 # define LT_DLGLOBAL 0
12964 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12965 find out it does not work in some platform. */
12966 #ifndef LT_DLLAZY_OR_NOW
12968 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12971 # define LT_DLLAZY_OR_NOW DL_LAZY
12974 # define LT_DLLAZY_OR_NOW RTLD_NOW
12977 # define LT_DLLAZY_OR_NOW DL_NOW
12979 # define LT_DLLAZY_OR_NOW 0
12986 /* When -fvisbility=hidden is used, assume the code has been annotated
12987 correspondingly for the symbols needed. */
12988 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12989 int fnord () __attribute__((visibility("default")));
12992 int fnord () { return 42; }
12995 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12996 int status = $lt_dlunknown;
13000 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13003 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13004 else puts (dlerror ());
13006 /* dlclose (self); */
13014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13015 (eval $ac_link) 2>&5
13017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13018 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13019 (./conftest; exit; ) >&5 2>/dev/null
13021 case x$lt_status in
13022 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13023 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13024 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13027 # compilation failed
13028 lt_cv_dlopen_self_static=no
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13036 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13039 CPPFLAGS="$save_CPPFLAGS"
13040 LDFLAGS="$save_LDFLAGS"
13045 case $lt_cv_dlopen_self in
13046 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13047 *) enable_dlopen_self=unknown ;;
13050 case $lt_cv_dlopen_self_static in
13051 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13052 *) enable_dlopen_self_static=unknown ;;
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13075 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13076 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13077 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13078 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13080 $as_echo "yes" >&6; }
13082 # FIXME - insert some real tests, host_os isn't really good enough
13085 if test -n "$STRIP" ; then
13086 striplib="$STRIP -x"
13087 old_striplib="$STRIP -S"
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13089 $as_echo "yes" >&6; }
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092 $as_echo "no" >&6; }
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13113 # Report which library types will actually be built
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13115 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13117 $as_echo "$can_build_shared" >&6; }
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13120 $as_echo_n "checking whether to build shared libraries... " >&6; }
13121 test "$can_build_shared" = "no" && enable_shared=no
13123 # On AIX, shared libraries and static libraries use the same namespace, and
13124 # are all built from PIC.
13127 test "$enable_shared" = yes && enable_static=no
13128 if test -n "$RANLIB"; then
13129 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13130 postinstall_cmds='$RANLIB $lib'
13135 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13136 test "$enable_shared" = yes && enable_static=no
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13141 $as_echo "$enable_shared" >&6; }
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13144 $as_echo_n "checking whether to build static libraries... " >&6; }
13145 # Make sure either enable_shared or enable_static is yes.
13146 test "$enable_shared" = yes || enable_static=yes
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13148 $as_echo "$enable_static" >&6; }
13155 ac_cpp='$CPP $CPPFLAGS'
13156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13162 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13163 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13164 (test "X$CXX" != "Xg++"))) ; then
13166 ac_cpp='$CXXCPP $CPPFLAGS'
13167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13171 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13172 if test -z "$CXXCPP"; then
13173 if ${ac_cv_prog_CXXCPP+:} false; then :
13174 $as_echo_n "(cached) " >&6
13176 # Double quotes because CXXCPP needs to be expanded
13177 for CXXCPP in "$CXX -E" "/lib/cpp"
13179 ac_preproc_ok=false
13180 for ac_cxx_preproc_warn_flag in '' yes
13182 # Use a header file that comes with gcc, so configuring glibc
13183 # with a fresh cross-compiler works.
13184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13185 # <limits.h> exists even on freestanding compilers.
13186 # On the NeXT, cc -E runs the code through the compiler's parser,
13187 # not just through cpp. "Syntax error" is here to catch this case.
13188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189 /* end confdefs.h. */
13191 # include <limits.h>
13193 # include <assert.h>
13197 if ac_fn_cxx_try_cpp "$LINENO"; then :
13200 # Broken: fails on valid input.
13203 rm -f conftest.err conftest.i conftest.$ac_ext
13205 # OK, works on sane cases. Now check whether nonexistent headers
13206 # can be detected and how.
13207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h. */
13209 #include <ac_nonexistent.h>
13211 if ac_fn_cxx_try_cpp "$LINENO"; then :
13212 # Broken: success on invalid input.
13215 # Passes both tests.
13219 rm -f conftest.err conftest.i conftest.$ac_ext
13222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13223 rm -f conftest.i conftest.err conftest.$ac_ext
13224 if $ac_preproc_ok; then :
13229 ac_cv_prog_CXXCPP=$CXXCPP
13232 CXXCPP=$ac_cv_prog_CXXCPP
13234 ac_cv_prog_CXXCPP=$CXXCPP
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13237 $as_echo "$CXXCPP" >&6; }
13238 ac_preproc_ok=false
13239 for ac_cxx_preproc_warn_flag in '' yes
13241 # Use a header file that comes with gcc, so configuring glibc
13242 # with a fresh cross-compiler works.
13243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13244 # <limits.h> exists even on freestanding compilers.
13245 # On the NeXT, cc -E runs the code through the compiler's parser,
13246 # not just through cpp. "Syntax error" is here to catch this case.
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13250 # include <limits.h>
13252 # include <assert.h>
13256 if ac_fn_cxx_try_cpp "$LINENO"; then :
13259 # Broken: fails on valid input.
13262 rm -f conftest.err conftest.i conftest.$ac_ext
13264 # OK, works on sane cases. Now check whether nonexistent headers
13265 # can be detected and how.
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13268 #include <ac_nonexistent.h>
13270 if ac_fn_cxx_try_cpp "$LINENO"; then :
13271 # Broken: success on invalid input.
13274 # Passes both tests.
13278 rm -f conftest.err conftest.i conftest.$ac_ext
13281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13282 rm -f conftest.i conftest.err conftest.$ac_ext
13283 if $ac_preproc_ok; then :
13286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13288 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13289 See \`config.log' for more details" "$LINENO" 5; }
13293 ac_cpp='$CPP $CPPFLAGS'
13294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13299 _lt_caught_CXX_error=yes
13303 ac_cpp='$CXXCPP $CPPFLAGS'
13304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13308 archive_cmds_need_lc_CXX=no
13309 allow_undefined_flag_CXX=
13310 always_export_symbols_CXX=no
13311 archive_expsym_cmds_CXX=
13312 compiler_needs_object_CXX=no
13313 export_dynamic_flag_spec_CXX=
13314 hardcode_direct_CXX=no
13315 hardcode_direct_absolute_CXX=no
13316 hardcode_libdir_flag_spec_CXX=
13317 hardcode_libdir_separator_CXX=
13318 hardcode_minus_L_CXX=no
13319 hardcode_shlibpath_var_CXX=unsupported
13320 hardcode_automatic_CXX=no
13321 inherit_rpath_CXX=no
13323 module_expsym_cmds_CXX=
13324 link_all_deplibs_CXX=unknown
13325 old_archive_cmds_CXX=$old_archive_cmds
13326 reload_flag_CXX=$reload_flag
13327 reload_cmds_CXX=$reload_cmds
13328 no_undefined_flag_CXX=
13329 whole_archive_flag_spec_CXX=
13330 enable_shared_with_static_runtimes_CXX=no
13332 # Source file extension for C++ test sources.
13335 # Object file extension for compiled C++ test sources.
13339 # No sense in running all these tests if we already determined that
13340 # the CXX compiler isn't working. Some variables (like enable_shared)
13341 # are currently assumed to apply to all compilers on this platform,
13342 # and will be corrupted by setting them based on a non-working compiler.
13343 if test "$_lt_caught_CXX_error" != yes; then
13344 # Code to be used in simple compile tests
13345 lt_simple_compile_test_code="int some_variable = 0;"
13347 # Code to be used in simple link tests
13348 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13350 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13357 # If no C compiler was specified, use CC.
13360 # If no C compiler flags were specified, use CFLAGS.
13361 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13363 # Allow CC to be a program name with arguments.
13367 # save warnings/boilerplate of simple test code
13368 ac_outfile=conftest.$ac_objext
13369 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13370 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13371 _lt_compiler_boilerplate=`cat conftest.err`
13374 ac_outfile=conftest.$ac_objext
13375 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13376 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13377 _lt_linker_boilerplate=`cat conftest.err`
13381 # Allow CC to be a program name with arguments.
13383 lt_save_CFLAGS=$CFLAGS
13387 lt_save_with_gnu_ld=$with_gnu_ld
13388 lt_save_path_LD=$lt_cv_path_LD
13389 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13390 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13392 $as_unset lt_cv_prog_gnu_ld
13394 if test -n "${lt_cv_path_LDCXX+set}"; then
13395 lt_cv_path_LD=$lt_cv_path_LDCXX
13397 $as_unset lt_cv_path_LD
13399 test -z "${LDCXX+set}" || LD=$LDCXX
13404 for cc_temp in $compiler""; do
13406 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13407 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13412 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13415 if test -n "$compiler"; then
13416 # We don't want -fno-exception when compiling C++ code, so set the
13417 # no_builtin_flag separately
13418 if test "$GXX" = yes; then
13419 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13421 lt_prog_compiler_no_builtin_flag_CXX=
13424 if test "$GXX" = yes; then
13425 # Set up default GNU C++ configuration
13429 # Check whether --with-gnu-ld was given.
13430 if test "${with_gnu_ld+set}" = set; then :
13431 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13437 if test "$GCC" = yes; then
13438 # Check if gcc -print-prog-name=ld gives a path.
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13440 $as_echo_n "checking for ld used by $CC... " >&6; }
13443 # gcc leaves a trailing carriage return which upsets mingw
13444 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13446 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13449 # Accept absolute paths.
13451 re_direlt='/[^/][^/]*/\.\./'
13452 # Canonicalize the pathname of ld
13453 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13454 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13455 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13457 test -z "$LD" && LD="$ac_prog"
13460 # If it fails, then pretend we aren't using GCC.
13464 # If it is relative, then search for the first ld in PATH.
13465 with_gnu_ld=unknown
13468 elif test "$with_gnu_ld" = yes; then
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13470 $as_echo_n "checking for GNU ld... " >&6; }
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13473 $as_echo_n "checking for non-GNU ld... " >&6; }
13475 if ${lt_cv_path_LD+:} false; then :
13476 $as_echo_n "(cached) " >&6
13478 if test -z "$LD"; then
13479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13480 for ac_dir in $PATH; do
13482 test -z "$ac_dir" && ac_dir=.
13483 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13484 lt_cv_path_LD="$ac_dir/$ac_prog"
13485 # Check to see if the program is GNU ld. I'd rather use --version,
13486 # but apparently some variants of GNU ld only accept -v.
13487 # Break only if it was the GNU/non-GNU ld that we prefer.
13488 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13489 *GNU* | *'with BFD'*)
13490 test "$with_gnu_ld" != no && break
13493 test "$with_gnu_ld" != yes && break
13500 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13504 LD="$lt_cv_path_LD"
13505 if test -n "$LD"; then
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13507 $as_echo "$LD" >&6; }
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13510 $as_echo "no" >&6; }
13512 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13514 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13515 if ${lt_cv_prog_gnu_ld+:} false; then :
13516 $as_echo_n "(cached) " >&6
13518 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13519 case `$LD -v 2>&1 </dev/null` in
13520 *GNU* | *'with BFD'*)
13521 lt_cv_prog_gnu_ld=yes
13524 lt_cv_prog_gnu_ld=no
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13529 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13530 with_gnu_ld=$lt_cv_prog_gnu_ld
13538 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13539 # archiving commands below assume that GNU ld is being used.
13540 if test "$with_gnu_ld" = yes; then
13541 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13542 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13544 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13545 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13547 # If archive_cmds runs LD, not CC, wlarc should be empty
13548 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13549 # investigate it a little bit more. (MM)
13552 # ancient GNU ld didn't support --whole-archive et. al.
13553 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13554 $GREP 'no-whole-archive' > /dev/null; then
13555 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13557 whole_archive_flag_spec_CXX=
13563 # A generic and very simple default shared library creation
13564 # command for GNU C++ for the case where it uses the native
13565 # linker, instead of GNU ld. If possible, this setting should
13566 # overridden to take advantage of the native linker features on
13567 # the platform it is being used on.
13568 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13571 # Commands to make compiler produce verbose output that lists
13572 # what "hidden" libraries, object files and flags are used when
13573 # linking a shared library.
13574 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13582 # PORTME: fill in a description of your system's C++ link characteristics
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13584 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13588 # FIXME: insert proper C++ library support
13592 if test "$host_cpu" = ia64; then
13593 # On IA64, the linker does run time linking by default, so we don't
13594 # have to do anything special.
13595 aix_use_runtimelinking=no
13596 exp_sym_flag='-Bexport'
13599 aix_use_runtimelinking=no
13601 # Test if we are trying to use run time linking or normal
13602 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13603 # need to do runtime linking.
13604 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13605 for ld_flag in $LDFLAGS; do
13608 aix_use_runtimelinking=yes
13616 exp_sym_flag='-bexport'
13617 no_entry_flag='-bnoentry'
13620 # When large executables or shared objects are built, AIX ld can
13621 # have problems creating the table of contents. If linking a library
13622 # or program results in "error TOC overflow" add -mminimal-toc to
13623 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13624 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13626 archive_cmds_CXX=''
13627 hardcode_direct_CXX=yes
13628 hardcode_direct_absolute_CXX=yes
13629 hardcode_libdir_separator_CXX=':'
13630 link_all_deplibs_CXX=yes
13631 file_list_spec_CXX='${wl}-f,'
13633 if test "$GXX" = yes; then
13634 case $host_os in aix4.[012]|aix4.[012].*)
13635 # We only want to do this on AIX 4.2 and lower, the check
13636 # below for broken collect2 doesn't work under 4.3+
13637 collect2name=`${CC} -print-prog-name=collect2`
13638 if test -f "$collect2name" &&
13639 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13641 # We have reworked collect2
13644 # We have old collect2
13645 hardcode_direct_CXX=unsupported
13646 # It fails to find uninstalled libraries when the uninstalled
13647 # path is not listed in the libpath. Setting hardcode_minus_L
13648 # to unsupported forces relinking
13649 hardcode_minus_L_CXX=yes
13650 hardcode_libdir_flag_spec_CXX='-L$libdir'
13651 hardcode_libdir_separator_CXX=
13654 shared_flag='-shared'
13655 if test "$aix_use_runtimelinking" = yes; then
13656 shared_flag="$shared_flag "'${wl}-G'
13660 if test "$host_cpu" = ia64; then
13661 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13662 # chokes on -Wl,-G. The following line is correct:
13665 if test "$aix_use_runtimelinking" = yes; then
13666 shared_flag='${wl}-G'
13668 shared_flag='${wl}-bM:SRE'
13673 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13674 # It seems that -bexpall does not export symbols beginning with
13675 # underscore (_), so it is better to generate a list of symbols to
13677 always_export_symbols_CXX=yes
13678 if test "$aix_use_runtimelinking" = yes; then
13679 # Warning - without using the other runtime loading flags (-brtl),
13680 # -berok will link without error, but may produce a broken library.
13681 allow_undefined_flag_CXX='-berok'
13682 # Determine the default libpath from the value encoded in an empty
13684 if test "${lt_cv_aix_libpath+set}" = set; then
13685 aix_libpath=$lt_cv_aix_libpath
13687 if ${lt_cv_aix_libpath__CXX+:} false; then :
13688 $as_echo_n "(cached) " >&6
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13701 if ac_fn_cxx_try_link "$LINENO"; then :
13703 lt_aix_libpath_sed='
13704 /Import File Strings/,/^$/ {
13706 s/^0 *\([^ ]*\) *$/\1/
13710 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13711 # Check for a 64-bit object if we didn't find anything.
13712 if test -z "$lt_cv_aix_libpath__CXX"; then
13713 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13716 rm -f core conftest.err conftest.$ac_objext \
13717 conftest$ac_exeext conftest.$ac_ext
13718 if test -z "$lt_cv_aix_libpath__CXX"; then
13719 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13724 aix_libpath=$lt_cv_aix_libpath__CXX
13727 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13729 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13731 if test "$host_cpu" = ia64; then
13732 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13733 allow_undefined_flag_CXX="-z nodefs"
13734 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13736 # Determine the default libpath from the value encoded in an
13737 # empty executable.
13738 if test "${lt_cv_aix_libpath+set}" = set; then
13739 aix_libpath=$lt_cv_aix_libpath
13741 if ${lt_cv_aix_libpath__CXX+:} false; then :
13742 $as_echo_n "(cached) " >&6
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13755 if ac_fn_cxx_try_link "$LINENO"; then :
13757 lt_aix_libpath_sed='
13758 /Import File Strings/,/^$/ {
13760 s/^0 *\([^ ]*\) *$/\1/
13764 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13765 # Check for a 64-bit object if we didn't find anything.
13766 if test -z "$lt_cv_aix_libpath__CXX"; then
13767 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13770 rm -f core conftest.err conftest.$ac_objext \
13771 conftest$ac_exeext conftest.$ac_ext
13772 if test -z "$lt_cv_aix_libpath__CXX"; then
13773 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13778 aix_libpath=$lt_cv_aix_libpath__CXX
13781 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13782 # Warning - without using the other run time loading flags,
13783 # -berok will link without error, but may produce a broken library.
13784 no_undefined_flag_CXX=' ${wl}-bernotok'
13785 allow_undefined_flag_CXX=' ${wl}-berok'
13786 if test "$with_gnu_ld" = yes; then
13787 # We only use this code for GNU lds that support --whole-archive.
13788 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13790 # Exported symbols can be pulled into shared objects from archives
13791 whole_archive_flag_spec_CXX='$convenience'
13793 archive_cmds_need_lc_CXX=yes
13794 # This is similar to how AIX traditionally builds its shared
13796 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13802 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13803 allow_undefined_flag_CXX=unsupported
13804 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13805 # support --undefined. This deserves some investigation. FIXME
13806 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13813 case $cc_basename in
13815 # FIXME: insert proper C++ library support
13821 cygwin* | mingw* | pw32* | cegcc*)
13822 case $GXX,$cc_basename in
13825 # hardcode_libdir_flag_spec is actually meaningless, as there is
13826 # no search path for DLLs.
13827 hardcode_libdir_flag_spec_CXX=' '
13828 allow_undefined_flag_CXX=unsupported
13829 always_export_symbols_CXX=yes
13830 file_list_spec_CXX='@'
13831 # Tell ltmain to make .lib files, not .a files.
13833 # Tell ltmain to make .dll files, not .so files.
13835 # FIXME: Setting linknames here is a bad hack.
13836 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13837 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13838 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13840 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13842 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13844 # The linker will not automatically build a static lib if we build a DLL.
13845 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13846 enable_shared_with_static_runtimes_CXX=yes
13848 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13849 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13850 lt_tool_outputfile="@TOOL_OUTPUT@"~
13851 case $lt_outputfile in
13854 lt_outputfile="$lt_outputfile.exe"
13855 lt_tool_outputfile="$lt_tool_outputfile.exe"
13858 func_to_tool_file "$lt_outputfile"~
13859 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13860 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13861 $RM "$lt_outputfile.manifest";
13866 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13867 # as there is no search path for DLLs.
13868 hardcode_libdir_flag_spec_CXX='-L$libdir'
13869 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13870 allow_undefined_flag_CXX=unsupported
13871 always_export_symbols_CXX=no
13872 enable_shared_with_static_runtimes_CXX=yes
13874 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13875 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13876 # If the export-symbols file already is a .def file (1st line
13877 # is EXPORTS), use it as is; otherwise, prepend...
13878 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13879 cp $export_symbols $output_objdir/$soname.def;
13881 echo EXPORTS > $output_objdir/$soname.def;
13882 cat $export_symbols >> $output_objdir/$soname.def;
13884 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13891 darwin* | rhapsody*)
13894 archive_cmds_need_lc_CXX=no
13895 hardcode_direct_CXX=no
13896 hardcode_automatic_CXX=yes
13897 hardcode_shlibpath_var_CXX=unsupported
13898 if test "$lt_cv_ld_force_load" = "yes"; then
13899 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13902 whole_archive_flag_spec_CXX=''
13904 link_all_deplibs_CXX=yes
13905 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13906 case $cc_basename in
13907 ifort*) _lt_dar_can_shared=yes ;;
13908 *) _lt_dar_can_shared=$GCC ;;
13910 if test "$_lt_dar_can_shared" = "yes"; then
13911 output_verbose_link_cmd=func_echo_all
13912 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13913 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13914 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13915 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13916 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13917 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13918 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13928 case $cc_basename in
13930 # FIXME: insert proper C++ library support
13934 # Green Hills C++ Compiler
13935 # FIXME: insert proper C++ library support
13939 # FIXME: insert proper C++ library support
13946 # C++ shared libraries reported to be fairly broken before
13952 archive_cmds_need_lc_CXX=no
13955 freebsd* | dragonfly*)
13956 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13962 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13963 link_all_deplibs_CXX=yes
13967 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13968 hardcode_libdir_separator_CXX=:
13969 export_dynamic_flag_spec_CXX='${wl}-E'
13970 hardcode_direct_CXX=yes
13971 hardcode_minus_L_CXX=yes # Not in the search PATH,
13972 # but as the default
13973 # location of the library.
13975 case $cc_basename in
13977 # FIXME: insert proper C++ library support
13981 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13982 # Commands to make compiler produce verbose output that lists
13983 # what "hidden" libraries, object files and flags are used when
13984 # linking a shared library.
13986 # There doesn't appear to be a way to prevent this compiler from
13987 # explicitly linking system object files so we need to strip them
13988 # from the output so that they don't get included in the library
13990 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13993 if test "$GXX" = yes; then
13994 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13996 # FIXME: insert proper C++ library support
14004 if test $with_gnu_ld = no; then
14005 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14006 hardcode_libdir_separator_CXX=:
14012 export_dynamic_flag_spec_CXX='${wl}-E'
14018 hardcode_direct_CXX=no
14019 hardcode_shlibpath_var_CXX=no
14022 hardcode_direct_CXX=yes
14023 hardcode_direct_absolute_CXX=yes
14024 hardcode_minus_L_CXX=yes # Not in the search PATH,
14025 # but as the default
14026 # location of the library.
14030 case $cc_basename in
14032 # FIXME: insert proper C++ library support
14038 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14041 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14044 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14047 # Commands to make compiler produce verbose output that lists
14048 # what "hidden" libraries, object files and flags are used when
14049 # linking a shared library.
14051 # There doesn't appear to be a way to prevent this compiler from
14052 # explicitly linking system object files so we need to strip them
14053 # from the output so that they don't get included in the library
14055 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14058 if test "$GXX" = yes; then
14059 if test $with_gnu_ld = no; then
14062 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14065 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14068 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14073 # FIXME: insert proper C++ library support
14081 hardcode_direct_CXX=no
14082 hardcode_shlibpath_var_CXX=no
14083 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14084 export_dynamic_flag_spec_CXX='${wl}-E'
14085 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14086 # Instead, shared libraries are loaded at an image base (0x10000000 by
14087 # default) and relocated if they conflict, which is a slow very memory
14088 # consuming and fragmenting process. To avoid this, we pick a random,
14089 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14090 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14091 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14092 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14095 case $cc_basename in
14098 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14100 # Archives containing C++ object files must be created using
14101 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14102 # necessary to make sure instantiated templates are included
14104 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14107 if test "$GXX" = yes; then
14108 if test "$with_gnu_ld" = no; then
14109 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14111 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14114 link_all_deplibs_CXX=yes
14117 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14118 hardcode_libdir_separator_CXX=:
14119 inherit_rpath_CXX=yes
14122 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14123 case $cc_basename in
14125 # Kuck and Associates, Inc. (KAI) C++ Compiler
14127 # KCC will only create a shared library if the output file
14128 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14129 # to its proper name (with version) after linking.
14130 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14131 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14132 # Commands to make compiler produce verbose output that lists
14133 # what "hidden" libraries, object files and flags are used when
14134 # linking a shared library.
14136 # There doesn't appear to be a way to prevent this compiler from
14137 # explicitly linking system object files so we need to strip them
14138 # from the output so that they don't get included in the library
14140 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14142 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14143 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14145 # Archives containing C++ object files must be created using
14146 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14147 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14152 # version 8.0 and above of icpc choke on multiply defined symbols
14153 # if we add $predep_objects and $postdep_objects, however 7.1 and
14154 # earlier do not add the objects themselves.
14155 case `$CC -V 2>&1` in
14157 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14158 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14160 *) # Version 8.0 or newer
14163 ia64*) tmp_idyn=' -i_dynamic';;
14165 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14166 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14169 archive_cmds_need_lc_CXX=no
14170 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14171 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14172 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14175 # Portland Group C++ compiler
14177 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14178 prelink_cmds_CXX='tpldir=Template.dir~
14180 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14181 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14182 old_archive_cmds_CXX='tpldir=Template.dir~
14184 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14185 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14187 archive_cmds_CXX='tpldir=Template.dir~
14189 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14190 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14191 archive_expsym_cmds_CXX='tpldir=Template.dir~
14193 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14194 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14196 *) # Version 6 and above use weak symbols
14197 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14198 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14202 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14203 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14204 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14208 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14209 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14211 runpath_var=LD_RUN_PATH
14212 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14213 hardcode_libdir_separator_CXX=:
14215 # Commands to make compiler produce verbose output that lists
14216 # what "hidden" libraries, object files and flags are used when
14217 # linking a shared library.
14219 # There doesn't appear to be a way to prevent this compiler from
14220 # explicitly linking system object files so we need to strip them
14221 # from the output so that they don't get included in the library
14223 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14225 xl* | mpixl* | bgxl*)
14226 # IBM XL 8.0 on PPC, with GNU ld
14227 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14228 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14229 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14230 if test "x$supports_anon_versioning" = xyes; then
14231 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14233 echo "local: *; };" >> $output_objdir/$libname.ver~
14234 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14238 case `$CC -V 2>&1 | sed 5q` in
14241 no_undefined_flag_CXX=' -zdefs'
14242 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14243 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14244 hardcode_libdir_flag_spec_CXX='-R$libdir'
14245 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14246 compiler_needs_object_CXX=yes
14248 # Not sure whether something based on
14249 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14251 output_verbose_link_cmd='func_echo_all'
14253 # Archives containing C++ object files must be created using
14254 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14255 # necessary to make sure instantiated templates are included
14257 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14265 # FIXME: insert proper C++ library support
14270 # FIXME: insert proper C++ library support
14275 case $cc_basename in
14277 # FIXME: insert proper C++ library support
14281 # FIXME: insert proper C++ library support
14288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14289 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14291 hardcode_libdir_flag_spec_CXX='-R$libdir'
14292 hardcode_direct_CXX=yes
14293 hardcode_shlibpath_var_CXX=no
14295 # Workaround some broken pre-1.5 toolchains
14296 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14304 # C++ shared libraries are fairly broken
14309 if test -f /usr/libexec/ld.so; then
14310 hardcode_direct_CXX=yes
14311 hardcode_shlibpath_var_CXX=no
14312 hardcode_direct_absolute_CXX=yes
14313 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14314 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14315 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14316 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14317 export_dynamic_flag_spec_CXX='${wl}-E'
14318 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14320 output_verbose_link_cmd=func_echo_all
14326 osf3* | osf4* | osf5*)
14327 case $cc_basename in
14329 # Kuck and Associates, Inc. (KAI) C++ Compiler
14331 # KCC will only create a shared library if the output file
14332 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14333 # to its proper name (with version) after linking.
14334 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14336 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14337 hardcode_libdir_separator_CXX=:
14339 # Archives containing C++ object files must be created using
14340 # the KAI C++ compiler.
14342 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14343 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14347 # Rational C++ 2.4.1
14348 # FIXME: insert proper C++ library support
14354 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14355 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14356 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14359 allow_undefined_flag_CXX=' -expect_unresolved \*'
14360 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14361 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14362 echo "-hidden">> $lib.exp~
14363 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14365 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14369 hardcode_libdir_separator_CXX=:
14371 # Commands to make compiler produce verbose output that lists
14372 # what "hidden" libraries, object files and flags are used when
14373 # linking a shared library.
14375 # There doesn't appear to be a way to prevent this compiler from
14376 # explicitly linking system object files so we need to strip them
14377 # from the output so that they don't get included in the library
14379 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14382 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14383 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14386 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14389 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14393 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14394 hardcode_libdir_separator_CXX=:
14396 # Commands to make compiler produce verbose output that lists
14397 # what "hidden" libraries, object files and flags are used when
14398 # linking a shared library.
14399 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14402 # FIXME: insert proper C++ library support
14410 # FIXME: insert proper C++ library support
14415 case $cc_basename in
14418 # FIXME: insert proper C++ library support
14423 # FIXME: insert proper C++ library support
14427 # FIXME: insert proper C++ library support
14434 case $cc_basename in
14436 # Sun C++ 4.2, 5.x and Centerline C++
14437 archive_cmds_need_lc_CXX=yes
14438 no_undefined_flag_CXX=' -zdefs'
14439 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14440 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14441 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14443 hardcode_libdir_flag_spec_CXX='-R$libdir'
14444 hardcode_shlibpath_var_CXX=no
14446 solaris2.[0-5] | solaris2.[0-5].*) ;;
14448 # The compiler driver will combine and reorder linker options,
14449 # but understands `-z linker_flag'.
14450 # Supported since Solaris 2.6 (maybe 2.5.1?)
14451 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14454 link_all_deplibs_CXX=yes
14456 output_verbose_link_cmd='func_echo_all'
14458 # Archives containing C++ object files must be created using
14459 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14460 # necessary to make sure instantiated templates are included
14462 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14465 # Green Hills C++ Compiler
14466 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14468 # The C++ compiler must be used to create the archive.
14469 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14472 # GNU C++ compiler with Solaris linker
14473 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14474 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14475 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14476 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14477 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14478 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14480 # Commands to make compiler produce verbose output that lists
14481 # what "hidden" libraries, object files and flags are used when
14482 # linking a shared library.
14483 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14485 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14487 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14488 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14489 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14491 # Commands to make compiler produce verbose output that lists
14492 # what "hidden" libraries, object files and flags are used when
14493 # linking a shared library.
14494 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14497 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14499 solaris2.[0-5] | solaris2.[0-5].*) ;;
14501 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14509 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14510 no_undefined_flag_CXX='${wl}-z,text'
14511 archive_cmds_need_lc_CXX=no
14512 hardcode_shlibpath_var_CXX=no
14513 runpath_var='LD_RUN_PATH'
14515 case $cc_basename in
14517 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14518 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14521 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14522 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14527 sysv5* | sco3.2v5* | sco5v6*)
14528 # Note: We can NOT use -z defs as we might desire, because we do not
14529 # link with -lc, and that would cause any symbols used from libc to
14530 # always be unresolved, which means just about no library would
14531 # ever link correctly. If we're not using GNU ld we use -z text
14532 # though, which does catch some bad symbols but isn't as heavy-handed
14534 no_undefined_flag_CXX='${wl}-z,text'
14535 allow_undefined_flag_CXX='${wl}-z,nodefs'
14536 archive_cmds_need_lc_CXX=no
14537 hardcode_shlibpath_var_CXX=no
14538 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14539 hardcode_libdir_separator_CXX=':'
14540 link_all_deplibs_CXX=yes
14541 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14542 runpath_var='LD_RUN_PATH'
14544 case $cc_basename in
14546 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14547 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14548 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14549 '"$old_archive_cmds_CXX"
14550 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14551 '"$reload_cmds_CXX"
14554 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14555 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14561 case $cc_basename in
14563 # NonStop-UX NCC 3.20
14564 # FIXME: insert proper C++ library support
14568 # FIXME: insert proper C++ library support
14575 # FIXME: insert proper C++ library support
14580 # FIXME: insert proper C++ library support
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14586 $as_echo "$ld_shlibs_CXX" >&6; }
14587 test "$ld_shlibs_CXX" = no && can_build_shared=no
14593 ## There is no encapsulation within the following macros, do not change
14594 ## the running order or otherwise move them around unless you know exactly
14595 ## what you are doing...
14596 # Dependencies to place before and after the object being linked:
14597 predep_objects_CXX=
14598 postdep_objects_CXX=
14601 compiler_lib_search_path_CXX=
14603 cat > conftest.$ac_ext <<_LT_EOF
14607 Foo (void) { a = 0; }
14614 _lt_libdeps_save_CFLAGS=$CFLAGS
14615 case "$CC $CFLAGS " in #(
14616 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14617 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14618 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14622 (eval $ac_compile) 2>&5
14624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14625 test $ac_status = 0; }; then
14626 # Parse the compiler output and extract the necessary
14627 # objects, libraries and library flags.
14629 # Sentinel used to keep track of whether or not we are before
14630 # the conftest object file.
14631 pre_test_object_deps_done=no
14633 for p in `eval "$output_verbose_link_cmd"`; do
14634 case ${prev}${p} in
14637 # Some compilers place space between "-{L,R}" and the path.
14638 # Remove the space.
14639 if test $p = "-L" ||
14640 test $p = "-R"; then
14645 # Expand the sysroot to ease extracting the directories later.
14646 if test -z "$prev"; then
14648 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14649 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14650 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14654 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14656 if test "$pre_test_object_deps_done" = no; then
14659 # Internal compiler library paths should come after those
14660 # provided the user. The postdeps already come after the
14661 # user supplied libs so there is no need to process them.
14662 if test -z "$compiler_lib_search_path_CXX"; then
14663 compiler_lib_search_path_CXX="${prev}${p}"
14665 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14668 # The "-l" case would never come before the object being
14669 # linked, so don't bother handling this case.
14672 if test -z "$postdeps_CXX"; then
14673 postdeps_CXX="${prev}${p}"
14675 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14681 *.lto.$objext) ;; # Ignore GCC LTO objects
14683 # This assumes that the test object file only shows up
14684 # once in the compiler output.
14685 if test "$p" = "conftest.$objext"; then
14686 pre_test_object_deps_done=yes
14690 if test "$pre_test_object_deps_done" = no; then
14691 if test -z "$predep_objects_CXX"; then
14692 predep_objects_CXX="$p"
14694 predep_objects_CXX="$predep_objects_CXX $p"
14697 if test -z "$postdep_objects_CXX"; then
14698 postdep_objects_CXX="$p"
14700 postdep_objects_CXX="$postdep_objects_CXX $p"
14705 *) ;; # Ignore the rest.
14713 echo "libtool.m4: error: problem compiling CXX test program"
14716 $RM -f confest.$objext
14717 CFLAGS=$_lt_libdeps_save_CFLAGS
14719 # PORTME: override above test on systems where it is broken
14722 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14723 # hack all around it, let's just trust "g++" to DTRT.
14724 predep_objects_CXX=
14725 postdep_objects_CXX=
14730 case `$CC -V 2>&1 | sed 5q` in
14734 # The more standards-conforming stlport4 library is
14735 # incompatible with the Cstd library. Avoid specifying
14736 # it if it's in CXXFLAGS. Ignore libCrun as
14737 # -library=stlport4 depends on it.
14738 case " $CXX $CXXFLAGS " in
14739 *" -library=stlport4 "*)
14740 solaris_use_stlport4=yes
14744 if test "$solaris_use_stlport4" != yes; then
14745 postdeps_CXX='-library=Cstd -library=Crun'
14752 case $cc_basename in
14754 # The more standards-conforming stlport4 library is
14755 # incompatible with the Cstd library. Avoid specifying
14756 # it if it's in CXXFLAGS. Ignore libCrun as
14757 # -library=stlport4 depends on it.
14758 case " $CXX $CXXFLAGS " in
14759 *" -library=stlport4 "*)
14760 solaris_use_stlport4=yes
14764 # Adding this requires a known-good setup of shared libraries for
14765 # Sun compiler versions before 5.6, else PIC objects from an old
14766 # archive will be linked into the output, leading to subtle bugs.
14767 if test "$solaris_use_stlport4" != yes; then
14768 postdeps_CXX='-library=Cstd -library=Crun'
14776 case " $postdeps_CXX " in
14777 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14779 compiler_lib_search_dirs_CXX=
14780 if test -n "${compiler_lib_search_path_CXX}"; then
14781 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14814 lt_prog_compiler_wl_CXX=
14815 lt_prog_compiler_pic_CXX=
14816 lt_prog_compiler_static_CXX=
14819 # C++ specific cases for pic, static, wl, etc.
14820 if test "$GXX" = yes; then
14821 lt_prog_compiler_wl_CXX='-Wl,'
14822 lt_prog_compiler_static_CXX='-static'
14826 # All AIX code is PIC.
14827 if test "$host_cpu" = ia64; then
14828 # AIX 5 now supports IA64 processor
14829 lt_prog_compiler_static_CXX='-Bstatic'
14836 # see comment about AmigaOS4 .so support
14837 lt_prog_compiler_pic_CXX='-fPIC'
14840 # FIXME: we need at least 68020 code to build shared libraries, but
14841 # adding the `-m68020' flag to GCC prevents building anything better,
14843 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14848 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14849 # PIC is the default for these OSes.
14851 mingw* | cygwin* | os2* | pw32* | cegcc*)
14852 # This hack is so that the source file can tell whether it is being
14853 # built for inclusion in a dll (and should export symbols for example).
14854 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14855 # (--disable-auto-import) libraries
14856 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14858 darwin* | rhapsody*)
14859 # PIC is the default on this platform
14860 # Common symbols not allowed in MH_DYLIB files
14861 lt_prog_compiler_pic_CXX='-fno-common'
14864 # DJGPP does not support shared libraries at all
14865 lt_prog_compiler_pic_CXX=
14868 # PIC is the default for Haiku.
14869 # The "-static" flag exists, but is broken.
14870 lt_prog_compiler_static_CXX=
14873 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14874 # Instead, we relocate shared libraries at runtime.
14877 if test -d /usr/nec; then
14878 lt_prog_compiler_pic_CXX=-Kconform_pic
14882 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14883 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14884 # sets the default TLS model and affects inlining.
14889 lt_prog_compiler_pic_CXX='-fPIC'
14894 # QNX uses GNU C++, but need to define -shared option too, otherwise
14895 # it will coredump.
14896 lt_prog_compiler_pic_CXX='-fPIC -shared'
14899 lt_prog_compiler_pic_CXX='-fPIC'
14905 # All AIX code is PIC.
14906 if test "$host_cpu" = ia64; then
14907 # AIX 5 now supports IA64 processor
14908 lt_prog_compiler_static_CXX='-Bstatic'
14910 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14914 case $cc_basename in
14916 # Green Hills C++ Compiler
14917 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14921 mingw* | cygwin* | os2* | pw32* | cegcc*)
14922 # This hack is so that the source file can tell whether it is being
14923 # built for inclusion in a dll (and should export symbols for example).
14924 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14927 case $cc_basename in
14929 lt_prog_compiler_pic_CXX='-KPIC'
14932 # Green Hills C++ Compiler
14933 lt_prog_compiler_pic_CXX='-pic'
14939 freebsd* | dragonfly*)
14940 # FreeBSD uses GNU C++
14942 hpux9* | hpux10* | hpux11*)
14943 case $cc_basename in
14945 lt_prog_compiler_wl_CXX='-Wl,'
14946 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14947 if test "$host_cpu" != ia64; then
14948 lt_prog_compiler_pic_CXX='+Z'
14952 lt_prog_compiler_wl_CXX='-Wl,'
14953 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14959 lt_prog_compiler_pic_CXX='+Z'
14968 # This is c89, which is MS Visual C++ (no shared libs)
14969 # Anyone wants to do a port?
14971 irix5* | irix6* | nonstopux*)
14972 case $cc_basename in
14974 lt_prog_compiler_wl_CXX='-Wl,'
14975 lt_prog_compiler_static_CXX='-non_shared'
14976 # CC pic flag -KPIC is the default.
14982 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14983 case $cc_basename in
14986 lt_prog_compiler_wl_CXX='--backend -Wl,'
14987 lt_prog_compiler_pic_CXX='-fPIC'
14990 # old Intel C++ for x86_64 which still supported -KPIC.
14991 lt_prog_compiler_wl_CXX='-Wl,'
14992 lt_prog_compiler_pic_CXX='-KPIC'
14993 lt_prog_compiler_static_CXX='-static'
14996 # Intel C++, used to be incompatible with GCC.
14997 # ICC 10 doesn't accept -KPIC any more.
14998 lt_prog_compiler_wl_CXX='-Wl,'
14999 lt_prog_compiler_pic_CXX='-fPIC'
15000 lt_prog_compiler_static_CXX='-static'
15003 # Portland Group C++ compiler
15004 lt_prog_compiler_wl_CXX='-Wl,'
15005 lt_prog_compiler_pic_CXX='-fpic'
15006 lt_prog_compiler_static_CXX='-Bstatic'
15010 # Make sure the PIC flag is empty. It appears that all Alpha
15011 # Linux and Compaq Tru64 Unix objects are PIC.
15012 lt_prog_compiler_pic_CXX=
15013 lt_prog_compiler_static_CXX='-non_shared'
15015 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15016 # IBM XL 8.0, 9.0 on PPC and BlueGene
15017 lt_prog_compiler_wl_CXX='-Wl,'
15018 lt_prog_compiler_pic_CXX='-qpic'
15019 lt_prog_compiler_static_CXX='-qstaticlink'
15022 case `$CC -V 2>&1 | sed 5q` in
15025 lt_prog_compiler_pic_CXX='-KPIC'
15026 lt_prog_compiler_static_CXX='-Bstatic'
15027 lt_prog_compiler_wl_CXX='-Qoption ld '
15038 case $cc_basename in
15040 lt_prog_compiler_pic_CXX='-W c,exportall'
15046 netbsd* | netbsdelf*-gnu)
15049 # QNX uses GNU C++, but need to define -shared option too, otherwise
15050 # it will coredump.
15051 lt_prog_compiler_pic_CXX='-fPIC -shared'
15053 osf3* | osf4* | osf5*)
15054 case $cc_basename in
15056 lt_prog_compiler_wl_CXX='--backend -Wl,'
15059 # Rational C++ 2.4.1
15060 lt_prog_compiler_pic_CXX='-pic'
15063 # Digital/Compaq C++
15064 lt_prog_compiler_wl_CXX='-Wl,'
15065 # Make sure the PIC flag is empty. It appears that all Alpha
15066 # Linux and Compaq Tru64 Unix objects are PIC.
15067 lt_prog_compiler_pic_CXX=
15068 lt_prog_compiler_static_CXX='-non_shared'
15077 case $cc_basename in
15079 # Sun C++ 4.2, 5.x and Centerline C++
15080 lt_prog_compiler_pic_CXX='-KPIC'
15081 lt_prog_compiler_static_CXX='-Bstatic'
15082 lt_prog_compiler_wl_CXX='-Qoption ld '
15085 # Green Hills C++ Compiler
15086 lt_prog_compiler_pic_CXX='-PIC'
15093 case $cc_basename in
15096 lt_prog_compiler_pic_CXX='-pic'
15097 lt_prog_compiler_static_CXX='-Bstatic'
15101 lt_prog_compiler_pic_CXX='-pic'
15107 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15108 case $cc_basename in
15110 lt_prog_compiler_wl_CXX='-Wl,'
15111 lt_prog_compiler_pic_CXX='-KPIC'
15112 lt_prog_compiler_static_CXX='-Bstatic'
15117 case $cc_basename in
15119 # NonStop-UX NCC 3.20
15120 lt_prog_compiler_pic_CXX='-KPIC'
15129 lt_prog_compiler_can_build_shared_CXX=no
15135 # For platforms which do not support PIC, -DPIC is meaningless:
15137 lt_prog_compiler_pic_CXX=
15140 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15145 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15146 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15147 $as_echo_n "(cached) " >&6
15149 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15152 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15153 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15156 # Check to make sure the PIC flag actually works.
15158 if test -n "$lt_prog_compiler_pic_CXX"; then
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15160 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15161 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15162 $as_echo_n "(cached) " >&6
15164 lt_cv_prog_compiler_pic_works_CXX=no
15165 ac_outfile=conftest.$ac_objext
15166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15167 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15168 # Insert the option either (1) after the last *FLAGS variable, or
15169 # (2) before a word containing "conftest.", or (3) at the end.
15170 # Note that $ac_compile itself does not contain backslashes and begins
15171 # with a dollar sign (not a hyphen), so the echo should work correctly.
15172 # The option is referenced via a variable to avoid confusing sed.
15173 lt_compile=`echo "$ac_compile" | $SED \
15174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15176 -e 's:$: $lt_compiler_flag:'`
15177 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15178 (eval "$lt_compile" 2>conftest.err)
15180 cat conftest.err >&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 if (exit $ac_status) && test -s "$ac_outfile"; then
15183 # The compiler can only warn and ignore the option if not recognized
15184 # So say no if there are warnings other than the usual output.
15185 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15187 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15188 lt_cv_prog_compiler_pic_works_CXX=yes
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15195 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15197 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15198 case $lt_prog_compiler_pic_CXX in
15200 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15203 lt_prog_compiler_pic_CXX=
15204 lt_prog_compiler_can_build_shared_CXX=no
15214 # Check to make sure the static flag actually works.
15216 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15218 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15219 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15220 $as_echo_n "(cached) " >&6
15222 lt_cv_prog_compiler_static_works_CXX=no
15223 save_LDFLAGS="$LDFLAGS"
15224 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15225 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15226 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15227 # The linker can only warn and ignore the option if not recognized
15228 # So say no if there are warnings
15229 if test -s conftest.err; then
15230 # Append any errors to the config.log.
15231 cat conftest.err 1>&5
15232 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15234 if diff conftest.exp conftest.er2 >/dev/null; then
15235 lt_cv_prog_compiler_static_works_CXX=yes
15238 lt_cv_prog_compiler_static_works_CXX=yes
15242 LDFLAGS="$save_LDFLAGS"
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15246 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15248 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15251 lt_prog_compiler_static_CXX=
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15258 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15259 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15260 $as_echo_n "(cached) " >&6
15262 lt_cv_prog_compiler_c_o_CXX=no
15263 $RM -r conftest 2>/dev/null
15267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15269 lt_compiler_flag="-o out/conftest2.$ac_objext"
15270 # Insert the option either (1) after the last *FLAGS variable, or
15271 # (2) before a word containing "conftest.", or (3) at the end.
15272 # Note that $ac_compile itself does not contain backslashes and begins
15273 # with a dollar sign (not a hyphen), so the echo should work correctly.
15274 lt_compile=`echo "$ac_compile" | $SED \
15275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15277 -e 's:$: $lt_compiler_flag:'`
15278 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15279 (eval "$lt_compile" 2>out/conftest.err)
15281 cat out/conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15285 # The compiler can only warn and ignore the option if not recognized
15286 # So say no if there are warnings
15287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15290 lt_cv_prog_compiler_c_o_CXX=yes
15295 # SGI C++ compiler will create directory out/ii_files/ for
15296 # template instantiation
15297 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15298 $RM out/* && rmdir out
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15305 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15310 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15311 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15312 $as_echo_n "(cached) " >&6
15314 lt_cv_prog_compiler_c_o_CXX=no
15315 $RM -r conftest 2>/dev/null
15319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15321 lt_compiler_flag="-o out/conftest2.$ac_objext"
15322 # Insert the option either (1) after the last *FLAGS variable, or
15323 # (2) before a word containing "conftest.", or (3) at the end.
15324 # Note that $ac_compile itself does not contain backslashes and begins
15325 # with a dollar sign (not a hyphen), so the echo should work correctly.
15326 lt_compile=`echo "$ac_compile" | $SED \
15327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15329 -e 's:$: $lt_compiler_flag:'`
15330 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15331 (eval "$lt_compile" 2>out/conftest.err)
15333 cat out/conftest.err >&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15337 # The compiler can only warn and ignore the option if not recognized
15338 # So say no if there are warnings
15339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15340 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15341 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15342 lt_cv_prog_compiler_c_o_CXX=yes
15347 # SGI C++ compiler will create directory out/ii_files/ for
15348 # template instantiation
15349 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15350 $RM out/* && rmdir out
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15357 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15362 hard_links="nottested"
15363 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15364 # do not overwrite the value of need_locks provided by the user
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15366 $as_echo_n "checking if we can lock with hard links... " >&6; }
15369 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15371 ln conftest.a conftest.b 2>&5 || hard_links=no
15372 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15374 $as_echo "$hard_links" >&6; }
15375 if test "$hard_links" = no; then
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15377 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15387 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15389 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15390 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15393 # If we're using GNU nm, then we don't want the "-C" option.
15394 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15395 # Also, AIX nm treats weak defined symbols like other global defined
15396 # symbols, whereas GNU nm marks them as "W".
15397 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15398 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15400 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15404 export_symbols_cmds_CXX="$ltdll_cmds"
15406 cygwin* | mingw* | cegcc*)
15407 case $cc_basename in
15409 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15412 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15413 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15417 linux* | k*bsd*-gnu | gnu*)
15418 link_all_deplibs_CXX=no
15421 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15426 $as_echo "$ld_shlibs_CXX" >&6; }
15427 test "$ld_shlibs_CXX" = no && can_build_shared=no
15429 with_gnu_ld_CXX=$with_gnu_ld
15437 # Do we need to explicitly link libc?
15439 case "x$archive_cmds_need_lc_CXX" in
15441 # Assume -lc should be added
15442 archive_cmds_need_lc_CXX=yes
15444 if test "$enable_shared" = yes && test "$GCC" = yes; then
15445 case $archive_cmds_CXX in
15447 # FIXME: we may have to deal with multi-command sequences.
15450 # Test whether the compiler implicitly links with -lc since on some
15451 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15452 # to ld, don't add -lc before -lgcc.
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15454 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15455 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15456 $as_echo_n "(cached) " >&6
15459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15462 (eval $ac_compile) 2>&5
15464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15465 test $ac_status = 0; } 2>conftest.err; then
15468 libobjs=conftest.$ac_objext
15470 wl=$lt_prog_compiler_wl_CXX
15471 pic_flag=$lt_prog_compiler_pic_CXX
15477 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15478 allow_undefined_flag_CXX=
15479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15480 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15483 test $ac_status = 0; }
15485 lt_cv_archive_cmds_need_lc_CXX=no
15487 lt_cv_archive_cmds_need_lc_CXX=yes
15489 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15491 cat conftest.err 1>&5
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15497 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15498 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15567 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15569 library_names_spec=
15570 libname_spec='lib$name'
15574 postuninstall_cmds=
15578 shlibpath_overrides_runpath=unknown
15580 dynamic_linker="$host_os ld.so"
15581 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15582 need_lib_prefix=unknown
15583 hardcode_into_libs=no
15585 # when you set need_version to no, make sure it does not cause -set_version
15586 # flags to be left without arguments
15587 need_version=unknown
15591 version_type=linux # correct to gnu/linux during the next big refactor
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15593 shlibpath_var=LIBPATH
15595 # AIX 3 has no versioning support, so we append a major version to the name.
15596 soname_spec='${libname}${release}${shared_ext}$major'
15600 version_type=linux # correct to gnu/linux during the next big refactor
15603 hardcode_into_libs=yes
15604 if test "$host_cpu" = ia64; then
15605 # AIX 5 supports IA64
15606 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15607 shlibpath_var=LD_LIBRARY_PATH
15609 # With GCC up to 2.95.x, collect2 would create an import file
15610 # for dependence libraries. The import file would start with
15611 # the line `#! .'. This would cause the generated library to
15612 # depend on `.', always an invalid library. This was fixed in
15613 # development snapshots of GCC prior to 3.0.
15615 aix4 | aix4.[01] | aix4.[01].*)
15616 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15618 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15621 can_build_shared=no
15625 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15626 # soname into executable. Probably we can add versioning support to
15627 # collect2, so additional links can be useful in future.
15628 if test "$aix_use_runtimelinking" = yes; then
15629 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15630 # instead of lib<name>.a to let people know that these are not
15631 # typical AIX shared libraries.
15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634 # We preserve .a as extension for shared libraries through AIX4.2
15635 # and later when we are not doing run time linking.
15636 library_names_spec='${libname}${release}.a $libname.a'
15637 soname_spec='${libname}${release}${shared_ext}$major'
15639 shlibpath_var=LIBPATH
15646 # Since July 2007 AmigaOS4 officially supports .so libraries.
15647 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15651 library_names_spec='$libname.ixlibrary $libname.a'
15652 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15653 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15659 library_names_spec='${libname}${shared_ext}'
15660 dynamic_linker="$host_os ld.so"
15661 shlibpath_var=LIBRARY_PATH
15665 version_type=linux # correct to gnu/linux during the next big refactor
15667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668 soname_spec='${libname}${release}${shared_ext}$major'
15669 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15670 shlibpath_var=LD_LIBRARY_PATH
15671 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15672 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15673 # the default ld.so.conf also contains /usr/contrib/lib and
15674 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15675 # libtool to hard-code these into programs
15678 cygwin* | mingw* | pw32* | cegcc*)
15679 version_type=windows
15684 case $GCC,$cc_basename in
15687 library_names_spec='$libname.dll.a'
15688 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15689 postinstall_cmds='base_file=`basename \${file}`~
15690 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15691 dldir=$destdir/`dirname \$dlpath`~
15692 test -d \$dldir || mkdir -p \$dldir~
15693 $install_prog $dir/$dlname \$dldir/$dlname~
15694 chmod a+x \$dldir/$dlname~
15695 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15696 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15698 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15699 dlpath=$dir/\$dldll~
15701 shlibpath_overrides_runpath=yes
15705 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15706 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15710 # MinGW DLLs use traditional 'lib' prefix
15711 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15714 # pw32 DLLs use 'pw' prefix rather than 'lib'
15715 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15718 dynamic_linker='Win32 ld.exe'
15723 libname_spec='$name'
15724 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15725 library_names_spec='${libname}.dll.lib'
15729 sys_lib_search_path_spec=
15732 for lt_path in $LIB
15735 # Let DOS variable expansion print the short 8.3 style file name.
15736 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15737 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15740 # Convert to MSYS style.
15741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15744 # Convert to unix form, then to dos form, then back to unix form
15745 # but this time dos style (no spaces!) so that the unix form looks
15746 # like /cygdrive/c/PROGRA~1:/cygdr...
15747 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15748 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15749 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15752 sys_lib_search_path_spec="$LIB"
15753 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15754 # It is most probably a Windows format PATH.
15755 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15757 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15759 # FIXME: find the short name or the path components, as spaces are
15760 # common. (e.g. "Program Files" -> "PROGRA~1")
15764 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15765 postinstall_cmds='base_file=`basename \${file}`~
15766 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15767 dldir=$destdir/`dirname \$dlpath`~
15768 test -d \$dldir || mkdir -p \$dldir~
15769 $install_prog $dir/$dlname \$dldir/$dlname'
15770 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15771 dlpath=$dir/\$dldll~
15773 shlibpath_overrides_runpath=yes
15774 dynamic_linker='Win32 link.exe'
15778 # Assume MSVC wrapper
15779 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15780 dynamic_linker='Win32 ld.exe'
15783 # FIXME: first we should search . and the directory the executable is in
15787 darwin* | rhapsody*)
15788 dynamic_linker="$host_os dyld"
15789 version_type=darwin
15792 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15793 soname_spec='${libname}${release}${major}$shared_ext'
15794 shlibpath_overrides_runpath=yes
15795 shlibpath_var=DYLD_LIBRARY_PATH
15796 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15798 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15802 version_type=linux # correct to gnu/linux during the next big refactor
15805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15806 soname_spec='${libname}${release}${shared_ext}$major'
15807 shlibpath_var=LD_LIBRARY_PATH
15810 freebsd* | dragonfly*)
15811 # DragonFly does not have aout. When/if they implement a new
15812 # versioning mechanism, adjust this.
15813 if test -x /usr/bin/objformat; then
15814 objformat=`/usr/bin/objformat`
15817 freebsd[23].*) objformat=aout ;;
15818 *) objformat=elf ;;
15821 version_type=freebsd-$objformat
15822 case $version_type in
15824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15833 shlibpath_var=LD_LIBRARY_PATH
15836 shlibpath_overrides_runpath=yes
15838 freebsd3.[01]* | freebsdelf3.[01]*)
15839 shlibpath_overrides_runpath=yes
15840 hardcode_into_libs=yes
15842 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15843 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15844 shlibpath_overrides_runpath=no
15845 hardcode_into_libs=yes
15847 *) # from 4.6 on, and DragonFly
15848 shlibpath_overrides_runpath=yes
15849 hardcode_into_libs=yes
15855 version_type=linux # correct to gnu/linux during the next big refactor
15858 dynamic_linker="$host_os runtime_loader"
15859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15860 soname_spec='${libname}${release}${shared_ext}$major'
15861 shlibpath_var=LIBRARY_PATH
15862 shlibpath_overrides_runpath=yes
15863 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15864 hardcode_into_libs=yes
15867 hpux9* | hpux10* | hpux11*)
15868 # Give a soname corresponding to the major version so that dld.sl refuses to
15869 # link against other versions.
15876 hardcode_into_libs=yes
15877 dynamic_linker="$host_os dld.so"
15878 shlibpath_var=LD_LIBRARY_PATH
15879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15881 soname_spec='${libname}${release}${shared_ext}$major'
15882 if test "X$HPUX_IA64_MODE" = X32; then
15883 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15885 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15891 hardcode_into_libs=yes
15892 dynamic_linker="$host_os dld.sl"
15893 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15896 soname_spec='${libname}${release}${shared_ext}$major'
15897 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15902 dynamic_linker="$host_os dld.sl"
15903 shlibpath_var=SHLIB_PATH
15904 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906 soname_spec='${libname}${release}${shared_ext}$major'
15909 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15910 postinstall_cmds='chmod 555 $lib'
15911 # or fails outright, so override atomically:
15912 install_override_mode=555
15916 version_type=linux # correct to gnu/linux during the next big refactor
15919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15920 soname_spec='${libname}${release}${shared_ext}$major'
15921 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15922 shlibpath_var=LD_LIBRARY_PATH
15923 shlibpath_overrides_runpath=no
15924 hardcode_into_libs=yes
15927 irix5* | irix6* | nonstopux*)
15929 nonstopux*) version_type=nonstopux ;;
15931 if test "$lt_cv_prog_gnu_ld" = yes; then
15932 version_type=linux # correct to gnu/linux during the next big refactor
15939 soname_spec='${libname}${release}${shared_ext}$major'
15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15942 irix5* | nonstopux*)
15943 libsuff= shlibsuff=
15946 case $LD in # libtool.m4 will add one of these switches to LD
15947 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15948 libsuff= shlibsuff= libmagic=32-bit;;
15949 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15950 libsuff=32 shlibsuff=N32 libmagic=N32;;
15951 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15952 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15953 *) libsuff= shlibsuff= libmagic=never-match;;
15957 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15958 shlibpath_overrides_runpath=no
15959 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15960 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15961 hardcode_into_libs=yes
15964 # No shared lib support for Linux oldld, aout, or coff.
15965 linux*oldld* | linux*aout* | linux*coff*)
15969 # This must be glibc/ELF.
15970 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15971 version_type=linux # correct to gnu/linux during the next big refactor
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15975 soname_spec='${libname}${release}${shared_ext}$major'
15976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15977 shlibpath_var=LD_LIBRARY_PATH
15978 shlibpath_overrides_runpath=no
15980 # Some binutils ld are patched to set DT_RUNPATH
15981 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15982 $as_echo_n "(cached) " >&6
15984 lt_cv_shlibpath_overrides_runpath=no
15985 save_LDFLAGS=$LDFLAGS
15986 save_libdir=$libdir
15987 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15988 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h. */
16000 if ac_fn_cxx_try_link "$LINENO"; then :
16001 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16002 lt_cv_shlibpath_overrides_runpath=yes
16005 rm -f core conftest.err conftest.$ac_objext \
16006 conftest$ac_exeext conftest.$ac_ext
16007 LDFLAGS=$save_LDFLAGS
16008 libdir=$save_libdir
16012 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16014 # This implies no fast_install, which is unacceptable.
16015 # Some rework will be needed to allow for fast_install
16016 # before this can be enabled.
16017 hardcode_into_libs=yes
16019 # Append ld.so.conf contents to the search path
16020 if test -f /etc/ld.so.conf; then
16021 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16022 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16025 # We used to test for /lib/ld.so.1 and disable shared libraries on
16026 # powerpc, because MkLinux only supported shared libraries with the
16027 # GNU dynamic linker. Since this was broken with cross compilers,
16028 # most powerpc-linux boxes support dynamic linking these days and
16029 # people can always --disable-shared, the test was removed, and we
16030 # assume the GNU/Linux dynamic linker is in use.
16031 dynamic_linker='GNU/Linux ld.so'
16038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16039 soname_spec='${libname}${release}${shared_ext}$major'
16040 shlibpath_var=LD_LIBRARY_PATH
16041 shlibpath_overrides_runpath=no
16042 hardcode_into_libs=yes
16043 dynamic_linker='NetBSD ld.elf_so'
16050 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16053 dynamic_linker='NetBSD (a.out) ld.so'
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16056 soname_spec='${libname}${release}${shared_ext}$major'
16057 dynamic_linker='NetBSD ld.elf_so'
16059 shlibpath_var=LD_LIBRARY_PATH
16060 shlibpath_overrides_runpath=yes
16061 hardcode_into_libs=yes
16065 version_type=linux # correct to gnu/linux during the next big refactor
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16067 shlibpath_var=LD_LIBRARY_PATH
16068 shlibpath_overrides_runpath=yes
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076 soname_spec='${libname}${release}${shared_ext}$major'
16077 shlibpath_var=LD_LIBRARY_PATH
16078 shlibpath_overrides_runpath=no
16079 hardcode_into_libs=yes
16080 dynamic_linker='ldqnx.so'
16085 sys_lib_dlsearch_path_spec="/usr/lib"
16087 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16089 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16090 *) need_version=no ;;
16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16094 shlibpath_var=LD_LIBRARY_PATH
16095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16097 openbsd2.[89] | openbsd2.[89].*)
16098 shlibpath_overrides_runpath=no
16101 shlibpath_overrides_runpath=yes
16105 shlibpath_overrides_runpath=yes
16110 libname_spec='$name'
16113 library_names_spec='$libname${shared_ext} $libname.a'
16114 dynamic_linker='OS/2 ld.exe'
16115 shlibpath_var=LIBPATH
16118 osf3* | osf4* | osf5*)
16122 soname_spec='${libname}${release}${shared_ext}$major'
16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16124 shlibpath_var=LD_LIBRARY_PATH
16125 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16126 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16134 version_type=linux # correct to gnu/linux during the next big refactor
16137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16138 soname_spec='${libname}${release}${shared_ext}$major'
16139 shlibpath_var=LD_LIBRARY_PATH
16140 shlibpath_overrides_runpath=yes
16141 hardcode_into_libs=yes
16142 # ldd complains unless libraries are executable
16143 postinstall_cmds='chmod +x $lib'
16148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16149 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16150 shlibpath_var=LD_LIBRARY_PATH
16151 shlibpath_overrides_runpath=yes
16152 if test "$with_gnu_ld" = yes; then
16159 version_type=linux # correct to gnu/linux during the next big refactor
16160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161 soname_spec='${libname}${release}${shared_ext}$major'
16162 shlibpath_var=LD_LIBRARY_PATH
16163 case $host_vendor in
16165 shlibpath_overrides_runpath=no
16167 runpath_var=LD_RUN_PATH
16175 shlibpath_overrides_runpath=no
16176 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16182 if test -d /usr/nec ;then
16183 version_type=linux # correct to gnu/linux during the next big refactor
16184 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16185 soname_spec='$libname${shared_ext}.$major'
16186 shlibpath_var=LD_LIBRARY_PATH
16190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16191 version_type=freebsd-elf
16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16195 soname_spec='${libname}${release}${shared_ext}$major'
16196 shlibpath_var=LD_LIBRARY_PATH
16197 shlibpath_overrides_runpath=yes
16198 hardcode_into_libs=yes
16199 if test "$with_gnu_ld" = yes; then
16200 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16202 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16205 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16209 sys_lib_dlsearch_path_spec='/usr/lib'
16213 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16214 version_type=linux # correct to gnu/linux during the next big refactor
16217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16218 shlibpath_var=LD_LIBRARY_PATH
16219 shlibpath_overrides_runpath=no
16220 hardcode_into_libs=yes
16224 version_type=linux # correct to gnu/linux during the next big refactor
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16226 soname_spec='${libname}${release}${shared_ext}$major'
16227 shlibpath_var=LD_LIBRARY_PATH
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16235 $as_echo "$dynamic_linker" >&6; }
16236 test "$dynamic_linker" = no && can_build_shared=no
16238 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16239 if test "$GCC" = yes; then
16240 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16243 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16244 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16246 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16247 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16288 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16289 hardcode_action_CXX=
16290 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16291 test -n "$runpath_var_CXX" ||
16292 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16294 # We can hardcode non-existent directories.
16295 if test "$hardcode_direct_CXX" != no &&
16296 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16297 # have to relink, otherwise we might link with an installed library
16298 # when we should be linking with a yet-to-be-installed one
16299 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16300 test "$hardcode_minus_L_CXX" != no; then
16301 # Linking always hardcodes the temporary library directory.
16302 hardcode_action_CXX=relink
16304 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16305 hardcode_action_CXX=immediate
16308 # We cannot hardcode anything, or else we can only hardcode existing
16310 hardcode_action_CXX=unsupported
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16313 $as_echo "$hardcode_action_CXX" >&6; }
16315 if test "$hardcode_action_CXX" = relink ||
16316 test "$inherit_rpath_CXX" = yes; then
16317 # Fast installation is not supported
16318 enable_fast_install=no
16319 elif test "$shlibpath_overrides_runpath" = yes ||
16320 test "$enable_shared" = no; then
16321 # Fast installation is not necessary
16322 enable_fast_install=needless
16331 fi # test -n "$compiler"
16334 CFLAGS=$lt_save_CFLAGS
16338 with_gnu_ld=$lt_save_with_gnu_ld
16339 lt_cv_path_LDCXX=$lt_cv_path_LD
16340 lt_cv_path_LD=$lt_save_path_LD
16341 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16342 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16343 fi # test "$_lt_caught_CXX_error" != yes
16346 ac_cpp='$CPP $CPPFLAGS'
16347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16365 ac_config_commands="$ac_config_commands libtool"
16370 # Only expand once:
16378 ac_cpp='$CPP $CPPFLAGS'
16379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16386 $as_echo_n "checking for library containing dlopen... " >&6; }
16387 if ${ac_cv_search_dlopen+:} false; then :
16388 $as_echo_n "(cached) " >&6
16390 ac_func_search_save_LIBS=$LIBS
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16394 /* Override any GCC internal prototype to avoid an error.
16395 Use char because int might match the return type of a GCC
16396 builtin and then its argument prototype would still apply. */
16409 for ac_lib in '' dl; do
16410 if test -z "$ac_lib"; then
16411 ac_res="none required"
16414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16416 if ac_fn_c_try_link "$LINENO"; then :
16417 ac_cv_search_dlopen=$ac_res
16419 rm -f core conftest.err conftest.$ac_objext \
16421 if ${ac_cv_search_dlopen+:} false; then :
16425 if ${ac_cv_search_dlopen+:} false; then :
16428 ac_cv_search_dlopen=no
16430 rm conftest.$ac_ext
16431 LIBS=$ac_func_search_save_LIBS
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16434 $as_echo "$ac_cv_search_dlopen" >&6; }
16435 ac_res=$ac_cv_search_dlopen
16436 if test "$ac_res" != no; then :
16437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16439 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16441 if test "$ac_cv_search_dlopen" != "none required" ; then
16442 LIBADD_DLOPEN="-ldl"
16444 libltdl_cv_lib_dl_dlopen="yes"
16445 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448 /* end confdefs.h. */
16450 # include <dlfcn.h>
16461 if ac_fn_c_try_link "$LINENO"; then :
16463 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16465 libltdl_cv_func_dlopen="yes"
16466 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16469 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16470 if ${ac_cv_lib_svld_dlopen+:} false; then :
16471 $as_echo_n "(cached) " >&6
16473 ac_check_lib_save_LIBS=$LIBS
16474 LIBS="-lsvld $LIBS"
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16478 /* Override any GCC internal prototype to avoid an error.
16479 Use char because int might match the return type of a GCC
16480 builtin and then its argument prototype would still apply. */
16493 if ac_fn_c_try_link "$LINENO"; then :
16494 ac_cv_lib_svld_dlopen=yes
16496 ac_cv_lib_svld_dlopen=no
16498 rm -f core conftest.err conftest.$ac_objext \
16499 conftest$ac_exeext conftest.$ac_ext
16500 LIBS=$ac_check_lib_save_LIBS
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16503 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16504 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16506 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16508 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16509 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16513 rm -f core conftest.err conftest.$ac_objext \
16514 conftest$ac_exeext conftest.$ac_ext
16517 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16519 lt_save_LIBS="$LIBS"
16520 LIBS="$LIBS $LIBADD_DLOPEN"
16521 for ac_func in dlerror
16523 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16524 if test "x$ac_cv_func_dlerror" = xyes; then :
16525 cat >>confdefs.h <<_ACEOF
16526 #define HAVE_DLERROR 1
16532 LIBS="$lt_save_LIBS"
16537 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16538 if test "x$ac_cv_func_shl_load" = xyes; then :
16540 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16542 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16545 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16546 if ${ac_cv_lib_dld_shl_load+:} false; then :
16547 $as_echo_n "(cached) " >&6
16549 ac_check_lib_save_LIBS=$LIBS
16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552 /* end confdefs.h. */
16554 /* Override any GCC internal prototype to avoid an error.
16555 Use char because int might match the return type of a GCC
16556 builtin and then its argument prototype would still apply. */
16564 return shl_load ();
16569 if ac_fn_c_try_link "$LINENO"; then :
16570 ac_cv_lib_dld_shl_load=yes
16572 ac_cv_lib_dld_shl_load=no
16574 rm -f core conftest.err conftest.$ac_objext \
16575 conftest$ac_exeext conftest.$ac_ext
16576 LIBS=$ac_check_lib_save_LIBS
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16579 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16580 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16582 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16584 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16585 LIBADD_SHL_LOAD="-ldld"
16594 # We only want this for pre-Mac OS X 10.4.
16595 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16596 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16598 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16600 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16605 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16607 cygwin* | mingw* | os2* | pw32*)
16608 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16610 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16616 cat >>confdefs.h <<_ACEOF
16617 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16620 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16625 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16626 if ${ac_cv_lib_dld_dld_link+:} false; then :
16627 $as_echo_n "(cached) " >&6
16629 ac_check_lib_save_LIBS=$LIBS
16631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h. */
16634 /* Override any GCC internal prototype to avoid an error.
16635 Use char because int might match the return type of a GCC
16636 builtin and then its argument prototype would still apply. */
16644 return dld_link ();
16649 if ac_fn_c_try_link "$LINENO"; then :
16650 ac_cv_lib_dld_dld_link=yes
16652 ac_cv_lib_dld_dld_link=no
16654 rm -f core conftest.err conftest.$ac_objext \
16655 conftest$ac_exeext conftest.$ac_ext
16656 LIBS=$ac_check_lib_save_LIBS
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16659 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16660 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16662 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16664 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16671 if test -n "$LT_DLLOADERS"
16673 for lt_loader in $LT_DLLOADERS; do
16674 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16677 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16682 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16686 ac_cpp='$CPP $CPPFLAGS'
16687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16694 if test x$use_libtool != xno; then
16695 DEFAULT_OBJECT_TYPE=".lo"
16696 DEFAULT_ARCHIVE_TYPE=".la"
16697 DEFAULT_SHARED_OBJECT_TYPE=".la"
16698 LIBTOOL="\$(LIBTOOL)"
16699 LIBTOOL_INSTALL_TARGET="libtool-install"
16700 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16701 LIBTOOL_CLEAN_TARGET="libtool-clean"
16702 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16703 FD_PLUGIN_DIR="src/plugins/fd"
16706 DEFAULT_OBJECT_TYPE=".o"
16707 DEFAULT_ARCHIVE_TYPE=".a"
16708 DEFAULT_SHARED_OBJECT_TYPE=".so"
16709 LIBTOOL="# \$(LIBTOOL)"
16710 LIBTOOL_INSTALL_TARGET=""
16711 LIBTOOL_UNINSTALL_TARGET=""
16712 LIBTOOL_CLEAN_TARGET=""
16713 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16728 # Check whether --enable-includes was given.
16729 if test "${enable_includes+set}" = set; then :
16730 enableval=$enable_includes;
16731 if test x$enableval = xyes; then
16732 install_includes=yes
16740 if test x$use_libtool != xno -a x$install_includes = xyes; then
16741 INCLUDE_INSTALL_TARGET="install-includes"
16742 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16744 INCLUDE_INSTALL_TARGET=""
16745 INCLUDE_UNINSTALL_TARGET=""
16753 *cygwin* ) CYGWIN=yes;;
16757 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16763 HAVE_SUN_OS_FALSE='#'
16765 HAVE_SUN_OS_TRUE='#'
16768 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16775 HAVE_SUN_OS_FALSE='#'
16777 HAVE_SUN_OS_TRUE='#'
16782 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16788 HAVE_HURD_OS_FALSE='#'
16790 HAVE_HURD_OS_TRUE='#'
16791 HAVE_HURD_OS_FALSE=
16793 $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16800 HAVE_HURD_OS_FALSE='#'
16802 HAVE_HURD_OS_TRUE='#'
16803 HAVE_HURD_OS_FALSE=
16807 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16813 HAVE_OSF1_OS_FALSE='#'
16815 HAVE_OSF1_OS_TRUE='#'
16816 HAVE_OSF1_OS_FALSE=
16818 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16825 HAVE_OSF1_OS_FALSE='#'
16827 HAVE_OSF1_OS_TRUE='#'
16828 HAVE_OSF1_OS_FALSE=
16832 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16838 HAVE_AIX_OS_FALSE='#'
16840 HAVE_AIX_OS_TRUE='#'
16843 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16850 HAVE_AIX_OS_FALSE='#'
16852 HAVE_AIX_OS_TRUE='#'
16857 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16863 HAVE_HPUX_OS_FALSE='#'
16865 HAVE_HPUX_OS_TRUE='#'
16866 HAVE_HPUX_OS_FALSE=
16868 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16875 HAVE_HPUX_OS_FALSE='#'
16877 HAVE_HPUX_OS_TRUE='#'
16878 HAVE_HPUX_OS_FALSE=
16882 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16887 HAVE_LINUX_OS_TRUE=
16888 HAVE_LINUX_OS_FALSE='#'
16890 HAVE_LINUX_OS_TRUE='#'
16891 HAVE_LINUX_OS_FALSE=
16893 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16899 HAVE_LINUX_OS_TRUE=
16900 HAVE_LINUX_OS_FALSE='#'
16902 HAVE_LINUX_OS_TRUE='#'
16903 HAVE_LINUX_OS_FALSE=
16907 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16912 HAVE_FREEBSD_OS_TRUE=
16913 HAVE_FREEBSD_OS_FALSE='#'
16915 HAVE_FREEBSD_OS_TRUE='#'
16916 HAVE_FREEBSD_OS_FALSE=
16918 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16924 HAVE_FREEBSD_OS_TRUE=
16925 HAVE_FREEBSD_OS_FALSE='#'
16927 HAVE_FREEBSD_OS_TRUE='#'
16928 HAVE_FREEBSD_OS_FALSE=
16932 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16937 HAVE_NETBSD_OS_TRUE=
16938 HAVE_NETBSD_OS_FALSE='#'
16940 HAVE_NETBSD_OS_TRUE='#'
16941 HAVE_NETBSD_OS_FALSE=
16943 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16949 HAVE_NETBSD_OS_TRUE=
16950 HAVE_NETBSD_OS_FALSE='#'
16952 HAVE_NETBSD_OS_TRUE='#'
16953 HAVE_NETBSD_OS_FALSE=
16957 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16962 HAVE_OPENBSD_OS_TRUE=
16963 HAVE_OPENBSD_OS_FALSE='#'
16965 HAVE_OPENBSD_OS_TRUE='#'
16966 HAVE_OPENBSD_OS_FALSE=
16968 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16974 HAVE_OPENBSD_OS_TRUE=
16975 HAVE_OPENBSD_OS_FALSE='#'
16977 HAVE_OPENBSD_OS_TRUE='#'
16978 HAVE_OPENBSD_OS_FALSE=
16982 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16988 HAVE_BSDI_OS_FALSE='#'
16990 HAVE_BSDI_OS_TRUE='#'
16991 HAVE_BSDI_OS_FALSE=
16993 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
17000 HAVE_BSDI_OS_FALSE='#'
17002 HAVE_BSDI_OS_TRUE='#'
17003 HAVE_BSDI_OS_FALSE=
17007 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17013 HAVE_SGI_OS_FALSE='#'
17015 HAVE_SGI_OS_TRUE='#'
17018 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17025 HAVE_SGI_OS_FALSE='#'
17027 HAVE_SGI_OS_TRUE='#'
17032 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17038 HAVE_IRIX_OS_FALSE='#'
17040 HAVE_IRIX_OS_TRUE='#'
17041 HAVE_IRIX_OS_FALSE=
17043 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17050 HAVE_IRIX_OS_FALSE='#'
17052 HAVE_IRIX_OS_TRUE='#'
17053 HAVE_IRIX_OS_FALSE=
17057 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17062 HAVE_DARWIN_OS_TRUE=
17063 HAVE_DARWIN_OS_FALSE='#'
17065 HAVE_DARWIN_OS_TRUE='#'
17066 HAVE_DARWIN_OS_FALSE=
17068 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17074 HAVE_DARWIN_OS_TRUE=
17075 HAVE_DARWIN_OS_FALSE='#'
17077 HAVE_DARWIN_OS_TRUE='#'
17078 HAVE_DARWIN_OS_FALSE=
17082 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU/kFreeBSD
17087 HAVE_KFREEBSD_OS_TRUE=
17088 HAVE_KFREEBSD_OS_FALSE='#'
17090 HAVE_KFREEBSD_OS_TRUE='#'
17091 HAVE_KFREEBSD_OS_FALSE=
17093 $as_echo "#define HAVE_KFREEBSD_OS 1" >>confdefs.h
17099 HAVE_KFREEBSD_OS_TRUE=
17100 HAVE_KFREEBSD_OS_FALSE='#'
17102 HAVE_KFREEBSD_OS_TRUE='#'
17103 HAVE_KFREEBSD_OS_FALSE=
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17109 $as_echo_n "checking for Operating System Distribution... " >&6; }
17110 if test "x$DISTNAME" != "x"
17112 echo "distname set to $DISTNAME"
17113 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17116 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17119 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17122 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17125 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17128 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17131 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17134 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17137 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17140 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17143 elif test -f /etc/SuSE-release
17146 elif test -d /etc/SuSEconfig
17149 elif test -f /etc/mandrake-release
17152 elif test -f /etc/whitebox-release
17155 elif test -f /etc/redhat-release
17158 elif test -f /etc/gentoo-release
17161 elif test -f /etc/debian_version
17164 elif test -f /etc/slackware-version
17167 elif test x$host_vendor = xapple
17170 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17173 elif test -f /etc/engarde-version
17176 elif test -f /etc/arch-release
17179 elif test "$CYGWIN" = yes
17182 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17188 $as_echo "done" >&6; }
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17192 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17194 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17195 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17196 $as_echo_n "(cached) " >&6
17198 cat >conftest.make <<\_ACEOF
17201 @echo '@@@%%%=$(MAKE)=@@@%%%'
17203 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17204 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17205 *@@@%%%=?*=@@@%%%*)
17206 eval ac_cv_prog_make_${ac_make}_set=yes;;
17208 eval ac_cv_prog_make_${ac_make}_set=no;;
17210 rm -f conftest.make
17212 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17214 $as_echo "yes" >&6; }
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17218 $as_echo "no" >&6; }
17219 SET_MAKE="MAKE=${MAKE-make}"
17225 if test -n "$ac_aux_dir"; then
17226 case "$ac_aux_dir" in
17227 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17228 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17231 if test -z "$MKINSTALLDIRS"; then
17232 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17238 $as_echo_n "checking whether NLS is requested... " >&6; }
17239 # Check whether --enable-nls was given.
17240 if test "${enable_nls+set}" = set; then :
17241 enableval=$enable_nls; USE_NLS=$enableval
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17247 $as_echo "$USE_NLS" >&6; }
17254 # Prepare PATH_SEPARATOR.
17255 # The user is always right.
17256 if test "${PATH_SEPARATOR+set}" != set; then
17257 echo "#! /bin/sh" >conf$$.sh
17258 echo "exit 0" >>conf$$.sh
17260 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17268 # Find out how to test for executable files. Don't use a zero-byte file,
17269 # as systems may use methods other than mode bits to determine executability.
17270 cat >conf$$.file <<_ASEOF
17274 chmod +x conf$$.file
17275 if test -x conf$$.file >/dev/null 2>&1; then
17276 ac_executable_p="test -x"
17278 ac_executable_p="test -f"
17282 # Extract the first word of "msgfmt", so it can be a program name with args.
17283 set dummy msgfmt; ac_word=$2
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17285 $as_echo_n "checking for $ac_word... " >&6; }
17286 if ${ac_cv_path_MSGFMT+:} false; then :
17287 $as_echo_n "(cached) " >&6
17291 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17294 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17295 for ac_dir in $PATH; do
17297 test -z "$ac_dir" && ac_dir=.
17298 for ac_exec_ext in '' $ac_executable_extensions; do
17299 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17300 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17301 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17302 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17303 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17310 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17314 MSGFMT="$ac_cv_path_MSGFMT"
17315 if test "$MSGFMT" != ":"; then
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17317 $as_echo "$MSGFMT" >&6; }
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17320 $as_echo "no" >&6; }
17323 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17324 set dummy gmsgfmt; ac_word=$2
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17326 $as_echo_n "checking for $ac_word... " >&6; }
17327 if ${ac_cv_path_GMSGFMT+:} false; then :
17328 $as_echo_n "(cached) " >&6
17332 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17336 for as_dir in $PATH
17339 test -z "$as_dir" && as_dir=.
17340 for ac_exec_ext in '' $ac_executable_extensions; do
17341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17342 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17350 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17354 GMSGFMT=$ac_cv_path_GMSGFMT
17355 if test -n "$GMSGFMT"; then
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17357 $as_echo "$GMSGFMT" >&6; }
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17360 $as_echo "no" >&6; }
17366 # Prepare PATH_SEPARATOR.
17367 # The user is always right.
17368 if test "${PATH_SEPARATOR+set}" != set; then
17369 echo "#! /bin/sh" >conf$$.sh
17370 echo "exit 0" >>conf$$.sh
17372 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17380 # Find out how to test for executable files. Don't use a zero-byte file,
17381 # as systems may use methods other than mode bits to determine executability.
17382 cat >conf$$.file <<_ASEOF
17386 chmod +x conf$$.file
17387 if test -x conf$$.file >/dev/null 2>&1; then
17388 ac_executable_p="test -x"
17390 ac_executable_p="test -f"
17394 # Extract the first word of "xgettext", so it can be a program name with args.
17395 set dummy xgettext; ac_word=$2
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17397 $as_echo_n "checking for $ac_word... " >&6; }
17398 if ${ac_cv_path_XGETTEXT+:} false; then :
17399 $as_echo_n "(cached) " >&6
17401 case "$XGETTEXT" in
17403 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17406 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17407 for ac_dir in $PATH; do
17409 test -z "$ac_dir" && ac_dir=.
17410 for ac_exec_ext in '' $ac_executable_extensions; do
17411 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17412 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17413 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17414 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17415 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17422 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17426 XGETTEXT="$ac_cv_path_XGETTEXT"
17427 if test "$XGETTEXT" != ":"; then
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17429 $as_echo "$XGETTEXT" >&6; }
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17432 $as_echo "no" >&6; }
17438 # Prepare PATH_SEPARATOR.
17439 # The user is always right.
17440 if test "${PATH_SEPARATOR+set}" != set; then
17441 echo "#! /bin/sh" >conf$$.sh
17442 echo "exit 0" >>conf$$.sh
17444 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17452 # Find out how to test for executable files. Don't use a zero-byte file,
17453 # as systems may use methods other than mode bits to determine executability.
17454 cat >conf$$.file <<_ASEOF
17458 chmod +x conf$$.file
17459 if test -x conf$$.file >/dev/null 2>&1; then
17460 ac_executable_p="test -x"
17462 ac_executable_p="test -f"
17466 # Extract the first word of "msgmerge", so it can be a program name with args.
17467 set dummy msgmerge; ac_word=$2
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17469 $as_echo_n "checking for $ac_word... " >&6; }
17470 if ${ac_cv_path_MSGMERGE+:} false; then :
17471 $as_echo_n "(cached) " >&6
17473 case "$MSGMERGE" in
17475 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17478 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17479 for ac_dir in $PATH; do
17481 test -z "$ac_dir" && ac_dir=.
17482 for ac_exec_ext in '' $ac_executable_extensions; do
17483 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17484 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17485 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17486 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17493 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17497 MSGMERGE="$ac_cv_path_MSGMERGE"
17498 if test "$MSGMERGE" != ":"; then
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17500 $as_echo "$MSGMERGE" >&6; }
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17503 $as_echo "no" >&6; }
17507 if test "$GMSGFMT" != ":"; then
17508 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17509 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17512 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17514 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17519 if test "$XGETTEXT" != ":"; then
17520 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17521 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17525 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17531 ac_config_commands="$ac_config_commands default-1"
17535 if test "X$prefix" = "XNONE"; then
17536 acl_final_prefix="$ac_default_prefix"
17538 acl_final_prefix="$prefix"
17540 if test "X$exec_prefix" = "XNONE"; then
17541 acl_final_exec_prefix='${prefix}'
17543 acl_final_exec_prefix="$exec_prefix"
17545 acl_save_prefix="$prefix"
17546 prefix="$acl_final_prefix"
17547 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17548 prefix="$acl_save_prefix"
17551 # Check whether --with-gnu-ld was given.
17552 if test "${with_gnu_ld+set}" = set; then :
17553 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17558 # Prepare PATH_SEPARATOR.
17559 # The user is always right.
17560 if test "${PATH_SEPARATOR+set}" != set; then
17561 echo "#! /bin/sh" >conf$$.sh
17562 echo "exit 0" >>conf$$.sh
17564 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17572 if test "$GCC" = yes; then
17573 # Check if gcc -print-prog-name=ld gives a path.
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17575 $as_echo_n "checking for ld used by GCC... " >&6; }
17578 # gcc leaves a trailing carriage return which upsets mingw
17579 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17581 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17584 # Accept absolute paths.
17585 [\\/]* | [A-Za-z]:[\\/]*)
17586 re_direlt='/[^/][^/]*/\.\./'
17587 # Canonicalize the path of ld
17588 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17589 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17590 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17592 test -z "$LD" && LD="$ac_prog"
17595 # If it fails, then pretend we aren't using GCC.
17599 # If it is relative, then search for the first ld in PATH.
17600 with_gnu_ld=unknown
17603 elif test "$with_gnu_ld" = yes; then
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17605 $as_echo_n "checking for GNU ld... " >&6; }
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17608 $as_echo_n "checking for non-GNU ld... " >&6; }
17610 if ${acl_cv_path_LD+:} false; then :
17611 $as_echo_n "(cached) " >&6
17613 if test -z "$LD"; then
17614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17615 for ac_dir in $PATH; do
17616 test -z "$ac_dir" && ac_dir=.
17617 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17618 acl_cv_path_LD="$ac_dir/$ac_prog"
17619 # Check to see if the program is GNU ld. I'd rather use --version,
17620 # but apparently some GNU ld's only accept -v.
17621 # Break only if it was the GNU/non-GNU ld that we prefer.
17622 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17623 *GNU* | *'with BFD'*)
17624 test "$with_gnu_ld" != no && break ;;
17626 test "$with_gnu_ld" != yes && break ;;
17632 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17636 LD="$acl_cv_path_LD"
17637 if test -n "$LD"; then
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17639 $as_echo "$LD" >&6; }
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17642 $as_echo "no" >&6; }
17644 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17646 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17647 if ${acl_cv_prog_gnu_ld+:} false; then :
17648 $as_echo_n "(cached) " >&6
17650 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17651 case `$LD -v 2>&1 </dev/null` in
17652 *GNU* | *'with BFD'*)
17653 acl_cv_prog_gnu_ld=yes ;;
17655 acl_cv_prog_gnu_ld=no ;;
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17659 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17660 with_gnu_ld=$acl_cv_prog_gnu_ld
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17666 $as_echo_n "checking for shared library run path origin... " >&6; }
17667 if ${acl_cv_rpath+:} false; then :
17668 $as_echo_n "(cached) " >&6
17671 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17672 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17674 rm -f ./conftest.sh
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17679 $as_echo "$acl_cv_rpath" >&6; }
17681 libext="$acl_cv_libext"
17682 shlibext="$acl_cv_shlibext"
17683 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17684 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17685 hardcode_direct="$acl_cv_hardcode_direct"
17686 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17687 # Check whether --enable-rpath was given.
17688 if test "${enable_rpath+set}" = set; then :
17689 enableval=$enable_rpath; :
17703 acl_save_prefix="$prefix"
17704 prefix="$acl_final_prefix"
17705 acl_save_exec_prefix="$exec_prefix"
17706 exec_prefix="$acl_final_exec_prefix"
17708 eval additional_includedir=\"$includedir\"
17709 eval additional_libdir=\"$libdir\"
17711 exec_prefix="$acl_save_exec_prefix"
17712 prefix="$acl_save_prefix"
17715 # Check whether --with-libiconv-prefix was given.
17716 if test "${with_libiconv_prefix+set}" = set; then :
17717 withval=$with_libiconv_prefix;
17718 if test "X$withval" = "Xno"; then
17721 if test "X$withval" = "X"; then
17723 acl_save_prefix="$prefix"
17724 prefix="$acl_final_prefix"
17725 acl_save_exec_prefix="$exec_prefix"
17726 exec_prefix="$acl_final_exec_prefix"
17728 eval additional_includedir=\"$includedir\"
17729 eval additional_libdir=\"$libdir\"
17731 exec_prefix="$acl_save_exec_prefix"
17732 prefix="$acl_save_prefix"
17735 additional_includedir="$withval/include"
17736 additional_libdir="$withval/lib"
17747 names_already_handled=
17748 names_next_round='iconv '
17749 while test -n "$names_next_round"; do
17750 names_this_round="$names_next_round"
17752 for name in $names_this_round; do
17754 for n in $names_already_handled; do
17755 if test "$n" = "$name"; then
17756 already_handled=yes
17760 if test -z "$already_handled"; then
17761 names_already_handled="$names_already_handled $name"
17762 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17763 eval value=\"\$HAVE_LIB$uppername\"
17764 if test -n "$value"; then
17765 if test "$value" = yes; then
17766 eval value=\"\$LIB$uppername\"
17767 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17768 eval value=\"\$LTLIB$uppername\"
17769 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17778 if test $use_additional = yes; then
17779 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17780 found_dir="$additional_libdir"
17781 found_so="$additional_libdir/lib$name.$shlibext"
17782 if test -f "$additional_libdir/lib$name.la"; then
17783 found_la="$additional_libdir/lib$name.la"
17786 if test -f "$additional_libdir/lib$name.$libext"; then
17787 found_dir="$additional_libdir"
17788 found_a="$additional_libdir/lib$name.$libext"
17789 if test -f "$additional_libdir/lib$name.la"; then
17790 found_la="$additional_libdir/lib$name.la"
17795 if test "X$found_dir" = "X"; then
17796 for x in $LDFLAGS $LTLIBICONV; do
17798 acl_save_prefix="$prefix"
17799 prefix="$acl_final_prefix"
17800 acl_save_exec_prefix="$exec_prefix"
17801 exec_prefix="$acl_final_exec_prefix"
17803 exec_prefix="$acl_save_exec_prefix"
17804 prefix="$acl_save_prefix"
17808 dir=`echo "X$x" | sed -e 's/^X-L//'`
17809 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17811 found_so="$dir/lib$name.$shlibext"
17812 if test -f "$dir/lib$name.la"; then
17813 found_la="$dir/lib$name.la"
17816 if test -f "$dir/lib$name.$libext"; then
17818 found_a="$dir/lib$name.$libext"
17819 if test -f "$dir/lib$name.la"; then
17820 found_la="$dir/lib$name.la"
17826 if test "X$found_dir" != "X"; then
17831 if test "X$found_dir" != "X"; then
17832 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17833 if test "X$found_so" != "X"; then
17834 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17835 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17838 for x in $ltrpathdirs; do
17839 if test "X$x" = "X$found_dir"; then
17844 if test -z "$haveit"; then
17845 ltrpathdirs="$ltrpathdirs $found_dir"
17847 if test "$hardcode_direct" = yes; then
17848 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17850 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17851 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17853 for x in $rpathdirs; do
17854 if test "X$x" = "X$found_dir"; then
17859 if test -z "$haveit"; then
17860 rpathdirs="$rpathdirs $found_dir"
17864 for x in $LDFLAGS $LIBICONV; do
17866 acl_save_prefix="$prefix"
17867 prefix="$acl_final_prefix"
17868 acl_save_exec_prefix="$exec_prefix"
17869 exec_prefix="$acl_final_exec_prefix"
17871 exec_prefix="$acl_save_exec_prefix"
17872 prefix="$acl_save_prefix"
17874 if test "X$x" = "X-L$found_dir"; then
17879 if test -z "$haveit"; then
17880 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17882 if test "$hardcode_minus_L" != no; then
17883 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17885 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17891 if test "X$found_a" != "X"; then
17892 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17894 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17897 additional_includedir=
17898 case "$found_dir" in
17900 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17901 additional_includedir="$basedir/include"
17904 if test "X$additional_includedir" != "X"; then
17905 if test "X$additional_includedir" != "X/usr/include"; then
17907 if test "X$additional_includedir" = "X/usr/local/include"; then
17908 if test -n "$GCC"; then
17910 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17914 if test -z "$haveit"; then
17915 for x in $CPPFLAGS $INCICONV; do
17917 acl_save_prefix="$prefix"
17918 prefix="$acl_final_prefix"
17919 acl_save_exec_prefix="$exec_prefix"
17920 exec_prefix="$acl_final_exec_prefix"
17922 exec_prefix="$acl_save_exec_prefix"
17923 prefix="$acl_save_prefix"
17925 if test "X$x" = "X-I$additional_includedir"; then
17930 if test -z "$haveit"; then
17931 if test -d "$additional_includedir"; then
17932 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17938 if test -n "$found_la"; then
17939 save_libdir="$libdir"
17940 case "$found_la" in
17941 */* | *\\*) . "$found_la" ;;
17942 *) . "./$found_la" ;;
17944 libdir="$save_libdir"
17945 for dep in $dependency_libs; do
17948 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17949 if test "X$additional_libdir" != "X/usr/lib"; then
17951 if test "X$additional_libdir" = "X/usr/local/lib"; then
17952 if test -n "$GCC"; then
17954 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17958 if test -z "$haveit"; then
17960 for x in $LDFLAGS $LIBICONV; do
17962 acl_save_prefix="$prefix"
17963 prefix="$acl_final_prefix"
17964 acl_save_exec_prefix="$exec_prefix"
17965 exec_prefix="$acl_final_exec_prefix"
17967 exec_prefix="$acl_save_exec_prefix"
17968 prefix="$acl_save_prefix"
17970 if test "X$x" = "X-L$additional_libdir"; then
17975 if test -z "$haveit"; then
17976 if test -d "$additional_libdir"; then
17977 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17981 for x in $LDFLAGS $LTLIBICONV; do
17983 acl_save_prefix="$prefix"
17984 prefix="$acl_final_prefix"
17985 acl_save_exec_prefix="$exec_prefix"
17986 exec_prefix="$acl_final_exec_prefix"
17988 exec_prefix="$acl_save_exec_prefix"
17989 prefix="$acl_save_prefix"
17991 if test "X$x" = "X-L$additional_libdir"; then
17996 if test -z "$haveit"; then
17997 if test -d "$additional_libdir"; then
17998 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18005 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18006 if test "$enable_rpath" != no; then
18008 for x in $rpathdirs; do
18009 if test "X$x" = "X$dir"; then
18014 if test -z "$haveit"; then
18015 rpathdirs="$rpathdirs $dir"
18018 for x in $ltrpathdirs; do
18019 if test "X$x" = "X$dir"; then
18024 if test -z "$haveit"; then
18025 ltrpathdirs="$ltrpathdirs $dir"
18030 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18033 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18036 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18037 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18043 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18044 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18050 if test "X$rpathdirs" != "X"; then
18051 if test -n "$hardcode_libdir_separator"; then
18053 for found_dir in $rpathdirs; do
18054 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18056 acl_save_libdir="$libdir"
18058 eval flag=\"$hardcode_libdir_flag_spec\"
18059 libdir="$acl_save_libdir"
18060 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18062 for found_dir in $rpathdirs; do
18063 acl_save_libdir="$libdir"
18064 libdir="$found_dir"
18065 eval flag=\"$hardcode_libdir_flag_spec\"
18066 libdir="$acl_save_libdir"
18067 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18071 if test "X$ltrpathdirs" != "X"; then
18072 for found_dir in $ltrpathdirs; do
18073 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18095 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18096 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18097 $as_echo_n "(cached) " >&6
18099 gt_save_CPPFLAGS="$CPPFLAGS"
18100 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18101 gt_save_LIBS="$LIBS"
18102 LIBS="$LIBS -framework CoreFoundation"
18103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18104 /* end confdefs.h. */
18105 #include <CFPreferences.h>
18109 CFPreferencesCopyAppValue(NULL, NULL)
18114 if ac_fn_c_try_link "$LINENO"; then :
18115 gt_cv_func_CFPreferencesCopyAppValue=yes
18117 gt_cv_func_CFPreferencesCopyAppValue=no
18119 rm -f core conftest.err conftest.$ac_objext \
18120 conftest$ac_exeext conftest.$ac_ext
18121 CPPFLAGS="$gt_save_CPPFLAGS"
18122 LIBS="$gt_save_LIBS"
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18125 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18126 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18128 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18132 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18133 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18134 $as_echo_n "(cached) " >&6
18136 gt_save_CPPFLAGS="$CPPFLAGS"
18137 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18138 gt_save_LIBS="$LIBS"
18139 LIBS="$LIBS -framework CoreFoundation"
18140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141 /* end confdefs.h. */
18142 #include <CFLocale.h>
18146 CFLocaleCopyCurrent();
18151 if ac_fn_c_try_link "$LINENO"; then :
18152 gt_cv_func_CFLocaleCopyCurrent=yes
18154 gt_cv_func_CFLocaleCopyCurrent=no
18156 rm -f core conftest.err conftest.$ac_objext \
18157 conftest$ac_exeext conftest.$ac_ext
18158 CPPFLAGS="$gt_save_CPPFLAGS"
18159 LIBS="$gt_save_LIBS"
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18162 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18163 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18165 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18169 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18170 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18177 $as_echo_n "checking whether NLS is requested... " >&6; }
18178 # Check whether --enable-nls was given.
18179 if test "${enable_nls+set}" = set; then :
18180 enableval=$enable_nls; USE_NLS=$enableval
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18186 $as_echo "$USE_NLS" >&6; }
18195 if test "$USE_NLS" = "yes"; then
18196 gt_use_preinstalled_gnugettext=no
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18204 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18205 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18206 $as_echo_n "(cached) " >&6
18208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18209 /* end confdefs.h. */
18210 #include <libintl.h>
18211 extern int _nl_msg_cat_cntr;
18212 extern int *_nl_domain_bindings;
18216 bindtextdomain ("", "");
18217 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18222 if ac_fn_c_try_link "$LINENO"; then :
18223 gt_cv_func_gnugettext1_libc=yes
18225 gt_cv_func_gnugettext1_libc=no
18227 rm -f core conftest.err conftest.$ac_objext \
18228 conftest$ac_exeext conftest.$ac_ext
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18231 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18233 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18239 am_save_CPPFLAGS="$CPPFLAGS"
18241 for element in $INCICONV; do
18243 for x in $CPPFLAGS; do
18245 acl_save_prefix="$prefix"
18246 prefix="$acl_final_prefix"
18247 acl_save_exec_prefix="$exec_prefix"
18248 exec_prefix="$acl_final_exec_prefix"
18250 exec_prefix="$acl_save_exec_prefix"
18251 prefix="$acl_save_prefix"
18253 if test "X$x" = "X$element"; then
18258 if test -z "$haveit"; then
18259 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18265 $as_echo_n "checking for iconv... " >&6; }
18266 if ${am_cv_func_iconv+:} false; then :
18267 $as_echo_n "(cached) " >&6
18270 am_cv_func_iconv="no, consider installing GNU libiconv"
18272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18273 /* end confdefs.h. */
18274 #include <stdlib.h>
18279 iconv_t cd = iconv_open("","");
18280 iconv(cd,NULL,NULL,NULL,NULL);
18286 if ac_fn_c_try_link "$LINENO"; then :
18287 am_cv_func_iconv=yes
18289 rm -f core conftest.err conftest.$ac_objext \
18290 conftest$ac_exeext conftest.$ac_ext
18291 if test "$am_cv_func_iconv" != yes; then
18292 am_save_LIBS="$LIBS"
18293 LIBS="$LIBS $LIBICONV"
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18296 #include <stdlib.h>
18301 iconv_t cd = iconv_open("","");
18302 iconv(cd,NULL,NULL,NULL,NULL);
18308 if ac_fn_c_try_link "$LINENO"; then :
18309 am_cv_lib_iconv=yes
18310 am_cv_func_iconv=yes
18312 rm -f core conftest.err conftest.$ac_objext \
18313 conftest$ac_exeext conftest.$ac_ext
18314 LIBS="$am_save_LIBS"
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18319 $as_echo "$am_cv_func_iconv" >&6; }
18320 if test "$am_cv_func_iconv" = yes; then
18322 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18325 if test "$am_cv_lib_iconv" = yes; then
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18327 $as_echo_n "checking how to link with libiconv... " >&6; }
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18329 $as_echo "$LIBICONV" >&6; }
18331 CPPFLAGS="$am_save_CPPFLAGS"
18343 acl_save_prefix="$prefix"
18344 prefix="$acl_final_prefix"
18345 acl_save_exec_prefix="$exec_prefix"
18346 exec_prefix="$acl_final_exec_prefix"
18348 eval additional_includedir=\"$includedir\"
18349 eval additional_libdir=\"$libdir\"
18351 exec_prefix="$acl_save_exec_prefix"
18352 prefix="$acl_save_prefix"
18355 # Check whether --with-libintl-prefix was given.
18356 if test "${with_libintl_prefix+set}" = set; then :
18357 withval=$with_libintl_prefix;
18358 if test "X$withval" = "Xno"; then
18361 if test "X$withval" = "X"; then
18363 acl_save_prefix="$prefix"
18364 prefix="$acl_final_prefix"
18365 acl_save_exec_prefix="$exec_prefix"
18366 exec_prefix="$acl_final_exec_prefix"
18368 eval additional_includedir=\"$includedir\"
18369 eval additional_libdir=\"$libdir\"
18371 exec_prefix="$acl_save_exec_prefix"
18372 prefix="$acl_save_prefix"
18375 additional_includedir="$withval/include"
18376 additional_libdir="$withval/lib"
18387 names_already_handled=
18388 names_next_round='intl '
18389 while test -n "$names_next_round"; do
18390 names_this_round="$names_next_round"
18392 for name in $names_this_round; do
18394 for n in $names_already_handled; do
18395 if test "$n" = "$name"; then
18396 already_handled=yes
18400 if test -z "$already_handled"; then
18401 names_already_handled="$names_already_handled $name"
18402 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18403 eval value=\"\$HAVE_LIB$uppername\"
18404 if test -n "$value"; then
18405 if test "$value" = yes; then
18406 eval value=\"\$LIB$uppername\"
18407 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18408 eval value=\"\$LTLIB$uppername\"
18409 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18418 if test $use_additional = yes; then
18419 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18420 found_dir="$additional_libdir"
18421 found_so="$additional_libdir/lib$name.$shlibext"
18422 if test -f "$additional_libdir/lib$name.la"; then
18423 found_la="$additional_libdir/lib$name.la"
18426 if test -f "$additional_libdir/lib$name.$libext"; then
18427 found_dir="$additional_libdir"
18428 found_a="$additional_libdir/lib$name.$libext"
18429 if test -f "$additional_libdir/lib$name.la"; then
18430 found_la="$additional_libdir/lib$name.la"
18435 if test "X$found_dir" = "X"; then
18436 for x in $LDFLAGS $LTLIBINTL; do
18438 acl_save_prefix="$prefix"
18439 prefix="$acl_final_prefix"
18440 acl_save_exec_prefix="$exec_prefix"
18441 exec_prefix="$acl_final_exec_prefix"
18443 exec_prefix="$acl_save_exec_prefix"
18444 prefix="$acl_save_prefix"
18448 dir=`echo "X$x" | sed -e 's/^X-L//'`
18449 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18451 found_so="$dir/lib$name.$shlibext"
18452 if test -f "$dir/lib$name.la"; then
18453 found_la="$dir/lib$name.la"
18456 if test -f "$dir/lib$name.$libext"; then
18458 found_a="$dir/lib$name.$libext"
18459 if test -f "$dir/lib$name.la"; then
18460 found_la="$dir/lib$name.la"
18466 if test "X$found_dir" != "X"; then
18471 if test "X$found_dir" != "X"; then
18472 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18473 if test "X$found_so" != "X"; then
18474 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18475 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18478 for x in $ltrpathdirs; do
18479 if test "X$x" = "X$found_dir"; then
18484 if test -z "$haveit"; then
18485 ltrpathdirs="$ltrpathdirs $found_dir"
18487 if test "$hardcode_direct" = yes; then
18488 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18490 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18491 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18493 for x in $rpathdirs; do
18494 if test "X$x" = "X$found_dir"; then
18499 if test -z "$haveit"; then
18500 rpathdirs="$rpathdirs $found_dir"
18504 for x in $LDFLAGS $LIBINTL; do
18506 acl_save_prefix="$prefix"
18507 prefix="$acl_final_prefix"
18508 acl_save_exec_prefix="$exec_prefix"
18509 exec_prefix="$acl_final_exec_prefix"
18511 exec_prefix="$acl_save_exec_prefix"
18512 prefix="$acl_save_prefix"
18514 if test "X$x" = "X-L$found_dir"; then
18519 if test -z "$haveit"; then
18520 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18522 if test "$hardcode_minus_L" != no; then
18523 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18525 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18531 if test "X$found_a" != "X"; then
18532 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18534 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18537 additional_includedir=
18538 case "$found_dir" in
18540 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18541 additional_includedir="$basedir/include"
18544 if test "X$additional_includedir" != "X"; then
18545 if test "X$additional_includedir" != "X/usr/include"; then
18547 if test "X$additional_includedir" = "X/usr/local/include"; then
18548 if test -n "$GCC"; then
18550 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18554 if test -z "$haveit"; then
18555 for x in $CPPFLAGS $INCINTL; do
18557 acl_save_prefix="$prefix"
18558 prefix="$acl_final_prefix"
18559 acl_save_exec_prefix="$exec_prefix"
18560 exec_prefix="$acl_final_exec_prefix"
18562 exec_prefix="$acl_save_exec_prefix"
18563 prefix="$acl_save_prefix"
18565 if test "X$x" = "X-I$additional_includedir"; then
18570 if test -z "$haveit"; then
18571 if test -d "$additional_includedir"; then
18572 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18578 if test -n "$found_la"; then
18579 save_libdir="$libdir"
18580 case "$found_la" in
18581 */* | *\\*) . "$found_la" ;;
18582 *) . "./$found_la" ;;
18584 libdir="$save_libdir"
18585 for dep in $dependency_libs; do
18588 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18589 if test "X$additional_libdir" != "X/usr/lib"; then
18591 if test "X$additional_libdir" = "X/usr/local/lib"; then
18592 if test -n "$GCC"; then
18594 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18598 if test -z "$haveit"; then
18600 for x in $LDFLAGS $LIBINTL; do
18602 acl_save_prefix="$prefix"
18603 prefix="$acl_final_prefix"
18604 acl_save_exec_prefix="$exec_prefix"
18605 exec_prefix="$acl_final_exec_prefix"
18607 exec_prefix="$acl_save_exec_prefix"
18608 prefix="$acl_save_prefix"
18610 if test "X$x" = "X-L$additional_libdir"; then
18615 if test -z "$haveit"; then
18616 if test -d "$additional_libdir"; then
18617 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18621 for x in $LDFLAGS $LTLIBINTL; do
18623 acl_save_prefix="$prefix"
18624 prefix="$acl_final_prefix"
18625 acl_save_exec_prefix="$exec_prefix"
18626 exec_prefix="$acl_final_exec_prefix"
18628 exec_prefix="$acl_save_exec_prefix"
18629 prefix="$acl_save_prefix"
18631 if test "X$x" = "X-L$additional_libdir"; then
18636 if test -z "$haveit"; then
18637 if test -d "$additional_libdir"; then
18638 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18645 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18646 if test "$enable_rpath" != no; then
18648 for x in $rpathdirs; do
18649 if test "X$x" = "X$dir"; then
18654 if test -z "$haveit"; then
18655 rpathdirs="$rpathdirs $dir"
18658 for x in $ltrpathdirs; do
18659 if test "X$x" = "X$dir"; then
18664 if test -z "$haveit"; then
18665 ltrpathdirs="$ltrpathdirs $dir"
18670 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18673 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18676 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18677 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18683 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18684 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18690 if test "X$rpathdirs" != "X"; then
18691 if test -n "$hardcode_libdir_separator"; then
18693 for found_dir in $rpathdirs; do
18694 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18696 acl_save_libdir="$libdir"
18698 eval flag=\"$hardcode_libdir_flag_spec\"
18699 libdir="$acl_save_libdir"
18700 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18702 for found_dir in $rpathdirs; do
18703 acl_save_libdir="$libdir"
18704 libdir="$found_dir"
18705 eval flag=\"$hardcode_libdir_flag_spec\"
18706 libdir="$acl_save_libdir"
18707 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18711 if test "X$ltrpathdirs" != "X"; then
18712 for found_dir in $ltrpathdirs; do
18713 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18718 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18719 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18720 $as_echo_n "(cached) " >&6
18722 gt_save_CPPFLAGS="$CPPFLAGS"
18723 CPPFLAGS="$CPPFLAGS $INCINTL"
18724 gt_save_LIBS="$LIBS"
18725 LIBS="$LIBS $LIBINTL"
18726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18727 /* end confdefs.h. */
18728 #include <libintl.h>
18729 extern int _nl_msg_cat_cntr;
18734 const char *_nl_expand_alias (const char *);
18738 bindtextdomain ("", "");
18739 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18744 if ac_fn_c_try_link "$LINENO"; then :
18745 gt_cv_func_gnugettext1_libintl=yes
18747 gt_cv_func_gnugettext1_libintl=no
18749 rm -f core conftest.err conftest.$ac_objext \
18750 conftest$ac_exeext conftest.$ac_ext
18751 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18752 LIBS="$LIBS $LIBICONV"
18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18754 /* end confdefs.h. */
18755 #include <libintl.h>
18756 extern int _nl_msg_cat_cntr;
18761 const char *_nl_expand_alias (const char *);
18765 bindtextdomain ("", "");
18766 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18771 if ac_fn_c_try_link "$LINENO"; then :
18772 LIBINTL="$LIBINTL $LIBICONV"
18773 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18774 gt_cv_func_gnugettext1_libintl=yes
18777 rm -f core conftest.err conftest.$ac_objext \
18778 conftest$ac_exeext conftest.$ac_ext
18780 CPPFLAGS="$gt_save_CPPFLAGS"
18781 LIBS="$gt_save_LIBS"
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18784 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18787 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18788 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18789 && test "$PACKAGE" != gettext-runtime \
18790 && test "$PACKAGE" != gettext-tools; }; then
18791 gt_use_preinstalled_gnugettext=yes
18800 if test -n "$INTL_MACOSX_LIBS"; then
18801 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18802 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18803 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18804 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18808 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18809 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18811 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18819 $as_echo_n "checking whether to use NLS... " >&6; }
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18821 $as_echo "$USE_NLS" >&6; }
18822 if test "$USE_NLS" = "yes"; then
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18824 $as_echo_n "checking where the gettext function comes from... " >&6; }
18825 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18826 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18827 gt_source="external libintl"
18832 gt_source="included intl directory"
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18835 $as_echo "$gt_source" >&6; }
18838 if test "$USE_NLS" = "yes"; then
18840 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18841 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18843 $as_echo_n "checking how to link with libintl... " >&6; }
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18845 $as_echo "$LIBINTL" >&6; }
18847 for element in $INCINTL; do
18849 for x in $CPPFLAGS; do
18851 acl_save_prefix="$prefix"
18852 prefix="$acl_final_prefix"
18853 acl_save_exec_prefix="$exec_prefix"
18854 exec_prefix="$acl_final_exec_prefix"
18856 exec_prefix="$acl_save_exec_prefix"
18857 prefix="$acl_save_prefix"
18859 if test "X$x" = "X$element"; then
18864 if test -z "$haveit"; then
18865 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18872 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18875 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18884 INTLLIBS="$LIBINTL"
18892 os_name=`uname -s 2>/dev/null`
18893 if test x${prefix} = xNONE ; then
18894 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18895 sysconfdir=/etc/bacula
18898 if test `eval echo ${libdir}` = NONE/lib ; then
18901 os_processor=`uname -p 2>/dev/null`
18902 case ${os_processor} in
18917 if test `eval echo ${includedir}` = NONE/include ; then
18918 includedir=/usr/include
18921 if test `eval echo ${datarootdir}` = NONE/share ; then
18922 datarootdir=/usr/share
18927 if test x${exec_prefix} = xNONE ; then
18928 exec_prefix=${prefix}
18931 sysconfdir=`eval echo ${sysconfdir}`
18932 datarootdir=`eval echo ${datarootdir}`
18933 docdir=`eval echo ${docdir}`
18934 htmldir=`eval echo ${htmldir}`
18935 libdir=`eval echo ${libdir}`
18936 includedir=`eval echo ${includedir}`
18937 localedir=`eval echo ${datarootdir}/locale`
18938 cat >>confdefs.h <<_ACEOF
18939 #define SYSCONFDIR "$sysconfdir"
18942 cat >>confdefs.h <<_ACEOF
18943 #define LOCALEDIR "$localedir"
18947 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18948 sbindir=${exec_prefix}/sbin
18950 sbindir=`eval echo ${sbindir}`
18952 if test x$mandir = x'${prefix}/man' ; then
18953 mandir=/usr/share/man
18956 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18957 htmldir=`eval echo ${docdir}html`
18960 if test x$docdir = x'/usr/share/doc/' ; then
18961 docdir=`eval echo ${docdir}bacula`
18965 for ac_prog in msgfmt
18967 # Extract the first word of "$ac_prog", so it can be a program name with args.
18968 set dummy $ac_prog; ac_word=$2
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18970 $as_echo_n "checking for $ac_word... " >&6; }
18971 if ${ac_cv_path_MSGFMT+:} false; then :
18972 $as_echo_n "(cached) " >&6
18976 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18980 for as_dir in $PATH
18983 test -z "$as_dir" && as_dir=.
18984 for ac_exec_ext in '' $ac_executable_extensions; do
18985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18986 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18997 MSGFMT=$ac_cv_path_MSGFMT
18998 if test -n "$MSGFMT"; then
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19000 $as_echo "$MSGFMT" >&6; }
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19003 $as_echo "no" >&6; }
19007 test -n "$MSGFMT" && break
19009 test -n "$MSGFMT" || MSGFMT="no"
19011 if test "$MSGFMT" = "no"
19013 echo 'msgfmt program not found, disabling NLS !'
19015 USE_INCLUDED_LIBINTL=no
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19019 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19020 if ${ac_cv_gnu_library_2+:} false; then :
19021 $as_echo_n "(cached) " >&6
19023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024 /* end confdefs.h. */
19026 #include <features.h>
19027 #ifdef __GNU_LIBRARY__
19028 #if (__GLIBC__ >= 2)
19034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19035 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19036 ac_cv_gnu_library_2=yes
19038 ac_cv_gnu_library_2=no
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19046 $as_echo "$ac_cv_gnu_library_2" >&6; }
19048 GLIBC2="$ac_cv_gnu_library_2"
19051 if test -n "$ac_tool_prefix"; then
19052 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19053 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19055 $as_echo_n "checking for $ac_word... " >&6; }
19056 if ${ac_cv_prog_RANLIB+:} false; then :
19057 $as_echo_n "(cached) " >&6
19059 if test -n "$RANLIB"; then
19060 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19063 for as_dir in $PATH
19066 test -z "$as_dir" && as_dir=.
19067 for ac_exec_ext in '' $ac_executable_extensions; do
19068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19069 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19079 RANLIB=$ac_cv_prog_RANLIB
19080 if test -n "$RANLIB"; then
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19082 $as_echo "$RANLIB" >&6; }
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19085 $as_echo "no" >&6; }
19090 if test -z "$ac_cv_prog_RANLIB"; then
19091 ac_ct_RANLIB=$RANLIB
19092 # Extract the first word of "ranlib", so it can be a program name with args.
19093 set dummy ranlib; ac_word=$2
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19095 $as_echo_n "checking for $ac_word... " >&6; }
19096 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19097 $as_echo_n "(cached) " >&6
19099 if test -n "$ac_ct_RANLIB"; then
19100 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19103 for as_dir in $PATH
19106 test -z "$as_dir" && as_dir=.
19107 for ac_exec_ext in '' $ac_executable_extensions; do
19108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19109 ac_cv_prog_ac_ct_RANLIB="ranlib"
19110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19119 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19120 if test -n "$ac_ct_RANLIB"; then
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19122 $as_echo "$ac_ct_RANLIB" >&6; }
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19125 $as_echo "no" >&6; }
19128 if test "x$ac_ct_RANLIB" = x; then
19131 case $cross_compiling:$ac_tool_warned in
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19135 ac_tool_warned=yes ;;
19137 RANLIB=$ac_ct_RANLIB
19140 RANLIB="$ac_cv_prog_RANLIB"
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19145 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19146 if ${ac_cv_lib_cposix_strerror+:} false; then :
19147 $as_echo_n "(cached) " >&6
19149 ac_check_lib_save_LIBS=$LIBS
19150 LIBS="-lcposix $LIBS"
19151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19152 /* end confdefs.h. */
19154 /* Override any GCC internal prototype to avoid an error.
19155 Use char because int might match the return type of a GCC
19156 builtin and then its argument prototype would still apply. */
19164 return strerror ();
19169 if ac_fn_c_try_link "$LINENO"; then :
19170 ac_cv_lib_cposix_strerror=yes
19172 ac_cv_lib_cposix_strerror=no
19174 rm -f core conftest.err conftest.$ac_objext \
19175 conftest$ac_exeext conftest.$ac_ext
19176 LIBS=$ac_check_lib_save_LIBS
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19179 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19180 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19181 LIBS="$LIBS -lcposix"
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19187 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19188 if ${ac_cv_c_const+:} false; then :
19189 $as_echo_n "(cached) " >&6
19191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19192 /* end confdefs.h. */
19198 #ifndef __cplusplus
19199 /* Ultrix mips cc rejects this sort of thing. */
19200 typedef int charset[2];
19201 const charset cs = { 0, 0 };
19202 /* SunOS 4.1.1 cc rejects this. */
19203 char const *const *pcpcc;
19205 /* NEC SVR4.0.2 mips cc rejects this. */
19206 struct point {int x, y;};
19207 static struct point const zero = {0,0};
19208 /* AIX XL C 1.02.0.0 rejects this.
19209 It does not let you subtract one const X* pointer from another in
19210 an arm of an if-expression whose if-part is not a constant
19212 const char *g = "string";
19213 pcpcc = &g + (g ? g-g : 0);
19214 /* HPUX 7.0 cc rejects these. */
19216 ppc = (char**) pcpcc;
19217 pcpcc = (char const *const *) ppc;
19218 { /* SCO 3.2v4 cc rejects this sort of thing. */
19221 char const *s = 0 ? (char *) 0 : (char const *) 0;
19226 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19227 int x[] = {25, 17};
19228 const int *foo = &x[0];
19231 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19232 typedef const int *iptr;
19236 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19237 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19238 struct s { int j; const int *ap[3]; } bx;
19239 struct s *b = &bx; b->j = 5;
19241 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19242 const int foo = 10;
19243 if (!foo) return 0;
19245 return !cs[0] && !zero.x;
19252 if ac_fn_c_try_compile "$LINENO"; then :
19257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19260 $as_echo "$ac_cv_c_const" >&6; }
19261 if test $ac_cv_c_const = no; then
19263 $as_echo "#define const /**/" >>confdefs.h
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19269 $as_echo_n "checking for signed... " >&6; }
19270 if ${bh_cv_c_signed+:} false; then :
19271 $as_echo_n "(cached) " >&6
19273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19274 /* end confdefs.h. */
19284 if ac_fn_c_try_compile "$LINENO"; then :
19289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19292 $as_echo "$bh_cv_c_signed" >&6; }
19293 if test $bh_cv_c_signed = no; then
19295 $as_echo "#define signed /**/" >>confdefs.h
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19300 $as_echo_n "checking for inline... " >&6; }
19301 if ${ac_cv_c_inline+:} false; then :
19302 $as_echo_n "(cached) " >&6
19305 for ac_kw in inline __inline__ __inline; do
19306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19307 /* end confdefs.h. */
19308 #ifndef __cplusplus
19310 static $ac_kw foo_t static_foo () {return 0; }
19311 $ac_kw foo_t foo () {return 0; }
19315 if ac_fn_c_try_compile "$LINENO"; then :
19316 ac_cv_c_inline=$ac_kw
19318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19319 test "$ac_cv_c_inline" != no && break
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19324 $as_echo "$ac_cv_c_inline" >&6; }
19326 case $ac_cv_c_inline in
19329 case $ac_cv_c_inline in
19331 *) ac_val=$ac_cv_c_inline;;
19333 cat >>confdefs.h <<_ACEOF
19334 #ifndef __cplusplus
19335 #define inline $ac_val
19341 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19342 if test "x$ac_cv_type_off_t" = xyes; then :
19346 cat >>confdefs.h <<_ACEOF
19347 #define off_t long int
19352 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19353 if test "x$ac_cv_type_size_t" = xyes; then :
19357 cat >>confdefs.h <<_ACEOF
19358 #define size_t unsigned int
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19365 $as_echo_n "checking for long long... " >&6; }
19366 if ${ac_cv_type_long_long+:} false; then :
19367 $as_echo_n "(cached) " >&6
19369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19370 /* end confdefs.h. */
19371 long long ll = 1LL; int i = 63;
19375 long long llmax = (long long) -1;
19376 return ll << i | ll >> i | llmax / ll | llmax % ll;
19381 if ac_fn_c_try_link "$LINENO"; then :
19382 ac_cv_type_long_long=yes
19384 ac_cv_type_long_long=no
19386 rm -f core conftest.err conftest.$ac_objext \
19387 conftest$ac_exeext conftest.$ac_ext
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19390 $as_echo "$ac_cv_type_long_long" >&6; }
19391 if test $ac_cv_type_long_long = yes; then
19393 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19399 $as_echo_n "checking for long double... " >&6; }
19400 if ${gt_cv_c_long_double+:} false; then :
19401 $as_echo_n "(cached) " >&6
19403 if test "$GCC" = yes; then
19404 gt_cv_c_long_double=yes
19406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19407 /* end confdefs.h. */
19409 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19410 long double foo = 0.0;
19411 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19412 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19422 if ac_fn_c_try_compile "$LINENO"; then :
19423 gt_cv_c_long_double=yes
19425 gt_cv_c_long_double=no
19427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19431 $as_echo "$gt_cv_c_long_double" >&6; }
19432 if test $gt_cv_c_long_double = yes; then
19434 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19440 $as_echo_n "checking for wchar_t... " >&6; }
19441 if ${gt_cv_c_wchar_t+:} false; then :
19442 $as_echo_n "(cached) " >&6
19444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19445 /* end confdefs.h. */
19446 #include <stddef.h>
19447 wchar_t foo = (wchar_t)'\0';
19456 if ac_fn_c_try_compile "$LINENO"; then :
19457 gt_cv_c_wchar_t=yes
19461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19464 $as_echo "$gt_cv_c_wchar_t" >&6; }
19465 if test $gt_cv_c_wchar_t = yes; then
19467 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19473 $as_echo_n "checking for wint_t... " >&6; }
19474 if ${gt_cv_c_wint_t+:} false; then :
19475 $as_echo_n "(cached) " >&6
19477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19478 /* end confdefs.h. */
19480 wint_t foo = (wchar_t)'\0';
19489 if ac_fn_c_try_compile "$LINENO"; then :
19494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19497 $as_echo "$gt_cv_c_wint_t" >&6; }
19498 if test $gt_cv_c_wint_t = yes; then
19500 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19506 $as_echo_n "checking for inttypes.h... " >&6; }
19507 if ${gl_cv_header_inttypes_h+:} false; then :
19508 $as_echo_n "(cached) " >&6
19510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19511 /* end confdefs.h. */
19512 #include <sys/types.h>
19513 #include <inttypes.h>
19517 uintmax_t i = (uintmax_t) -1;
19522 if ac_fn_c_try_compile "$LINENO"; then :
19523 gl_cv_header_inttypes_h=yes
19525 gl_cv_header_inttypes_h=no
19527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19530 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19531 if test $gl_cv_header_inttypes_h = yes; then
19533 cat >>confdefs.h <<_ACEOF
19534 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19541 $as_echo_n "checking for stdint.h... " >&6; }
19542 if ${gl_cv_header_stdint_h+:} false; then :
19543 $as_echo_n "(cached) " >&6
19545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19546 /* end confdefs.h. */
19547 #include <sys/types.h>
19548 #include <stdint.h>
19552 uintmax_t i = (uintmax_t) -1;
19557 if ac_fn_c_try_compile "$LINENO"; then :
19558 gl_cv_header_stdint_h=yes
19560 gl_cv_header_stdint_h=no
19562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19565 $as_echo "$gl_cv_header_stdint_h" >&6; }
19566 if test $gl_cv_header_stdint_h = yes; then
19568 cat >>confdefs.h <<_ACEOF
19569 #define HAVE_STDINT_H_WITH_UINTMAX 1
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19578 $as_echo_n "checking for intmax_t... " >&6; }
19579 if ${gt_cv_c_intmax_t+:} false; then :
19580 $as_echo_n "(cached) " >&6
19582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19583 /* end confdefs.h. */
19585 #include <stddef.h>
19586 #include <stdlib.h>
19587 #if HAVE_STDINT_H_WITH_UINTMAX
19588 #include <stdint.h>
19590 #if HAVE_INTTYPES_H_WITH_UINTMAX
19591 #include <inttypes.h>
19602 if ac_fn_c_try_compile "$LINENO"; then :
19603 gt_cv_c_intmax_t=yes
19605 gt_cv_c_intmax_t=no
19607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19610 $as_echo "$gt_cv_c_intmax_t" >&6; }
19611 if test $gt_cv_c_intmax_t = yes; then
19613 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19620 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19621 if ${gt_cv_func_printf_posix+:} false; then :
19622 $as_echo_n "(cached) " >&6
19625 if test "$cross_compiling" = yes; then :
19627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19628 /* end confdefs.h. */
19630 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19636 $EGREP "notposix" >/dev/null 2>&1; then :
19637 gt_cv_func_printf_posix="guessing no"
19639 gt_cv_func_printf_posix="guessing yes"
19645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19646 /* end confdefs.h. */
19649 #include <string.h>
19650 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19651 dollar expansion (possibly an autoconf bug). */
19652 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19653 static char buf[100];
19656 sprintf (buf, format, 33, 55);
19657 return (strcmp (buf, "55 33") != 0);
19660 if ac_fn_c_try_run "$LINENO"; then :
19661 gt_cv_func_printf_posix=yes
19663 gt_cv_func_printf_posix=no
19665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19666 conftest.$ac_objext conftest.beam conftest.$ac_ext
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19672 $as_echo "$gt_cv_func_printf_posix" >&6; }
19673 case $gt_cv_func_printf_posix in
19676 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19681 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19682 # for constant arguments. Useless!
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19684 $as_echo_n "checking for working alloca.h... " >&6; }
19685 if ${ac_cv_working_alloca_h+:} false; then :
19686 $as_echo_n "(cached) " >&6
19688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h. */
19690 #include <alloca.h>
19694 char *p = (char *) alloca (2 * sizeof (int));
19700 if ac_fn_c_try_link "$LINENO"; then :
19701 ac_cv_working_alloca_h=yes
19703 ac_cv_working_alloca_h=no
19705 rm -f core conftest.err conftest.$ac_objext \
19706 conftest$ac_exeext conftest.$ac_ext
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19709 $as_echo "$ac_cv_working_alloca_h" >&6; }
19710 if test $ac_cv_working_alloca_h = yes; then
19712 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19717 $as_echo_n "checking for alloca... " >&6; }
19718 if ${ac_cv_func_alloca_works+:} false; then :
19719 $as_echo_n "(cached) " >&6
19721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h. */
19724 # define alloca __builtin_alloca
19727 # include <malloc.h>
19728 # define alloca _alloca
19730 # ifdef HAVE_ALLOCA_H
19731 # include <alloca.h>
19736 # ifndef alloca /* predefined by HP cc +Olibcalls */
19737 void *alloca (size_t);
19747 char *p = (char *) alloca (1);
19753 if ac_fn_c_try_link "$LINENO"; then :
19754 ac_cv_func_alloca_works=yes
19756 ac_cv_func_alloca_works=no
19758 rm -f core conftest.err conftest.$ac_objext \
19759 conftest$ac_exeext conftest.$ac_ext
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19762 $as_echo "$ac_cv_func_alloca_works" >&6; }
19764 if test $ac_cv_func_alloca_works = yes; then
19766 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19769 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19770 # that cause trouble. Some versions do not even contain alloca or
19771 # contain a buggy version. If you still want to use their alloca,
19772 # use ar to extract alloca.o from them instead of compiling alloca.c.
19774 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19776 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19780 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19781 if ${ac_cv_os_cray+:} false; then :
19782 $as_echo_n "(cached) " >&6
19784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19785 /* end confdefs.h. */
19786 #if defined CRAY && ! defined CRAY2
19793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19794 $EGREP "webecray" >/dev/null 2>&1; then :
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19803 $as_echo "$ac_cv_os_cray" >&6; }
19804 if test $ac_cv_os_cray = yes; then
19805 for ac_func in _getb67 GETB67 getb67; do
19806 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19807 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19808 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19810 cat >>confdefs.h <<_ACEOF
19811 #define CRAY_STACKSEG_END $ac_func
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19821 $as_echo_n "checking stack direction for C alloca... " >&6; }
19822 if ${ac_cv_c_stack_direction+:} false; then :
19823 $as_echo_n "(cached) " >&6
19825 if test "$cross_compiling" = yes; then :
19826 ac_cv_c_stack_direction=0
19828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h. */
19830 $ac_includes_default
19832 find_stack_direction (int *addr, int depth)
19834 int dir, dummy = 0;
19837 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19838 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19839 return dir + dummy;
19843 main (int argc, char **argv)
19845 return find_stack_direction (0, argc + !argv + 20) < 0;
19848 if ac_fn_c_try_run "$LINENO"; then :
19849 ac_cv_c_stack_direction=1
19851 ac_cv_c_stack_direction=-1
19853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19854 conftest.$ac_objext conftest.beam conftest.$ac_ext
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19859 $as_echo "$ac_cv_c_stack_direction" >&6; }
19860 cat >>confdefs.h <<_ACEOF
19861 #define STACK_DIRECTION $ac_cv_c_stack_direction
19870 for ac_header in $ac_header_list
19872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19873 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19875 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19876 cat >>confdefs.h <<_ACEOF
19877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19891 for ac_func in getpagesize
19893 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19894 if test "x$ac_cv_func_getpagesize" = xyes; then :
19895 cat >>confdefs.h <<_ACEOF
19896 #define HAVE_GETPAGESIZE 1
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19903 $as_echo_n "checking for working mmap... " >&6; }
19904 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19905 $as_echo_n "(cached) " >&6
19907 if test "$cross_compiling" = yes; then :
19908 ac_cv_func_mmap_fixed_mapped=no
19910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19911 /* end confdefs.h. */
19912 $ac_includes_default
19913 /* malloc might have been renamed as rpl_malloc. */
19916 /* Thanks to Mike Haertel and Jim Avera for this test.
19917 Here is a matrix of mmap possibilities:
19918 mmap private not fixed
19919 mmap private fixed at somewhere currently unmapped
19920 mmap private fixed at somewhere already mapped
19921 mmap shared not fixed
19922 mmap shared fixed at somewhere currently unmapped
19923 mmap shared fixed at somewhere already mapped
19924 For private mappings, we should verify that changes cannot be read()
19925 back from the file, nor mmap's back from the file at a different
19926 address. (There have been systems where private was not correctly
19927 implemented like the infamous i386 svr4.0, and systems where the
19928 VM page cache was not coherent with the file system buffer cache
19929 like early versions of FreeBSD and possibly contemporary NetBSD.)
19930 For shared mappings, we should conversely verify that changes get
19931 propagated back to all the places they're supposed to be.
19933 Grep wants private fixed already mapped.
19934 The main things grep needs to know about mmap are:
19935 * does it exist and is it safe to write into the mmap'd area
19936 * how to use it (BSD variants) */
19939 #include <sys/mman.h>
19941 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19945 /* This mess was copied from the GNU getpagesize.h. */
19946 #ifndef HAVE_GETPAGESIZE
19947 # ifdef _SC_PAGESIZE
19948 # define getpagesize() sysconf(_SC_PAGESIZE)
19949 # else /* no _SC_PAGESIZE */
19950 # ifdef HAVE_SYS_PARAM_H
19951 # include <sys/param.h>
19952 # ifdef EXEC_PAGESIZE
19953 # define getpagesize() EXEC_PAGESIZE
19954 # else /* no EXEC_PAGESIZE */
19956 # define getpagesize() NBPG * CLSIZE
19959 # endif /* no CLSIZE */
19960 # else /* no NBPG */
19962 # define getpagesize() NBPC
19963 # else /* no NBPC */
19965 # define getpagesize() PAGESIZE
19966 # endif /* PAGESIZE */
19967 # endif /* no NBPC */
19968 # endif /* no NBPG */
19969 # endif /* no EXEC_PAGESIZE */
19970 # else /* no HAVE_SYS_PARAM_H */
19971 # define getpagesize() 8192 /* punt totally */
19972 # endif /* no HAVE_SYS_PARAM_H */
19973 # endif /* no _SC_PAGESIZE */
19975 #endif /* no HAVE_GETPAGESIZE */
19980 char *data, *data2, *data3;
19981 const char *cdata2;
19985 pagesize = getpagesize ();
19987 /* First, make a file with some known garbage in it. */
19988 data = (char *) malloc (pagesize);
19991 for (i = 0; i < pagesize; ++i)
19992 *(data + i) = rand ();
19994 fd = creat ("conftest.mmap", 0600);
19997 if (write (fd, data, pagesize) != pagesize)
20001 /* Next, check that the tail of a page is zero-filled. File must have
20002 non-zero length, otherwise we risk SIGBUS for entire page. */
20003 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20007 if (write (fd2, cdata2, 1) != 1)
20009 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20010 if (data2 == MAP_FAILED)
20012 for (i = 0; i < pagesize; ++i)
20016 if (munmap (data2, pagesize))
20019 /* Next, try to mmap the file at a fixed address which already has
20020 something else allocated at it. If we can, also make sure that
20021 we see the same garbage. */
20022 fd = open ("conftest.mmap", O_RDWR);
20025 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20026 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20028 for (i = 0; i < pagesize; ++i)
20029 if (*(data + i) != *(data2 + i))
20032 /* Finally, make sure that changes to the mapped area do not
20033 percolate back to the file as seen by read(). (This is a bug on
20034 some variants of i386 svr4.0.) */
20035 for (i = 0; i < pagesize; ++i)
20036 *(data2 + i) = *(data2 + i) + 1;
20037 data3 = (char *) malloc (pagesize);
20040 if (read (fd, data3, pagesize) != pagesize)
20042 for (i = 0; i < pagesize; ++i)
20043 if (*(data + i) != *(data3 + i))
20049 if ac_fn_c_try_run "$LINENO"; then :
20050 ac_cv_func_mmap_fixed_mapped=yes
20052 ac_cv_func_mmap_fixed_mapped=no
20054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20055 conftest.$ac_objext conftest.beam conftest.$ac_ext
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20060 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20061 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20063 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20066 rm -f conftest.mmap conftest.txt
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20070 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20071 if ${ac_cv_gnu_library_2_1+:} false; then :
20072 $as_echo_n "(cached) " >&6
20074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20075 /* end confdefs.h. */
20077 #include <features.h>
20078 #ifdef __GNU_LIBRARY__
20079 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20086 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20087 ac_cv_gnu_library_2_1=yes
20089 ac_cv_gnu_library_2_1=no
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20097 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20099 GLIBC21="$ac_cv_gnu_library_2_1"
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20105 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20106 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20107 $as_echo_n "(cached) " >&6
20110 if test "$cross_compiling" = yes; then :
20112 # Guess based on the CPU.
20113 case "$host_cpu" in
20114 alpha* | i3456786 | m68k | s390*)
20115 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20117 gt_cv_int_divbyzero_sigfpe="guessing no";;
20121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20122 /* end confdefs.h. */
20124 #include <stdlib.h>
20125 #include <signal.h>
20129 sigfpe_handler (int sig)
20131 sigfpe_handler (sig) int sig;
20134 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20135 exit (sig != SIGFPE);
20145 signal (SIGFPE, sigfpe_handler);
20146 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20147 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20148 signal (SIGTRAP, sigfpe_handler);
20150 /* Linux/SPARC yields signal SIGILL. */
20151 #if defined (__sparc__) && defined (__linux__)
20152 signal (SIGILL, sigfpe_handler);
20161 if ac_fn_c_try_run "$LINENO"; then :
20162 gt_cv_int_divbyzero_sigfpe=yes
20164 gt_cv_int_divbyzero_sigfpe=no
20166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20167 conftest.$ac_objext conftest.beam conftest.$ac_ext
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20173 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20174 case "$gt_cv_int_divbyzero_sigfpe" in
20179 cat >>confdefs.h <<_ACEOF
20180 #define INTDIV0_RAISES_SIGFPE $value
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20186 $as_echo_n "checking for unsigned long long... " >&6; }
20187 if ${ac_cv_type_unsigned_long_long+:} false; then :
20188 $as_echo_n "(cached) " >&6
20190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191 /* end confdefs.h. */
20192 unsigned long long ull = 1ULL; int i = 63;
20196 unsigned long long ullmax = (unsigned long long) -1;
20197 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20202 if ac_fn_c_try_link "$LINENO"; then :
20203 ac_cv_type_unsigned_long_long=yes
20205 ac_cv_type_unsigned_long_long=no
20207 rm -f core conftest.err conftest.$ac_objext \
20208 conftest$ac_exeext conftest.$ac_ext
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20211 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20212 if test $ac_cv_type_unsigned_long_long = yes; then
20214 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20221 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20223 test $ac_cv_type_unsigned_long_long = yes \
20224 && ac_type='unsigned long long' \
20225 || ac_type='unsigned long'
20227 cat >>confdefs.h <<_ACEOF
20228 #define uintmax_t $ac_type
20233 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20239 $as_echo_n "checking for inttypes.h... " >&6; }
20240 if ${gt_cv_header_inttypes_h+:} false; then :
20241 $as_echo_n "(cached) " >&6
20244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20245 /* end confdefs.h. */
20246 #include <sys/types.h>
20247 #include <inttypes.h>
20256 if ac_fn_c_try_compile "$LINENO"; then :
20257 gt_cv_header_inttypes_h=yes
20259 gt_cv_header_inttypes_h=no
20261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20265 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20266 if test $gt_cv_header_inttypes_h = yes; then
20268 cat >>confdefs.h <<_ACEOF
20269 #define HAVE_INTTYPES_H 1
20276 if test $gt_cv_header_inttypes_h = yes; then
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20278 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20279 if ${gt_cv_inttypes_pri_broken+:} false; then :
20280 $as_echo_n "(cached) " >&6
20283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20284 /* end confdefs.h. */
20285 #include <inttypes.h>
20298 if ac_fn_c_try_compile "$LINENO"; then :
20299 gt_cv_inttypes_pri_broken=no
20301 gt_cv_inttypes_pri_broken=yes
20303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20307 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20309 if test "$gt_cv_inttypes_pri_broken" = yes; then
20311 cat >>confdefs.h <<_ACEOF
20312 #define PRI_MACROS_BROKEN 1
20318 for ac_header in stdint.h
20320 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20321 if test "x$ac_cv_header_stdint_h" = xyes; then :
20322 cat >>confdefs.h <<_ACEOF
20323 #define HAVE_STDINT_H 1
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20331 $as_echo_n "checking for SIZE_MAX... " >&6; }
20333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20334 /* end confdefs.h. */
20336 #include <limits.h>
20338 #include <stdint.h>
20345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20346 $EGREP "Found it" >/dev/null 2>&1; then :
20351 if test -z "$result"; then
20352 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20359 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20366 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20373 if test "$fits_in_uint" = 1; then
20374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20375 /* end confdefs.h. */
20376 #include <stddef.h>
20378 extern unsigned long foo;
20388 if ac_fn_c_try_compile "$LINENO"; then :
20391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20393 if test -z "$result"; then
20394 if test "$fits_in_uint" = 1; then
20395 result="$res_hi$res_lo"U
20397 result="$res_hi$res_lo"UL
20400 result='~(size_t)0'
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20404 $as_echo "$result" >&6; }
20405 if test "$result" != yes; then
20407 cat >>confdefs.h <<_ACEOF
20408 #define SIZE_MAX $result
20416 for ac_header in stdint.h
20418 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20419 if test "x$ac_cv_header_stdint_h" = xyes; then :
20420 cat >>confdefs.h <<_ACEOF
20421 #define HAVE_STDINT_H 1
20435 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20436 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20440 $as_echo "#define ptrdiff_t long" >>confdefs.h
20445 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20446 stdlib.h string.h unistd.h sys/param.h
20448 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20449 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20451 cat >>confdefs.h <<_ACEOF
20452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20459 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20460 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20461 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20464 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20465 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20466 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20467 cat >>confdefs.h <<_ACEOF
20468 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20477 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20478 if ${ac_cv_have_decl__snprintf+:} false; then :
20479 $as_echo_n "(cached) " >&6
20481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20482 /* end confdefs.h. */
20489 char *p = (char *) _snprintf;
20496 if ac_fn_c_try_compile "$LINENO"; then :
20497 ac_cv_have_decl__snprintf=yes
20499 ac_cv_have_decl__snprintf=no
20501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20504 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20505 if test $ac_cv_have_decl__snprintf = yes; then
20511 cat >>confdefs.h <<_ACEOF
20512 #define HAVE_DECL__SNPRINTF $gt_value
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20518 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20519 if ${ac_cv_have_decl__snwprintf+:} false; then :
20520 $as_echo_n "(cached) " >&6
20522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20523 /* end confdefs.h. */
20530 char *p = (char *) _snwprintf;
20537 if ac_fn_c_try_compile "$LINENO"; then :
20538 ac_cv_have_decl__snwprintf=yes
20540 ac_cv_have_decl__snwprintf=no
20542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20545 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20546 if test $ac_cv_have_decl__snwprintf = yes; then
20552 cat >>confdefs.h <<_ACEOF
20553 #define HAVE_DECL__SNWPRINTF $gt_value
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20560 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20561 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20562 $as_echo_n "(cached) " >&6
20564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20565 /* end confdefs.h. */
20571 #ifndef feof_unlocked
20572 char *p = (char *) feof_unlocked;
20579 if ac_fn_c_try_compile "$LINENO"; then :
20580 ac_cv_have_decl_feof_unlocked=yes
20582 ac_cv_have_decl_feof_unlocked=no
20584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20587 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20588 if test $ac_cv_have_decl_feof_unlocked = yes; then
20594 cat >>confdefs.h <<_ACEOF
20595 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20601 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20602 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20603 $as_echo_n "(cached) " >&6
20605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h. */
20612 #ifndef fgets_unlocked
20613 char *p = (char *) fgets_unlocked;
20620 if ac_fn_c_try_compile "$LINENO"; then :
20621 ac_cv_have_decl_fgets_unlocked=yes
20623 ac_cv_have_decl_fgets_unlocked=no
20625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20628 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20629 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20635 cat >>confdefs.h <<_ACEOF
20636 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20642 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20643 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20644 $as_echo_n "(cached) " >&6
20646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20647 /* end confdefs.h. */
20653 #ifndef getc_unlocked
20654 char *p = (char *) getc_unlocked;
20661 if ac_fn_c_try_compile "$LINENO"; then :
20662 ac_cv_have_decl_getc_unlocked=yes
20664 ac_cv_have_decl_getc_unlocked=no
20666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20669 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20670 if test $ac_cv_have_decl_getc_unlocked = yes; then
20676 cat >>confdefs.h <<_ACEOF
20677 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20682 case $gt_cv_func_printf_posix in
20683 *yes) HAVE_POSIX_PRINTF=1 ;;
20684 *) HAVE_POSIX_PRINTF=0 ;;
20687 if test "$ac_cv_func_asprintf" = yes; then
20693 if test "$ac_cv_func_snprintf" = yes; then
20699 if test "$ac_cv_func_wprintf" = yes; then
20711 am_save_CPPFLAGS="$CPPFLAGS"
20713 for element in $INCICONV; do
20715 for x in $CPPFLAGS; do
20717 acl_save_prefix="$prefix"
20718 prefix="$acl_final_prefix"
20719 acl_save_exec_prefix="$exec_prefix"
20720 exec_prefix="$acl_final_exec_prefix"
20722 exec_prefix="$acl_save_exec_prefix"
20723 prefix="$acl_save_prefix"
20725 if test "X$x" = "X$element"; then
20730 if test -z "$haveit"; then
20731 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20737 $as_echo_n "checking for iconv... " >&6; }
20738 if ${am_cv_func_iconv+:} false; then :
20739 $as_echo_n "(cached) " >&6
20742 am_cv_func_iconv="no, consider installing GNU libiconv"
20744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20745 /* end confdefs.h. */
20746 #include <stdlib.h>
20751 iconv_t cd = iconv_open("","");
20752 iconv(cd,NULL,NULL,NULL,NULL);
20758 if ac_fn_c_try_link "$LINENO"; then :
20759 am_cv_func_iconv=yes
20761 rm -f core conftest.err conftest.$ac_objext \
20762 conftest$ac_exeext conftest.$ac_ext
20763 if test "$am_cv_func_iconv" != yes; then
20764 am_save_LIBS="$LIBS"
20765 LIBS="$LIBS $LIBICONV"
20766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h. */
20768 #include <stdlib.h>
20773 iconv_t cd = iconv_open("","");
20774 iconv(cd,NULL,NULL,NULL,NULL);
20780 if ac_fn_c_try_link "$LINENO"; then :
20781 am_cv_lib_iconv=yes
20782 am_cv_func_iconv=yes
20784 rm -f core conftest.err conftest.$ac_objext \
20785 conftest$ac_exeext conftest.$ac_ext
20786 LIBS="$am_save_LIBS"
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20791 $as_echo "$am_cv_func_iconv" >&6; }
20792 if test "$am_cv_func_iconv" = yes; then
20794 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20797 if test "$am_cv_lib_iconv" = yes; then
20798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20799 $as_echo_n "checking how to link with libiconv... " >&6; }
20800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20801 $as_echo "$LIBICONV" >&6; }
20803 CPPFLAGS="$am_save_CPPFLAGS"
20810 if test "$am_cv_func_iconv" = yes; then
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20812 $as_echo_n "checking for iconv declaration... " >&6; }
20813 if ${am_cv_proto_iconv+:} false; then :
20814 $as_echo_n "(cached) " >&6
20817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20818 /* end confdefs.h. */
20820 #include <stdlib.h>
20826 #if defined(__STDC__) || defined(__cplusplus)
20827 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20840 if ac_fn_c_try_compile "$LINENO"; then :
20841 am_cv_proto_iconv_arg1=""
20843 am_cv_proto_iconv_arg1="const"
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20849 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20851 }$am_cv_proto_iconv" >&5
20853 }$am_cv_proto_iconv" >&6; }
20855 cat >>confdefs.h <<_ACEOF
20856 #define ICONV_CONST $am_cv_proto_iconv_arg1
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20863 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20864 if ${am_cv_langinfo_codeset+:} false; then :
20865 $as_echo_n "(cached) " >&6
20867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20868 /* end confdefs.h. */
20869 #include <langinfo.h>
20873 char* cs = nl_langinfo(CODESET);
20878 if ac_fn_c_try_link "$LINENO"; then :
20879 am_cv_langinfo_codeset=yes
20881 am_cv_langinfo_codeset=no
20883 rm -f core conftest.err conftest.$ac_objext \
20884 conftest$ac_exeext conftest.$ac_ext
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20888 $as_echo "$am_cv_langinfo_codeset" >&6; }
20889 if test $am_cv_langinfo_codeset = yes; then
20891 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20895 if test $ac_cv_header_locale_h = yes; then
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20898 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20899 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20900 $as_echo_n "(cached) " >&6
20902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20903 /* end confdefs.h. */
20904 #include <locale.h>
20913 if ac_fn_c_try_link "$LINENO"; then :
20914 gt_cv_val_LC_MESSAGES=yes
20916 gt_cv_val_LC_MESSAGES=no
20918 rm -f core conftest.err conftest.$ac_objext \
20919 conftest$ac_exeext conftest.$ac_ext
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20922 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20923 if test $gt_cv_val_LC_MESSAGES = yes; then
20925 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20931 if test -n "$INTL_MACOSX_LIBS"; then
20932 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20935 for ac_prog in bison
20937 # Extract the first word of "$ac_prog", so it can be a program name with args.
20938 set dummy $ac_prog; ac_word=$2
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20940 $as_echo_n "checking for $ac_word... " >&6; }
20941 if ${ac_cv_prog_INTLBISON+:} false; then :
20942 $as_echo_n "(cached) " >&6
20944 if test -n "$INTLBISON"; then
20945 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20948 for as_dir in $PATH
20951 test -z "$as_dir" && as_dir=.
20952 for ac_exec_ext in '' $ac_executable_extensions; do
20953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20954 ac_cv_prog_INTLBISON="$ac_prog"
20955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20964 INTLBISON=$ac_cv_prog_INTLBISON
20965 if test -n "$INTLBISON"; then
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20967 $as_echo "$INTLBISON" >&6; }
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20970 $as_echo "no" >&6; }
20974 test -n "$INTLBISON" && break
20977 if test -z "$INTLBISON"; then
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20981 $as_echo_n "checking version of bison... " >&6; }
20982 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20983 case $ac_prog_version in
20984 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20985 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20986 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20987 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20990 $as_echo "$ac_prog_version" >&6; }
20992 if test $ac_verc_fail = yes; then
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21012 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21013 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21014 $as_echo_n "(cached) " >&6
21016 gt_save_CPPFLAGS="$CPPFLAGS"
21017 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21018 gt_save_LIBS="$LIBS"
21019 LIBS="$LIBS -framework CoreFoundation"
21020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21021 /* end confdefs.h. */
21022 #include <CFPreferences.h>
21026 CFPreferencesCopyAppValue(NULL, NULL)
21031 if ac_fn_c_try_link "$LINENO"; then :
21032 gt_cv_func_CFPreferencesCopyAppValue=yes
21034 gt_cv_func_CFPreferencesCopyAppValue=no
21036 rm -f core conftest.err conftest.$ac_objext \
21037 conftest$ac_exeext conftest.$ac_ext
21038 CPPFLAGS="$gt_save_CPPFLAGS"
21039 LIBS="$gt_save_LIBS"
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21042 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21043 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21045 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21049 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21050 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21051 $as_echo_n "(cached) " >&6
21053 gt_save_CPPFLAGS="$CPPFLAGS"
21054 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21055 gt_save_LIBS="$LIBS"
21056 LIBS="$LIBS -framework CoreFoundation"
21057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21058 /* end confdefs.h. */
21059 #include <CFLocale.h>
21063 CFLocaleCopyCurrent();
21068 if ac_fn_c_try_link "$LINENO"; then :
21069 gt_cv_func_CFLocaleCopyCurrent=yes
21071 gt_cv_func_CFLocaleCopyCurrent=no
21073 rm -f core conftest.err conftest.$ac_objext \
21074 conftest$ac_exeext conftest.$ac_ext
21075 CPPFLAGS="$gt_save_CPPFLAGS"
21076 LIBS="$gt_save_LIBS"
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21079 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21080 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21082 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21086 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21087 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21094 $as_echo_n "checking whether NLS is requested... " >&6; }
21095 # Check whether --enable-nls was given.
21096 if test "${enable_nls+set}" = set; then :
21097 enableval=$enable_nls; USE_NLS=$enableval
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21103 $as_echo "$USE_NLS" >&6; }
21108 BUILD_INCLUDED_LIBINTL=no
21109 USE_INCLUDED_LIBINTL=no
21115 if test "$USE_NLS" = "yes"; then
21116 gt_use_preinstalled_gnugettext=no
21118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21119 $as_echo_n "checking whether included gettext is requested... " >&6; }
21121 # Check whether --with-included-gettext was given.
21122 if test "${with_included_gettext+set}" = set; then :
21123 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21125 nls_cv_force_use_gnu_gettext=no
21128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21129 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21131 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21132 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21140 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21141 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21142 $as_echo_n "(cached) " >&6
21144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21145 /* end confdefs.h. */
21146 #include <libintl.h>
21147 extern int _nl_msg_cat_cntr;
21148 extern int *_nl_domain_bindings;
21152 bindtextdomain ("", "");
21153 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21158 if ac_fn_c_try_link "$LINENO"; then :
21159 gt_cv_func_gnugettext1_libc=yes
21161 gt_cv_func_gnugettext1_libc=no
21163 rm -f core conftest.err conftest.$ac_objext \
21164 conftest$ac_exeext conftest.$ac_ext
21166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21167 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21169 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21175 acl_save_prefix="$prefix"
21176 prefix="$acl_final_prefix"
21177 acl_save_exec_prefix="$exec_prefix"
21178 exec_prefix="$acl_final_exec_prefix"
21180 eval additional_includedir=\"$includedir\"
21181 eval additional_libdir=\"$libdir\"
21183 exec_prefix="$acl_save_exec_prefix"
21184 prefix="$acl_save_prefix"
21187 # Check whether --with-libintl-prefix was given.
21188 if test "${with_libintl_prefix+set}" = set; then :
21189 withval=$with_libintl_prefix;
21190 if test "X$withval" = "Xno"; then
21193 if test "X$withval" = "X"; then
21195 acl_save_prefix="$prefix"
21196 prefix="$acl_final_prefix"
21197 acl_save_exec_prefix="$exec_prefix"
21198 exec_prefix="$acl_final_exec_prefix"
21200 eval additional_includedir=\"$includedir\"
21201 eval additional_libdir=\"$libdir\"
21203 exec_prefix="$acl_save_exec_prefix"
21204 prefix="$acl_save_prefix"
21207 additional_includedir="$withval/include"
21208 additional_libdir="$withval/lib"
21219 names_already_handled=
21220 names_next_round='intl '
21221 while test -n "$names_next_round"; do
21222 names_this_round="$names_next_round"
21224 for name in $names_this_round; do
21226 for n in $names_already_handled; do
21227 if test "$n" = "$name"; then
21228 already_handled=yes
21232 if test -z "$already_handled"; then
21233 names_already_handled="$names_already_handled $name"
21234 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21235 eval value=\"\$HAVE_LIB$uppername\"
21236 if test -n "$value"; then
21237 if test "$value" = yes; then
21238 eval value=\"\$LIB$uppername\"
21239 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21240 eval value=\"\$LTLIB$uppername\"
21241 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21250 if test $use_additional = yes; then
21251 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21252 found_dir="$additional_libdir"
21253 found_so="$additional_libdir/lib$name.$shlibext"
21254 if test -f "$additional_libdir/lib$name.la"; then
21255 found_la="$additional_libdir/lib$name.la"
21258 if test -f "$additional_libdir/lib$name.$libext"; then
21259 found_dir="$additional_libdir"
21260 found_a="$additional_libdir/lib$name.$libext"
21261 if test -f "$additional_libdir/lib$name.la"; then
21262 found_la="$additional_libdir/lib$name.la"
21267 if test "X$found_dir" = "X"; then
21268 for x in $LDFLAGS $LTLIBINTL; do
21270 acl_save_prefix="$prefix"
21271 prefix="$acl_final_prefix"
21272 acl_save_exec_prefix="$exec_prefix"
21273 exec_prefix="$acl_final_exec_prefix"
21275 exec_prefix="$acl_save_exec_prefix"
21276 prefix="$acl_save_prefix"
21280 dir=`echo "X$x" | sed -e 's/^X-L//'`
21281 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21283 found_so="$dir/lib$name.$shlibext"
21284 if test -f "$dir/lib$name.la"; then
21285 found_la="$dir/lib$name.la"
21288 if test -f "$dir/lib$name.$libext"; then
21290 found_a="$dir/lib$name.$libext"
21291 if test -f "$dir/lib$name.la"; then
21292 found_la="$dir/lib$name.la"
21298 if test "X$found_dir" != "X"; then
21303 if test "X$found_dir" != "X"; then
21304 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21305 if test "X$found_so" != "X"; then
21306 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21307 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21310 for x in $ltrpathdirs; do
21311 if test "X$x" = "X$found_dir"; then
21316 if test -z "$haveit"; then
21317 ltrpathdirs="$ltrpathdirs $found_dir"
21319 if test "$hardcode_direct" = yes; then
21320 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21322 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21323 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21325 for x in $rpathdirs; do
21326 if test "X$x" = "X$found_dir"; then
21331 if test -z "$haveit"; then
21332 rpathdirs="$rpathdirs $found_dir"
21336 for x in $LDFLAGS $LIBINTL; do
21338 acl_save_prefix="$prefix"
21339 prefix="$acl_final_prefix"
21340 acl_save_exec_prefix="$exec_prefix"
21341 exec_prefix="$acl_final_exec_prefix"
21343 exec_prefix="$acl_save_exec_prefix"
21344 prefix="$acl_save_prefix"
21346 if test "X$x" = "X-L$found_dir"; then
21351 if test -z "$haveit"; then
21352 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21354 if test "$hardcode_minus_L" != no; then
21355 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21357 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21363 if test "X$found_a" != "X"; then
21364 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21366 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21369 additional_includedir=
21370 case "$found_dir" in
21372 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21373 additional_includedir="$basedir/include"
21376 if test "X$additional_includedir" != "X"; then
21377 if test "X$additional_includedir" != "X/usr/include"; then
21379 if test "X$additional_includedir" = "X/usr/local/include"; then
21380 if test -n "$GCC"; then
21382 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21386 if test -z "$haveit"; then
21387 for x in $CPPFLAGS $INCINTL; do
21389 acl_save_prefix="$prefix"
21390 prefix="$acl_final_prefix"
21391 acl_save_exec_prefix="$exec_prefix"
21392 exec_prefix="$acl_final_exec_prefix"
21394 exec_prefix="$acl_save_exec_prefix"
21395 prefix="$acl_save_prefix"
21397 if test "X$x" = "X-I$additional_includedir"; then
21402 if test -z "$haveit"; then
21403 if test -d "$additional_includedir"; then
21404 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21410 if test -n "$found_la"; then
21411 save_libdir="$libdir"
21412 case "$found_la" in
21413 */* | *\\*) . "$found_la" ;;
21414 *) . "./$found_la" ;;
21416 libdir="$save_libdir"
21417 for dep in $dependency_libs; do
21420 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21421 if test "X$additional_libdir" != "X/usr/lib"; then
21423 if test "X$additional_libdir" = "X/usr/local/lib"; then
21424 if test -n "$GCC"; then
21426 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21430 if test -z "$haveit"; then
21432 for x in $LDFLAGS $LIBINTL; do
21434 acl_save_prefix="$prefix"
21435 prefix="$acl_final_prefix"
21436 acl_save_exec_prefix="$exec_prefix"
21437 exec_prefix="$acl_final_exec_prefix"
21439 exec_prefix="$acl_save_exec_prefix"
21440 prefix="$acl_save_prefix"
21442 if test "X$x" = "X-L$additional_libdir"; then
21447 if test -z "$haveit"; then
21448 if test -d "$additional_libdir"; then
21449 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21453 for x in $LDFLAGS $LTLIBINTL; do
21455 acl_save_prefix="$prefix"
21456 prefix="$acl_final_prefix"
21457 acl_save_exec_prefix="$exec_prefix"
21458 exec_prefix="$acl_final_exec_prefix"
21460 exec_prefix="$acl_save_exec_prefix"
21461 prefix="$acl_save_prefix"
21463 if test "X$x" = "X-L$additional_libdir"; then
21468 if test -z "$haveit"; then
21469 if test -d "$additional_libdir"; then
21470 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21477 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21478 if test "$enable_rpath" != no; then
21480 for x in $rpathdirs; do
21481 if test "X$x" = "X$dir"; then
21486 if test -z "$haveit"; then
21487 rpathdirs="$rpathdirs $dir"
21490 for x in $ltrpathdirs; do
21491 if test "X$x" = "X$dir"; then
21496 if test -z "$haveit"; then
21497 ltrpathdirs="$ltrpathdirs $dir"
21502 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21505 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21508 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21509 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21515 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21516 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21522 if test "X$rpathdirs" != "X"; then
21523 if test -n "$hardcode_libdir_separator"; then
21525 for found_dir in $rpathdirs; do
21526 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21528 acl_save_libdir="$libdir"
21530 eval flag=\"$hardcode_libdir_flag_spec\"
21531 libdir="$acl_save_libdir"
21532 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21534 for found_dir in $rpathdirs; do
21535 acl_save_libdir="$libdir"
21536 libdir="$found_dir"
21537 eval flag=\"$hardcode_libdir_flag_spec\"
21538 libdir="$acl_save_libdir"
21539 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21543 if test "X$ltrpathdirs" != "X"; then
21544 for found_dir in $ltrpathdirs; do
21545 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21550 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21551 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21552 $as_echo_n "(cached) " >&6
21554 gt_save_CPPFLAGS="$CPPFLAGS"
21555 CPPFLAGS="$CPPFLAGS $INCINTL"
21556 gt_save_LIBS="$LIBS"
21557 LIBS="$LIBS $LIBINTL"
21558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21559 /* end confdefs.h. */
21560 #include <libintl.h>
21561 extern int _nl_msg_cat_cntr;
21566 const char *_nl_expand_alias (const char *);
21570 bindtextdomain ("", "");
21571 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21576 if ac_fn_c_try_link "$LINENO"; then :
21577 gt_cv_func_gnugettext1_libintl=yes
21579 gt_cv_func_gnugettext1_libintl=no
21581 rm -f core conftest.err conftest.$ac_objext \
21582 conftest$ac_exeext conftest.$ac_ext
21583 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21584 LIBS="$LIBS $LIBICONV"
21585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21586 /* end confdefs.h. */
21587 #include <libintl.h>
21588 extern int _nl_msg_cat_cntr;
21593 const char *_nl_expand_alias (const char *);
21597 bindtextdomain ("", "");
21598 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21603 if ac_fn_c_try_link "$LINENO"; then :
21604 LIBINTL="$LIBINTL $LIBICONV"
21605 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21606 gt_cv_func_gnugettext1_libintl=yes
21609 rm -f core conftest.err conftest.$ac_objext \
21610 conftest$ac_exeext conftest.$ac_ext
21612 CPPFLAGS="$gt_save_CPPFLAGS"
21613 LIBS="$gt_save_LIBS"
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21616 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21619 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21620 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21621 && test "$PACKAGE" != gettext-runtime \
21622 && test "$PACKAGE" != gettext-tools; }; then
21623 gt_use_preinstalled_gnugettext=yes
21631 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21632 nls_cv_use_gnu_gettext=yes
21636 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21637 BUILD_INCLUDED_LIBINTL=yes
21638 USE_INCLUDED_LIBINTL=yes
21639 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21640 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21641 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21645 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21646 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21651 if test -n "$INTL_MACOSX_LIBS"; then
21652 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21653 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21654 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21655 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21659 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21660 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21662 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21670 $as_echo_n "checking whether to use NLS... " >&6; }
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21672 $as_echo "$USE_NLS" >&6; }
21673 if test "$USE_NLS" = "yes"; then
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21675 $as_echo_n "checking where the gettext function comes from... " >&6; }
21676 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21677 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21678 gt_source="external libintl"
21683 gt_source="included intl directory"
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21686 $as_echo "$gt_source" >&6; }
21689 if test "$USE_NLS" = "yes"; then
21691 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21692 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21694 $as_echo_n "checking how to link with libintl... " >&6; }
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21696 $as_echo "$LIBINTL" >&6; }
21698 for element in $INCINTL; do
21700 for x in $CPPFLAGS; do
21702 acl_save_prefix="$prefix"
21703 prefix="$acl_final_prefix"
21704 acl_save_exec_prefix="$exec_prefix"
21705 exec_prefix="$acl_final_exec_prefix"
21707 exec_prefix="$acl_save_exec_prefix"
21708 prefix="$acl_save_prefix"
21710 if test "X$x" = "X$element"; then
21715 if test -z "$haveit"; then
21716 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21723 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21726 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21734 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21735 BUILD_INCLUDED_LIBINTL=yes
21742 nls_cv_header_intl=
21743 nls_cv_header_libgt=
21755 if test "$USE_INCLUDED_LIBINTL" = yes; then
21756 INTLOBJS="\$(GETTOBJS)"
21760 INTL_LIBTOOL_SUFFIX_PREFIX=
21764 INTLLIBS="$LIBINTL"
21773 support_smartalloc=yes
21774 support_readline=yes
21780 support_static_tools=no
21781 support_static_fd=no
21782 support_static_sd=no
21783 support_static_dir=no
21784 support_static_cons=no
21785 build_client_only=no
21789 batch_insert_db_backends=""
21793 # Check whether --enable-bat was given.
21794 if test "${enable_bat+set}" = set; then :
21795 enableval=$enable_bat;
21796 if test x$enableval = xyes; then
21798 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21808 if test x$support_bat = xyes; then
21809 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21811 if test $pkg = 0; then
21812 BAT_DIR=src/qt-console
21814 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21832 # Check whether --enable-smartalloc was given.
21833 if test "${enable_smartalloc+set}" = set; then :
21834 enableval=$enable_smartalloc;
21835 if test x$enableval = xno; then
21836 support_smartalloc=no
21843 if test x$support_smartalloc = xyes; then
21845 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21849 # Check whether --enable-lockmgr was given.
21850 if test "${enable_lockmgr+set}" = set; then :
21851 enableval=$enable_lockmgr;
21852 if test x$enableval = xyes; then
21853 support_lockmgr=yes
21860 if test x$support_lockmgr = xyes; then
21862 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21867 # Check whether --enable-static-tools was given.
21868 if test "${enable_static_tools+set}" = set; then :
21869 enableval=$enable_static_tools;
21870 if test x$enableval = xyes; then
21871 if test x$use_libtool = xyes; then
21872 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21873 please rerun configure with --disable-libtool" "$LINENO" 5
21875 support_static_tools=yes
21883 if test x$support_static_tools = xyes; then
21884 TTOOL_LDFLAGS="-static"
21888 # Check whether --enable-static-fd was given.
21889 if test "${enable_static_fd+set}" = set; then :
21890 enableval=$enable_static_fd;
21891 if test x$enableval = xyes; then
21892 if test x$use_libtool = xyes; then
21893 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21894 please rerun configure with --disable-libtool" "$LINENO" 5
21896 support_static_fd=yes
21904 if test x$support_static_fd = xyes; then
21905 STATIC_FD="static-bacula-fd"
21909 # Check whether --enable-static-sd was given.
21910 if test "${enable_static_sd+set}" = set; then :
21911 enableval=$enable_static_sd;
21912 if test x$enableval = xyes; then
21913 if test x$use_libtool = xyes; then
21914 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21915 please rerun configure with --disable-libtool" "$LINENO" 5
21917 support_static_sd=yes
21925 if test x$support_static_sd = xyes; then
21926 STATIC_SD="static-bacula-sd"
21930 # Check whether --enable-static-dir was given.
21931 if test "${enable_static_dir+set}" = set; then :
21932 enableval=$enable_static_dir;
21933 if test x$enableval = xyes; then
21934 if test x$use_libtool = xyes; then
21935 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21936 please rerun configure with --disable-libtool" "$LINENO" 5
21938 support_static_dir=yes
21946 if test x$support_static_dir = xyes; then
21947 STATIC_DIR="static-bacula-dir"
21951 # Check whether --enable-static-cons was given.
21952 if test "${enable_static_cons+set}" = set; then :
21953 enableval=$enable_static_cons;
21954 if test x$enableval = xyes; then
21955 if test x$use_libtool = xyes; then
21956 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21957 please rerun configure with --disable-libtool" "$LINENO" 5
21959 support_static_cons=yes
21967 if test x$support_static_cons = xyes; then
21968 STATIC_CONS="static-bconsole"
21972 # Check whether --enable-client-only was given.
21973 if test "${enable_client_only+set}" = set; then :
21974 enableval=$enable_client_only;
21975 if test x$enableval = xyes; then
21976 build_client_only=yes
21984 if test x$build_client_only = xno; then
21991 # Check whether --enable-build-dird was given.
21992 if test "${enable_build_dird+set}" = set; then :
21993 enableval=$enable_build_dird;
21994 if test x$enableval = xno; then
22002 DIRD_DIR="src/dird"
22003 DIR_TOOLS="DIRTOOLS"
22008 # Check whether --enable-build-stored was given.
22009 if test "${enable_build_stored+set}" = set; then :
22010 enableval=$enable_build_stored;
22011 if test x$enableval = xno; then
22018 if test x$build_stored = xyes; then
22019 STORED_DIR="src/stored"
22025 # Check whether --enable-conio was given.
22026 if test "${enable_conio+set}" = set; then :
22027 enableval=$enable_conio;
22028 if test x$enableval = xno; then
22038 # Check whether --enable-ipv6 was given.
22039 if test "${enable_ipv6+set}" = set; then :
22040 enableval=$enable_ipv6;
22041 if test x$enableval = xno; then
22049 if test x$support_ipv6 = xyes; then
22050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22051 /* end confdefs.h. */
22052 #include <sys/types.h>
22053 #include <sys/socket.h>
22054 #include <netinet/in.h>
22058 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22063 if ac_fn_c_try_link "$LINENO"; then :
22064 support_in6addr_any=yes
22066 support_in6addr_any=no
22068 rm -f core conftest.err conftest.$ac_objext \
22069 conftest$ac_exeext conftest.$ac_ext
22071 if test x$support_in6addr_any = xno ; then
22072 in6addr_any="const struct in6_addr in6addr_any"
22077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h. */
22079 #include <sys/types.h>
22080 #include <sys/socket.h>
22081 #include <netinet/in.h>
22085 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22090 if ac_fn_c_try_link "$LINENO"; then :
22095 rm -f core conftest.err conftest.$ac_objext \
22096 conftest$ac_exeext conftest.$ac_ext
22099 if test x$support_ipv6 = xyes; then
22101 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22104 if test x$support_in6addr_any = xno ; then
22106 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22112 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22113 if test "x$ac_cv_header_curses_h" = xyes; then :
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22116 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22117 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22118 $as_echo_n "(cached) " >&6
22120 ac_check_lib_save_LIBS=$LIBS
22121 LIBS="-ltinfo $LIBS"
22122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22123 /* end confdefs.h. */
22125 /* Override any GCC internal prototype to avoid an error.
22126 Use char because int might match the return type of a GCC
22127 builtin and then its argument prototype would still apply. */
22140 if ac_fn_c_try_link "$LINENO"; then :
22141 ac_cv_lib_tinfo_tgetent=yes
22143 ac_cv_lib_tinfo_tgetent=no
22145 rm -f core conftest.err conftest.$ac_objext \
22146 conftest$ac_exeext conftest.$ac_ext
22147 LIBS=$ac_check_lib_save_LIBS
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22150 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22151 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22156 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22157 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22158 $as_echo_n "(cached) " >&6
22160 ac_check_lib_save_LIBS=$LIBS
22161 LIBS="-lncurses $LIBS"
22162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22163 /* end confdefs.h. */
22165 /* Override any GCC internal prototype to avoid an error.
22166 Use char because int might match the return type of a GCC
22167 builtin and then its argument prototype would still apply. */
22180 if ac_fn_c_try_link "$LINENO"; then :
22181 ac_cv_lib_ncurses_tgetent=yes
22183 ac_cv_lib_ncurses_tgetent=no
22185 rm -f core conftest.err conftest.$ac_objext \
22186 conftest$ac_exeext conftest.$ac_ext
22187 LIBS=$ac_check_lib_save_LIBS
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22190 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22191 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22192 TERM_LIB="-lncurses"
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22196 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22197 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22198 $as_echo_n "(cached) " >&6
22200 ac_check_lib_save_LIBS=$LIBS
22201 LIBS="-ltermcap $LIBS"
22202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22203 /* end confdefs.h. */
22205 /* Override any GCC internal prototype to avoid an error.
22206 Use char because int might match the return type of a GCC
22207 builtin and then its argument prototype would still apply. */
22220 if ac_fn_c_try_link "$LINENO"; then :
22221 ac_cv_lib_termcap_tgetent=yes
22223 ac_cv_lib_termcap_tgetent=no
22225 rm -f core conftest.err conftest.$ac_objext \
22226 conftest$ac_exeext conftest.$ac_ext
22227 LIBS=$ac_check_lib_save_LIBS
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22230 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22231 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22232 TERM_LIB="-ltermcap"
22243 for ac_header in curses.h
22245 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22246 if test "x$ac_cv_header_curses_h" = xyes; then :
22247 cat >>confdefs.h <<_ACEOF
22248 #define HAVE_CURSES_H 1
22255 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22256 if test "x$ac_cv_header_term_h" = xyes; then :
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22258 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22259 if ${ac_cv_lib_curses_tgetent+:} false; then :
22260 $as_echo_n "(cached) " >&6
22262 ac_check_lib_save_LIBS=$LIBS
22263 LIBS="-lcurses $LIBS"
22264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22265 /* end confdefs.h. */
22267 /* Override any GCC internal prototype to avoid an error.
22268 Use char because int might match the return type of a GCC
22269 builtin and then its argument prototype would still apply. */
22282 if ac_fn_c_try_link "$LINENO"; then :
22283 ac_cv_lib_curses_tgetent=yes
22285 ac_cv_lib_curses_tgetent=no
22287 rm -f core conftest.err conftest.$ac_objext \
22288 conftest$ac_exeext conftest.$ac_ext
22289 LIBS=$ac_check_lib_save_LIBS
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22292 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22293 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22294 TERM_LIB="-lcurses"
22308 if test x$support_conio = xyes; then
22309 if test x$TERM_LIB != x; then
22310 CONS_LIBS=$TERM_LIB
22314 support_readline=no
22316 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22319 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22324 # Check whether --enable-readline was given.
22325 if test "${enable_readline+set}" = set; then :
22326 enableval=$enable_readline;
22327 if test x$enableval = xno; then
22328 support_readline=no
22337 if test x$support_readline = xyes; then
22339 # Check whether --with-readline was given.
22340 if test "${with_readline+set}" = set; then :
22341 withval=$with_readline;
22342 case "$with_readline" in
22347 if test -f ${with_readline}/readline.h; then
22348 CONS_INC="-I${with_readline}"
22349 CONS_LDFLAGS="-L$with_readline"
22350 elif test -f ${with_readline}/include/readline/readline.h; then
22351 CONS_INC="-I${with_readline}/include/readline"
22352 CONS_LDFLAGS="-L${with_readline}/lib"
22353 with_readline="${with_readline}/include/readline"
22355 with_readline="/usr/include/readline"
22358 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22359 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22360 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22363 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22365 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22371 echo "readline.h not found. readline turned off ..."
22383 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22384 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22387 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22390 CONS_INC="-I/usr/include/readline"
22391 CONS_LIBS="-lreadline ${TERM_LIB}"
22395 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22396 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22397 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22400 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22403 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22404 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22405 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22406 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22411 echo "readline.h not found. readline turned off ..."
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22439 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22440 if ${ac_cv_header_stat_broken+:} false; then :
22441 $as_echo_n "(cached) " >&6
22443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22444 /* end confdefs.h. */
22445 #include <sys/types.h>
22446 #include <sys/stat.h>
22448 #if defined S_ISBLK && defined S_IFDIR
22449 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22452 #if defined S_ISBLK && defined S_IFCHR
22453 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22456 #if defined S_ISLNK && defined S_IFREG
22457 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22460 #if defined S_ISSOCK && defined S_IFREG
22461 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22465 if ac_fn_c_try_compile "$LINENO"; then :
22466 ac_cv_header_stat_broken=no
22468 ac_cv_header_stat_broken=yes
22470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22473 $as_echo "$ac_cv_header_stat_broken" >&6; }
22474 if test $ac_cv_header_stat_broken = yes; then
22476 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22480 ac_header_dirent=no
22481 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22482 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22484 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22485 if eval \${$as_ac_Header+:} false; then :
22486 $as_echo_n "(cached) " >&6
22488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489 /* end confdefs.h. */
22490 #include <sys/types.h>
22502 if ac_fn_c_try_compile "$LINENO"; then :
22503 eval "$as_ac_Header=yes"
22505 eval "$as_ac_Header=no"
22507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22509 eval ac_res=\$$as_ac_Header
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22511 $as_echo "$ac_res" >&6; }
22512 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22513 cat >>confdefs.h <<_ACEOF
22514 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22517 ac_header_dirent=$ac_hdr; break
22521 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22522 if test $ac_header_dirent = dirent.h; then
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22524 $as_echo_n "checking for library containing opendir... " >&6; }
22525 if ${ac_cv_search_opendir+:} false; then :
22526 $as_echo_n "(cached) " >&6
22528 ac_func_search_save_LIBS=$LIBS
22529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22530 /* end confdefs.h. */
22532 /* Override any GCC internal prototype to avoid an error.
22533 Use char because int might match the return type of a GCC
22534 builtin and then its argument prototype would still apply. */
22547 for ac_lib in '' dir; do
22548 if test -z "$ac_lib"; then
22549 ac_res="none required"
22552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22554 if ac_fn_c_try_link "$LINENO"; then :
22555 ac_cv_search_opendir=$ac_res
22557 rm -f core conftest.err conftest.$ac_objext \
22559 if ${ac_cv_search_opendir+:} false; then :
22563 if ${ac_cv_search_opendir+:} false; then :
22566 ac_cv_search_opendir=no
22568 rm conftest.$ac_ext
22569 LIBS=$ac_func_search_save_LIBS
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22572 $as_echo "$ac_cv_search_opendir" >&6; }
22573 ac_res=$ac_cv_search_opendir
22574 if test "$ac_res" != no; then :
22575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22581 $as_echo_n "checking for library containing opendir... " >&6; }
22582 if ${ac_cv_search_opendir+:} false; then :
22583 $as_echo_n "(cached) " >&6
22585 ac_func_search_save_LIBS=$LIBS
22586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22587 /* end confdefs.h. */
22589 /* Override any GCC internal prototype to avoid an error.
22590 Use char because int might match the return type of a GCC
22591 builtin and then its argument prototype would still apply. */
22604 for ac_lib in '' x; do
22605 if test -z "$ac_lib"; then
22606 ac_res="none required"
22609 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22611 if ac_fn_c_try_link "$LINENO"; then :
22612 ac_cv_search_opendir=$ac_res
22614 rm -f core conftest.err conftest.$ac_objext \
22616 if ${ac_cv_search_opendir+:} false; then :
22620 if ${ac_cv_search_opendir+:} false; then :
22623 ac_cv_search_opendir=no
22625 rm conftest.$ac_ext
22626 LIBS=$ac_func_search_save_LIBS
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22629 $as_echo "$ac_cv_search_opendir" >&6; }
22630 ac_res=$ac_cv_search_opendir
22631 if test "$ac_res" != no; then :
22632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22638 for ac_func in strcasecmp select setenv putenv tcgetattr
22640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22642 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22643 cat >>confdefs.h <<_ACEOF
22644 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22650 for ac_func in lstat lchown lchmod futimes fchmod fchown
22652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22653 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22654 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22655 cat >>confdefs.h <<_ACEOF
22656 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22662 for ac_func in nanosleep nl_langinfo
22664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22665 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22666 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22667 cat >>confdefs.h <<_ACEOF
22668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22674 for ac_func in be64toh htobe64
22676 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22677 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22678 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22679 cat >>confdefs.h <<_ACEOF
22680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22686 for ac_header in varargs.h
22688 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22689 if test "x$ac_cv_header_varargs_h" = xyes; then :
22690 cat >>confdefs.h <<_ACEOF
22691 #define HAVE_VARARGS_H 1
22700 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22701 if test "x$ac_cv_func_socket" = xyes; then :
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22703 $as_echo "using libc's socket" >&6; }
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22706 $as_echo_n "checking for socket in -lxnet... " >&6; }
22707 if ${ac_cv_lib_xnet_socket+:} false; then :
22708 $as_echo_n "(cached) " >&6
22710 ac_check_lib_save_LIBS=$LIBS
22711 LIBS="-lxnet $LIBS"
22712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713 /* end confdefs.h. */
22715 /* Override any GCC internal prototype to avoid an error.
22716 Use char because int might match the return type of a GCC
22717 builtin and then its argument prototype would still apply. */
22730 if ac_fn_c_try_link "$LINENO"; then :
22731 ac_cv_lib_xnet_socket=yes
22733 ac_cv_lib_xnet_socket=no
22735 rm -f core conftest.err conftest.$ac_objext \
22736 conftest$ac_exeext conftest.$ac_ext
22737 LIBS=$ac_check_lib_save_LIBS
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22740 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22741 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22742 cat >>confdefs.h <<_ACEOF
22743 #define HAVE_LIBXNET 1
22746 LIBS="-lxnet $LIBS"
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22751 $as_echo_n "checking for socket in -lsocket... " >&6; }
22752 if ${ac_cv_lib_socket_socket+:} false; then :
22753 $as_echo_n "(cached) " >&6
22755 ac_check_lib_save_LIBS=$LIBS
22756 LIBS="-lsocket $LIBS"
22757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22758 /* end confdefs.h. */
22760 /* Override any GCC internal prototype to avoid an error.
22761 Use char because int might match the return type of a GCC
22762 builtin and then its argument prototype would still apply. */
22775 if ac_fn_c_try_link "$LINENO"; then :
22776 ac_cv_lib_socket_socket=yes
22778 ac_cv_lib_socket_socket=no
22780 rm -f core conftest.err conftest.$ac_objext \
22781 conftest$ac_exeext conftest.$ac_ext
22782 LIBS=$ac_check_lib_save_LIBS
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22785 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22786 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22787 cat >>confdefs.h <<_ACEOF
22788 #define HAVE_LIBSOCKET 1
22791 LIBS="-lsocket $LIBS"
22795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22796 $as_echo_n "checking for socket in -linet... " >&6; }
22797 if ${ac_cv_lib_inet_socket+:} false; then :
22798 $as_echo_n "(cached) " >&6
22800 ac_check_lib_save_LIBS=$LIBS
22801 LIBS="-linet $LIBS"
22802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22803 /* end confdefs.h. */
22805 /* Override any GCC internal prototype to avoid an error.
22806 Use char because int might match the return type of a GCC
22807 builtin and then its argument prototype would still apply. */
22820 if ac_fn_c_try_link "$LINENO"; then :
22821 ac_cv_lib_inet_socket=yes
22823 ac_cv_lib_inet_socket=no
22825 rm -f core conftest.err conftest.$ac_objext \
22826 conftest$ac_exeext conftest.$ac_ext
22827 LIBS=$ac_check_lib_save_LIBS
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22830 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22831 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22832 cat >>confdefs.h <<_ACEOF
22833 #define HAVE_LIBINET 1
22836 LIBS="-linet $LIBS"
22846 # Check whether --with-tcp-wrappers was given.
22847 if test "${with_tcp_wrappers+set}" = set; then :
22848 withval=$with_tcp_wrappers;
22849 if test "x$withval" != "xno" ; then
22851 LIBS="$saved_LIBS -lwrap"
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22853 $as_echo_n "checking for library containing nanosleep... " >&6; }
22854 if ${ac_cv_search_nanosleep+:} false; then :
22855 $as_echo_n "(cached) " >&6
22857 ac_func_search_save_LIBS=$LIBS
22858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22859 /* end confdefs.h. */
22861 /* Override any GCC internal prototype to avoid an error.
22862 Use char because int might match the return type of a GCC
22863 builtin and then its argument prototype would still apply. */
22871 return nanosleep ();
22876 for ac_lib in '' rt; do
22877 if test -z "$ac_lib"; then
22878 ac_res="none required"
22881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22883 if ac_fn_c_try_link "$LINENO"; then :
22884 ac_cv_search_nanosleep=$ac_res
22886 rm -f core conftest.err conftest.$ac_objext \
22888 if ${ac_cv_search_nanosleep+:} false; then :
22892 if ${ac_cv_search_nanosleep+:} false; then :
22895 ac_cv_search_nanosleep=no
22897 rm conftest.$ac_ext
22898 LIBS=$ac_func_search_save_LIBS
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22901 $as_echo "$ac_cv_search_nanosleep" >&6; }
22902 ac_res=$ac_cv_search_nanosleep
22903 if test "$ac_res" != no; then :
22904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22909 $as_echo_n "checking for libwrap... " >&6; }
22910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22911 /* end confdefs.h. */
22913 #include <sys/types.h>
22915 int deny_severity = 0;
22916 int allow_severity = 0;
22917 struct request_info *req;
22929 if ac_fn_c_try_link "$LINENO"; then :
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22932 $as_echo "yes" >&6; }
22934 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22942 LIBS="$saved_LIBS -lwrap -lnsl"
22943 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22945 /* end confdefs.h. */
22947 #include <sys/types.h>
22949 int deny_severity = 0;
22950 int allow_severity = 0;
22951 struct request_info *req;
22963 if ac_fn_c_try_link "$LINENO"; then :
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22966 $as_echo "yes" >&6; }
22968 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22976 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22980 rm -f core conftest.err conftest.$ac_objext \
22981 conftest$ac_exeext conftest.$ac_ext
22985 rm -f core conftest.err conftest.$ac_objext \
22986 conftest$ac_exeext conftest.$ac_ext
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22994 $as_echo_n "checking for OpenSSL... " >&6; }
22996 # Check whether --with-openssl was given.
22997 if test "${with_openssl+set}" = set; then :
22998 withval=$with_openssl;
22999 with_openssl_directory=${withval}
23005 if test "x$with_openssl_directory" != "xno"; then
23006 OPENSSL_LIBS="-lssl -lcrypto"
23009 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23011 # Make sure the $with_openssl_directory also makes sense
23013 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23014 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23015 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23019 saved_LIBS="${LIBS}"
23020 saved_CFLAGS="${CFLAGS}"
23021 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23022 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23025 /* end confdefs.h. */
23027 #include <openssl/ssl.h>
23033 CRYPTO_set_id_callback(NULL);
23039 if ac_fn_c_try_link "$LINENO"; then :
23042 support_crypto="yes"
23047 support_crypto="no"
23051 rm -f core conftest.err conftest.$ac_objext \
23052 conftest$ac_exeext conftest.$ac_ext
23054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23055 /* end confdefs.h. */
23057 #include <openssl/evp.h>
23069 if ac_fn_c_try_link "$LINENO"; then :
23071 ac_cv_openssl_sha2="yes"
23075 ac_cv_openssl_sha2="no"
23079 rm -f core conftest.err conftest.$ac_objext \
23080 conftest$ac_exeext conftest.$ac_ext
23082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083 /* end confdefs.h. */
23085 #include <openssl/evp.h>
23097 if ac_fn_c_try_link "$LINENO"; then :
23099 ac_cv_openssl_export="no"
23103 ac_cv_openssl_export="yes"
23107 rm -f core conftest.err conftest.$ac_objext \
23108 conftest$ac_exeext conftest.$ac_ext
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23111 $as_echo "$support_tls" >&6; }
23112 if test "$support_tls" = "yes"; then
23114 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23117 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23120 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23124 if test "$ac_cv_openssl_sha2" = "yes"; then
23126 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23130 if test "$ac_cv_openssl_export" = "yes"; then
23132 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23136 if test "$support_crypto" = "yes"; then
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23138 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23139 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23140 $as_echo_n "(cached) " >&6
23142 ac_check_lib_save_LIBS=$LIBS
23143 LIBS="-lcrypto $LIBS"
23144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23145 /* end confdefs.h. */
23147 /* Override any GCC internal prototype to avoid an error.
23148 Use char because int might match the return type of a GCC
23149 builtin and then its argument prototype would still apply. */
23153 char EVP_PKEY_encrypt_old ();
23157 return EVP_PKEY_encrypt_old ();
23162 if ac_fn_c_try_link "$LINENO"; then :
23163 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23165 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23167 rm -f core conftest.err conftest.$ac_objext \
23168 conftest$ac_exeext conftest.$ac_ext
23169 LIBS=$ac_check_lib_save_LIBS
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23172 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23173 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23175 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23181 LIBS="${saved_LIBS}"
23182 CFLAGS="${saved_CFLAGS}"
23185 support_crypto="no"
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23187 $as_echo "$support_tls" >&6; }
23190 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23199 $as_echo_n "checking for library containing dlopen... " >&6; }
23200 if ${ac_cv_search_dlopen+:} false; then :
23201 $as_echo_n "(cached) " >&6
23203 ac_func_search_save_LIBS=$LIBS
23204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23205 /* end confdefs.h. */
23207 /* Override any GCC internal prototype to avoid an error.
23208 Use char because int might match the return type of a GCC
23209 builtin and then its argument prototype would still apply. */
23222 for ac_lib in '' dl; do
23223 if test -z "$ac_lib"; then
23224 ac_res="none required"
23227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23229 if ac_fn_c_try_link "$LINENO"; then :
23230 ac_cv_search_dlopen=$ac_res
23232 rm -f core conftest.err conftest.$ac_objext \
23234 if ${ac_cv_search_dlopen+:} false; then :
23238 if ${ac_cv_search_dlopen+:} false; then :
23241 ac_cv_search_dlopen=no
23243 rm conftest.$ac_ext
23244 LIBS=$ac_func_search_save_LIBS
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23247 $as_echo "$ac_cv_search_dlopen" >&6; }
23248 ac_res=$ac_cv_search_dlopen
23249 if test "$ac_res" != no; then :
23250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23255 working_dir=`eval echo /opt/bacula/working`
23257 # Check whether --with-working-dir was given.
23258 if test "${with_working_dir+set}" = set; then :
23259 withval=$with_working_dir;
23260 if test "x$withval" != "xno" ; then
23261 working_dir=$withval
23272 # Check whether --with-archivedir was given.
23273 if test "${with_archivedir+set}" = set; then :
23274 withval=$with_archivedir;
23275 if test "x$withval" != "xno" ; then
23276 archivedir=$withval
23285 basename=`hostname`
23287 # Check whether --with-basename was given.
23288 if test "${with_basename+set}" = set; then :
23289 withval=$with_basename;
23290 if test "x$withval" != "xno" ; then
23300 hostname=`uname -n | cut -d '.' -f 1`
23301 if test x${hostname} = x ; then
23302 hostname="localhost"
23304 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23305 if test ! $? = 0; then
23306 hostname="localhost"
23309 # Check whether --with-hostname was given.
23310 if test "${with_hostname+set}" = set; then :
23311 withval=$with_hostname;
23312 if test "x$withval" != "xno" ; then
23323 scriptdir=`eval echo ${sysconfdir}`
23325 # Check whether --with-scriptdir was given.
23326 if test "${with_scriptdir+set}" = set; then :
23327 withval=$with_scriptdir;
23328 if test "x$withval" != "xno" ; then
23339 bsrdir=`eval echo /opt/bacula/bsr`
23341 # Check whether --with-bsrdir was given.
23342 if test "${with_bsrdir+set}" = set; then :
23343 withval=$with_bsrdir;
23344 if test "x$withval" != "xno" ; then
23354 logdir=`eval echo /opt/bacula/log`
23356 # Check whether --with-logdir was given.
23357 if test "${with_logdir+set}" = set; then :
23358 withval=$with_logdir;
23359 if test "x$withval" != "xno" ; then
23370 # ------------------------------------------
23371 # Where to place plugindir (plugin files)
23372 # ------------------------------------------
23373 plugindir=`eval echo ${libdir}`
23375 # Check whether --with-plugindir was given.
23376 if test "${with_plugindir+set}" = set; then :
23377 withval=$with_plugindir;
23378 if test "x$withval" != "xno" ; then
23389 dump_email=root@localhost
23391 # Check whether --with-dump-email was given.
23392 if test "${with_dump_email+set}" = set; then :
23393 withval=$with_dump_email;
23394 if test "x$withval" != "xno" ; then
23395 dump_email=$withval
23404 job_email=root@localhost
23406 # Check whether --with-job-email was given.
23407 if test "${with_job_email+set}" = set; then :
23408 withval=$with_job_email;
23409 if test "x$withval" != "xno" ; then
23419 smtp_host=localhost
23421 # Check whether --with-smtp_host was given.
23422 if test "${with_smtp_host+set}" = set; then :
23423 withval=$with_smtp_host;
23424 if test "x$withval" != "xno" ; then
23436 # Check whether --with-pid-dir was given.
23437 if test "${with_pid_dir+set}" = set; then :
23438 withval=$with_pid_dir;
23439 if test "x$withval" != "xno" ; then
23447 cat >>confdefs.h <<_ACEOF
23448 #define _PATH_BACULA_PIDDIR "$piddir"
23453 subsysdir=/var/run/subsys
23454 if test -d /var/run/subsys; then
23455 subsysdir=/var/run/subsys
23456 elif test -d /var/lock/subsys; then
23457 subsysdir=/var/lock/subsys
23459 subsysdir=/var/run/subsys
23462 # Check whether --with-subsys-dir was given.
23463 if test "${with_subsys_dir+set}" = set; then :
23464 withval=$with_subsys_dir;
23465 if test "x$withval" != "xno" ; then
23477 # Check whether --with-baseport was given.
23478 if test "${with_baseport+set}" = set; then :
23479 withval=$with_baseport;
23480 if test "x$withval" != "xno" ; then
23489 dir_port=`expr $baseport`
23490 fd_port=`expr $baseport + 1`
23491 sd_port=`expr $fd_port + 1`
23499 # Check whether --with-dir-password was given.
23500 if test "${with_dir_password+set}" = set; then :
23501 withval=$with_dir_password;
23502 if test "x$withval" != "xno" ; then
23503 dir_password=$withval
23510 if test "x$dir_password" = "x" ; then
23511 if test "x$OPENSSL" = "xnone" ; then
23512 key=`autoconf/randpass 33`
23514 key=`openssl rand -base64 33`
23521 # Check whether --with-fd-password was given.
23522 if test "${with_fd_password+set}" = set; then :
23523 withval=$with_fd_password;
23524 if test "x$withval" != "xno" ; then
23525 fd_password=$withval
23532 if test "x$fd_password" = "x" ; then
23533 if test "x$OPENSSL" = "xnone" ; then
23534 key=`autoconf/randpass 37`
23536 key=`openssl rand -base64 33`
23543 # Check whether --with-sd-password was given.
23544 if test "${with_sd_password+set}" = set; then :
23545 withval=$with_sd_password;
23546 if test "x$withval" != "xno" ; then
23547 sd_password=$withval
23554 if test "x$sd_password" = "x" ; then
23555 if test "x$OPENSSL" = "xnone" ; then
23556 key=`autoconf/randpass 41`
23558 key=`openssl rand -base64 33`
23565 # Check whether --with-mon-dir-password was given.
23566 if test "${with_mon_dir_password+set}" = set; then :
23567 withval=$with_mon_dir_password;
23568 if test "x$withval" != "xno" ; then
23569 mon_dir_password=$withval
23576 if test "x$mon_dir_password" = "x" ; then
23577 if test "x$OPENSSL" = "xnone" ; then
23578 key=`autoconf/randpass 33`
23580 key=`openssl rand -base64 33`
23582 mon_dir_password=$key
23587 # Check whether --with-mon-fd-password was given.
23588 if test "${with_mon_fd_password+set}" = set; then :
23589 withval=$with_mon_fd_password;
23590 if test "x$withval" != "xno" ; then
23591 mon_fd_password=$withval
23598 if test "x$mon_fd_password" = "x" ; then
23599 if test "x$OPENSSL" = "xnone" ; then
23600 key=`autoconf/randpass 37`
23602 key=`openssl rand -base64 33`
23604 mon_fd_password=$key
23609 # Check whether --with-mon-sd-password was given.
23610 if test "${with_mon_sd_password+set}" = set; then :
23611 withval=$with_mon_sd_password;
23612 if test "x$withval" != "xno" ; then
23613 mon_sd_password=$withval
23620 if test "x$mon_sd_password" = "x" ; then
23621 if test "x$OPENSSL" = "xnone" ; then
23622 key=`autoconf/randpass 41`
23624 key=`openssl rand -base64 33`
23626 mon_sd_password=$key
23638 # Check whether --with-db_name was given.
23639 if test "${with_db_name+set}" = set; then :
23640 withval=$with_db_name;
23641 if test "x$withval" != "x" ; then
23652 # Check whether --with-db_user was given.
23653 if test "${with_db_user+set}" = set; then :
23654 withval=$with_db_user;
23655 if test "x$withval" != "x" ; then
23666 # Check whether --with-db_password was given.
23667 if test "${with_db_password+set}" = set; then :
23668 withval=$with_db_password;
23669 if test "x$withval" != "x" ; then
23670 db_password=$withval
23680 # Check whether --with-db_port was given.
23681 if test "${with_db_port+set}" = set; then :
23682 withval=$with_db_port;
23683 if test "x$withval" != "x" ; then
23694 # Check whether --with-db_ssl_options was given.
23695 if test "${with_db_ssl_options+set}" = set; then :
23696 withval=$with_db_ssl_options;
23697 if test "x$withval" != "x" ; then
23698 db_ssl_options=$withval
23707 # Handle users and groups for each daemon
23711 # Check whether --with-dir_user was given.
23712 if test "${with_dir_user+set}" = set; then :
23713 withval=$with_dir_user;
23714 if test "x$withval" != "x" ; then
23724 # Check whether --with-dir_group was given.
23725 if test "${with_dir_group+set}" = set; then :
23726 withval=$with_dir_group;
23727 if test "x$withval" != "x" ; then
23737 # Check whether --with-sd_user was given.
23738 if test "${with_sd_user+set}" = set; then :
23739 withval=$with_sd_user;
23740 if test "x$withval" != "x" ; then
23750 # Check whether --with-sd_group was given.
23751 if test "${with_sd_group+set}" = set; then :
23752 withval=$with_sd_group;
23753 if test "x$withval" != "x" ; then
23763 # Check whether --with-fd_user was given.
23764 if test "${with_fd_user+set}" = set; then :
23765 withval=$with_fd_user;
23766 if test "x$withval" != "x" ; then
23776 # Check whether --with-fd_group was given.
23777 if test "${with_fd_group+set}" = set; then :
23778 withval=$with_fd_group;
23779 if test "x$withval" != "x" ; then
23796 # Check whether --with-sbin-perm was given.
23797 if test "${with_sbin_perm+set}" = set; then :
23798 withval=$with_sbin_perm;
23799 if test "x$withval" != "x" ; then
23809 support_batch_insert=yes
23810 # Check whether --enable-batch-insert was given.
23811 if test "${enable_batch_insert+set}" = set; then :
23812 enableval=$enable_batch_insert;
23813 if test x$enableval = xno; then
23814 support_batch_insert=no
23821 if test x$support_batch_insert = xyes; then
23823 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23832 $as_echo_n "checking for PostgreSQL support... " >&6; }
23834 # Check whether --with-postgresql was given.
23835 if test "${with_postgresql+set}" = set; then :
23836 withval=$with_postgresql;
23837 if test "$withval" != "no"; then
23838 if test "$withval" = "yes"; then
23839 PG_CONFIG=`which pg_config 2>/dev/null`
23840 if test -n "$PG_CONFIG"; then
23841 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23842 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23843 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23844 elif test -f /usr/local/include/libpq-fe.h; then
23845 POSTGRESQL_INCDIR=/usr/local/include
23846 if test -d /usr/local/lib64; then
23847 POSTGRESQL_LIBDIR=/usr/local/lib64
23849 POSTGRESQL_LIBDIR=/usr/local/lib
23851 POSTGRESQL_BINDIR=/usr/local/bin
23852 elif test -f /usr/include/libpq-fe.h; then
23853 POSTGRESQL_INCDIR=/usr/include
23854 if test -d /usr/lib64; then
23855 POSTGRESQL_LIBDIR=/usr/lib64
23857 POSTGRESQL_LIBDIR=/usr/lib
23859 POSTGRESQL_BINDIR=/usr/bin
23860 elif test -f /usr/include/pgsql/libpq-fe.h; then
23861 POSTGRESQL_INCDIR=/usr/include/pgsql
23862 if test -d /usr/lib64/pgsql; then
23863 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23865 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23867 POSTGRESQL_BINDIR=/usr/bin
23868 elif test -f /usr/include/postgresql/libpq-fe.h; then
23869 POSTGRESQL_INCDIR=/usr/include/postgresql
23870 if test -d /usr/lib64/postgresql; then
23871 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23873 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23875 POSTGRESQL_BINDIR=/usr/bin
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23878 $as_echo "no" >&6; }
23879 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23881 elif test -f $withval/include/libpq-fe.h; then
23882 POSTGRESQL_INCDIR=$withval/include
23883 POSTGRESQL_LIBDIR=$withval/lib
23884 POSTGRESQL_BINDIR=$withval/bin
23885 elif test -f $withval/include/postgresql/libpq-fe.h; then
23886 POSTGRESQL_INCDIR=$withval/include/postgresql
23887 if test -d $withval/lib64; then
23888 POSTGRESQL_LIBDIR=$withval/lib64
23890 POSTGRESQL_LIBDIR=$withval/lib
23892 POSTGRESQL_BINDIR=$withval/bin
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23895 $as_echo "no" >&6; }
23896 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23899 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23902 $as_echo "yes" >&6; }
23904 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23905 if test x$use_libtool != xno; then
23906 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23908 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23910 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23911 if test "x$ac_cv_func_crypt" = xyes; then :
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23915 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23916 if ${ac_cv_lib_crypt_crypt+:} false; then :
23917 $as_echo_n "(cached) " >&6
23919 ac_check_lib_save_LIBS=$LIBS
23920 LIBS="-lcrypt $LIBS"
23921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23922 /* end confdefs.h. */
23924 /* Override any GCC internal prototype to avoid an error.
23925 Use char because int might match the return type of a GCC
23926 builtin and then its argument prototype would still apply. */
23939 if ac_fn_c_try_link "$LINENO"; then :
23940 ac_cv_lib_crypt_crypt=yes
23942 ac_cv_lib_crypt_crypt=no
23944 rm -f core conftest.err conftest.$ac_objext \
23945 conftest$ac_exeext conftest.$ac_ext
23946 LIBS=$ac_check_lib_save_LIBS
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23949 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23950 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23951 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23956 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23957 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23959 if test -z "${db_backends}"; then
23960 db_backends="PostgreSQL"
23962 db_backends="${db_backends} PostgreSQL"
23964 if test -z "${DB_BACKENDS}"; then
23965 DB_BACKENDS="postgresql"
23967 DB_BACKENDS="${DB_BACKENDS} postgresql"
23970 if test "x$support_batch_insert" = "xyes"; then
23971 saved_LDFLAGS="${LDFLAGS}"
23972 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23973 saved_LIBS="${LIBS}"
23974 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23975 LIBS="${saved_LIBS} -lcrypt"
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23979 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23980 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23981 $as_echo_n "(cached) " >&6
23983 ac_check_lib_save_LIBS=$LIBS
23985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23986 /* end confdefs.h. */
23988 /* Override any GCC internal prototype to avoid an error.
23989 Use char because int might match the return type of a GCC
23990 builtin and then its argument prototype would still apply. */
23994 char PQisthreadsafe ();
23998 return PQisthreadsafe ();
24003 if ac_fn_c_try_link "$LINENO"; then :
24004 ac_cv_lib_pq_PQisthreadsafe=yes
24006 ac_cv_lib_pq_PQisthreadsafe=no
24008 rm -f core conftest.err conftest.$ac_objext \
24009 conftest$ac_exeext conftest.$ac_ext
24010 LIBS=$ac_check_lib_save_LIBS
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24013 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24014 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24016 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24021 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24022 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24023 $as_echo_n "(cached) " >&6
24025 ac_check_lib_save_LIBS=$LIBS
24027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24028 /* end confdefs.h. */
24030 /* Override any GCC internal prototype to avoid an error.
24031 Use char because int might match the return type of a GCC
24032 builtin and then its argument prototype would still apply. */
24036 char PQputCopyData ();
24040 return PQputCopyData ();
24045 if ac_fn_c_try_link "$LINENO"; then :
24046 ac_cv_lib_pq_PQputCopyData=yes
24048 ac_cv_lib_pq_PQputCopyData=no
24050 rm -f core conftest.err conftest.$ac_objext \
24051 conftest$ac_exeext conftest.$ac_ext
24052 LIBS=$ac_check_lib_save_LIBS
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24055 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24056 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24058 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24062 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24063 if test $support_batch_insert = yes ; then
24065 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24067 if test -z "${batch_insert_db_backends}"; then
24068 batch_insert_db_backends="PostgreSQL"
24070 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24075 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24077 echo "WARNING: Your PostgreSQL client library is too old to detect "
24078 echo "if it was compiled with --enable-thread-safety, consider to "
24079 echo "upgrade it in order to avoid problems with Batch insert mode"
24082 LDFLAGS="${saved_LDFLAGS}"
24083 LIBS="${saved_LIBS}"
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24087 $as_echo "no" >&6; }
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24093 $as_echo "no" >&6; }
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24105 $as_echo_n "checking for MySQL support... " >&6; }
24107 # Check whether --with-mysql was given.
24108 if test "${with_mysql+set}" = set; then :
24109 withval=$with_mysql;
24111 if test "$withval" != "no"; then
24112 if test "$withval" = "yes"; then
24113 MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24114 if test "x${MYSQL_CONFIG}" != x; then
24115 MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24116 ${MYSQL_CONFIG} --libs_r >/dev/null 2>&1
24117 if test $? = 0; then
24118 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r`
24119 MYSQL_INCDIR=`${MYSQL_CONFIG} --include`
24122 ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24123 if test $? = 0 ; then
24124 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24125 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24129 # if something wrong fall back to old method
24130 if test "x${MYSQL_LIBDIR}" = x -o "x${MYSQL_INCDIR}" = x ; then
24131 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24132 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24133 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24134 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24135 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24137 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24139 MYSQL_BINDIR=/usr/local/mysql/bin
24140 elif test -f /usr/include/mysql/mysql.h; then
24141 MYSQL_INCDIR=/usr/include/mysql
24142 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24143 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24144 MYSQL_LIBDIR=/usr/lib64/mysql
24145 elif test -f /usr/lib64/libmysqlclient_r.a \
24146 -o -f /usr/lib64/libmysqlclient_r.so; then
24147 MYSQL_LIBDIR=/usr/lib64
24148 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24149 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24150 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24151 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24152 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24153 MYSQL_LIBDIR=/usr/lib/mysql
24155 MYSQL_LIBDIR=/usr/lib
24157 MYSQL_BINDIR=/usr/bin
24158 elif test -f /usr/include/mysql.h; then
24159 MYSQL_INCDIR=/usr/include
24160 if test -f /usr/lib64/libmysqlclient_r.a \
24161 -o -f /usr/lib64/libmysqlclient_r.so; then
24162 MYSQL_LIBDIR=/usr/lib64
24164 MYSQL_LIBDIR=/usr/lib
24166 MYSQL_BINDIR=/usr/bin
24167 elif test -f /usr/local/include/mysql/mysql.h; then
24168 MYSQL_INCDIR=/usr/local/include/mysql
24169 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24170 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24171 MYSQL_LIBDIR=/usr/local/lib64/mysql
24173 MYSQL_LIBDIR=/usr/local/lib/mysql
24175 MYSQL_BINDIR=/usr/local/bin
24176 elif test -f /usr/local/include/mysql.h; then
24177 MYSQL_INCDIR=/usr/local/include
24178 if test -f /usr/local/lib64/libmysqlclient_r.a \
24179 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24180 MYSQL_LIBDIR=/usr/local/lib64
24182 MYSQL_LIBDIR=/usr/local/lib
24184 MYSQL_BINDIR=/usr/local/bin
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24187 $as_echo "no" >&6; }
24188 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24192 if test -f $withval/include/mysql/mysql.h; then
24193 MYSQL_INCDIR=$withval/include/mysql
24194 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24195 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24196 MYSQL_LIBDIR=$withval/lib64/mysql
24197 elif test -f $withval/lib64/libmysqlclient_r.a \
24198 -o -f $withval/lib64/libmysqlclient_r.so; then
24199 MYSQL_LIBDIR=$withval/lib64
24200 elif test -f $withval/lib/libmysqlclient_r.a \
24201 -o -f $withval/lib/libmysqlclient_r.so; then
24202 MYSQL_LIBDIR=$withval/lib
24204 MYSQL_LIBDIR=$withval/lib/mysql
24206 MYSQL_BINDIR=$withval/bin
24207 elif test -f $withval/include/mysql.h; then
24208 MYSQL_INCDIR=$withval/include
24209 if test -f $withval/lib64/libmysqlclient_r.a \
24210 -o -f $withval/lib64/libmysqlclient_r.so; then
24211 MYSQL_LIBDIR=$withval/lib64
24213 MYSQL_LIBDIR=$withval/lib
24215 MYSQL_BINDIR=$withval/bin
24216 elif test -f $withval/mysql.h; then
24217 MYSQL_INCDIR=$withval
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24219 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24220 case $MYSQL_INCDIR in
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24223 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24224 if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24225 -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24227 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24228 MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24230 MYSQL_BINDIR=$prefix/lib/mysql55/bin
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24234 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24235 if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24236 -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24238 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24239 MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24241 MYSQL_BINDIR=$prefix/lib/mysql51/bin
24244 if test -z "${MYSQL_LIBDIR}" ; then
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24246 $as_echo "no" >&6; }
24247 as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24251 $as_echo "no" >&6; }
24252 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24255 if test "x${MYSQL_LIBDIR}" != x; then
24256 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24257 if test "x$HAVE_LIBSR" = "xyes"; then
24258 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24259 MYSQL_LIBS="$MYSQL_LIBDIR"
24260 MYSQL_INCLUDE="$MYSQL_INCDIR"
24262 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24264 if test -z "${batch_insert_db_backends}"; then
24265 batch_insert_db_backends="MySQL"
24267 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24269 elif test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24270 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24271 if test x$use_libtool != xno; then
24272 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24274 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24276 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24278 if test "x${MYSQL_LIBS}" = x; then
24279 MYSQL_LIBS=$MYSQL_LIBDIR/libmysqlclient_r.a
24283 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24286 $as_echo "yes" >&6; }
24288 if test -z "${db_backends}" ; then
24289 db_backends="MySQL"
24291 db_backends="${db_backends} MySQL"
24293 if test -z "${DB_BACKENDS}" ; then
24294 DB_BACKENDS="mysql"
24296 DB_BACKENDS="${DB_BACKENDS} mysql"
24299 if test "x$HAVE_LIBSR" = "xno"; then
24300 if test "x$support_batch_insert" = "xyes"; then
24301 saved_LDFLAGS="${LDFLAGS}"
24302 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24303 saved_LIBS="${LIBS}"
24304 LIBS="${saved_LIBS} -lz"
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24307 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24308 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24309 $as_echo_n "(cached) " >&6
24311 ac_check_lib_save_LIBS=$LIBS
24312 LIBS="-lmysqlclient_r $LIBS"
24313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24314 /* end confdefs.h. */
24316 /* Override any GCC internal prototype to avoid an error.
24317 Use char because int might match the return type of a GCC
24318 builtin and then its argument prototype would still apply. */
24322 char mysql_thread_safe ();
24326 return mysql_thread_safe ();
24331 if ac_fn_c_try_link "$LINENO"; then :
24332 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24334 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24336 rm -f core conftest.err conftest.$ac_objext \
24337 conftest$ac_exeext conftest.$ac_ext
24338 LIBS=$ac_check_lib_save_LIBS
24340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24341 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24342 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24344 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24348 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24349 if test -z "${batch_insert_db_backends}"; then
24350 batch_insert_db_backends="MySQL"
24352 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24356 LDFLAGS="${saved_LDFLAGS}"
24357 LIBS="${saved_LIBS}"
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24362 $as_echo "no" >&6; }
24368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24369 $as_echo "no" >&6; }
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24375 $as_echo_n "checking for MySQL embedded support... " >&6; }
24377 # Check whether --with-embedded-mysql was given.
24378 if test "${with_embedded_mysql+set}" = set; then :
24379 withval=$with_embedded_mysql;
24380 if test "$withval" != "no"; then
24381 if test "$withval" = "yes"; then
24382 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24383 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24384 if test -d /usr/local/mysql/lib64/mysql; then
24385 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24387 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24389 MYSQL_BINDIR=/usr/local/mysql/bin
24390 elif test -f /usr/include/mysql/mysql.h; then
24391 MYSQL_INCDIR=/usr/include/mysql
24392 if test -d /usr/lib64/mysql; then
24393 MYSQL_LIBDIR=/usr/lib64/mysql
24395 MYSQL_LIBDIR=/usr/lib/mysql
24397 MYSQL_BINDIR=/usr/bin
24398 elif test -f /usr/include/mysql.h; then
24399 MYSQL_INCDIR=/usr/include
24400 if test -d /usr/lib64; then
24401 MYSQL_LIBDIR=/usr/lib64
24403 MYSQL_LIBDIR=/usr/lib
24405 MYSQL_BINDIR=/usr/bin
24406 elif test -f /usr/local/include/mysql/mysql.h; then
24407 MYSQL_INCDIR=/usr/local/include/mysql
24408 if test -d /usr/local/lib64/mysql; then
24409 MYSQL_LIBDIR=/usr/local/lib64/mysql
24411 MYSQL_LIBDIR=/usr/local/lib/mysql
24413 MYSQL_BINDIR=/usr/local/bin
24414 elif test -f /usr/local/include/mysql.h; then
24415 MYSQL_INCDIR=/usr/local/include
24416 if test -d /usr/local/lib64; then
24417 MYSQL_LIBDIR=/usr/local/lib64
24419 MYSQL_LIBDIR=/usr/local/lib
24421 MYSQL_BINDIR=/usr/local/bin
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24424 $as_echo "no" >&6; }
24425 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24428 if test -f $withval/include/mysql/mysql.h; then
24429 MYSQL_INCDIR=$withval/include/mysql
24430 if test -d $withval/lib64/mysql; then
24431 MYSQL_LIBDIR=$withval/lib64/mysql
24433 MYSQL_LIBDIR=$withval/lib/mysql
24435 MYSQL_BINDIR=$withval/bin
24436 elif test -f $withval/include/mysql.h; then
24437 MYSQL_INCDIR=$withval/include
24438 if test -d $withval/lib64; then
24439 MYSQL_LIBDIR=$withval/lib64
24441 MYSQL_LIBDIR=$withval/lib
24443 MYSQL_BINDIR=$withval/bin
24445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24446 $as_echo "no" >&6; }
24447 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24450 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24451 if test x$use_libtool != xno; then
24452 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24454 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24456 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24457 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24460 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24463 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24466 $as_echo "yes" >&6; }
24468 if test -z "${db_backends}"; then
24469 db_backends="MySQL"
24471 db_backends="${db_backends} MySQL"
24473 if test -z "${DB_BACKENDS}"; then
24474 DB_BACKENDS="mysql"
24476 DB_BACKENDS="${DB_BACKENDS} mysql"
24479 if test "x$support_batch_insert" = "xyes"; then
24480 saved_LDFLAGS="${LDFLAGS}"
24481 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24482 saved_LIBS="${LIBS}"
24483 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24486 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24487 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24488 $as_echo_n "(cached) " >&6
24490 ac_check_lib_save_LIBS=$LIBS
24491 LIBS="-lmysqlclient_r $LIBS"
24492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24493 /* end confdefs.h. */
24495 /* Override any GCC internal prototype to avoid an error.
24496 Use char because int might match the return type of a GCC
24497 builtin and then its argument prototype would still apply. */
24501 char mysql_thread_safe ();
24505 return mysql_thread_safe ();
24510 if ac_fn_c_try_link "$LINENO"; then :
24511 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24513 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24515 rm -f core conftest.err conftest.$ac_objext \
24516 conftest$ac_exeext conftest.$ac_ext
24517 LIBS=$ac_check_lib_save_LIBS
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24520 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24521 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24523 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24527 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24528 if test -z "${batch_insert_db_backends}"; then
24529 batch_insert_db_backends="MySQL"
24531 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24535 LDFLAGS="${saved_LDFLAGS}"
24536 LIBS="${saved_LIBS}"
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24540 $as_echo "no" >&6; }
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24546 $as_echo "no" >&6; }
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24559 $as_echo_n "checking for SQLite3 support... " >&6; }
24561 # Check whether --with-sqlite3 was given.
24562 if test "${with_sqlite3+set}" = set; then :
24563 withval=$with_sqlite3;
24564 if test "$withval" != "no"; then
24565 if test "$withval" = "yes"; then
24566 if test -f /usr/local/include/sqlite3.h; then
24567 SQLITE_INCDIR=/usr/local/include
24568 if test -d /usr/local/lib64; then
24569 SQLITE_LIBDIR=/usr/local/lib64
24571 SQLITE_LIBDIR=/usr/local/lib
24573 SQLITE_BINDIR=/usr/local/bin
24574 elif test -f /usr/include/sqlite3.h; then
24575 SQLITE_INCDIR=/usr/include
24576 if test -d /usr/lib64; then
24577 SQLITE_LIBDIR=/usr/lib64
24579 SQLITE_LIBDIR=/usr/lib
24581 SQLITE_BINDIR=/usr/bin
24582 elif test -f $prefix/include/sqlite3.h; then
24583 SQLITE_INCDIR=$prefix/include
24584 if test -d $prefix/lib64; then
24585 SQLITE_LIBDIR=$prefix/lib64
24587 SQLITE_LIBDIR=$prefix/lib
24589 SQLITE_BINDIR=$prefix/bin
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24592 $as_echo "no" >&6; }
24593 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24596 if test -f $withval/sqlite3.h; then
24597 SQLITE_INCDIR=$withval
24598 SQLITE_LIBDIR=$withval
24599 SQLITE_BINDIR=$withval
24600 elif test -f $withval/include/sqlite3.h; then
24601 SQLITE_INCDIR=$withval/include
24602 if test -d $withval/lib64; then
24603 SQLITE_LIBDIR=$withval/lib64
24605 SQLITE_LIBDIR=$withval/lib
24607 SQLITE_BINDIR=$withval/bin
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24610 $as_echo "no" >&6; }
24611 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24614 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24615 if test x$use_libtool != xno; then
24616 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24618 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24620 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24621 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24624 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24627 $as_echo "yes" >&6; }
24629 if test -z "${db_backends}"; then
24630 db_backends="SQLite3"
24632 db_backends="${db_backends} SQLite3"
24634 if test -z "${DB_BACKENDS}"; then
24635 DB_BACKENDS="sqlite3"
24637 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24640 if test "x$support_batch_insert" = "xyes"; then
24641 saved_LDFLAGS="${LDFLAGS}"
24642 LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24645 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24646 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24647 $as_echo_n "(cached) " >&6
24649 ac_check_lib_save_LIBS=$LIBS
24650 LIBS="-lsqlite3 $LIBS"
24651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24652 /* end confdefs.h. */
24654 /* Override any GCC internal prototype to avoid an error.
24655 Use char because int might match the return type of a GCC
24656 builtin and then its argument prototype would still apply. */
24660 char sqlite3_threadsafe ();
24664 return sqlite3_threadsafe ();
24669 if ac_fn_c_try_link "$LINENO"; then :
24670 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24672 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24674 rm -f core conftest.err conftest.$ac_objext \
24675 conftest$ac_exeext conftest.$ac_ext
24676 LIBS=$ac_check_lib_save_LIBS
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24679 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24680 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24682 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24686 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24687 if test -z "${batch_insert_db_backends}"; then
24688 batch_insert_db_backends="SQLite3"
24690 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24694 LDFLAGS="${saved_LDFLAGS}"
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24698 $as_echo "no" >&6; }
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24704 $as_echo "no" >&6; }
24714 if test -z "${batch_insert_db_backends}"; then
24715 batch_insert_db_backends="None"
24718 if test "x${db_backends}" = "x" ; then
24721 echo "You have not specified either --enable-client-only or one of the"
24722 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24723 echo "This is not permitted. Please reconfigure."
24725 echo "Aborting the configuration ..."
24731 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24733 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24734 if test x$use_libtool = xno; then
24735 SHARED_CATALOG_TARGETS=""
24737 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24741 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24743 if test x$use_libtool = xno; then
24746 echo "You have specified two or more of the"
24747 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24748 echo "This is not permitted when not using libtool Please reconfigure."
24750 echo "Aborting the configuration ..."
24756 SHARED_CATALOG_TARGETS=""
24757 for db_type in ${DB_BACKENDS}
24759 if test -z "${SHARED_CATALOG_TARGETS}"; then
24760 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24762 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24768 if test x$use_libtool = xyes; then
24778 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24781 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24782 if test -z "$CCOPTS"; then
24783 CCOPTS='-g -O2 -Wall'
24790 largefile_support="no"
24792 # Check whether --enable-largefile was given.
24793 if test "${enable_largefile+set}" = set; then :
24794 enableval=$enable_largefile;
24797 if test "$enable_largefile" != no; then
24798 if test -n "$ac_tool_prefix"; then
24799 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24800 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24802 $as_echo_n "checking for $ac_word... " >&6; }
24803 if ${ac_cv_prog_GETCONF+:} false; then :
24804 $as_echo_n "(cached) " >&6
24806 if test -n "$GETCONF"; then
24807 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24810 for as_dir in $PATH
24813 test -z "$as_dir" && as_dir=.
24814 for ac_exec_ext in '' $ac_executable_extensions; do
24815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24816 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24826 GETCONF=$ac_cv_prog_GETCONF
24827 if test -n "$GETCONF"; then
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24829 $as_echo "$GETCONF" >&6; }
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24832 $as_echo "no" >&6; }
24837 if test -z "$ac_cv_prog_GETCONF"; then
24838 ac_ct_GETCONF=$GETCONF
24839 # Extract the first word of "getconf", so it can be a program name with args.
24840 set dummy getconf; ac_word=$2
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24842 $as_echo_n "checking for $ac_word... " >&6; }
24843 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24844 $as_echo_n "(cached) " >&6
24846 if test -n "$ac_ct_GETCONF"; then
24847 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24850 for as_dir in $PATH
24853 test -z "$as_dir" && as_dir=.
24854 for ac_exec_ext in '' $ac_executable_extensions; do
24855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24856 ac_cv_prog_ac_ct_GETCONF="getconf"
24857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24866 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24867 if test -n "$ac_ct_GETCONF"; then
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24869 $as_echo "$ac_ct_GETCONF" >&6; }
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24872 $as_echo "no" >&6; }
24875 if test "x$ac_ct_GETCONF" = x; then
24878 case $cross_compiling:$ac_tool_warned in
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24882 ac_tool_warned=yes ;;
24884 GETCONF=$ac_ct_GETCONF
24887 GETCONF="$ac_cv_prog_GETCONF"
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24891 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24892 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24893 $as_echo_n "(cached) " >&6
24895 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24896 ac_cv_sys_largefile_CFLAGS=no
24898 # IRIX 6.2 and later require cc -n32.
24899 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24900 if test "$GCC" != yes; then
24901 ac_cv_sys_largefile_CFLAGS=-n32
24904 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24906 /* end confdefs.h. */
24916 if ac_fn_c_try_link "$LINENO"; then :
24919 ac_cv_sys_largefile_CFLAGS=no
24921 rm -f core conftest.err conftest.$ac_objext \
24922 conftest$ac_exeext conftest.$ac_ext
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24928 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24930 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24931 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24932 $as_echo_n "(cached) " >&6
24934 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24935 ac_cv_sys_largefile_LDFLAGS=no
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24940 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24942 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24943 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24944 $as_echo_n "(cached) " >&6
24946 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24947 ac_cv_sys_largefile_LIBS=no
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24952 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24954 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24957 -D_FILE_OFFSET_BITS=*) ;;
24958 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24959 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24964 case "$CPPFLAGS" in
24965 '') CPPFLAGS="$ac_flag" ;;
24966 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24974 '') CFLAGS="$ac_flag" ;;
24975 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24980 case "$ac_cv_sys_largefile_LDFLAGS" in
24984 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24985 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24988 case "$ac_cv_sys_largefile_LIBS" in
24992 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24993 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24997 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24998 if ${ac_cv_sys_file_offset_bits+:} false; then :
24999 $as_echo_n "(cached) " >&6
25001 ac_cv_sys_file_offset_bits=no
25002 ac_cv_sys_file_offset_bits=64
25003 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25005 -D_FILE_OFFSET_BITS)
25006 ac_cv_sys_file_offset_bits=1 ;;
25007 -D_FILE_OFFSET_BITS=*)
25008 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25014 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25015 if test "$ac_cv_sys_file_offset_bits" != no; then
25017 cat >>confdefs.h <<_ACEOF
25018 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25023 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25024 if ${ac_cv_sys_largefile_source+:} false; then :
25025 $as_echo_n "(cached) " >&6
25027 ac_cv_sys_largefile_source=no
25028 ac_cv_sys_largefile_source=1
25029 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25031 -D_LARGEFILE_SOURCE)
25032 ac_cv_sys_largefile_source=1 ;;
25033 -D_LARGEFILE_SOURCE=*)
25034 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25040 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25041 if test "$ac_cv_sys_largefile_source" != no; then
25043 cat >>confdefs.h <<_ACEOF
25044 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25049 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25050 if ${ac_cv_sys_large_files+:} false; then :
25051 $as_echo_n "(cached) " >&6
25053 ac_cv_sys_large_files=no
25054 ac_cv_sys_large_files=1
25055 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25058 ac_cv_sys_large_files=1 ;;
25060 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25066 $as_echo "$ac_cv_sys_large_files" >&6; }
25067 if test "$ac_cv_sys_large_files" != no; then
25069 cat >>confdefs.h <<_ACEOF
25070 #define _LARGE_FILES $ac_cv_sys_large_files
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25078 $as_echo_n "checking for X... " >&6; }
25081 # Check whether --with-x was given.
25082 if test "${with_x+set}" = set; then :
25086 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25087 if test "x$with_x" = xno; then
25088 # The user explicitly disabled X.
25091 case $x_includes,$x_libraries in #(
25092 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25093 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25094 $as_echo_n "(cached) " >&6
25096 # One or both of the vars are not set, and there is no cached value.
25097 ac_x_includes=no ac_x_libraries=no
25098 rm -f -r conftest.dir
25099 if mkdir conftest.dir; then
25101 cat >Imakefile <<'_ACEOF'
25103 @echo incroot='${INCROOT}'
25105 @echo usrlibdir='${USRLIBDIR}'
25107 @echo libdir='${LIBDIR}'
25109 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25110 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25111 for ac_var in incroot usrlibdir libdir; do
25112 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25114 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25115 for ac_extension in a so sl dylib la dll; do
25116 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25117 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25118 ac_im_usrlibdir=$ac_im_libdir; break
25121 # Screen out bogus values from the imake configuration. They are
25122 # bogus both because they are the default anyway, and because
25123 # using them would break gcc on systems where it needs fixed includes.
25124 case $ac_im_incroot in
25125 /usr/include) ac_x_includes= ;;
25126 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25128 case $ac_im_usrlibdir in
25129 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25130 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25134 rm -f -r conftest.dir
25137 # Standard set of common directories for X headers.
25138 # Check X11 before X11Rn because it is often a symlink to the current release.
25152 /usr/local/X11/include
25153 /usr/local/X11R7/include
25154 /usr/local/X11R6/include
25155 /usr/local/X11R5/include
25156 /usr/local/X11R4/include
25158 /usr/local/include/X11
25159 /usr/local/include/X11R7
25160 /usr/local/include/X11R6
25161 /usr/local/include/X11R5
25162 /usr/local/include/X11R4
25166 /usr/XFree86/include/X11
25170 /usr/unsupported/include
25171 /usr/athena/include
25172 /usr/local/x11r5/include
25173 /usr/lpp/Xamples/include
25175 /usr/openwin/include
25176 /usr/openwin/share/include'
25178 if test "$ac_x_includes" = no; then
25179 # Guess where to find include files, by looking for Xlib.h.
25180 # First, try using that file with no special directory specified.
25181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25182 /* end confdefs.h. */
25183 #include <X11/Xlib.h>
25185 if ac_fn_c_try_cpp "$LINENO"; then :
25186 # We can compile using X headers with no special include directory.
25189 for ac_dir in $ac_x_header_dirs; do
25190 if test -r "$ac_dir/X11/Xlib.h"; then
25191 ac_x_includes=$ac_dir
25196 rm -f conftest.err conftest.i conftest.$ac_ext
25197 fi # $ac_x_includes = no
25199 if test "$ac_x_libraries" = no; then
25200 # Check for the libraries.
25201 # See if we find them without any special options.
25202 # Don't add to $LIBS permanently.
25205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25206 /* end confdefs.h. */
25207 #include <X11/Xlib.h>
25216 if ac_fn_c_try_link "$LINENO"; then :
25218 # We can link X programs with no special library path.
25222 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25224 # Don't even attempt the hair of trying to link an X program!
25225 for ac_extension in a so sl dylib la dll; do
25226 if test -r "$ac_dir/libX11.$ac_extension"; then
25227 ac_x_libraries=$ac_dir
25233 rm -f core conftest.err conftest.$ac_objext \
25234 conftest$ac_exeext conftest.$ac_ext
25235 fi # $ac_x_libraries = no
25237 case $ac_x_includes,$ac_x_libraries in #(
25238 no,* | *,no | *\'*)
25239 # Didn't find X, or a directory has "'" in its name.
25240 ac_cv_have_x="have_x=no";; #(
25242 # Record where we found X for the cache.
25243 ac_cv_have_x="have_x=yes\
25244 ac_x_includes='$ac_x_includes'\
25245 ac_x_libraries='$ac_x_libraries'"
25251 eval "$ac_cv_have_x"
25254 if test "$have_x" != yes; then
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25256 $as_echo "$have_x" >&6; }
25259 # If each of the values was on the command line, it overrides each guess.
25260 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25261 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25262 # Update the cache value to reflect the command line values.
25263 ac_cv_have_x="have_x=yes\
25264 ac_x_includes='$x_includes'\
25265 ac_x_libraries='$x_libraries'"
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25267 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25270 if test "$no_x" = yes; then
25271 # Not all programs may use this symbol, but it does not hurt to define it.
25273 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25275 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25277 if test -n "$x_includes"; then
25278 X_CFLAGS="$X_CFLAGS -I$x_includes"
25281 # It would also be nice to do this for all -L options, not just this one.
25282 if test -n "$x_libraries"; then
25283 X_LIBS="$X_LIBS -L$x_libraries"
25284 # For Solaris; some versions of Sun CC require a space after -R and
25285 # others require no space. Words are not sufficient . . . .
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25287 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25288 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25289 ac_xsave_c_werror_flag=$ac_c_werror_flag
25290 ac_c_werror_flag=yes
25291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25292 /* end confdefs.h. */
25302 if ac_fn_c_try_link "$LINENO"; then :
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25304 $as_echo "no" >&6; }
25305 X_LIBS="$X_LIBS -R$x_libraries"
25307 LIBS="$ac_xsave_LIBS -R $x_libraries"
25308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25309 /* end confdefs.h. */
25319 if ac_fn_c_try_link "$LINENO"; then :
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25321 $as_echo "yes" >&6; }
25322 X_LIBS="$X_LIBS -R $x_libraries"
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25325 $as_echo "neither works" >&6; }
25327 rm -f core conftest.err conftest.$ac_objext \
25328 conftest$ac_exeext conftest.$ac_ext
25330 rm -f core conftest.err conftest.$ac_objext \
25331 conftest$ac_exeext conftest.$ac_ext
25332 ac_c_werror_flag=$ac_xsave_c_werror_flag
25333 LIBS=$ac_xsave_LIBS
25336 # Check for system-dependent libraries X programs must link with.
25337 # Do this before checking for the system-independent R6 libraries
25338 # (-lICE), since we may need -lsocket or whatever for X linking.
25340 if test "$ISC" = yes; then
25341 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25343 # Martyn Johnson says this is needed for Ultrix, if the X
25344 # libraries were built with DECnet support. And Karl Berry says
25345 # the Alpha needs dnet_stub (dnet does not exist).
25346 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25348 /* end confdefs.h. */
25350 /* Override any GCC internal prototype to avoid an error.
25351 Use char because int might match the return type of a GCC
25352 builtin and then its argument prototype would still apply. */
25356 char XOpenDisplay ();
25360 return XOpenDisplay ();
25365 if ac_fn_c_try_link "$LINENO"; then :
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25369 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25370 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25371 $as_echo_n "(cached) " >&6
25373 ac_check_lib_save_LIBS=$LIBS
25374 LIBS="-ldnet $LIBS"
25375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25376 /* end confdefs.h. */
25378 /* Override any GCC internal prototype to avoid an error.
25379 Use char because int might match the return type of a GCC
25380 builtin and then its argument prototype would still apply. */
25388 return dnet_ntoa ();
25393 if ac_fn_c_try_link "$LINENO"; then :
25394 ac_cv_lib_dnet_dnet_ntoa=yes
25396 ac_cv_lib_dnet_dnet_ntoa=no
25398 rm -f core conftest.err conftest.$ac_objext \
25399 conftest$ac_exeext conftest.$ac_ext
25400 LIBS=$ac_check_lib_save_LIBS
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25403 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25404 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25405 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25408 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25410 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25411 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25412 $as_echo_n "(cached) " >&6
25414 ac_check_lib_save_LIBS=$LIBS
25415 LIBS="-ldnet_stub $LIBS"
25416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25417 /* end confdefs.h. */
25419 /* Override any GCC internal prototype to avoid an error.
25420 Use char because int might match the return type of a GCC
25421 builtin and then its argument prototype would still apply. */
25429 return dnet_ntoa ();
25434 if ac_fn_c_try_link "$LINENO"; then :
25435 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25437 ac_cv_lib_dnet_stub_dnet_ntoa=no
25439 rm -f core conftest.err conftest.$ac_objext \
25440 conftest$ac_exeext conftest.$ac_ext
25441 LIBS=$ac_check_lib_save_LIBS
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25444 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25445 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25446 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25451 rm -f core conftest.err conftest.$ac_objext \
25452 conftest$ac_exeext conftest.$ac_ext
25453 LIBS="$ac_xsave_LIBS"
25455 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25456 # to get the SysV transport functions.
25457 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25459 # The nsl library prevents programs from opening the X display
25460 # on Irix 5.2, according to T.E. Dickey.
25461 # The functions gethostbyname, getservbyname, and inet_addr are
25462 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25463 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25464 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25468 if test $ac_cv_func_gethostbyname = no; then
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25470 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25471 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25472 $as_echo_n "(cached) " >&6
25474 ac_check_lib_save_LIBS=$LIBS
25476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25477 /* end confdefs.h. */
25479 /* Override any GCC internal prototype to avoid an error.
25480 Use char because int might match the return type of a GCC
25481 builtin and then its argument prototype would still apply. */
25485 char gethostbyname ();
25489 return gethostbyname ();
25494 if ac_fn_c_try_link "$LINENO"; then :
25495 ac_cv_lib_nsl_gethostbyname=yes
25497 ac_cv_lib_nsl_gethostbyname=no
25499 rm -f core conftest.err conftest.$ac_objext \
25500 conftest$ac_exeext conftest.$ac_ext
25501 LIBS=$ac_check_lib_save_LIBS
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25504 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25505 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25506 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25509 if test $ac_cv_lib_nsl_gethostbyname = no; then
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25511 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25512 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25513 $as_echo_n "(cached) " >&6
25515 ac_check_lib_save_LIBS=$LIBS
25517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25518 /* end confdefs.h. */
25520 /* Override any GCC internal prototype to avoid an error.
25521 Use char because int might match the return type of a GCC
25522 builtin and then its argument prototype would still apply. */
25526 char gethostbyname ();
25530 return gethostbyname ();
25535 if ac_fn_c_try_link "$LINENO"; then :
25536 ac_cv_lib_bsd_gethostbyname=yes
25538 ac_cv_lib_bsd_gethostbyname=no
25540 rm -f core conftest.err conftest.$ac_objext \
25541 conftest$ac_exeext conftest.$ac_ext
25542 LIBS=$ac_check_lib_save_LIBS
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25545 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25546 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25547 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25553 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25554 # socket/setsockopt and other routines are undefined under SCO ODT
25555 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25556 # on later versions), says Simon Leinen: it contains gethostby*
25557 # variants that don't use the name server (or something). -lsocket
25558 # must be given before -lnsl if both are needed. We assume that
25559 # if connect needs -lnsl, so does gethostbyname.
25560 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25561 if test "x$ac_cv_func_connect" = xyes; then :
25565 if test $ac_cv_func_connect = no; then
25566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25567 $as_echo_n "checking for connect in -lsocket... " >&6; }
25568 if ${ac_cv_lib_socket_connect+:} false; then :
25569 $as_echo_n "(cached) " >&6
25571 ac_check_lib_save_LIBS=$LIBS
25572 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25574 /* end confdefs.h. */
25576 /* Override any GCC internal prototype to avoid an error.
25577 Use char because int might match the return type of a GCC
25578 builtin and then its argument prototype would still apply. */
25591 if ac_fn_c_try_link "$LINENO"; then :
25592 ac_cv_lib_socket_connect=yes
25594 ac_cv_lib_socket_connect=no
25596 rm -f core conftest.err conftest.$ac_objext \
25597 conftest$ac_exeext conftest.$ac_ext
25598 LIBS=$ac_check_lib_save_LIBS
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25601 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25602 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25603 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25608 # Guillermo Gomez says -lposix is necessary on A/UX.
25609 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25610 if test "x$ac_cv_func_remove" = xyes; then :
25614 if test $ac_cv_func_remove = no; then
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25616 $as_echo_n "checking for remove in -lposix... " >&6; }
25617 if ${ac_cv_lib_posix_remove+:} false; then :
25618 $as_echo_n "(cached) " >&6
25620 ac_check_lib_save_LIBS=$LIBS
25621 LIBS="-lposix $LIBS"
25622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25623 /* end confdefs.h. */
25625 /* Override any GCC internal prototype to avoid an error.
25626 Use char because int might match the return type of a GCC
25627 builtin and then its argument prototype would still apply. */
25640 if ac_fn_c_try_link "$LINENO"; then :
25641 ac_cv_lib_posix_remove=yes
25643 ac_cv_lib_posix_remove=no
25645 rm -f core conftest.err conftest.$ac_objext \
25646 conftest$ac_exeext conftest.$ac_ext
25647 LIBS=$ac_check_lib_save_LIBS
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25650 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25651 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25652 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25657 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25658 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25659 if test "x$ac_cv_func_shmat" = xyes; then :
25663 if test $ac_cv_func_shmat = no; then
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25665 $as_echo_n "checking for shmat in -lipc... " >&6; }
25666 if ${ac_cv_lib_ipc_shmat+:} false; then :
25667 $as_echo_n "(cached) " >&6
25669 ac_check_lib_save_LIBS=$LIBS
25671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25672 /* end confdefs.h. */
25674 /* Override any GCC internal prototype to avoid an error.
25675 Use char because int might match the return type of a GCC
25676 builtin and then its argument prototype would still apply. */
25689 if ac_fn_c_try_link "$LINENO"; then :
25690 ac_cv_lib_ipc_shmat=yes
25692 ac_cv_lib_ipc_shmat=no
25694 rm -f core conftest.err conftest.$ac_objext \
25695 conftest$ac_exeext conftest.$ac_ext
25696 LIBS=$ac_check_lib_save_LIBS
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25699 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25700 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25701 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25707 # Check for libraries that X11R6 Xt/Xaw programs need.
25708 ac_save_LDFLAGS=$LDFLAGS
25709 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25710 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25711 # check for ICE first), but we must link in the order -lSM -lICE or
25712 # we get undefined symbols. So assume we have SM if we have ICE.
25713 # These have to be linked with before -lX11, unlike the other
25714 # libraries we check for below, so use a different variable.
25715 # John Interrante, Karl Berry
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25717 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25718 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25719 $as_echo_n "(cached) " >&6
25721 ac_check_lib_save_LIBS=$LIBS
25722 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25724 /* end confdefs.h. */
25726 /* Override any GCC internal prototype to avoid an error.
25727 Use char because int might match the return type of a GCC
25728 builtin and then its argument prototype would still apply. */
25732 char IceConnectionNumber ();
25736 return IceConnectionNumber ();
25741 if ac_fn_c_try_link "$LINENO"; then :
25742 ac_cv_lib_ICE_IceConnectionNumber=yes
25744 ac_cv_lib_ICE_IceConnectionNumber=no
25746 rm -f core conftest.err conftest.$ac_objext \
25747 conftest$ac_exeext conftest.$ac_ext
25748 LIBS=$ac_check_lib_save_LIBS
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25751 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25752 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25753 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25756 LDFLAGS=$ac_save_LDFLAGS
25794 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25795 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25796 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25797 cat >>confdefs.h <<_ACEOF
25798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25806 $as_echo_n "checking for ANSI C header files... " >&6; }
25807 if ${ac_cv_header_stdc+:} false; then :
25808 $as_echo_n "(cached) " >&6
25810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h. */
25812 #include <stdlib.h>
25813 #include <stdarg.h>
25814 #include <string.h>
25825 if ac_fn_c_try_compile "$LINENO"; then :
25826 ac_cv_header_stdc=yes
25828 ac_cv_header_stdc=no
25830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25832 if test $ac_cv_header_stdc = yes; then
25833 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25835 /* end confdefs.h. */
25836 #include <string.h>
25839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25840 $EGREP "memchr" >/dev/null 2>&1; then :
25843 ac_cv_header_stdc=no
25849 if test $ac_cv_header_stdc = yes; then
25850 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25852 /* end confdefs.h. */
25853 #include <stdlib.h>
25856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25857 $EGREP "free" >/dev/null 2>&1; then :
25860 ac_cv_header_stdc=no
25866 if test $ac_cv_header_stdc = yes; then
25867 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25868 if test "$cross_compiling" = yes; then :
25871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25872 /* end confdefs.h. */
25874 #include <stdlib.h>
25875 #if ((' ' & 0x0FF) == 0x020)
25876 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25877 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25879 # define ISLOWER(c) \
25880 (('a' <= (c) && (c) <= 'i') \
25881 || ('j' <= (c) && (c) <= 'r') \
25882 || ('s' <= (c) && (c) <= 'z'))
25883 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25886 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25891 for (i = 0; i < 256; i++)
25892 if (XOR (islower (i), ISLOWER (i))
25893 || toupper (i) != TOUPPER (i))
25898 if ac_fn_c_try_run "$LINENO"; then :
25901 ac_cv_header_stdc=no
25903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25904 conftest.$ac_objext conftest.beam conftest.$ac_ext
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25910 $as_echo "$ac_cv_header_stdc" >&6; }
25911 if test $ac_cv_header_stdc = yes; then
25913 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25918 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25919 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25920 $as_echo_n "(cached) " >&6
25922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25923 /* end confdefs.h. */
25924 #include <sys/types.h>
25928 return makedev(0, 0);
25933 if ac_fn_c_try_link "$LINENO"; then :
25934 ac_cv_header_sys_types_h_makedev=yes
25936 ac_cv_header_sys_types_h_makedev=no
25938 rm -f core conftest.err conftest.$ac_objext \
25939 conftest$ac_exeext conftest.$ac_ext
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25943 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25945 if test $ac_cv_header_sys_types_h_makedev = no; then
25946 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25947 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25949 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25955 if test $ac_cv_header_sys_mkdev_h = no; then
25956 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25957 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25959 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25967 ac_header_dirent=no
25968 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25969 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25971 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25972 if eval \${$as_ac_Header+:} false; then :
25973 $as_echo_n "(cached) " >&6
25975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25976 /* end confdefs.h. */
25977 #include <sys/types.h>
25989 if ac_fn_c_try_compile "$LINENO"; then :
25990 eval "$as_ac_Header=yes"
25992 eval "$as_ac_Header=no"
25994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25996 eval ac_res=\$$as_ac_Header
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25998 $as_echo "$ac_res" >&6; }
25999 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26000 cat >>confdefs.h <<_ACEOF
26001 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26004 ac_header_dirent=$ac_hdr; break
26008 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26009 if test $ac_header_dirent = dirent.h; then
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26011 $as_echo_n "checking for library containing opendir... " >&6; }
26012 if ${ac_cv_search_opendir+:} false; then :
26013 $as_echo_n "(cached) " >&6
26015 ac_func_search_save_LIBS=$LIBS
26016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26017 /* end confdefs.h. */
26019 /* Override any GCC internal prototype to avoid an error.
26020 Use char because int might match the return type of a GCC
26021 builtin and then its argument prototype would still apply. */
26034 for ac_lib in '' dir; do
26035 if test -z "$ac_lib"; then
26036 ac_res="none required"
26039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26041 if ac_fn_c_try_link "$LINENO"; then :
26042 ac_cv_search_opendir=$ac_res
26044 rm -f core conftest.err conftest.$ac_objext \
26046 if ${ac_cv_search_opendir+:} false; then :
26050 if ${ac_cv_search_opendir+:} false; then :
26053 ac_cv_search_opendir=no
26055 rm conftest.$ac_ext
26056 LIBS=$ac_func_search_save_LIBS
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26059 $as_echo "$ac_cv_search_opendir" >&6; }
26060 ac_res=$ac_cv_search_opendir
26061 if test "$ac_res" != no; then :
26062 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26068 $as_echo_n "checking for library containing opendir... " >&6; }
26069 if ${ac_cv_search_opendir+:} false; then :
26070 $as_echo_n "(cached) " >&6
26072 ac_func_search_save_LIBS=$LIBS
26073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26074 /* end confdefs.h. */
26076 /* Override any GCC internal prototype to avoid an error.
26077 Use char because int might match the return type of a GCC
26078 builtin and then its argument prototype would still apply. */
26091 for ac_lib in '' x; do
26092 if test -z "$ac_lib"; then
26093 ac_res="none required"
26096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26098 if ac_fn_c_try_link "$LINENO"; then :
26099 ac_cv_search_opendir=$ac_res
26101 rm -f core conftest.err conftest.$ac_objext \
26103 if ${ac_cv_search_opendir+:} false; then :
26107 if ${ac_cv_search_opendir+:} false; then :
26110 ac_cv_search_opendir=no
26112 rm conftest.$ac_ext
26113 LIBS=$ac_func_search_save_LIBS
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26116 $as_echo "$ac_cv_search_opendir" >&6; }
26117 ac_res=$ac_cv_search_opendir
26118 if test "$ac_res" != no; then :
26119 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26126 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26127 if ${ac_cv_header_stat_broken+:} false; then :
26128 $as_echo_n "(cached) " >&6
26130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26131 /* end confdefs.h. */
26132 #include <sys/types.h>
26133 #include <sys/stat.h>
26135 #if defined S_ISBLK && defined S_IFDIR
26136 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26139 #if defined S_ISBLK && defined S_IFCHR
26140 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26143 #if defined S_ISLNK && defined S_IFREG
26144 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26147 #if defined S_ISSOCK && defined S_IFREG
26148 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26152 if ac_fn_c_try_compile "$LINENO"; then :
26153 ac_cv_header_stat_broken=no
26155 ac_cv_header_stat_broken=yes
26157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26160 $as_echo "$ac_cv_header_stat_broken" >&6; }
26161 if test $ac_cv_header_stat_broken = yes; then
26163 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26168 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26169 if ${ac_cv_header_sys_wait_h+:} false; then :
26170 $as_echo_n "(cached) " >&6
26172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26173 /* end confdefs.h. */
26174 #include <sys/types.h>
26175 #include <sys/wait.h>
26176 #ifndef WEXITSTATUS
26177 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26180 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26188 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26193 if ac_fn_c_try_compile "$LINENO"; then :
26194 ac_cv_header_sys_wait_h=yes
26196 ac_cv_header_sys_wait_h=no
26198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26201 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26202 if test $ac_cv_header_sys_wait_h = yes; then
26204 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26209 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26210 if ${ac_cv_header_time+:} false; then :
26211 $as_echo_n "(cached) " >&6
26213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26214 /* end confdefs.h. */
26215 #include <sys/types.h>
26216 #include <sys/time.h>
26222 if ((struct tm *) 0)
26228 if ac_fn_c_try_compile "$LINENO"; then :
26229 ac_cv_header_time=yes
26231 ac_cv_header_time=no
26233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26236 $as_echo "$ac_cv_header_time" >&6; }
26237 if test $ac_cv_header_time = yes; then
26239 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26243 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26244 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26246 cat >>confdefs.h <<_ACEOF
26247 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26251 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26256 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26257 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26259 cat >>confdefs.h <<_ACEOF
26260 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26264 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26267 case " $LIBOBJS " in
26268 *" fileblocks.$ac_objext "* ) ;;
26269 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26277 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26278 if ${ac_cv_struct_tm+:} false; then :
26279 $as_echo_n "(cached) " >&6
26281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26282 /* end confdefs.h. */
26283 #include <sys/types.h>
26290 int *p = &tm.tm_sec;
26296 if ac_fn_c_try_compile "$LINENO"; then :
26297 ac_cv_struct_tm=time.h
26299 ac_cv_struct_tm=sys/time.h
26301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26304 $as_echo "$ac_cv_struct_tm" >&6; }
26305 if test $ac_cv_struct_tm = sys/time.h; then
26307 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26311 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26312 #include <$ac_cv_struct_tm>
26315 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26317 cat >>confdefs.h <<_ACEOF
26318 #define HAVE_STRUCT_TM_TM_ZONE 1
26324 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26326 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26329 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26331 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26337 cat >>confdefs.h <<_ACEOF
26338 #define HAVE_DECL_TZNAME $ac_have_decl
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26342 $as_echo_n "checking for tzname... " >&6; }
26343 if ${ac_cv_var_tzname+:} false; then :
26344 $as_echo_n "(cached) " >&6
26346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26347 /* end confdefs.h. */
26349 #if !HAVE_DECL_TZNAME
26350 extern char *tzname[];
26356 return tzname[0][0];
26361 if ac_fn_c_try_link "$LINENO"; then :
26362 ac_cv_var_tzname=yes
26364 ac_cv_var_tzname=no
26366 rm -f core conftest.err conftest.$ac_objext \
26367 conftest$ac_exeext conftest.$ac_ext
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26370 $as_echo "$ac_cv_var_tzname" >&6; }
26371 if test $ac_cv_var_tzname = yes; then
26373 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26380 $as_echo_n "checking for utime.h... " >&6; }
26381 if ${ba_cv_header_utime_h+:} false; then :
26382 $as_echo_n "(cached) " >&6
26385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26386 /* end confdefs.h. */
26388 #include <sys/types.h>
26401 if ac_fn_c_try_compile "$LINENO"; then :
26403 ba_cv_header_utime_h=yes
26407 ba_cv_header_utime_h=no
26411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26416 $as_echo "$ba_cv_header_utime_h" >&6; }
26417 test $ba_cv_header_utime_h = yes &&
26418 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26422 $as_echo_n "checking for socklen_t... " >&6; }
26423 if ${ba_cv_header_socklen_t+:} false; then :
26424 $as_echo_n "(cached) " >&6
26427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26428 /* end confdefs.h. */
26430 #include <sys/types.h>
26431 #include <sys/socket.h>
26443 if ac_fn_c_try_compile "$LINENO"; then :
26445 ba_cv_header_socklen_t=yes
26449 ba_cv_header_socklen_t=no
26453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26458 $as_echo "$ba_cv_header_socklen_t" >&6; }
26459 test $ba_cv_header_socklen_t = yes &&
26460 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26464 ac_cpp='$CXXCPP $CPPFLAGS'
26465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26470 $as_echo_n "checking for ioctl_req_t... " >&6; }
26471 if ${ba_cv_header_ioctl_req_t+:} false; then :
26472 $as_echo_n "(cached) " >&6
26475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26476 /* end confdefs.h. */
26478 #include <unistd.h>
26479 #include <sys/types.h>
26480 #include <sys/ioctl.h>
26486 int (*d_ioctl)(int fd, unsigned long int request, ...);
26493 if ac_fn_cxx_try_compile "$LINENO"; then :
26495 ba_cv_header_ioctl_req_t=yes
26499 ba_cv_header_ioctl_req_t=no
26503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26508 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26509 test $ba_cv_header_ioctl_req_t = yes &&
26510 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26514 ac_cpp='$CPP $CPPFLAGS'
26515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26521 ac_cpp='$CXXCPP $CPPFLAGS'
26522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26527 $as_echo_n "checking for typeof... " >&6; }
26528 if ${ba_cv_have_typeof+:} false; then :
26529 $as_echo_n "(cached) " >&6
26532 if test "$cross_compiling" = yes; then :
26534 ba_cv_have_typeof=no
26538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26539 /* end confdefs.h. */
26541 main(){char *a = 0; a = (typeof a)a;}
26544 if ac_fn_cxx_try_run "$LINENO"; then :
26546 ba_cv_have_typeof=yes
26550 ba_cv_have_typeof=no
26553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26554 conftest.$ac_objext conftest.beam conftest.$ac_ext
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26561 $as_echo "$ba_cv_have_typeof" >&6; }
26562 test $ba_cv_have_typeof = yes &&
26563 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26566 ac_cpp='$CPP $CPPFLAGS'
26567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26573 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26574 if ${ac_cv_c_const+:} false; then :
26575 $as_echo_n "(cached) " >&6
26577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26578 /* end confdefs.h. */
26584 #ifndef __cplusplus
26585 /* Ultrix mips cc rejects this sort of thing. */
26586 typedef int charset[2];
26587 const charset cs = { 0, 0 };
26588 /* SunOS 4.1.1 cc rejects this. */
26589 char const *const *pcpcc;
26591 /* NEC SVR4.0.2 mips cc rejects this. */
26592 struct point {int x, y;};
26593 static struct point const zero = {0,0};
26594 /* AIX XL C 1.02.0.0 rejects this.
26595 It does not let you subtract one const X* pointer from another in
26596 an arm of an if-expression whose if-part is not a constant
26598 const char *g = "string";
26599 pcpcc = &g + (g ? g-g : 0);
26600 /* HPUX 7.0 cc rejects these. */
26602 ppc = (char**) pcpcc;
26603 pcpcc = (char const *const *) ppc;
26604 { /* SCO 3.2v4 cc rejects this sort of thing. */
26607 char const *s = 0 ? (char *) 0 : (char const *) 0;
26612 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26613 int x[] = {25, 17};
26614 const int *foo = &x[0];
26617 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26618 typedef const int *iptr;
26622 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26623 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26624 struct s { int j; const int *ap[3]; } bx;
26625 struct s *b = &bx; b->j = 5;
26627 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26628 const int foo = 10;
26629 if (!foo) return 0;
26631 return !cs[0] && !zero.x;
26638 if ac_fn_c_try_compile "$LINENO"; then :
26643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26646 $as_echo "$ac_cv_c_const" >&6; }
26647 if test $ac_cv_c_const = no; then
26649 $as_echo "#define const /**/" >>confdefs.h
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26655 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26656 if ${ac_cv_c_bigendian+:} false; then :
26657 $as_echo_n "(cached) " >&6
26659 ac_cv_c_bigendian=unknown
26660 # See if we're dealing with a universal compiler.
26661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26662 /* end confdefs.h. */
26663 #ifndef __APPLE_CC__
26664 not a universal capable compiler
26669 if ac_fn_c_try_compile "$LINENO"; then :
26671 # Check for potential -arch flags. It is not universal unless
26672 # there are at least two -arch flags with different values.
26675 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26676 if test -n "$ac_prev"; then
26678 i?86 | x86_64 | ppc | ppc64)
26679 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26682 ac_cv_c_bigendian=universal
26688 elif test "x$ac_word" = "x-arch"; then
26693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26694 if test $ac_cv_c_bigendian = unknown; then
26695 # See if sys/param.h defines the BYTE_ORDER macro.
26696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26697 /* end confdefs.h. */
26698 #include <sys/types.h>
26699 #include <sys/param.h>
26704 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26705 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26707 bogus endian macros
26714 if ac_fn_c_try_compile "$LINENO"; then :
26715 # It does; now see whether it defined to BIG_ENDIAN or not.
26716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26717 /* end confdefs.h. */
26718 #include <sys/types.h>
26719 #include <sys/param.h>
26724 #if BYTE_ORDER != BIG_ENDIAN
26732 if ac_fn_c_try_compile "$LINENO"; then :
26733 ac_cv_c_bigendian=yes
26735 ac_cv_c_bigendian=no
26737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26741 if test $ac_cv_c_bigendian = unknown; then
26742 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26744 /* end confdefs.h. */
26745 #include <limits.h>
26750 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26751 bogus endian macros
26758 if ac_fn_c_try_compile "$LINENO"; then :
26759 # It does; now see whether it defined to _BIG_ENDIAN or not.
26760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26761 /* end confdefs.h. */
26762 #include <limits.h>
26767 #ifndef _BIG_ENDIAN
26775 if ac_fn_c_try_compile "$LINENO"; then :
26776 ac_cv_c_bigendian=yes
26778 ac_cv_c_bigendian=no
26780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26784 if test $ac_cv_c_bigendian = unknown; then
26785 # Compile a test program.
26786 if test "$cross_compiling" = yes; then :
26787 # Try to guess by grepping values from an object file.
26788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26789 /* end confdefs.h. */
26790 short int ascii_mm[] =
26791 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26792 short int ascii_ii[] =
26793 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26794 int use_ascii (int i) {
26795 return ascii_mm[i] + ascii_ii[i];
26797 short int ebcdic_ii[] =
26798 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26799 short int ebcdic_mm[] =
26800 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26801 int use_ebcdic (int i) {
26802 return ebcdic_mm[i] + ebcdic_ii[i];
26809 return use_ascii (foo) == use_ebcdic (foo);
26814 if ac_fn_c_try_compile "$LINENO"; then :
26815 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26816 ac_cv_c_bigendian=yes
26818 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26819 if test "$ac_cv_c_bigendian" = unknown; then
26820 ac_cv_c_bigendian=no
26822 # finding both strings is unlikely to happen, but who knows?
26823 ac_cv_c_bigendian=unknown
26827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26830 /* end confdefs.h. */
26831 $ac_includes_default
26836 /* Are we little or big endian? From Harbison&Steele. */
26840 char c[sizeof (long int)];
26843 return u.c[sizeof (long int) - 1] == 1;
26849 if ac_fn_c_try_run "$LINENO"; then :
26850 ac_cv_c_bigendian=no
26852 ac_cv_c_bigendian=yes
26854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26855 conftest.$ac_objext conftest.beam conftest.$ac_ext
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26861 $as_echo "$ac_cv_c_bigendian" >&6; }
26862 case $ac_cv_c_bigendian in #(
26865 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26869 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26873 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26877 as_fn_error $? "unknown endianness
26878 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26883 $as_echo_n "checking how to get filesystem type... " >&6; }
26885 # The order of these tests is important.
26886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26887 /* end confdefs.h. */
26889 #include <sys/statvfs.h>
26890 #include <sys/fstyp.h>
26893 if ac_fn_c_try_cpp "$LINENO"; then :
26894 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26898 rm -f conftest.err conftest.i conftest.$ac_ext
26899 if test $fstype = no; then
26900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26901 /* end confdefs.h. */
26903 #include <sys/statfs.h>
26904 #include <sys/fstyp.h>
26907 if ac_fn_c_try_cpp "$LINENO"; then :
26908 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26912 rm -f conftest.err conftest.i conftest.$ac_ext
26914 if test $fstype = no; then
26915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26916 /* end confdefs.h. */
26918 #include <sys/statfs.h>
26919 #include <sys/vmount.h>
26922 if ac_fn_c_try_cpp "$LINENO"; then :
26923 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26927 rm -f conftest.err conftest.i conftest.$ac_ext
26929 if test $fstype = no; then
26930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26931 /* end confdefs.h. */
26933 #include <mntent.h>
26936 if ac_fn_c_try_cpp "$LINENO"; then :
26937 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26941 rm -f conftest.err conftest.i conftest.$ac_ext
26943 if test $fstype = no; then
26944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26945 /* end confdefs.h. */
26946 #include <sys/mount.h>
26949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26950 $EGREP "f_type;" >/dev/null 2>&1; then :
26951 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26957 if test $fstype = no; then
26958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26959 /* end confdefs.h. */
26961 #include <sys/mount.h>
26962 #include <sys/fs_types.h>
26965 if ac_fn_c_try_cpp "$LINENO"; then :
26966 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26970 rm -f conftest.err conftest.i conftest.$ac_ext
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26973 $as_echo "$fstype" >&6; }
26975 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26976 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26978 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26985 ac_cpp='$CXXCPP $CPPFLAGS'
26986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26990 for ac_func in backtrace
26992 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26993 if test "x$ac_cv_func_backtrace" = xyes; then :
26994 cat >>confdefs.h <<_ACEOF
26995 #define HAVE_BACKTRACE 1
27002 ac_cpp='$CPP $CPPFLAGS'
27003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27009 $as_echo_n "checking return type of signal handlers... " >&6; }
27010 if ${ac_cv_type_signal+:} false; then :
27011 $as_echo_n "(cached) " >&6
27013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27014 /* end confdefs.h. */
27015 #include <sys/types.h>
27016 #include <signal.h>
27021 return *(signal (0, 0)) (0) == 1;
27026 if ac_fn_c_try_compile "$LINENO"; then :
27027 ac_cv_type_signal=int
27029 ac_cv_type_signal=void
27031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27034 $as_echo "$ac_cv_type_signal" >&6; }
27036 cat >>confdefs.h <<_ACEOF
27037 #define RETSIGTYPE $ac_cv_type_signal
27042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27043 $as_echo_n "checking for type of signal functions... " >&6; }
27044 if ${bash_cv_signal_vintage+:} false; then :
27045 $as_echo_n "(cached) " >&6
27048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27049 /* end confdefs.h. */
27050 #include <signal.h>
27056 struct sigaction sa;
27057 sigemptyset(&ss); sigsuspend(&ss);
27058 sigaction(SIGINT, &sa, (struct sigaction *) 0);
27059 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27065 if ac_fn_c_try_link "$LINENO"; then :
27066 bash_cv_signal_vintage="posix"
27069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27070 /* end confdefs.h. */
27071 #include <signal.h>
27076 int mask = sigmask(SIGINT);
27077 sigsetmask(mask); sigblock(mask); sigpause(mask);
27083 if ac_fn_c_try_link "$LINENO"; then :
27084 bash_cv_signal_vintage="4.2bsd"
27087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27088 /* end confdefs.h. */
27090 #include <signal.h>
27091 RETSIGTYPE foo() { }
27096 int mask = sigmask(SIGINT);
27097 sigset(SIGINT, foo); sigrelse(SIGINT);
27098 sighold(SIGINT); sigpause(SIGINT);
27104 if ac_fn_c_try_link "$LINENO"; then :
27105 bash_cv_signal_vintage="svr3"
27107 bash_cv_signal_vintage="v7"
27110 rm -f core conftest.err conftest.$ac_objext \
27111 conftest$ac_exeext conftest.$ac_ext
27114 rm -f core conftest.err conftest.$ac_objext \
27115 conftest$ac_exeext conftest.$ac_ext
27118 rm -f core conftest.err conftest.$ac_objext \
27119 conftest$ac_exeext conftest.$ac_ext
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27124 $as_echo "$bash_cv_signal_vintage" >&6; }
27125 if test "$bash_cv_signal_vintage" = "posix"; then
27126 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27128 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27129 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27131 elif test "$bash_cv_signal_vintage" = "svr3"; then
27132 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27136 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27137 if test "x$ac_cv_type_mode_t" = xyes; then :
27141 cat >>confdefs.h <<_ACEOF
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27148 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27149 if ${ac_cv_type_uid_t+:} false; then :
27150 $as_echo_n "(cached) " >&6
27152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27153 /* end confdefs.h. */
27154 #include <sys/types.h>
27157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27158 $EGREP "uid_t" >/dev/null 2>&1; then :
27159 ac_cv_type_uid_t=yes
27161 ac_cv_type_uid_t=no
27166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27167 $as_echo "$ac_cv_type_uid_t" >&6; }
27168 if test $ac_cv_type_uid_t = no; then
27170 $as_echo "#define uid_t int" >>confdefs.h
27173 $as_echo "#define gid_t int" >>confdefs.h
27177 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27178 if test "x$ac_cv_type_size_t" = xyes; then :
27182 cat >>confdefs.h <<_ACEOF
27183 #define size_t unsigned int
27188 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27189 if test "x$ac_cv_type_pid_t" = xyes; then :
27193 cat >>confdefs.h <<_ACEOF
27199 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27200 if test "x$ac_cv_type_off_t" = xyes; then :
27204 cat >>confdefs.h <<_ACEOF
27205 #define off_t long int
27211 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27212 if test "x$ac_cv_type_intptr_t" = xyes; then :
27214 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27217 for ac_type in 'int' 'long int' 'long long int'; do
27218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27219 /* end confdefs.h. */
27220 $ac_includes_default
27224 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27225 test_array [0] = 0;
27226 return test_array [0];
27232 if ac_fn_c_try_compile "$LINENO"; then :
27234 cat >>confdefs.h <<_ACEOF
27235 #define intptr_t $ac_type
27240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27241 test -z "$ac_type" && break
27247 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27248 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27250 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27253 for ac_type in 'unsigned int' 'unsigned long int' \
27254 'unsigned long long int'; do
27255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27256 /* end confdefs.h. */
27257 $ac_includes_default
27261 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27262 test_array [0] = 0;
27263 return test_array [0];
27269 if ac_fn_c_try_compile "$LINENO"; then :
27271 cat >>confdefs.h <<_ACEOF
27272 #define uintptr_t $ac_type
27277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27278 test -z "$ac_type" && break
27283 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27284 if test "x$ac_cv_type_ino_t" = xyes; then :
27288 cat >>confdefs.h <<_ACEOF
27289 #define ino_t unsigned long
27294 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27295 if test "x$ac_cv_type_dev_t" = xyes; then :
27299 cat >>confdefs.h <<_ACEOF
27300 #define dev_t unsigned long
27305 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27306 if test "x$ac_cv_type_daddr_t" = xyes; then :
27310 cat >>confdefs.h <<_ACEOF
27311 #define daddr_t long
27316 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27317 if test "x$ac_cv_type_major_t" = xyes; then :
27321 cat >>confdefs.h <<_ACEOF
27322 #define major_t int
27327 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27328 if test "x$ac_cv_type_minor_t" = xyes; then :
27332 cat >>confdefs.h <<_ACEOF
27333 #define minor_t int
27338 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27339 if test "x$ac_cv_type_ssize_t" = xyes; then :
27343 cat >>confdefs.h <<_ACEOF
27344 #define ssize_t int
27349 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27350 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27352 cat >>confdefs.h <<_ACEOF
27353 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27357 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27360 case " $LIBOBJS " in
27361 *" fileblocks.$ac_objext "* ) ;;
27362 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27369 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27370 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27372 cat >>confdefs.h <<_ACEOF
27373 #define HAVE_STRUCT_STAT_ST_RDEV 1
27377 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27383 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27384 if ${ac_cv_struct_tm+:} false; then :
27385 $as_echo_n "(cached) " >&6
27387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27388 /* end confdefs.h. */
27389 #include <sys/types.h>
27396 int *p = &tm.tm_sec;
27402 if ac_fn_c_try_compile "$LINENO"; then :
27403 ac_cv_struct_tm=time.h
27405 ac_cv_struct_tm=sys/time.h
27407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27410 $as_echo "$ac_cv_struct_tm" >&6; }
27411 if test $ac_cv_struct_tm = sys/time.h; then
27413 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27418 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27419 if ${ac_cv_c_const+:} false; then :
27420 $as_echo_n "(cached) " >&6
27422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27423 /* end confdefs.h. */
27429 #ifndef __cplusplus
27430 /* Ultrix mips cc rejects this sort of thing. */
27431 typedef int charset[2];
27432 const charset cs = { 0, 0 };
27433 /* SunOS 4.1.1 cc rejects this. */
27434 char const *const *pcpcc;
27436 /* NEC SVR4.0.2 mips cc rejects this. */
27437 struct point {int x, y;};
27438 static struct point const zero = {0,0};
27439 /* AIX XL C 1.02.0.0 rejects this.
27440 It does not let you subtract one const X* pointer from another in
27441 an arm of an if-expression whose if-part is not a constant
27443 const char *g = "string";
27444 pcpcc = &g + (g ? g-g : 0);
27445 /* HPUX 7.0 cc rejects these. */
27447 ppc = (char**) pcpcc;
27448 pcpcc = (char const *const *) ppc;
27449 { /* SCO 3.2v4 cc rejects this sort of thing. */
27452 char const *s = 0 ? (char *) 0 : (char const *) 0;
27457 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27458 int x[] = {25, 17};
27459 const int *foo = &x[0];
27462 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27463 typedef const int *iptr;
27467 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27468 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27469 struct s { int j; const int *ap[3]; } bx;
27470 struct s *b = &bx; b->j = 5;
27472 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27473 const int foo = 10;
27474 if (!foo) return 0;
27476 return !cs[0] && !zero.x;
27483 if ac_fn_c_try_compile "$LINENO"; then :
27488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27491 $as_echo "$ac_cv_c_const" >&6; }
27492 if test $ac_cv_c_const = no; then
27494 $as_echo "#define const /**/" >>confdefs.h
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27499 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27500 if ${ac_cv_c_restrict+:} false; then :
27501 $as_echo_n "(cached) " >&6
27503 ac_cv_c_restrict=no
27504 # The order here caters to the fact that C++ does not require restrict.
27505 for ac_kw in __restrict __restrict__ _Restrict restrict; do
27506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27507 /* end confdefs.h. */
27508 typedef int * int_ptr;
27509 int foo (int_ptr $ac_kw ip) {
27516 int * $ac_kw t = s;
27523 if ac_fn_c_try_compile "$LINENO"; then :
27524 ac_cv_c_restrict=$ac_kw
27526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27527 test "$ac_cv_c_restrict" != no && break
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27532 $as_echo "$ac_cv_c_restrict" >&6; }
27534 case $ac_cv_c_restrict in
27536 no) $as_echo "#define restrict /**/" >>confdefs.h
27538 *) cat >>confdefs.h <<_ACEOF
27539 #define restrict $ac_cv_c_restrict
27545 # The cast to long int works around a bug in the HP C Compiler
27546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27548 # This bug is HP SR number 8606223364.
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27550 $as_echo_n "checking size of char... " >&6; }
27551 if ${ac_cv_sizeof_char+:} false; then :
27552 $as_echo_n "(cached) " >&6
27554 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27557 if test "$ac_cv_type_char" = yes; then
27558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27560 as_fn_error 77 "cannot compute sizeof (char)
27561 See \`config.log' for more details" "$LINENO" 5; }
27563 ac_cv_sizeof_char=0
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27569 $as_echo "$ac_cv_sizeof_char" >&6; }
27573 cat >>confdefs.h <<_ACEOF
27574 #define SIZEOF_CHAR $ac_cv_sizeof_char
27578 # The cast to long int works around a bug in the HP C Compiler
27579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27581 # This bug is HP SR number 8606223364.
27582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27583 $as_echo_n "checking size of short int... " >&6; }
27584 if ${ac_cv_sizeof_short_int+:} false; then :
27585 $as_echo_n "(cached) " >&6
27587 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27590 if test "$ac_cv_type_short_int" = yes; then
27591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27593 as_fn_error 77 "cannot compute sizeof (short int)
27594 See \`config.log' for more details" "$LINENO" 5; }
27596 ac_cv_sizeof_short_int=0
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27602 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27606 cat >>confdefs.h <<_ACEOF
27607 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27611 # The cast to long int works around a bug in the HP C Compiler
27612 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27613 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27614 # This bug is HP SR number 8606223364.
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27616 $as_echo_n "checking size of int... " >&6; }
27617 if ${ac_cv_sizeof_int+:} false; then :
27618 $as_echo_n "(cached) " >&6
27620 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27623 if test "$ac_cv_type_int" = yes; then
27624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27626 as_fn_error 77 "cannot compute sizeof (int)
27627 See \`config.log' for more details" "$LINENO" 5; }
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27635 $as_echo "$ac_cv_sizeof_int" >&6; }
27639 cat >>confdefs.h <<_ACEOF
27640 #define SIZEOF_INT $ac_cv_sizeof_int
27644 # The cast to long int works around a bug in the HP C Compiler
27645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27647 # This bug is HP SR number 8606223364.
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27649 $as_echo_n "checking size of long int... " >&6; }
27650 if ${ac_cv_sizeof_long_int+:} false; then :
27651 $as_echo_n "(cached) " >&6
27653 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27656 if test "$ac_cv_type_long_int" = yes; then
27657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27659 as_fn_error 77 "cannot compute sizeof (long int)
27660 See \`config.log' for more details" "$LINENO" 5; }
27662 ac_cv_sizeof_long_int=0
27667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27668 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27672 cat >>confdefs.h <<_ACEOF
27673 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27677 # The cast to long int works around a bug in the HP C Compiler
27678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27680 # This bug is HP SR number 8606223364.
27681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27682 $as_echo_n "checking size of long long int... " >&6; }
27683 if ${ac_cv_sizeof_long_long_int+:} false; then :
27684 $as_echo_n "(cached) " >&6
27686 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27689 if test "$ac_cv_type_long_long_int" = yes; then
27690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27692 as_fn_error 77 "cannot compute sizeof (long long int)
27693 See \`config.log' for more details" "$LINENO" 5; }
27695 ac_cv_sizeof_long_long_int=0
27700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27701 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27705 cat >>confdefs.h <<_ACEOF
27706 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27710 # The cast to long int works around a bug in the HP C Compiler
27711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27713 # This bug is HP SR number 8606223364.
27714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27715 $as_echo_n "checking size of int *... " >&6; }
27716 if ${ac_cv_sizeof_int_p+:} false; then :
27717 $as_echo_n "(cached) " >&6
27719 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27722 if test "$ac_cv_type_int_p" = yes; then
27723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27725 as_fn_error 77 "cannot compute sizeof (int *)
27726 See \`config.log' for more details" "$LINENO" 5; }
27728 ac_cv_sizeof_int_p=0
27733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27734 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27738 cat >>confdefs.h <<_ACEOF
27739 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27745 $as_echo_n "checking for u_int type... " >&6; }
27746 if ${ac_cv_have_u_int+:} false; then :
27747 $as_echo_n "(cached) " >&6
27750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27751 /* end confdefs.h. */
27753 #include <sys/types.h>
27765 if ac_fn_c_try_compile "$LINENO"; then :
27767 ac_cv_have_u_int="yes"
27771 ac_cv_have_u_int="no"
27775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27780 $as_echo "$ac_cv_have_u_int" >&6; }
27781 if test "x$ac_cv_have_u_int" = "xyes" ; then
27782 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27788 $as_echo_n "checking for intmax_t type... " >&6; }
27789 if ${ac_cv_have_intmax_t+:} false; then :
27790 $as_echo_n "(cached) " >&6
27793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27794 /* end confdefs.h. */
27796 #include <sys/types.h>
27808 if ac_fn_c_try_compile "$LINENO"; then :
27810 ac_cv_have_intmax_t="yes"
27814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27815 /* end confdefs.h. */
27817 #include <stdint.h>
27829 if ac_fn_c_try_compile "$LINENO"; then :
27831 ac_cv_have_intmax_t="yes"
27835 ac_cv_have_intmax_t="no"
27839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27848 $as_echo "$ac_cv_have_intmax_t" >&6; }
27849 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27850 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27856 $as_echo_n "checking for u_intmax_t type... " >&6; }
27857 if ${ac_cv_have_u_intmax_t+:} false; then :
27858 $as_echo_n "(cached) " >&6
27861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27862 /* end confdefs.h. */
27864 #include <sys/types.h>
27870 u_intmax_t a; a = 1;
27876 if ac_fn_c_try_compile "$LINENO"; then :
27878 ac_cv_have_u_intmax_t="yes"
27882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27883 /* end confdefs.h. */
27885 #include <stdint.h>
27891 u_intmax_t a; a = 1;
27897 if ac_fn_c_try_compile "$LINENO"; then :
27899 ac_cv_have_u_intmax_t="yes"
27903 ac_cv_have_u_intmax_t="no"
27907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27916 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27917 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27918 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27924 $as_echo_n "checking for intXX_t types... " >&6; }
27925 if ${ac_cv_have_intxx_t+:} false; then :
27926 $as_echo_n "(cached) " >&6
27929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27930 /* end confdefs.h. */
27932 #include <sys/types.h>
27938 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27944 if ac_fn_c_try_compile "$LINENO"; then :
27946 ac_cv_have_intxx_t="yes"
27950 ac_cv_have_intxx_t="no"
27954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27959 $as_echo "$ac_cv_have_intxx_t" >&6; }
27960 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27961 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27967 $as_echo_n "checking for int64_t type... " >&6; }
27968 if ${ac_cv_have_int64_t+:} false; then :
27969 $as_echo_n "(cached) " >&6
27972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27973 /* end confdefs.h. */
27975 #include <sys/types.h>
27987 if ac_fn_c_try_compile "$LINENO"; then :
27989 ac_cv_have_int64_t="yes"
27993 ac_cv_have_int64_t="no"
27997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
28002 $as_echo "$ac_cv_have_int64_t" >&6; }
28003 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28004 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28010 $as_echo_n "checking for u_intXX_t types... " >&6; }
28011 if ${ac_cv_have_u_intxx_t+:} false; then :
28012 $as_echo_n "(cached) " >&6
28015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28016 /* end confdefs.h. */
28018 #include <sys/types.h>
28024 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28030 if ac_fn_c_try_compile "$LINENO"; then :
28032 ac_cv_have_u_intxx_t="yes"
28036 ac_cv_have_u_intxx_t="no"
28040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28045 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28046 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28047 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28053 $as_echo_n "checking for u_int64_t types... " >&6; }
28054 if ${ac_cv_have_u_int64_t+:} false; then :
28055 $as_echo_n "(cached) " >&6
28058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28059 /* end confdefs.h. */
28061 #include <sys/types.h>
28067 u_int64_t a; a = 1;
28073 if ac_fn_c_try_compile "$LINENO"; then :
28075 ac_cv_have_u_int64_t="yes"
28079 ac_cv_have_u_int64_t="no"
28083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28088 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28089 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28090 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28095 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28096 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28099 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28101 /* end confdefs.h. */
28103 #include <sys/bitypes.h>
28109 int8_t a; int16_t b; int32_t c;
28110 u_int8_t e; u_int16_t f; u_int32_t g;
28111 a = b = c = e = f = g = 1;
28117 if ac_fn_c_try_compile "$LINENO"; then :
28119 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28121 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28123 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28126 $as_echo "yes" >&6; }
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28131 $as_echo "no" >&6; }
28135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28138 if test -z "$have_u_intxx_t" ; then
28139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28140 $as_echo_n "checking for uintXX_t types... " >&6; }
28141 if ${ac_cv_have_uintxx_t+:} false; then :
28142 $as_echo_n "(cached) " >&6
28145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28146 /* end confdefs.h. */
28148 #include <sys/types.h>
28154 uint8_t a; uint16_t b;
28155 uint32_t c; a = b = c = 1;
28161 if ac_fn_c_try_compile "$LINENO"; then :
28163 ac_cv_have_uintxx_t="yes"
28167 ac_cv_have_uintxx_t="no"
28171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28176 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28177 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28178 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28183 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28184 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28187 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28189 /* end confdefs.h. */
28191 #include <sys/bitypes.h>
28197 int64_t a; u_int64_t b;
28204 if ac_fn_c_try_compile "$LINENO"; then :
28206 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28208 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28211 $as_echo "yes" >&6; }
28215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28216 $as_echo "no" >&6; }
28220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28223 if (test -z "$have_uintxx_t" && \
28224 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28227 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28229 /* end confdefs.h. */
28231 #include <sys/bitypes.h>
28237 uint8_t a; uint16_t b;
28238 uint32_t c; a = b = c = 1;
28244 if ac_fn_c_try_compile "$LINENO"; then :
28246 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28249 $as_echo "yes" >&6; }
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28254 $as_echo "no" >&6; }
28258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28277 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28278 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28279 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28280 cat >>confdefs.h <<_ACEOF
28281 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28285 echo 'configure: cannot find needed function.'; exit 1
28291 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28294 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28296 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28301 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28304 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28306 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28311 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28312 if test "x$ac_cv_func_closefrom" = xyes; then :
28314 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28318 for ac_func in getpagesize
28320 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28321 if test "x$ac_cv_func_getpagesize" = xyes; then :
28322 cat >>confdefs.h <<_ACEOF
28323 #define HAVE_GETPAGESIZE 1
28326 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28331 for ac_func in malloc_trim
28333 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28334 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28335 cat >>confdefs.h <<_ACEOF
28336 #define HAVE_MALLOC_TRIM 1
28339 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28345 for ac_func in fchdir
28347 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28348 if test "x$ac_cv_func_fchdir" = xyes; then :
28349 cat >>confdefs.h <<_ACEOF
28350 #define HAVE_FCHDIR 1
28352 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28357 for ac_func in strtoll
28359 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28360 if test "x$ac_cv_func_strtoll" = xyes; then :
28361 cat >>confdefs.h <<_ACEOF
28362 #define HAVE_STRTOLL 1
28364 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28369 for ac_func in posix_fadvise
28371 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28372 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28373 cat >>confdefs.h <<_ACEOF
28374 #define HAVE_POSIX_FADVISE 1
28380 for ac_func in posix_fallocate
28382 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28383 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28384 cat >>confdefs.h <<_ACEOF
28385 #define HAVE_POSIX_FALLOCATE 1
28391 for ac_func in fdatasync
28393 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28394 if test "x$ac_cv_func_fdatasync" = xyes; then :
28395 cat >>confdefs.h <<_ACEOF
28396 #define HAVE_FDATASYNC 1
28403 for ac_func in chflags
28405 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28406 if test "x$ac_cv_func_chflags" = xyes; then :
28407 cat >>confdefs.h <<_ACEOF
28408 #define HAVE_CHFLAGS 1
28415 for ac_func in snprintf vsnprintf gethostid fseeko
28417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28418 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28419 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28420 cat >>confdefs.h <<_ACEOF
28421 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28429 $as_echo_n "checking for va_copy... " >&6; }
28430 if ${ba_cv_va_copy+:} false; then :
28431 $as_echo_n "(cached) " >&6
28434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28435 /* end confdefs.h. */
28437 #include <stdarg.h>
28438 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28439 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28445 call_use_va_copy(1,2,3)
28451 if ac_fn_c_try_link "$LINENO"; then :
28461 rm -f core conftest.err conftest.$ac_objext \
28462 conftest$ac_exeext conftest.$ac_ext
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28467 $as_echo "$ba_cv_va_copy" >&6; }
28468 test $ba_cv_va_copy = yes &&
28469 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28472 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28474 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28475 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28476 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28477 cat >>confdefs.h <<_ACEOF
28478 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28485 # If resolver functions are not in libc check for -lnsl or -lresolv.
28486 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28487 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28489 $as_echo "using libc's resolver" >&6; }
28491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28492 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28493 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28494 $as_echo_n "(cached) " >&6
28496 ac_check_lib_save_LIBS=$LIBS
28498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28499 /* end confdefs.h. */
28501 /* Override any GCC internal prototype to avoid an error.
28502 Use char because int might match the return type of a GCC
28503 builtin and then its argument prototype would still apply. */
28507 char gethostbyname_r ();
28511 return gethostbyname_r ();
28516 if ac_fn_c_try_link "$LINENO"; then :
28517 ac_cv_lib_nsl_gethostbyname_r=yes
28519 ac_cv_lib_nsl_gethostbyname_r=no
28521 rm -f core conftest.err conftest.$ac_objext \
28522 conftest$ac_exeext conftest.$ac_ext
28523 LIBS=$ac_check_lib_save_LIBS
28525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28526 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28527 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28528 cat >>confdefs.h <<_ACEOF
28529 #define HAVE_LIBNSL 1
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28537 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28538 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28539 $as_echo_n "(cached) " >&6
28541 ac_check_lib_save_LIBS=$LIBS
28542 LIBS="-lresolv $LIBS"
28543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28544 /* end confdefs.h. */
28546 /* Override any GCC internal prototype to avoid an error.
28547 Use char because int might match the return type of a GCC
28548 builtin and then its argument prototype would still apply. */
28552 char gethostbyname_r ();
28556 return gethostbyname_r ();
28561 if ac_fn_c_try_link "$LINENO"; then :
28562 ac_cv_lib_resolv_gethostbyname_r=yes
28564 ac_cv_lib_resolv_gethostbyname_r=no
28566 rm -f core conftest.err conftest.$ac_objext \
28567 conftest$ac_exeext conftest.$ac_ext
28568 LIBS=$ac_check_lib_save_LIBS
28570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28571 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28572 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28573 cat >>confdefs.h <<_ACEOF
28574 #define HAVE_LIBRESOLV 1
28577 LIBS="-lresolv $LIBS"
28584 for ac_func in inet_pton
28586 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28587 if test "x$ac_cv_func_inet_pton" = xyes; then :
28588 cat >>confdefs.h <<_ACEOF
28589 #define HAVE_INET_PTON 1
28591 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28596 for ac_func in inet_ntop
28598 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28599 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28600 cat >>confdefs.h <<_ACEOF
28601 #define HAVE_INET_NTOP 1
28603 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28608 for ac_func in gethostbyname2
28610 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28611 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28612 cat >>confdefs.h <<_ACEOF
28613 #define HAVE_GETHOSTBYNAME2 1
28615 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28620 for ac_func in getnameinfo
28622 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28623 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28624 cat >>confdefs.h <<_ACEOF
28625 #define HAVE_GETNAMEINFO 1
28627 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28635 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28636 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28637 $as_echo_n "(cached) " >&6
28640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28641 /* end confdefs.h. */
28643 #include <sys/socket.h>
28649 struct sockaddr s; s.sa_len;
28655 if ac_fn_c_try_compile "$LINENO"; then :
28657 ac_cv_struct_sockaddr_sa_len=yes
28660 ac_cv_struct_sockaddr_sa_len=no
28664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28669 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28671 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28673 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28678 $as_echo_n "checking for working getaddrinfo... " >&6; }
28679 if ${ac_cv_working_getaddrinfo+:} false; then :
28680 $as_echo_n "(cached) " >&6
28683 if test "$cross_compiling" = yes; then :
28685 ac_cv_working_getaddrinfo="yes"
28689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28690 /* end confdefs.h. */
28693 #include <string.h>
28694 #include <sys/types.h>
28695 #include <sys/socket.h>
28698 struct addrinfo hints, *ai;
28701 memset(&hints, 0, sizeof(hints));
28702 hints.ai_family = AF_UNSPEC;
28703 hints.ai_socktype = SOCK_STREAM;
28704 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28708 if (ai->ai_addr->sa_family != AF_INET) {
28715 if ac_fn_c_try_run "$LINENO"; then :
28717 ac_cv_working_getaddrinfo="yes"
28721 ac_cv_working_getaddrinfo="no"
28724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28725 conftest.$ac_objext conftest.beam conftest.$ac_ext
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28732 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28733 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28734 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28736 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28741 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28742 if test "$ac_cv_func_gai_strerror" != "yes"; then
28743 ac_cv_working_getaddrinfo="no"
28746 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28751 for ac_func in strftime
28753 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28754 if test "x$ac_cv_func_strftime" = xyes; then :
28755 cat >>confdefs.h <<_ACEOF
28756 #define HAVE_STRFTIME 1
28760 # strftime is in -lintl on SCO UNIX.
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28762 $as_echo_n "checking for strftime in -lintl... " >&6; }
28763 if ${ac_cv_lib_intl_strftime+:} false; then :
28764 $as_echo_n "(cached) " >&6
28766 ac_check_lib_save_LIBS=$LIBS
28767 LIBS="-lintl $LIBS"
28768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28769 /* end confdefs.h. */
28771 /* Override any GCC internal prototype to avoid an error.
28772 Use char because int might match the return type of a GCC
28773 builtin and then its argument prototype would still apply. */
28781 return strftime ();
28786 if ac_fn_c_try_link "$LINENO"; then :
28787 ac_cv_lib_intl_strftime=yes
28789 ac_cv_lib_intl_strftime=no
28791 rm -f core conftest.err conftest.$ac_objext \
28792 conftest$ac_exeext conftest.$ac_ext
28793 LIBS=$ac_check_lib_save_LIBS
28795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28796 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28797 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28798 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28800 LIBS="-lintl $LIBS"
28806 for ac_func in vprintf
28808 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28809 if test "x$ac_cv_func_vprintf" = xyes; then :
28810 cat >>confdefs.h <<_ACEOF
28811 #define HAVE_VPRINTF 1
28814 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28815 if test "x$ac_cv_func__doprnt" = xyes; then :
28817 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28825 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28826 # for constant arguments. Useless!
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28828 $as_echo_n "checking for working alloca.h... " >&6; }
28829 if ${ac_cv_working_alloca_h+:} false; then :
28830 $as_echo_n "(cached) " >&6
28832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28833 /* end confdefs.h. */
28834 #include <alloca.h>
28838 char *p = (char *) alloca (2 * sizeof (int));
28844 if ac_fn_c_try_link "$LINENO"; then :
28845 ac_cv_working_alloca_h=yes
28847 ac_cv_working_alloca_h=no
28849 rm -f core conftest.err conftest.$ac_objext \
28850 conftest$ac_exeext conftest.$ac_ext
28852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28853 $as_echo "$ac_cv_working_alloca_h" >&6; }
28854 if test $ac_cv_working_alloca_h = yes; then
28856 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28861 $as_echo_n "checking for alloca... " >&6; }
28862 if ${ac_cv_func_alloca_works+:} false; then :
28863 $as_echo_n "(cached) " >&6
28865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28866 /* end confdefs.h. */
28868 # define alloca __builtin_alloca
28871 # include <malloc.h>
28872 # define alloca _alloca
28874 # ifdef HAVE_ALLOCA_H
28875 # include <alloca.h>
28880 # ifndef alloca /* predefined by HP cc +Olibcalls */
28881 void *alloca (size_t);
28891 char *p = (char *) alloca (1);
28897 if ac_fn_c_try_link "$LINENO"; then :
28898 ac_cv_func_alloca_works=yes
28900 ac_cv_func_alloca_works=no
28902 rm -f core conftest.err conftest.$ac_objext \
28903 conftest$ac_exeext conftest.$ac_ext
28905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28906 $as_echo "$ac_cv_func_alloca_works" >&6; }
28908 if test $ac_cv_func_alloca_works = yes; then
28910 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28913 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28914 # that cause trouble. Some versions do not even contain alloca or
28915 # contain a buggy version. If you still want to use their alloca,
28916 # use ar to extract alloca.o from them instead of compiling alloca.c.
28918 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28920 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28924 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28925 if ${ac_cv_os_cray+:} false; then :
28926 $as_echo_n "(cached) " >&6
28928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28929 /* end confdefs.h. */
28930 #if defined CRAY && ! defined CRAY2
28937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28938 $EGREP "webecray" >/dev/null 2>&1; then :
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28947 $as_echo "$ac_cv_os_cray" >&6; }
28948 if test $ac_cv_os_cray = yes; then
28949 for ac_func in _getb67 GETB67 getb67; do
28950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28951 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28952 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28954 cat >>confdefs.h <<_ACEOF
28955 #define CRAY_STACKSEG_END $ac_func
28964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28965 $as_echo_n "checking stack direction for C alloca... " >&6; }
28966 if ${ac_cv_c_stack_direction+:} false; then :
28967 $as_echo_n "(cached) " >&6
28969 if test "$cross_compiling" = yes; then :
28970 ac_cv_c_stack_direction=0
28972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28973 /* end confdefs.h. */
28974 $ac_includes_default
28976 find_stack_direction (int *addr, int depth)
28978 int dir, dummy = 0;
28981 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
28982 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
28983 return dir + dummy;
28987 main (int argc, char **argv)
28989 return find_stack_direction (0, argc + !argv + 20) < 0;
28992 if ac_fn_c_try_run "$LINENO"; then :
28993 ac_cv_c_stack_direction=1
28995 ac_cv_c_stack_direction=-1
28997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28998 conftest.$ac_objext conftest.beam conftest.$ac_ext
29002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29003 $as_echo "$ac_cv_c_stack_direction" >&6; }
29004 cat >>confdefs.h <<_ACEOF
29005 #define STACK_DIRECTION $ac_cv_c_stack_direction
29011 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29012 # -lseq on Dynix/PTX, -lgen on Unixware.
29013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29014 $as_echo_n "checking for library containing getmntent... " >&6; }
29015 if ${ac_cv_search_getmntent+:} false; then :
29016 $as_echo_n "(cached) " >&6
29018 ac_func_search_save_LIBS=$LIBS
29019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29020 /* end confdefs.h. */
29022 /* Override any GCC internal prototype to avoid an error.
29023 Use char because int might match the return type of a GCC
29024 builtin and then its argument prototype would still apply. */
29032 return getmntent ();
29037 for ac_lib in '' sun seq gen; do
29038 if test -z "$ac_lib"; then
29039 ac_res="none required"
29042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29044 if ac_fn_c_try_link "$LINENO"; then :
29045 ac_cv_search_getmntent=$ac_res
29047 rm -f core conftest.err conftest.$ac_objext \
29049 if ${ac_cv_search_getmntent+:} false; then :
29053 if ${ac_cv_search_getmntent+:} false; then :
29056 ac_cv_search_getmntent=no
29058 rm conftest.$ac_ext
29059 LIBS=$ac_func_search_save_LIBS
29061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29062 $as_echo "$ac_cv_search_getmntent" >&6; }
29063 ac_res=$ac_cv_search_getmntent
29064 if test "$ac_res" != no; then :
29065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29066 ac_cv_func_getmntent=yes
29068 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29071 ac_cv_func_getmntent=no
29075 for ac_func in getmntinfo
29077 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29078 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29079 cat >>confdefs.h <<_ACEOF
29080 #define HAVE_GETMNTINFO 1
29082 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29088 $as_echo_n "checking whether closedir returns void... " >&6; }
29089 if ${ac_cv_func_closedir_void+:} false; then :
29090 $as_echo_n "(cached) " >&6
29092 if test "$cross_compiling" = yes; then :
29093 ac_cv_func_closedir_void=yes
29095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29096 /* end confdefs.h. */
29097 $ac_includes_default
29098 #include <$ac_header_dirent>
29099 #ifndef __cplusplus
29106 return closedir (opendir (".")) != 0;
29111 if ac_fn_c_try_run "$LINENO"; then :
29112 ac_cv_func_closedir_void=no
29114 ac_cv_func_closedir_void=yes
29116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29117 conftest.$ac_objext conftest.beam conftest.$ac_ext
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29122 $as_echo "$ac_cv_func_closedir_void" >&6; }
29123 if test $ac_cv_func_closedir_void = yes; then
29125 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29130 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29131 if ${ac_cv_func_setpgrp_void+:} false; then :
29132 $as_echo_n "(cached) " >&6
29134 if test "$cross_compiling" = yes; then :
29135 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29138 /* end confdefs.h. */
29139 $ac_includes_default
29143 /* If this system has a BSD-style setpgrp which takes arguments,
29144 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29145 exit successfully. */
29146 return setpgrp (1,1) != -1;
29151 if ac_fn_c_try_run "$LINENO"; then :
29152 ac_cv_func_setpgrp_void=no
29154 ac_cv_func_setpgrp_void=yes
29156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29157 conftest.$ac_objext conftest.beam conftest.$ac_ext
29161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29162 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29163 if test $ac_cv_func_setpgrp_void = yes; then
29165 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29168 # AC_FUNC_FNMATCH dnl use local version
29170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29171 $as_echo_n "checking for gettext in -lintl... " >&6; }
29172 if ${ac_cv_lib_intl_gettext+:} false; then :
29173 $as_echo_n "(cached) " >&6
29175 ac_check_lib_save_LIBS=$LIBS
29176 LIBS="-lintl $LIBS"
29177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29178 /* end confdefs.h. */
29180 /* Override any GCC internal prototype to avoid an error.
29181 Use char because int might match the return type of a GCC
29182 builtin and then its argument prototype would still apply. */
29195 if ac_fn_c_try_link "$LINENO"; then :
29196 ac_cv_lib_intl_gettext=yes
29198 ac_cv_lib_intl_gettext=no
29200 rm -f core conftest.err conftest.$ac_objext \
29201 conftest$ac_exeext conftest.$ac_ext
29202 LIBS=$ac_check_lib_save_LIBS
29204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29205 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29206 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29207 LIBS="$LIBS -lintl"
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29212 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29213 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29214 $as_echo_n "(cached) " >&6
29216 ac_check_lib_save_LIBS=$LIBS
29218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29219 /* end confdefs.h. */
29221 /* Override any GCC internal prototype to avoid an error.
29222 Use char because int might match the return type of a GCC
29223 builtin and then its argument prototype would still apply. */
29231 return getpwnam ();
29236 if ac_fn_c_try_link "$LINENO"; then :
29237 ac_cv_lib_sun_getpwnam=yes
29239 ac_cv_lib_sun_getpwnam=no
29241 rm -f core conftest.err conftest.$ac_objext \
29242 conftest$ac_exeext conftest.$ac_ext
29243 LIBS=$ac_check_lib_save_LIBS
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29246 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29247 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29248 cat >>confdefs.h <<_ACEOF
29249 #define HAVE_LIBSUN 1
29257 for ac_header in zlib.h
29259 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29260 if test "x$ac_cv_header_zlib_h" = xyes; then :
29261 cat >>confdefs.h <<_ACEOF
29262 #define HAVE_ZLIB_H 1
29269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29270 $as_echo_n "checking for deflate in -lz... " >&6; }
29271 if ${ac_cv_lib_z_deflate+:} false; then :
29272 $as_echo_n "(cached) " >&6
29274 ac_check_lib_save_LIBS=$LIBS
29276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29277 /* end confdefs.h. */
29279 /* Override any GCC internal prototype to avoid an error.
29280 Use char because int might match the return type of a GCC
29281 builtin and then its argument prototype would still apply. */
29294 if ac_fn_c_try_link "$LINENO"; then :
29295 ac_cv_lib_z_deflate=yes
29297 ac_cv_lib_z_deflate=no
29299 rm -f core conftest.err conftest.$ac_objext \
29300 conftest$ac_exeext conftest.$ac_ext
29301 LIBS=$ac_check_lib_save_LIBS
29303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29304 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29305 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29310 if test x$ZLIBS = x-lz; then
29311 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29320 # Check whether --enable-afs was given.
29321 if test "${enable_afs+set}" = set; then :
29322 enableval=$enable_afs;
29323 if test x$enableval = xyes; then
29325 elif test x$enableval = xno; then
29334 if test x$support_afs = xyes -o x$support_afs = xauto; then
29336 # Check whether --with-afsdir was given.
29337 if test "${with_afsdir+set}" = set; then :
29338 withval=$with_afsdir; with_afsdir=$withval
29343 if test x$with_afsdir = x; then
29344 for root in /usr /usr/local; do
29345 if test -d ${root}/include/afs/ ; then
29346 with_afsdir=${root}
29349 if test -d ${root}/include/openafs/afs/ ; then
29350 with_afsdir=${root}
29356 if test -d ${with_afsdir}/include/afs/ ; then
29357 AFS_CFLAGS="-I${with_afsdir}/include"
29359 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29360 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29364 saved_CFLAGS="${CFLAGS}"
29365 saved_CPPFLAGS="${CPPFLAGS}"
29366 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29367 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29369 for ac_header in afs/afsint.h
29371 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29372 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29373 cat >>confdefs.h <<_ACEOF
29374 #define HAVE_AFS_AFSINT_H 1
29381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29382 /* end confdefs.h. */
29384 #include <afs/afsint.h>
29385 #include <afs/venus.h>
29388 if ac_fn_c_try_cpp "$LINENO"; then :
29390 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29394 rm -f conftest.err conftest.i conftest.$ac_ext
29396 CFLAGS="${saved_CFLAGS}"
29397 CPPFLAGS="${saved_CPPFLAGS}"
29399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29400 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29401 for dir in ${with_afsdir}/lib \
29402 ${with_afsdir}/lib/afs \
29403 ${with_afsdir}/lib/openafs \
29404 ${with_afsdir}/lib64 \
29405 ${with_afsdir}/lib64/afs \
29406 ${with_afsdir}/lib64/openafs
29408 for arch_type in .a .so
29410 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29412 if test $pkg = 0; then
29414 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29420 if test $have_afs = yes; then
29421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29422 $as_echo "yes" >&6; }
29424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29425 $as_echo "no" >&6; }
29428 if test x$support_afs = xyes -a $have_afs != yes; then
29429 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29430 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29432 if test $have_afs = yes; then
29434 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29437 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29446 # Check whether --enable-lzo was given.
29447 if test "${enable_lzo+set}" = set; then :
29448 enableval=$enable_lzo;
29449 if test x$enableval = xno; then
29462 if test x$support_lzo = xyes; then
29464 # Check whether --with-lzo was given.
29465 if test "${with_lzo+set}" = set; then :
29467 case "$with_lzo" in
29472 if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29473 LZO_INC="-I${with_lzo}/include"
29474 LZO_LDFLAGS="-L${with_lzo}/lib"
29475 with_lzo="${with_lzo}/include"
29477 with_lzo="/usr/include"
29480 as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29481 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29482 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29485 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29487 LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29493 echo "lzoconf.h not found. lzo turned off ..."
29505 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29506 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29508 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29509 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29512 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29513 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29514 $as_echo_n "(cached) " >&6
29516 ac_check_lib_save_LIBS=$LIBS
29517 LIBS="-llzo2 $LIBS"
29518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29519 /* end confdefs.h. */
29521 /* Override any GCC internal prototype to avoid an error.
29522 Use char because int might match the return type of a GCC
29523 builtin and then its argument prototype would still apply. */
29527 char lzo1x_1_compress ();
29531 return lzo1x_1_compress ();
29536 if ac_fn_c_try_link "$LINENO"; then :
29537 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29539 ac_cv_lib_lzo2_lzo1x_1_compress=no
29541 rm -f core conftest.err conftest.$ac_objext \
29542 conftest$ac_exeext conftest.$ac_ext
29543 LIBS=$ac_check_lib_save_LIBS
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29546 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29547 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29551 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29575 # Check whether --enable-acl was given.
29576 if test "${enable_acl+set}" = set; then :
29577 enableval=$enable_acl;
29578 if test x$enableval = xyes; then
29580 elif test x$enableval = xno; then
29589 have_extended_acl=no
29590 if test x$support_acl = xyes -o x$support_acl = xauto; then
29591 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29592 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29594 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29600 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29601 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29609 if test $have_acl = no; then
29610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29611 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29612 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29613 $as_echo_n "(cached) " >&6
29615 ac_check_lib_save_LIBS=$LIBS
29617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29618 /* end confdefs.h. */
29620 /* Override any GCC internal prototype to avoid an error.
29621 Use char because int might match the return type of a GCC
29622 builtin and then its argument prototype would still apply. */
29626 char acl_get_file ();
29630 return acl_get_file ();
29635 if ac_fn_c_try_link "$LINENO"; then :
29636 ac_cv_lib_acl_acl_get_file=yes
29638 ac_cv_lib_acl_acl_get_file=no
29640 rm -f core conftest.err conftest.$ac_objext \
29641 conftest$ac_exeext conftest.$ac_ext
29642 LIBS=$ac_check_lib_save_LIBS
29644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29645 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29646 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29649 if test $have_afs = yes; then
29650 if test -d /usr/lib64/; then
29651 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29653 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29656 FDLIBS="-lacl $FDLIBS"
29664 if test $have_acl = no -a \
29665 x${HAVE_OSF1_OS_TRUE} = x; then
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29667 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29668 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29669 $as_echo_n "(cached) " >&6
29671 ac_check_lib_save_LIBS=$LIBS
29672 LIBS="-lpacl $LIBS"
29673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29674 /* end confdefs.h. */
29676 /* Override any GCC internal prototype to avoid an error.
29677 Use char because int might match the return type of a GCC
29678 builtin and then its argument prototype would still apply. */
29682 char acl_get_file ();
29686 return acl_get_file ();
29691 if ac_fn_c_try_link "$LINENO"; then :
29692 ac_cv_lib_pacl_acl_get_file=yes
29694 ac_cv_lib_pacl_acl_get_file=no
29696 rm -f core conftest.err conftest.$ac_objext \
29697 conftest$ac_exeext conftest.$ac_ext
29698 LIBS=$ac_check_lib_save_LIBS
29700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29701 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29702 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29705 FDLIBS="-lpacl $FDLIBS"
29711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29712 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29713 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29714 if test $? = 0; then
29716 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29719 $as_echo "yes" >&6; }
29721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29722 $as_echo "no" >&6; }
29726 if test $have_acl = yes -a \
29727 x${HAVE_DARWIN_OS_TRUE} = x; then
29728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29729 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29730 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29731 if test $? = 0; then
29733 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29736 $as_echo "yes" >&6; }
29738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29739 $as_echo "no" >&6; }
29743 if test $have_acl = yes -a \
29744 x${HAVE_FREEBSD_OS_TRUE} = x; then
29745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29746 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29747 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29748 if test $? = 0; then
29750 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29753 $as_echo "yes" >&6; }
29755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29756 $as_echo "no" >&6; }
29760 if test $have_acl = no -a \
29761 x${HAVE_SUN_OS_TRUE} = x; then
29762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29763 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29764 if ${ac_cv_lib_sec_acltotext+:} false; then :
29765 $as_echo_n "(cached) " >&6
29767 ac_check_lib_save_LIBS=$LIBS
29769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29770 /* end confdefs.h. */
29772 /* Override any GCC internal prototype to avoid an error.
29773 Use char because int might match the return type of a GCC
29774 builtin and then its argument prototype would still apply. */
29782 return acltotext ();
29787 if ac_fn_c_try_link "$LINENO"; then :
29788 ac_cv_lib_sec_acltotext=yes
29790 ac_cv_lib_sec_acltotext=no
29792 rm -f core conftest.err conftest.$ac_objext \
29793 conftest$ac_exeext conftest.$ac_ext
29794 LIBS=$ac_check_lib_save_LIBS
29796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29797 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29798 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29801 FDLIBS="-lsec $FDLIBS"
29803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29804 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29805 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29806 $as_echo_n "(cached) " >&6
29808 ac_check_lib_save_LIBS=$LIBS
29810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29811 /* end confdefs.h. */
29813 /* Override any GCC internal prototype to avoid an error.
29814 Use char because int might match the return type of a GCC
29815 builtin and then its argument prototype would still apply. */
29819 char acl_totext ();
29823 return acl_totext ();
29828 if ac_fn_c_try_link "$LINENO"; then :
29829 ac_cv_lib_sec_acl_totext=yes
29831 ac_cv_lib_sec_acl_totext=no
29833 rm -f core conftest.err conftest.$ac_objext \
29834 conftest$ac_exeext conftest.$ac_ext
29835 LIBS=$ac_check_lib_save_LIBS
29837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29838 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29839 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29841 have_extended_acl=yes
29852 if test $have_acl = no -a \
29853 x${HAVE_AIX_OS_TRUE} = x; then
29854 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29855 if test "x$ac_cv_func_acl_get" = xyes; then :
29859 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29860 if test "x$ac_cv_func_aclx_get" = xyes; then :
29862 have_extended_acl=yes
29873 if test x$support_acl = xyes -a $have_acl != yes; then
29874 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29875 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29877 if test $have_acl = yes; then
29879 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29883 if test $have_extended_acl = yes; then
29885 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29892 # Check whether --enable-xattr was given.
29893 if test "${enable_xattr+set}" = set; then :
29894 enableval=$enable_xattr;
29895 if test x$enableval = xyes; then
29897 elif test x$enableval = xno; then
29906 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29907 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29908 x${HAVE_NETBSD_OS_TRUE} = x -o \
29909 x${HAVE_OPENBSD_OS_TRUE} = x; then
29910 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29911 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29913 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29918 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29919 if test "x$ac_cv_header_libutil_h" = xyes; then :
29921 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29926 for ac_func in extattr_get_link extattr_set_link extattr_list_link
29928 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29929 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29930 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29931 cat >>confdefs.h <<_ACEOF
29932 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29937 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29940 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29943 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29951 if test $have_xattr = no; then
29952 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29955 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29956 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29957 cat >>confdefs.h <<_ACEOF
29958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29963 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29966 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29969 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29978 if test $have_xattr = yes; then
29979 have_extattr_string_in_libc=no
29980 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29982 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29983 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29984 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29985 cat >>confdefs.h <<_ACEOF
29986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29989 have_extattr_string_in_libc=yes
29991 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29994 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30002 if test $have_extattr_string_in_libc = no; then
30003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
30004 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
30005 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
30006 $as_echo_n "(cached) " >&6
30008 ac_check_lib_save_LIBS=$LIBS
30009 LIBS="-lutil $LIBS"
30010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30011 /* end confdefs.h. */
30013 /* Override any GCC internal prototype to avoid an error.
30014 Use char because int might match the return type of a GCC
30015 builtin and then its argument prototype would still apply. */
30019 char extattr_namespace_to_string extattr_string_to_namespace ();
30023 return extattr_namespace_to_string extattr_string_to_namespace ();
30028 if ac_fn_c_try_link "$LINENO"; then :
30029 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30031 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30033 rm -f core conftest.err conftest.$ac_objext \
30034 conftest$ac_exeext conftest.$ac_ext
30035 LIBS=$ac_check_lib_save_LIBS
30037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30038 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30039 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30042 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30045 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30047 FDLIBS="-lutil $FDLIBS"
30056 if test $have_xattr = no -a \
30057 x${HAVE_AIX_OS_TRUE} = x; then
30058 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30059 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30061 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30066 for ac_func in llistea lgetea lsetea
30068 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30069 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30070 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30071 cat >>confdefs.h <<_ACEOF
30072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30077 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30080 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30083 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30091 if test $have_xattr = no; then
30092 for ac_func in listea getea setea
30094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30095 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30096 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30097 cat >>confdefs.h <<_ACEOF
30098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30103 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30106 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30109 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30119 if test $have_xattr = no -a \
30120 x${HAVE_OSF1_OS_TRUE} = x; then
30121 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30122 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30124 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30129 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30132 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30133 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30134 cat >>confdefs.h <<_ACEOF
30135 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30140 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30143 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30146 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30149 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30152 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30161 if test $have_xattr = no -a \
30162 x${HAVE_SUN_OS_TRUE} = x; then
30163 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30164 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30166 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30171 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30172 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30174 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30179 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30180 if test "x$ac_cv_header_attr_h" = xyes; then :
30182 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30188 for ac_func in openat fstatat unlinkat fchownat futimesat
30190 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30191 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30192 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30193 cat >>confdefs.h <<_ACEOF
30194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30199 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30202 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30205 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30208 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30211 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30219 if test $have_xattr = yes; then
30220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30221 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30222 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30223 $as_echo_n "(cached) " >&6
30225 ac_check_lib_save_LIBS=$LIBS
30226 LIBS="-lnvpair $LIBS"
30227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30228 /* end confdefs.h. */
30230 /* Override any GCC internal prototype to avoid an error.
30231 Use char because int might match the return type of a GCC
30232 builtin and then its argument prototype would still apply. */
30236 char nvlist_next_nvpair ();
30240 return nvlist_next_nvpair ();
30245 if ac_fn_c_try_link "$LINENO"; then :
30246 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30248 ac_cv_lib_nvpair_nvlist_next_nvpair=no
30250 rm -f core conftest.err conftest.$ac_objext \
30251 conftest$ac_exeext conftest.$ac_ext
30252 LIBS=$ac_check_lib_save_LIBS
30254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30255 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30256 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30259 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30261 FDLIBS="-lnvpair $FDLIBS"
30269 if test $have_xattr = no; then
30270 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30271 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30273 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30278 for ac_func in llistxattr lgetxattr lsetxattr
30280 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30281 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30282 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30283 cat >>confdefs.h <<_ACEOF
30284 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30289 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30292 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30295 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30303 if test $have_xattr = no; then
30304 for ac_func in listxattr getxattr setxattr
30306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30307 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30308 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30309 cat >>confdefs.h <<_ACEOF
30310 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30315 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30318 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30321 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30331 if test x$support_xattr = xyes -a $have_xattr != yes; then
30332 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30333 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30335 if test $have_xattr = yes; then
30337 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30345 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30346 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30347 $as_echo_n "(cached) " >&6
30349 ac_check_lib_save_LIBS=$LIBS
30350 LIBS="-lpthread $LIBS"
30351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30352 /* end confdefs.h. */
30354 /* Override any GCC internal prototype to avoid an error.
30355 Use char because int might match the return type of a GCC
30356 builtin and then its argument prototype would still apply. */
30360 char pthread_create ();
30364 return pthread_create ();
30369 if ac_fn_c_try_link "$LINENO"; then :
30370 ac_cv_lib_pthread_pthread_create=yes
30372 ac_cv_lib_pthread_pthread_create=no
30374 rm -f core conftest.err conftest.$ac_objext \
30375 conftest$ac_exeext conftest.$ac_ext
30376 LIBS=$ac_check_lib_save_LIBS
30378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30379 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30380 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30381 PTHREAD_LIB="-lpthread"
30384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30385 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30386 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30387 $as_echo_n "(cached) " >&6
30389 ac_check_lib_save_LIBS=$LIBS
30390 LIBS="-lpthreads $LIBS"
30391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30392 /* end confdefs.h. */
30394 /* Override any GCC internal prototype to avoid an error.
30395 Use char because int might match the return type of a GCC
30396 builtin and then its argument prototype would still apply. */
30400 char pthread_create ();
30404 return pthread_create ();
30409 if ac_fn_c_try_link "$LINENO"; then :
30410 ac_cv_lib_pthreads_pthread_create=yes
30412 ac_cv_lib_pthreads_pthread_create=no
30414 rm -f core conftest.err conftest.$ac_objext \
30415 conftest$ac_exeext conftest.$ac_ext
30416 LIBS=$ac_check_lib_save_LIBS
30418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30419 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30420 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30421 PTHREAD_LIB="-lpthreads"
30424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30425 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30426 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30427 $as_echo_n "(cached) " >&6
30429 ac_check_lib_save_LIBS=$LIBS
30431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30432 /* end confdefs.h. */
30434 /* Override any GCC internal prototype to avoid an error.
30435 Use char because int might match the return type of a GCC
30436 builtin and then its argument prototype would still apply. */
30440 char pthread_create ();
30444 return pthread_create ();
30449 if ac_fn_c_try_link "$LINENO"; then :
30450 ac_cv_lib_c_r_pthread_create=yes
30452 ac_cv_lib_c_r_pthread_create=no
30454 rm -f core conftest.err conftest.$ac_objext \
30455 conftest$ac_exeext conftest.$ac_ext
30456 LIBS=$ac_check_lib_save_LIBS
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30459 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30460 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30461 PTHREAD_LIB="-lc_r"
30464 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30465 if test "x$ac_cv_func_pthread_create" = xyes; then :
30482 for ac_header in sys/prctl.h sys/capability.h
30484 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30485 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30486 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30487 cat >>confdefs.h <<_ACEOF
30488 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30495 for ac_func in prctl setreuid
30497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30498 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30499 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30500 cat >>confdefs.h <<_ACEOF
30501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30508 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30509 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30510 $as_echo_n "(cached) " >&6
30512 ac_check_lib_save_LIBS=$LIBS
30514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30515 /* end confdefs.h. */
30517 /* Override any GCC internal prototype to avoid an error.
30518 Use char because int might match the return type of a GCC
30519 builtin and then its argument prototype would still apply. */
30523 char cap_set_proc ();
30527 return cap_set_proc ();
30532 if ac_fn_c_try_link "$LINENO"; then :
30533 ac_cv_lib_cap_cap_set_proc=yes
30535 ac_cv_lib_cap_cap_set_proc=no
30537 rm -f core conftest.err conftest.$ac_objext \
30538 conftest$ac_exeext conftest.$ac_ext
30539 LIBS=$ac_check_lib_save_LIBS
30541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30542 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30543 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30549 if test x$CAP_LIBS = x-lcap; then
30551 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30557 $as_echo "#define FDLIBS 1" >>confdefs.h
30560 CFLAGS=${CFLAGS--O}
30562 if test x$have_gcc = xyes ; then
30563 CPPFLAGS="$CPPFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30564 CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30566 LDFLAGS=${LDFLAGS--O}
30567 CPPFLAGS="$CPPFLAGS"
30596 COMPRESS_MANPAGES=yes
30598 case "$DISTNAME" in
30601 PSCMD="ps -e -o pid,comm"
30602 PFILES="${PFILES} platforms/aix/Makefile"
30603 TAPEDRIVE="/dev/rmt0.1"
30607 PTHREAD_LIB="-lpthread -lexc"
30608 if test "${CC}" = "gcc" ; then
30615 TAPEDRIVE="/dev/nrmt0"
30618 DISTVER=`uname -a |awk '{print $3}'`
30619 TAPEDRIVE="/dev/nrmt0"
30620 PTHREAD_LIB="-pthread"
30621 CFLAGS="${CFLAGS} -pthread"
30622 PSCMD="ps -ax -o pid,command"
30625 PFILES="${PFILES} \
30626 platforms/bsdi/Makefile \
30627 platforms/bsdi/bacula-fd \
30628 platforms/bsdi/bacula-sd \
30629 platforms/bsdi/bacula-dir"
30630 largefile_support="yes"
30633 DISTVER=`uname -a |awk '{print $3}'`
30634 TAPEDRIVE="/dev/nrst0"
30636 WCFLAGS="-mwindows"
30637 WLDFLAGS="-mwindows"
30641 TAPEDRIVE="/dev/nst0"
30642 PSCMD="ps -e -o pid,command"
30644 PFILES="${PFILES} \
30645 platforms/darwin/Makefile"
30649 TAPEDRIVE="/dev/nst0"
30650 PSCMD="ps -e -o pid,command"
30652 PFILES="${PFILES} \
30653 platforms/osx/Makefile"
30656 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30659 DISTVER=`cat /etc/debian_version`
30660 if test -f /etc/lsb-release ; then
30662 if test "x$DISTRIB_ID" != "x" ; then
30663 DISTNAME=$DISTRIB_ID
30665 if test "x$DISTRIB_RELEASE" != "x" ; then
30666 DISTVER=$DISTRIB_RELEASE
30669 if test "$DISTNAME" = "Ubuntu" ; then
30672 TAPEDRIVE="/dev/nst0"
30673 PSCMD="ps -e -o pid,command"
30674 if test "$DISTNAME" = "ubuntu" ; then
30675 PFILES="${PFILES} \
30676 platforms/ubuntu/Makefile \
30677 platforms/ubuntu/bacula-fd \
30678 platforms/ubuntu/bacula-sd \
30679 platforms/ubuntu/bacula-dir"
30681 PFILES="${PFILES} \
30682 platforms/debian/Makefile \
30683 platforms/debian/bacula-fd \
30684 platforms/debian/bacula-sd \
30685 platforms/debian/bacula-dir"
30689 DISTVER=`uname -a |awk '{print $3}'`
30690 VER=`echo $DISTVER | cut -c 1`
30691 if test x$VER = x4 ; then
30692 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30693 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30697 TAPEDRIVE="/dev/nrsa0"
30698 PSCMD="ps -ax -o pid,command"
30699 PFILES="${PFILES} \
30700 platforms/freebsd/Makefile \
30701 platforms/freebsd/bacula-fd \
30702 platforms/freebsd/bacula-sd \
30703 platforms/freebsd/bacula-dir"
30704 largefile_support="yes"
30708 TAPEDRIVE="/dev/nst0"
30709 PSCMD="ps -e -o pid,command"
30710 PFILES="${PFILES} \
30711 platforms/hurd/Makefile \
30712 platforms/hurd/bacula-fd \
30713 platforms/hurd/bacula-sd \
30714 platforms/hurd/bacula-dir"
30717 PSCMD="UNIX95=1; ps -e -o pid,comm"
30718 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30720 TAPEDRIVE="/dev/rmt/0hnb"
30721 PTHREAD_LIB="-lpthread"
30722 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30727 TAPEDRIVE="/dev/rmt/0cbn"
30728 PSCMD="ps -e -o pid,comm"
30729 PFILES="${PFILES} \
30730 platforms/irix/Makefile \
30731 platforms/irix/bacula-fd \
30732 platforms/irix/bacula-sd \
30733 platforms/irix/bacula-dir"
30736 DISTVER=`uname -a |awk '{print $3}'`
30739 TAPEDRIVE="/dev/nrst0"
30740 PSCMD="ps -ax -o pid,command"
30741 PTHREAD_LIB="-pthread"
30742 CFLAGS="${CFLAGS} -pthread"
30745 DISTVER=`uname -a |awk '{print $3}'`
30748 TAPEDRIVE="/dev/nrst0"
30749 PSCMD="ps -ax -o pid,command"
30750 PTHREAD_LIB="-pthread"
30751 CFLAGS="${CFLAGS} -pthread"
30752 PFILES="${PFILES} \
30753 platforms/openbsd/Makefile \
30754 platforms/openbsd/bacula-fd \
30755 platforms/openbsd/bacula-sd \
30756 platforms/openbsd/bacula-dir"
30759 if test -f /etc/whitebox-release ; then
30760 f=/etc/whitebox-release
30762 f=/etc/redhat-release
30764 if test `cat $f | grep release |\
30765 cut -f 3 -d ' '`x = "Enterprise"x ; then
30766 DISTVER="Enterprise "`cat $f | grep release |\
30769 DISTVER=`cat /etc/redhat-release | grep release |\
30772 TAPEDRIVE="/dev/nst0"
30773 PSCMD="ps -e -o pid,command"
30774 PFILES="${PFILES} \
30775 platforms/redhat/Makefile \
30776 platforms/redhat/bacula-fd \
30777 platforms/redhat/bacula-sd \
30778 platforms/redhat/bacula-dir
30782 DISTVER=`cat /etc/mandrake-release | grep release |\
30784 TAPEDRIVE="/dev/nst0"
30785 PSCMD="ps -e -o pid,command"
30786 PFILES="${PFILES} \
30787 platforms/mandrake/Makefile \
30788 platforms/mandrake/bacula-fd \
30789 platforms/mandrake/bacula-sd \
30790 platforms/mandrake/bacula-dir \
30794 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30795 TAPEDRIVE="/dev/nst0"
30796 PSCMD="ps -e -o pid,command"
30797 PFILES="${PFILES} \
30798 platforms/gentoo/Makefile \
30799 platforms/gentoo/bacula-init \
30800 platforms/gentoo/bacula-fd \
30801 platforms/gentoo/bacula-sd \
30802 platforms/gentoo/bacula-dir"
30805 DISTVER=`cat /etc/slackware-version`
30806 TAPEDRIVE="/dev/nst0"
30807 PSCMD="ps -e -o pid,command"
30808 PFILES="${PFILES} \
30809 platforms/slackware/Makefile \
30810 platforms/slackware/rc.bacula-fd \
30811 platforms/slackware/rc.bacula-sd \
30812 platforms/slackware/rc.bacula-dir\
30813 platforms/slackware/functions.bacula"
30817 TAPEDRIVE="/dev/rmt/0cbn"
30818 PSCMD="ps -e -o pid,comm"
30819 PFILES="${PFILES} \
30820 platforms/solaris/Makefile \
30821 platforms/solaris/bacula-fd \
30822 platforms/solaris/bacula-sd \
30823 platforms/solaris/bacula-dir"
30827 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30829 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30833 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30839 LIBS="$LIBS -lresolv -lrt"
30842 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30844 TAPEDRIVE="/dev/nst0"
30845 PSCMD="ps -e -o pid,command"
30846 PFILES="${PFILES} \
30847 platforms/suse/Makefile \
30848 platforms/suse/bacula-fd \
30849 platforms/suse/bacula-sd \
30850 platforms/suse/bacula-dir \
30851 platforms/suse/bacula"
30856 TAPEDRIVE="/dev/nst0"
30857 PSCMD="ps -e -o pid,command"
30858 PFILES="${PFILES} \
30859 platforms/suse/Makefile \
30860 platforms/suse/bacula-fd \
30861 platforms/suse/bacula-sd \
30862 platforms/suse/bacula-dir"
30866 TAPEDRIVE="/dev/nst0"
30869 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30874 $as_echo_n "checking for systemd support... " >&6; }
30876 # Check whether --with-systemd was given.
30877 if test "${with_systemd+set}" = set; then :
30878 withval=$with_systemd;
30879 if test "$withval" != "no"; then
30880 if test "$withval" = "yes"; then
30881 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30883 SYSTEMD_UNITDIR="${withval}"
30886 PFILES="${PFILES} \
30887 platforms/systemd/Makefile \
30888 platforms/systemd/bacula.conf \
30889 platforms/systemd/bacula-dir.service \
30890 platforms/systemd/bacula-fd.service \
30891 platforms/systemd/bacula-sd.service"
30893 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30896 $as_echo "yes" >&6; }
30897 support_systemd="yes"
30899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30900 $as_echo "no" >&6; }
30901 support_systemd="no"
30906 support_systemd="no"
30907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30908 $as_echo "no" >&6; }
30917 LIBS="$PTHREAD_LIB $LIBS"
30919 cat >>confdefs.h <<_ACEOF
30923 cat >>confdefs.h <<_ACEOF
30935 MCOMMON=./autoconf/Make.common
30938 if test "x${subsysdir}" = "x${sbindir}" ; then
30941 echo "You have set both --sbindir and --with-subsys-dir"
30942 echo " equal to: ${subsysdir} "
30943 echo "This is not permitted. Please reconfigure."
30945 echo "Aborting configuration ..."
30952 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/bat.pro.mingw64 src/qt-console/install_conf_file src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.pro.mingw32 src/qt-console/tray-monitor/tray-monitor.pro.mingw64 src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/cats/install-default-backend src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile po/Makefile.in updatedb/update_mysql_tables updatedb/update_sqlite3_tables updatedb/update_postgresql_tables updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec platforms/rpms/suse/bacula.spec platforms/rpms/suse/bacula-bat.spec platforms/rpms/suse/bacula-docs.spec platforms/rpms/suse/bacula-mtx.spec $PFILES"
30954 ac_config_commands="$ac_config_commands default"
30956 cat >confcache <<\_ACEOF
30957 # This file is a shell script that caches the results of configure
30958 # tests run on this system so they can be shared between configure
30959 # scripts and configure runs, see configure's option --config-cache.
30960 # It is not useful on other systems. If it contains results you don't
30961 # want to keep, you may remove or edit it.
30963 # config.status only pays attention to the cache file if you give it
30964 # the --recheck option to rerun configure.
30966 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30967 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30968 # following values.
30972 # The following way of writing the cache mishandles newlines in values,
30973 # but we know of no workaround that is simple, portable, and efficient.
30974 # So, we kill variables containing newlines.
30975 # Ultrix sh set writes to stderr and can't be redirected directly,
30976 # and sets the high bit in the cache file unless we assign to the vars.
30978 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30979 eval ac_val=\$$ac_var
30983 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30984 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30987 _ | IFS | as_nl) ;; #(
30988 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30989 *) { eval $ac_var=; unset $ac_var;} ;;
30995 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30996 *${as_nl}ac_space=\ *)
30997 # `set' does not quote correctly, so add quotes: double-quote
30998 # substitution turns \\\\ into \\, and sed turns \\ into \.
31001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31004 # `set' quotes correctly as required by POSIX, so do not add quotes.
31005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31014 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31016 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31018 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31019 if test -w "$cache_file"; then
31020 if test "x$cache_file" != "x/dev/null"; then
31021 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31022 $as_echo "$as_me: updating cache $cache_file" >&6;}
31023 if test ! -f "$cache_file" || test -h "$cache_file"; then
31024 cat confcache >"$cache_file"
31026 case $cache_file in #(
31028 mv -f confcache "$cache_file"$$ &&
31029 mv -f "$cache_file"$$ "$cache_file" ;; #(
31031 mv -f confcache "$cache_file" ;;
31036 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31037 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31042 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31043 # Let make expand exec_prefix.
31044 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31046 DEFS=-DHAVE_CONFIG_H
31051 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31052 # 1. Remove the extension, and $U if already installed.
31053 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31054 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31055 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31056 # will be set to the directory where LIBOBJS objects are built.
31057 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31058 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31060 LIBOBJS=$ac_libobjs
31062 LTLIBOBJS=$ac_ltlibobjs
31067 : "${CONFIG_STATUS=./config.status}"
31069 ac_clean_files_save=$ac_clean_files
31070 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31071 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31072 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31074 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31076 # Generated by $as_me.
31077 # Run this file to recreate the current configuration.
31078 # Compiler output produced by configure, useful for debugging
31079 # configure, is in config.log if it exists.
31082 ac_cs_recheck=false
31085 SHELL=\${CONFIG_SHELL-$SHELL}
31088 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31089 ## -------------------- ##
31090 ## M4sh Initialization. ##
31091 ## -------------------- ##
31093 # Be more Bourne compatible
31094 DUALCASE=1; export DUALCASE # for MKS sh
31095 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31098 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31099 # is contrary to our usage. Disable this feature.
31100 alias -g '${1+"$@"}'='"$@"'
31101 setopt NO_GLOB_SUBST
31103 case `(set -o) 2>/dev/null` in #(
31115 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31116 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31117 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31118 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31119 # Prefer a ksh shell builtin over an external printf program on Solaris,
31120 # but without wasting forks for bash or zsh.
31121 if test -z "$BASH_VERSION$ZSH_VERSION" \
31122 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31123 as_echo='print -r --'
31124 as_echo_n='print -rn --'
31125 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31126 as_echo='printf %s\n'
31127 as_echo_n='printf %s'
31129 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31130 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31131 as_echo_n='/usr/ucb/echo -n'
31133 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31134 as_echo_n_body='eval
31138 expr "X$arg" : "X\\(.*\\)$as_nl";
31139 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31141 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31143 export as_echo_n_body
31144 as_echo_n='sh -c $as_echo_n_body as_echo'
31146 export as_echo_body
31147 as_echo='sh -c $as_echo_body as_echo'
31150 # The user is always right.
31151 if test "${PATH_SEPARATOR+set}" != set; then
31153 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31154 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31161 # We need space, tab and new line, in precisely that order. Quoting is
31162 # there to prevent editors from complaining about space-tab.
31163 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31164 # splitting by setting IFS to empty value.)
31167 # Find who we are. Look in the path if we contain no directory separator.
31170 *[\\/]* ) as_myself=$0 ;;
31171 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31172 for as_dir in $PATH
31175 test -z "$as_dir" && as_dir=.
31176 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31182 # We did not find ourselves, most probably we were run as `sh COMMAND'
31183 # in which case we are not to be found in the path.
31184 if test "x$as_myself" = x; then
31187 if test ! -f "$as_myself"; then
31188 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31192 # Unset variables that we do not need and which cause bugs (e.g. in
31193 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31194 # suppresses any "Segmentation fault" message there. '((' could
31195 # trigger a bug in pdksh 5.2.14.
31196 for as_var in BASH_ENV ENV MAIL MAILPATH
31197 do eval test x\${$as_var+set} = xset \
31198 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31211 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31214 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31215 # ----------------------------------------
31216 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31217 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31218 # script with STATUS, using 1 if that was 0.
31221 as_status=$1; test $as_status -eq 0 && as_status=1
31223 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31224 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31226 $as_echo "$as_me: error: $2" >&2
31227 as_fn_exit $as_status
31231 # as_fn_set_status STATUS
31232 # -----------------------
31233 # Set $? to STATUS, without forking.
31234 as_fn_set_status ()
31237 } # as_fn_set_status
31239 # as_fn_exit STATUS
31240 # -----------------
31241 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31245 as_fn_set_status $1
31251 # Portably unset VAR.
31254 { eval $1=; unset $1;}
31256 as_unset=as_fn_unset
31257 # as_fn_append VAR VALUE
31258 # ----------------------
31259 # Append the text in VALUE to the end of the definition contained in VAR. Take
31260 # advantage of any shell optimizations that allow amortized linear growth over
31261 # repeated appends, instead of the typical quadratic growth present in naive
31263 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31264 eval 'as_fn_append ()
31275 # as_fn_arith ARG...
31276 # ------------------
31277 # Perform arithmetic evaluation on the ARGs, and store the result in the
31278 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31279 # must be portable across $(()) and expr.
31280 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31281 eval 'as_fn_arith ()
31288 as_val=`expr "$@" || test $? -eq 1`
31293 if expr a : '\(a\)' >/dev/null 2>&1 &&
31294 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31300 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31301 as_basename=basename
31306 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31312 as_me=`$as_basename -- "$0" ||
31313 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31314 X"$0" : 'X\(//\)$' \| \
31315 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31317 sed '/^.*\/\([^/][^/]*\)\/*$/{
31331 # Avoid depending upon Character Ranges.
31332 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31333 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31334 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31335 as_cr_digits='0123456789'
31336 as_cr_alnum=$as_cr_Letters$as_cr_digits
31338 ECHO_C= ECHO_N= ECHO_T=
31339 case `echo -n x` in #(((((
31341 case `echo 'xy\c'` in
31342 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31344 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31351 rm -f conf$$ conf$$.exe conf$$.file
31352 if test -d conf$$.dir; then
31353 rm -f conf$$.dir/conf$$.file
31356 mkdir conf$$.dir 2>/dev/null
31358 if (echo >conf$$.file) 2>/dev/null; then
31359 if ln -s conf$$.file conf$$ 2>/dev/null; then
31361 # ... but there are two gotchas:
31362 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31363 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31364 # In both cases, we have to default to `cp -pR'.
31365 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31367 elif ln conf$$.file conf$$ 2>/dev/null; then
31375 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31376 rmdir conf$$.dir 2>/dev/null
31381 # Create "$as_dir" as a directory, including parents if necessary.
31386 -*) as_dir=./$as_dir;;
31388 test -d "$as_dir" || eval $as_mkdir_p || {
31392 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31393 *) as_qdir=$as_dir;;
31395 as_dirs="'$as_qdir' $as_dirs"
31396 as_dir=`$as_dirname -- "$as_dir" ||
31397 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31398 X"$as_dir" : 'X\(//\)[^/]' \| \
31399 X"$as_dir" : 'X\(//\)$' \| \
31400 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31401 $as_echo X"$as_dir" |
31402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31406 /^X\(\/\/\)[^/].*/{
31419 test -d "$as_dir" && break
31421 test -z "$as_dirs" || eval "mkdir $as_dirs"
31422 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31426 if mkdir -p . 2>/dev/null; then
31427 as_mkdir_p='mkdir -p "$as_dir"'
31429 test -d ./-p && rmdir ./-p
31434 # as_fn_executable_p FILE
31435 # -----------------------
31436 # Test if FILE is an executable regular file.
31437 as_fn_executable_p ()
31439 test -f "$1" && test -x "$1"
31440 } # as_fn_executable_p
31441 as_test_x='test -x'
31442 as_executable_p=as_fn_executable_p
31444 # Sed expression to map a string onto a valid CPP name.
31445 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31447 # Sed expression to map a string onto a valid variable name.
31448 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31452 ## ----------------------------------- ##
31453 ## Main body of $CONFIG_STATUS script. ##
31454 ## ----------------------------------- ##
31456 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31459 # Save the log message, to keep $0 and so on meaningful, and to
31460 # report actual input values of CONFIG_FILES etc. instead of their
31461 # values after options handling.
31463 This file was extended by bacula $as_me 7.4.4, which was
31464 generated by GNU Autoconf 2.69. Invocation command line was
31466 CONFIG_FILES = $CONFIG_FILES
31467 CONFIG_HEADERS = $CONFIG_HEADERS
31468 CONFIG_LINKS = $CONFIG_LINKS
31469 CONFIG_COMMANDS = $CONFIG_COMMANDS
31472 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31477 case $ac_config_files in *"
31478 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31481 case $ac_config_headers in *"
31482 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31487 # Files that config.status was made for.
31488 config_files="$ac_config_files"
31489 config_headers="$ac_config_headers"
31490 config_commands="$ac_config_commands"
31494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31496 \`$as_me' instantiates files and other configuration actions
31497 from templates according to the current configuration. Unless the files
31498 and actions are specified as TAGs, all are instantiated by default.
31500 Usage: $0 [OPTION]... [TAG]...
31502 -h, --help print this help, then exit
31503 -V, --version print version number and configuration settings, then exit
31504 --config print configuration, then exit
31505 -q, --quiet, --silent
31506 do not print progress messages
31507 -d, --debug don't remove temporary files
31508 --recheck update $as_me by reconfiguring in the same conditions
31509 --file=FILE[:TEMPLATE]
31510 instantiate the configuration file FILE
31511 --header=FILE[:TEMPLATE]
31512 instantiate the configuration header FILE
31514 Configuration files:
31517 Configuration headers:
31520 Configuration commands:
31523 Report bugs to the package provider."
31526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31527 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31529 bacula config.status 7.4.4
31530 configured by $0, generated by GNU Autoconf 2.69,
31531 with options \\"\$ac_cs_config\\"
31533 Copyright (C) 2012 Free Software Foundation, Inc.
31534 This config.status script is free software; the Free Software Foundation
31535 gives unlimited permission to copy, distribute and modify it."
31541 test -n "\$AWK" || AWK=awk
31544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31545 # The default lists apply if the user does not specify any file.
31551 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31552 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31556 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31568 # Handling of the options.
31569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31571 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31572 $as_echo "$ac_cs_version"; exit ;;
31573 --config | --confi | --conf | --con | --co | --c )
31574 $as_echo "$ac_cs_config"; exit ;;
31575 --debug | --debu | --deb | --de | --d | -d )
31577 --file | --fil | --fi | --f )
31580 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31581 '') as_fn_error $? "missing file argument" ;;
31583 as_fn_append CONFIG_FILES " '$ac_optarg'"
31584 ac_need_defaults=false;;
31585 --header | --heade | --head | --hea )
31588 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31590 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31591 ac_need_defaults=false;;
31593 # Conflict between --help and --header
31594 as_fn_error $? "ambiguous option: \`$1'
31595 Try \`$0 --help' for more information.";;
31596 --help | --hel | -h )
31597 $as_echo "$ac_cs_usage"; exit ;;
31598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31599 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31602 # This is an error.
31603 -*) as_fn_error $? "unrecognized option: \`$1'
31604 Try \`$0 --help' for more information." ;;
31606 *) as_fn_append ac_config_targets " $1"
31607 ac_need_defaults=false ;;
31613 ac_configure_extra_args=
31615 if $ac_cs_silent; then
31617 ac_configure_extra_args="$ac_configure_extra_args --silent"
31621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31622 if \$ac_cs_recheck; then
31623 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31625 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31626 CONFIG_SHELL='$SHELL'
31627 export CONFIG_SHELL
31632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31636 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31637 ## Running $as_me. ##
31643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31649 # The HP-UX ksh and POSIX shell print the target directory to stdout
31650 # if CDPATH is set.
31651 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31653 sed_quote_subst='$sed_quote_subst'
31654 double_quote_subst='$double_quote_subst'
31655 delay_variable_subst='$delay_variable_subst'
31656 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31657 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31658 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31659 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31660 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31661 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31662 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31663 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31664 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31665 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31666 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31667 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31668 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31669 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31670 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31671 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31672 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31673 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31674 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31675 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31676 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31677 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31678 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31679 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31680 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31681 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31682 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31683 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31684 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31685 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31686 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31687 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31688 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31689 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31690 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31691 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31692 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31693 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31694 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31695 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31696 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31697 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31698 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31699 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31700 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31701 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31702 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31703 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31704 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31705 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31706 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31707 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31708 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31709 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31710 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31711 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31712 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"`'
31713 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31714 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31715 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31716 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31717 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31718 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31719 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31720 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31721 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31722 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31723 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31724 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31725 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31726 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31727 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31728 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31729 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31730 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31731 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31732 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31733 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31734 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31735 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31736 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31737 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31738 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31739 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31740 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31741 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31742 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31743 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31744 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31745 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31746 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31747 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31748 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31749 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31750 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31751 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31752 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31753 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31754 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31755 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31756 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31757 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31758 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31759 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31760 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31761 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31762 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31763 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31764 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31765 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31766 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31767 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31768 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31769 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31770 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31771 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31772 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31773 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31774 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31775 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31776 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31777 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31778 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31779 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31780 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31781 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31782 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31783 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31784 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31785 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31786 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31787 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31788 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31789 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31790 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31791 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31792 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31793 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31794 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31795 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31796 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31797 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31798 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31799 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31800 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31801 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31802 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31803 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31804 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31805 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31806 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31807 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31808 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31809 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31810 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31811 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31812 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31813 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31814 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31815 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31816 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31817 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31818 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31819 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31820 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31821 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31822 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31823 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31824 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31825 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31826 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31827 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31828 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31829 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31830 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31831 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31832 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31833 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31834 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31835 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31836 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31837 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31838 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31839 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31842 LTCFLAGS='$LTCFLAGS'
31843 compiler='$compiler_DEFAULT'
31845 # A function that is used when there is no print builtin or printf.
31846 func_fallback_echo ()
31848 eval 'cat <<_LTECHO_EOF
31853 # Quote evaled strings.
31868 deplibs_check_method \
31873 sharedlib_from_linklib_cmd \
31876 archiver_list_spec \
31882 lt_cv_sys_global_symbol_pipe \
31883 lt_cv_sys_global_symbol_to_cdecl \
31884 lt_cv_sys_global_symbol_to_c_name_address \
31885 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31886 nm_file_list_spec \
31887 lt_prog_compiler_no_builtin_flag \
31888 lt_prog_compiler_pic \
31889 lt_prog_compiler_wl \
31890 lt_prog_compiler_static \
31891 lt_cv_prog_compiler_c_o \
31900 export_dynamic_flag_spec \
31901 whole_archive_flag_spec \
31902 compiler_needs_object \
31904 allow_undefined_flag \
31905 no_undefined_flag \
31906 hardcode_libdir_flag_spec \
31907 hardcode_libdir_separator \
31911 variables_saved_for_relink \
31913 library_names_spec \
31915 install_override_mode \
31919 compiler_lib_search_dirs \
31924 compiler_lib_search_path \
31928 lt_prog_compiler_no_builtin_flag_CXX \
31929 lt_prog_compiler_pic_CXX \
31930 lt_prog_compiler_wl_CXX \
31931 lt_prog_compiler_static_CXX \
31932 lt_cv_prog_compiler_c_o_CXX \
31933 export_dynamic_flag_spec_CXX \
31934 whole_archive_flag_spec_CXX \
31935 compiler_needs_object_CXX \
31937 allow_undefined_flag_CXX \
31938 no_undefined_flag_CXX \
31939 hardcode_libdir_flag_spec_CXX \
31940 hardcode_libdir_separator_CXX \
31941 exclude_expsyms_CXX \
31942 include_expsyms_CXX \
31943 file_list_spec_CXX \
31944 compiler_lib_search_dirs_CXX \
31945 predep_objects_CXX \
31946 postdep_objects_CXX \
31949 compiler_lib_search_path_CXX; do
31950 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31951 *[\\\\\\\`\\"\\\$]*)
31952 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31955 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31960 # Double-quote double-evaled strings.
31961 for var in reload_cmds \
31962 old_postinstall_cmds \
31963 old_postuninstall_cmds \
31965 extract_expsyms_cmds \
31966 old_archive_from_new_cmds \
31967 old_archive_from_expsyms_cmds \
31969 archive_expsym_cmds \
31971 module_expsym_cmds \
31972 export_symbols_cmds \
31976 postuninstall_cmds \
31978 sys_lib_search_path_spec \
31979 sys_lib_dlsearch_path_spec \
31981 old_archive_cmds_CXX \
31982 old_archive_from_new_cmds_CXX \
31983 old_archive_from_expsyms_cmds_CXX \
31985 archive_expsym_cmds_CXX \
31987 module_expsym_cmds_CXX \
31988 export_symbols_cmds_CXX \
31990 postlink_cmds_CXX; do
31991 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31992 *[\\\\\\\`\\"\\\$]*)
31993 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31996 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32001 ac_aux_dir='$ac_aux_dir'
32002 xsi_shell='$xsi_shell'
32003 lt_shell_append='$lt_shell_append'
32005 # See if we are running on zsh, and set the options which allow our
32006 # commands through without removal of \ escapes INIT.
32007 if test -n "\${ZSH_VERSION+set}" ; then
32008 setopt NO_GLOB_SUBST
32014 TIMESTAMP='$TIMESTAMP'
32022 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32023 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32025 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32026 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32027 LINGUAS="${LINGUAS-%UNSET%}"
32032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32034 # Handling of arguments.
32035 for ac_config_target in $ac_config_targets
32037 case $ac_config_target in
32038 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32039 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32040 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32041 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32042 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32043 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32044 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32045 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32046 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32047 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32048 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32049 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32050 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32051 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32052 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32053 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32054 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32055 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32056 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32057 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32058 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32059 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32060 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32061 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32062 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32063 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32064 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32065 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32066 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32067 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32068 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32069 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32070 "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32071 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32072 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32073 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32074 "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32075 "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32076 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32077 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32078 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32079 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32080 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32081 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32082 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32083 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32084 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32085 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32086 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32087 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32088 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32089 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32090 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32091 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32092 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32093 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32094 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32095 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32096 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32097 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32098 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32099 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32100 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32101 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32102 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32103 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32104 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32105 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32106 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32107 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32108 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32109 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32110 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32111 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32112 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32113 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32114 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32115 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32116 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32117 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32118 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32119 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32120 "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32121 "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32122 "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32123 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32124 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32125 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32126 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32127 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32128 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32129 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32130 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32131 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32132 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32133 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32134 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32135 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32136 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32137 "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32138 "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32139 "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32140 "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32141 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32142 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32144 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32149 # If the user did not use the arguments to specify the items to instantiate,
32150 # then the envvar interface is used. Set only those that are not.
32151 # We use the long form for the default assignment because of an extremely
32152 # bizarre bug on SunOS 4.1.3.
32153 if $ac_need_defaults; then
32154 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32155 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32156 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32159 # Have a temporary directory for convenience. Make it in the build tree
32160 # simply because there is no reason against having it here, and in addition,
32161 # creating and moving files from /tmp can sometimes cause problems.
32162 # Hook for its removal unless debugging.
32163 # Note that there is a small window in which the directory will not be cleaned:
32164 # after its creation but before its name has been assigned to `$tmp'.
32168 trap 'exit_status=$?
32169 : "${ac_tmp:=$tmp}"
32170 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32172 trap 'as_fn_exit 1' 1 2 13 15
32174 # Create a (secure) tmp directory for tmp files.
32177 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32181 tmp=./conf$$-$RANDOM
32182 (umask 077 && mkdir "$tmp")
32183 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32186 # Set up the scripts for CONFIG_FILES section.
32187 # No need to generate them if there are no CONFIG_FILES.
32188 # This happens for instance with `./config.status config.h'.
32189 if test -n "$CONFIG_FILES"; then
32191 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32192 ac_cs_awk_getline=:
32193 ac_cs_awk_pipe_init=
32194 ac_cs_awk_read_file='
32195 while ((getline aline < (F[key])) > 0)
32198 ac_cs_awk_pipe_fini=
32200 ac_cs_awk_getline=false
32201 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32202 ac_cs_awk_read_file='
32204 print "cat " F[key] " &&"
32205 '$ac_cs_awk_pipe_init
32206 # The final `:' finishes the AND list.
32207 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32209 ac_cr=`echo X | tr X '\015'`
32210 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32211 # But we know of no other shell where ac_cr would be empty at this
32212 # point, so we can use a bashism as a fallback.
32213 if test "x$ac_cr" = x; then
32214 eval ac_cr=\$\'\\r\'
32216 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32217 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32220 ac_cs_awk_cr=$ac_cr
32223 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32226 # Create commands to substitute file output variables.
32228 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32229 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32230 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32233 } >conf$$files.sh &&
32234 . ./conf$$files.sh ||
32235 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32236 rm -f conf$$files.sh
32239 echo "cat >conf$$subs.awk <<_ACEOF" &&
32240 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32242 } >conf$$subs.sh ||
32243 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32244 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32246 for ac_last_try in false false false false false :; do
32247 . ./conf$$subs.sh ||
32248 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32250 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32251 if test $ac_delim_n = $ac_delim_num; then
32253 elif $ac_last_try; then
32254 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32259 rm -f conf$$subs.sh
32261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32262 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32266 s/^/S["/; s/!.*/"]=/
32276 s/\(.\{148\}\)..*/\1/
32278 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32283 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32290 s/\(.\{148\}\)..*/\1/
32292 s/["\\]/\\&/g; s/^/"/; s/$/"/
32296 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32301 ' <conf$$subs.awk | sed '
32306 ' >>$CONFIG_STATUS || ac_write_fail=1
32307 rm -f conf$$subs.awk
32308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32310 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32311 for (key in S) S_is_set[key] = 1
32313 \$ac_cs_awk_pipe_init
32317 nfields = split(line, field, "@")
32319 len = length(field[1])
32320 for (i = 2; i < nfields; i++) {
32322 keylen = length(key)
32323 if (S_is_set[key]) {
32325 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32326 len += length(value) + length(field[++i])
32331 if (nfields == 3 && !substed) {
32333 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32334 \$ac_cs_awk_read_file
32340 \$ac_cs_awk_pipe_fini
32343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32344 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32345 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32348 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32349 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32352 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32353 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32354 # trailing colons and then remove the whole line if VPATH becomes empty
32355 # (actually we leave an empty line to preserve line numbers).
32356 if test "x$srcdir" = x.; then
32357 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32376 fi # test -n "$CONFIG_FILES"
32378 # Set up the scripts for CONFIG_HEADERS section.
32379 # No need to generate them if there are no CONFIG_HEADERS.
32380 # This happens for instance with `./config.status Makefile'.
32381 if test -n "$CONFIG_HEADERS"; then
32382 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32386 # Transform confdefs.h into an awk script `defines.awk', embedded as
32387 # here-document in config.status, that substitutes the proper values into
32388 # config.h.in to produce config.h.
32390 # Create a delimiter string that does not exist in confdefs.h, to ease
32391 # handling of long lines.
32393 for ac_last_try in false false :; do
32394 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32395 if test -z "$ac_tt"; then
32397 elif $ac_last_try; then
32398 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32404 # For the awk script, D is an array of macro values keyed by name,
32405 # likewise P contains macro parameters if any. Preserve backslash
32406 # newline sequences.
32408 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32410 s/.\{148\}/&'"$ac_delim"'/g
32413 s/^[ ]*#[ ]*define[ ][ ]*/ /
32420 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32422 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32426 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32427 D["\1"]=" \3\\\\\\n"\\/p
32429 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32434 s/.\{148\}/&'"$ac_delim"'/g
32439 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32442 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32444 ' <confdefs.h | sed '
32445 s/'"$ac_delim"'/"\\\
32446 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32449 for (key in D) D_is_set[key] = 1
32452 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32454 split(line, arg, " ")
32455 if (arg[1] == "#") {
32459 defundef = substr(arg[1], 2)
32462 split(mac1, mac2, "(") #)
32464 prefix = substr(line, 1, index(line, defundef) - 1)
32465 if (D_is_set[macro]) {
32466 # Preserve the white space surrounding the "#".
32467 print prefix "define", macro P[macro] D[macro]
32470 # Replace #undef with comments. This is necessary, for example,
32471 # in the case of _POSIX_SOURCE, which is predefined and required
32472 # on some systems where configure will not decide to define it.
32473 if (defundef == "undef") {
32474 print "/*", prefix defundef, macro, "*/"
32482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32483 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32484 fi # test -n "$CONFIG_HEADERS"
32487 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32492 :[FHLC]) ac_mode=$ac_tag; continue;;
32494 case $ac_mode$ac_tag in
32496 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32497 :[FH]-) ac_tag=-:-;;
32498 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32515 -) ac_f="$ac_tmp/stdin";;
32516 *) # Look for the file first in the build tree, then in the source tree
32517 # (if the path is not absolute). The absolute path cannot be DOS-style,
32518 # because $ac_f cannot contain `:'.
32522 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32524 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32526 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32527 as_fn_append ac_file_inputs " '$ac_f'"
32530 # Let's still pretend it is `configure' which instantiates (i.e., don't
32531 # use $as_me), people would be surprised to read:
32532 # /* config.h. Generated by config.status. */
32533 configure_input='Generated from '`
32534 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32536 if test x"$ac_file" != x-; then
32537 configure_input="$ac_file. $configure_input"
32538 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32539 $as_echo "$as_me: creating $ac_file" >&6;}
32541 # Neutralize special characters interpreted by sed in replacement strings.
32542 case $configure_input in #(
32543 *\&* | *\|* | *\\* )
32544 ac_sed_conf_input=`$as_echo "$configure_input" |
32545 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32546 *) ac_sed_conf_input=$configure_input;;
32550 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32551 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32556 ac_dir=`$as_dirname -- "$ac_file" ||
32557 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32558 X"$ac_file" : 'X\(//\)[^/]' \| \
32559 X"$ac_file" : 'X\(//\)$' \| \
32560 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32561 $as_echo X"$ac_file" |
32562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32566 /^X\(\/\/\)[^/].*/{
32579 as_dir="$ac_dir"; as_fn_mkdir_p
32583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32585 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32586 # A ".." for each directory in $ac_dir_suffix.
32587 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32588 case $ac_top_builddir_sub in
32589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32593 ac_abs_top_builddir=$ac_pwd
32594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32595 # for backward compatibility:
32596 ac_top_builddir=$ac_top_build_prefix
32599 .) # We are building in place.
32601 ac_top_srcdir=$ac_top_builddir_sub
32602 ac_abs_top_srcdir=$ac_pwd ;;
32603 [\\/]* | ?:[\\/]* ) # Absolute name.
32604 ac_srcdir=$srcdir$ac_dir_suffix;
32605 ac_top_srcdir=$srcdir
32606 ac_abs_top_srcdir=$srcdir ;;
32607 *) # Relative name.
32608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32609 ac_top_srcdir=$ac_top_build_prefix$srcdir
32610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32622 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32623 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32628 # If the template does not know about datarootdir, expand it.
32629 # FIXME: This hack should be removed a few years after 2.60.
32630 ac_datarootdir_hack=; ac_datarootdir_seen=
32641 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32642 *datarootdir*) ac_datarootdir_seen=yes;;
32643 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32645 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32648 ac_datarootdir_hack='
32649 s&@datadir@&$datadir&g
32650 s&@docdir@&$docdir&g
32651 s&@infodir@&$infodir&g
32652 s&@localedir@&$localedir&g
32653 s&@mandir@&$mandir&g
32654 s&\\\${datarootdir}&$datarootdir&g' ;;
32658 # Neutralize VPATH when `$srcdir' = `.'.
32659 # Shell code in configure.ac might set extrasub.
32660 # FIXME: do we really want to maintain this feature?
32661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32662 ac_sed_extra="$ac_vpsub
32665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32667 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32668 s|@configure_input@|$ac_sed_conf_input|;t t
32669 s&@top_builddir@&$ac_top_builddir_sub&;t t
32670 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32671 s&@srcdir@&$ac_srcdir&;t t
32672 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32673 s&@top_srcdir@&$ac_top_srcdir&;t t
32674 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32675 s&@builddir@&$ac_builddir&;t t
32676 s&@abs_builddir@&$ac_abs_builddir&;t t
32677 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32678 s&@INSTALL@&$ac_INSTALL&;t t
32679 $ac_datarootdir_hack
32681 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32682 if $ac_cs_awk_getline; then
32683 $AWK -f "$ac_tmp/subs.awk"
32685 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32687 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32689 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32690 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32691 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32692 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32694 which seems to be undefined. Please make sure it is defined" >&5
32695 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32696 which seems to be undefined. Please make sure it is defined" >&2;}
32698 rm -f "$ac_tmp/stdin"
32700 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32701 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32703 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32709 if test x"$ac_file" != x-; then
32711 $as_echo "/* $configure_input */" \
32712 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32713 } >"$ac_tmp/config.h" \
32714 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32715 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32716 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32717 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32720 mv "$ac_tmp/config.h" "$ac_file" \
32721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32724 $as_echo "/* $configure_input */" \
32725 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32726 || as_fn_error $? "could not create -" "$LINENO" 5
32730 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32731 $as_echo "$as_me: executing $ac_file commands" >&6;}
32736 case $ac_file$ac_mode in
32739 # See if we are running on zsh, and set the options which allow our
32740 # commands through without removal of \ escapes.
32741 if test -n "${ZSH_VERSION+set}" ; then
32742 setopt NO_GLOB_SUBST
32745 cfgfile="${ofile}T"
32746 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32749 cat <<_LT_EOF >> "$cfgfile"
32752 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32753 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32754 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32755 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32757 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32758 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32760 # Written by Gordon Matzigkeit, 1996
32762 # This file is part of GNU Libtool.
32764 # GNU Libtool is free software; you can redistribute it and/or
32765 # modify it under the terms of the GNU General Public License as
32766 # published by the Free Software Foundation; either version 2 of
32767 # the License, or (at your option) any later version.
32769 # As a special exception to the GNU General Public License,
32770 # if you distribute this file as part of a program or library that
32771 # is built using GNU Libtool, you may include this file under the
32772 # same distribution terms that you use for the rest of that program.
32774 # GNU Libtool is distributed in the hope that it will be useful,
32775 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32776 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32777 # GNU General Public License for more details.
32779 # You should have received a copy of the GNU General Public License
32780 # along with GNU Libtool; see the file COPYING. If not, a copy
32781 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32782 # obtained by writing to the Free Software Foundation, Inc.,
32783 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32786 # The names of the tagged configurations supported by this script.
32787 available_tags="CXX "
32789 # ### BEGIN LIBTOOL CONFIG
32791 # Which release of libtool.m4 was used?
32792 macro_version=$macro_version
32793 macro_revision=$macro_revision
32795 # Whether or not to build shared libraries.
32796 build_libtool_libs=$enable_shared
32798 # Whether or not to build static libraries.
32799 build_old_libs=$enable_static
32801 # What type of objects to build.
32804 # Whether or not to optimize for fast installation.
32805 fast_install=$enable_fast_install
32807 # Shell to use when invoking shell scripts.
32810 # An echo program that protects backslashes.
32813 # The PATH separator for the build system.
32814 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32817 host_alias=$host_alias
32821 # The build system.
32822 build_alias=$build_alias
32826 # A sed program that does not truncate output.
32829 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32830 Xsed="\$SED -e 1s/^X//"
32832 # A grep program that handles long lines.
32838 # A literal string matcher.
32841 # A BSD- or MS-compatible name lister.
32844 # Whether we need soft or hard links.
32847 # What is the maximum length of a command?
32848 max_cmd_len=$max_cmd_len
32850 # Object file suffix (normally "o").
32853 # Executable file suffix (normally "").
32856 # whether the shell understands "unset".
32859 # turn spaces into newlines.
32862 # turn newlines into spaces.
32865 # convert \$build file names to \$host format.
32866 to_host_file_cmd=$lt_cv_to_host_file_cmd
32868 # convert \$build files to toolchain format.
32869 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32871 # An object symbol dumper.
32872 OBJDUMP=$lt_OBJDUMP
32874 # Method to check whether dependent libraries are shared objects.
32875 deplibs_check_method=$lt_deplibs_check_method
32877 # Command to use when deplibs_check_method = "file_magic".
32878 file_magic_cmd=$lt_file_magic_cmd
32880 # How to find potential files when deplibs_check_method = "file_magic".
32881 file_magic_glob=$lt_file_magic_glob
32883 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32884 want_nocaseglob=$lt_want_nocaseglob
32886 # DLL creation program.
32887 DLLTOOL=$lt_DLLTOOL
32889 # Command to associate shared and link libraries.
32890 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32895 # Flags to create an archive.
32896 AR_FLAGS=$lt_AR_FLAGS
32898 # How to feed a file listing to the archiver.
32899 archiver_list_spec=$lt_archiver_list_spec
32901 # A symbol stripping program.
32904 # Commands used to install an old-style archive.
32906 old_postinstall_cmds=$lt_old_postinstall_cmds
32907 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32909 # Whether to use a lock for old archive extraction.
32910 lock_old_archive_extraction=$lock_old_archive_extraction
32915 # LTCC compiler flags.
32916 LTCFLAGS=$lt_CFLAGS
32918 # Take the output of nm and produce a listing of raw symbols and C names.
32919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32921 # Transform the output of nm in a proper C declaration.
32922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32924 # Transform the output of nm in a C name address pair.
32925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32927 # Transform the output of nm in a C name address pair when lib prefix is needed.
32928 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32930 # Specify filename containing input files for \$NM.
32931 nm_file_list_spec=$lt_nm_file_list_spec
32933 # The root where to search for dependent libraries,and in which our libraries should be installed.
32934 lt_sysroot=$lt_sysroot
32936 # The name of the directory that contains temporary libtool files.
32939 # Used to examine libraries when file_magic_cmd begins with "file".
32940 MAGIC_CMD=$MAGIC_CMD
32942 # Must we lock files when doing compilation?
32943 need_locks=$lt_need_locks
32946 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32948 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32949 DSYMUTIL=$lt_DSYMUTIL
32951 # Tool to change global to local symbols on Mac OS X.
32954 # Tool to manipulate fat objects and archives on Mac OS X.
32957 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32960 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32961 OTOOL64=$lt_OTOOL64
32963 # Old archive suffix (normally "a").
32966 # Shared library suffix (normally ".so").
32967 shrext_cmds=$lt_shrext_cmds
32969 # The commands to extract the exported symbol list from a shared archive.
32970 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32972 # Variables whose values should be saved in libtool wrapper scripts and
32973 # restored at link time.
32974 variables_saved_for_relink=$lt_variables_saved_for_relink
32976 # Do we need the "lib" prefix for modules?
32977 need_lib_prefix=$need_lib_prefix
32979 # Do we need a version for libraries?
32980 need_version=$need_version
32982 # Library versioning type.
32983 version_type=$version_type
32985 # Shared library runtime path variable.
32986 runpath_var=$runpath_var
32988 # Shared library path variable.
32989 shlibpath_var=$shlibpath_var
32991 # Is shlibpath searched before the hard-coded library search path?
32992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32994 # Format of library name prefix.
32995 libname_spec=$lt_libname_spec
32997 # List of archive names. First name is the real one, the rest are links.
32998 # The last name is the one that the linker finds with -lNAME
32999 library_names_spec=$lt_library_names_spec
33001 # The coded name of the library, if different from the real name.
33002 soname_spec=$lt_soname_spec
33004 # Permission mode override for installation of shared libraries.
33005 install_override_mode=$lt_install_override_mode
33007 # Command to use after installation of a shared archive.
33008 postinstall_cmds=$lt_postinstall_cmds
33010 # Command to use after uninstallation of a shared archive.
33011 postuninstall_cmds=$lt_postuninstall_cmds
33013 # Commands used to finish a libtool library installation in a directory.
33014 finish_cmds=$lt_finish_cmds
33016 # As "finish_cmds", except a single script fragment to be evaled but
33018 finish_eval=$lt_finish_eval
33020 # Whether we should hardcode library paths into libraries.
33021 hardcode_into_libs=$hardcode_into_libs
33023 # Compile-time system search path for libraries.
33024 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33026 # Run-time system search path for libraries.
33027 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33029 # Whether dlopen is supported.
33030 dlopen_support=$enable_dlopen
33032 # Whether dlopen of programs is supported.
33033 dlopen_self=$enable_dlopen_self
33035 # Whether dlopen of statically linked programs is supported.
33036 dlopen_self_static=$enable_dlopen_self_static
33038 # Commands to strip libraries.
33039 old_striplib=$lt_old_striplib
33040 striplib=$lt_striplib
33043 # The linker used to build libraries.
33046 # How to create reloadable object files.
33047 reload_flag=$lt_reload_flag
33048 reload_cmds=$lt_reload_cmds
33050 # Commands used to build an old-style archive.
33051 old_archive_cmds=$lt_old_archive_cmds
33053 # A language specific compiler.
33056 # Is the compiler the GNU compiler?
33059 # Compiler flag to turn off builtin functions.
33060 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33062 # Additional compiler flags for building library objects.
33063 pic_flag=$lt_lt_prog_compiler_pic
33065 # How to pass a linker flag through the compiler.
33066 wl=$lt_lt_prog_compiler_wl
33068 # Compiler flag to prevent dynamic linking.
33069 link_static_flag=$lt_lt_prog_compiler_static
33071 # Does compiler simultaneously support -c and -o options?
33072 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33074 # Whether or not to add -lc for building shared libraries.
33075 build_libtool_need_lc=$archive_cmds_need_lc
33077 # Whether or not to disallow shared libs when runtime libs are static.
33078 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33080 # Compiler flag to allow reflexive dlopens.
33081 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33083 # Compiler flag to generate shared objects directly from archives.
33084 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33086 # Whether the compiler copes with passing no objects directly.
33087 compiler_needs_object=$lt_compiler_needs_object
33089 # Create an old-style archive from a shared archive.
33090 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33092 # Create a temporary old-style archive to link instead of a shared archive.
33093 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33095 # Commands used to build a shared archive.
33096 archive_cmds=$lt_archive_cmds
33097 archive_expsym_cmds=$lt_archive_expsym_cmds
33099 # Commands used to build a loadable module if different from building
33100 # a shared archive.
33101 module_cmds=$lt_module_cmds
33102 module_expsym_cmds=$lt_module_expsym_cmds
33104 # Whether we are building with GNU ld or not.
33105 with_gnu_ld=$lt_with_gnu_ld
33107 # Flag that allows shared libraries with undefined symbols to be built.
33108 allow_undefined_flag=$lt_allow_undefined_flag
33110 # Flag that enforces no undefined symbols.
33111 no_undefined_flag=$lt_no_undefined_flag
33113 # Flag to hardcode \$libdir into a binary during linking.
33114 # This must work even if \$libdir does not exist
33115 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33117 # Whether we need a single "-rpath" flag with a separated argument.
33118 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33120 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33121 # DIR into the resulting binary.
33122 hardcode_direct=$hardcode_direct
33124 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33125 # DIR into the resulting binary and the resulting library dependency is
33126 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33127 # library is relocated.
33128 hardcode_direct_absolute=$hardcode_direct_absolute
33130 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33131 # into the resulting binary.
33132 hardcode_minus_L=$hardcode_minus_L
33134 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33135 # into the resulting binary.
33136 hardcode_shlibpath_var=$hardcode_shlibpath_var
33138 # Set to "yes" if building a shared library automatically hardcodes DIR
33139 # into the library and all subsequent libraries and executables linked
33141 hardcode_automatic=$hardcode_automatic
33143 # Set to yes if linker adds runtime paths of dependent libraries
33144 # to runtime path list.
33145 inherit_rpath=$inherit_rpath
33147 # Whether libtool must link a program against all its dependency libraries.
33148 link_all_deplibs=$link_all_deplibs
33150 # Set to "yes" if exported symbols are required.
33151 always_export_symbols=$always_export_symbols
33153 # The commands to list exported symbols.
33154 export_symbols_cmds=$lt_export_symbols_cmds
33156 # Symbols that should not be listed in the preloaded symbols.
33157 exclude_expsyms=$lt_exclude_expsyms
33159 # Symbols that must always be exported.
33160 include_expsyms=$lt_include_expsyms
33162 # Commands necessary for linking programs (against libraries) with templates.
33163 prelink_cmds=$lt_prelink_cmds
33165 # Commands necessary for finishing linking programs.
33166 postlink_cmds=$lt_postlink_cmds
33168 # Specify filename containing input files.
33169 file_list_spec=$lt_file_list_spec
33171 # How to hardcode a shared library path into an executable.
33172 hardcode_action=$hardcode_action
33174 # The directories searched by this compiler when creating a shared library.
33175 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33177 # Dependencies to place before and after the objects being linked to
33178 # create a shared library.
33179 predep_objects=$lt_predep_objects
33180 postdep_objects=$lt_postdep_objects
33181 predeps=$lt_predeps
33182 postdeps=$lt_postdeps
33184 # The library search path used internally by the compiler when linking
33185 # a shared library.
33186 compiler_lib_search_path=$lt_compiler_lib_search_path
33188 # ### END LIBTOOL CONFIG
33194 cat <<\_LT_EOF >> "$cfgfile"
33195 # AIX sometimes has problems with the GCC collect2 program. For some
33196 # reason, if we set the COLLECT_NAMES environment variable, the problems
33197 # vanish in a puff of smoke.
33198 if test "X${COLLECT_NAMES+set}" != Xset; then
33200 export COLLECT_NAMES
33207 ltmain="$ac_aux_dir/ltmain.sh"
33210 # We use sed instead of cat because bash on DJGPP gets confused if
33211 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33212 # text mode, it properly converts lines to CR/LF. This bash problem
33213 # is reportedly fixed, but why not run on old versions too?
33214 sed '$q' "$ltmain" >> "$cfgfile" \
33215 || (rm -f "$cfgfile"; exit 1)
33217 if test x"$xsi_shell" = xyes; then
33218 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33222 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33223 \ * ) func_dirname_result="${3}" ;;\
33225 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33226 && mv -f "$cfgfile.tmp" "$cfgfile" \
33227 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33228 test 0 -eq $? || _lt_function_replace_fail=:
33231 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33234 \ func_basename_result="${1##*/}"\
33235 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33236 && mv -f "$cfgfile.tmp" "$cfgfile" \
33237 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33238 test 0 -eq $? || _lt_function_replace_fail=:
33241 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33242 func_dirname_and_basename ()\
33245 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33246 \ * ) func_dirname_result="${3}" ;;\
33248 \ func_basename_result="${1##*/}"\
33249 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33250 && mv -f "$cfgfile.tmp" "$cfgfile" \
33251 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33252 test 0 -eq $? || _lt_function_replace_fail=:
33255 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33258 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33259 \ # positional parameters, so assign one to ordinary parameter first.\
33260 \ func_stripname_result=${3}\
33261 \ func_stripname_result=${func_stripname_result#"${1}"}\
33262 \ func_stripname_result=${func_stripname_result%"${2}"}\
33263 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33264 && mv -f "$cfgfile.tmp" "$cfgfile" \
33265 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33266 test 0 -eq $? || _lt_function_replace_fail=:
33269 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33270 func_split_long_opt ()\
33272 \ func_split_long_opt_name=${1%%=*}\
33273 \ func_split_long_opt_arg=${1#*=}\
33274 } # Extended-shell func_split_long_opt 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_split_short_opt ()$/,/^} # func_split_short_opt /c\
33281 func_split_short_opt ()\
33283 \ func_split_short_opt_arg=${1#??}\
33284 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33285 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33286 && mv -f "$cfgfile.tmp" "$cfgfile" \
33287 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33288 test 0 -eq $? || _lt_function_replace_fail=:
33291 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33295 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33296 \ *) func_lo2o_result=${1} ;;\
33298 } # Extended-shell func_lo2o implementation' "$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 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33307 func_xform_result=${1%.*}.lo\
33308 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33309 && mv -f "$cfgfile.tmp" "$cfgfile" \
33310 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33311 test 0 -eq $? || _lt_function_replace_fail=:
33314 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33317 func_arith_result=$(( $* ))\
33318 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33319 && mv -f "$cfgfile.tmp" "$cfgfile" \
33320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33321 test 0 -eq $? || _lt_function_replace_fail=:
33324 sed -e '/^func_len ()$/,/^} # func_len /c\
33327 func_len_result=${#1}\
33328 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33329 && mv -f "$cfgfile.tmp" "$cfgfile" \
33330 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33331 test 0 -eq $? || _lt_function_replace_fail=:
33335 if test x"$lt_shell_append" = xyes; then
33336 sed -e '/^func_append ()$/,/^} # func_append /c\
33339 eval "${1}+=\\${2}"\
33340 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33341 && mv -f "$cfgfile.tmp" "$cfgfile" \
33342 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33343 test 0 -eq $? || _lt_function_replace_fail=:
33346 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33347 func_append_quoted ()\
33349 \ func_quote_for_eval "${2}"\
33350 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33351 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33352 && mv -f "$cfgfile.tmp" "$cfgfile" \
33353 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33354 test 0 -eq $? || _lt_function_replace_fail=:
33357 # Save a `func_append' function call where possible by direct use of '+='
33358 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33359 && mv -f "$cfgfile.tmp" "$cfgfile" \
33360 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33361 test 0 -eq $? || _lt_function_replace_fail=:
33363 # Save a `func_append' function call even when '+=' is not available
33364 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33365 && mv -f "$cfgfile.tmp" "$cfgfile" \
33366 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33367 test 0 -eq $? || _lt_function_replace_fail=:
33370 if test x"$_lt_function_replace_fail" = x":"; then
33371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33372 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33376 mv -f "$cfgfile" "$ofile" ||
33377 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33381 cat <<_LT_EOF >> "$ofile"
33383 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33385 # The linker used to build libraries.
33388 # How to create reloadable object files.
33389 reload_flag=$lt_reload_flag_CXX
33390 reload_cmds=$lt_reload_cmds_CXX
33392 # Commands used to build an old-style archive.
33393 old_archive_cmds=$lt_old_archive_cmds_CXX
33395 # A language specific compiler.
33396 CC=$lt_compiler_CXX
33398 # Is the compiler the GNU compiler?
33401 # Compiler flag to turn off builtin functions.
33402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33404 # Additional compiler flags for building library objects.
33405 pic_flag=$lt_lt_prog_compiler_pic_CXX
33407 # How to pass a linker flag through the compiler.
33408 wl=$lt_lt_prog_compiler_wl_CXX
33410 # Compiler flag to prevent dynamic linking.
33411 link_static_flag=$lt_lt_prog_compiler_static_CXX
33413 # Does compiler simultaneously support -c and -o options?
33414 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33416 # Whether or not to add -lc for building shared libraries.
33417 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33419 # Whether or not to disallow shared libs when runtime libs are static.
33420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33422 # Compiler flag to allow reflexive dlopens.
33423 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33425 # Compiler flag to generate shared objects directly from archives.
33426 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33428 # Whether the compiler copes with passing no objects directly.
33429 compiler_needs_object=$lt_compiler_needs_object_CXX
33431 # Create an old-style archive from a shared archive.
33432 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33434 # Create a temporary old-style archive to link instead of a shared archive.
33435 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33437 # Commands used to build a shared archive.
33438 archive_cmds=$lt_archive_cmds_CXX
33439 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33441 # Commands used to build a loadable module if different from building
33442 # a shared archive.
33443 module_cmds=$lt_module_cmds_CXX
33444 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33446 # Whether we are building with GNU ld or not.
33447 with_gnu_ld=$lt_with_gnu_ld_CXX
33449 # Flag that allows shared libraries with undefined symbols to be built.
33450 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33452 # Flag that enforces no undefined symbols.
33453 no_undefined_flag=$lt_no_undefined_flag_CXX
33455 # Flag to hardcode \$libdir into a binary during linking.
33456 # This must work even if \$libdir does not exist
33457 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33459 # Whether we need a single "-rpath" flag with a separated argument.
33460 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33462 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33463 # DIR into the resulting binary.
33464 hardcode_direct=$hardcode_direct_CXX
33466 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33467 # DIR into the resulting binary and the resulting library dependency is
33468 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33469 # library is relocated.
33470 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33472 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33473 # into the resulting binary.
33474 hardcode_minus_L=$hardcode_minus_L_CXX
33476 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33477 # into the resulting binary.
33478 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33480 # Set to "yes" if building a shared library automatically hardcodes DIR
33481 # into the library and all subsequent libraries and executables linked
33483 hardcode_automatic=$hardcode_automatic_CXX
33485 # Set to yes if linker adds runtime paths of dependent libraries
33486 # to runtime path list.
33487 inherit_rpath=$inherit_rpath_CXX
33489 # Whether libtool must link a program against all its dependency libraries.
33490 link_all_deplibs=$link_all_deplibs_CXX
33492 # Set to "yes" if exported symbols are required.
33493 always_export_symbols=$always_export_symbols_CXX
33495 # The commands to list exported symbols.
33496 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33498 # Symbols that should not be listed in the preloaded symbols.
33499 exclude_expsyms=$lt_exclude_expsyms_CXX
33501 # Symbols that must always be exported.
33502 include_expsyms=$lt_include_expsyms_CXX
33504 # Commands necessary for linking programs (against libraries) with templates.
33505 prelink_cmds=$lt_prelink_cmds_CXX
33507 # Commands necessary for finishing linking programs.
33508 postlink_cmds=$lt_postlink_cmds_CXX
33510 # Specify filename containing input files.
33511 file_list_spec=$lt_file_list_spec_CXX
33513 # How to hardcode a shared library path into an executable.
33514 hardcode_action=$hardcode_action_CXX
33516 # The directories searched by this compiler when creating a shared library.
33517 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33519 # Dependencies to place before and after the objects being linked to
33520 # create a shared library.
33521 predep_objects=$lt_predep_objects_CXX
33522 postdep_objects=$lt_postdep_objects_CXX
33523 predeps=$lt_predeps_CXX
33524 postdeps=$lt_postdeps_CXX
33526 # The library search path used internally by the compiler when linking
33527 # a shared library.
33528 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33530 # ### END LIBTOOL TAG CONFIG: CXX
33535 for ac_file in $CONFIG_FILES; do
33536 # Support "outfile[:infile[:infile...]]"
33538 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33540 # PO directories have a Makefile.in generated from Makefile.in.in.
33541 case "$ac_file" in */Makefile.in)
33542 # Adjust a relative srcdir.
33543 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33544 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33545 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33546 # In autoconf-2.13 it is called $ac_given_srcdir.
33547 # In autoconf-2.50 it is called $srcdir.
33548 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33549 case "$ac_given_srcdir" in
33550 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33551 /*) top_srcdir="$ac_given_srcdir" ;;
33552 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33554 # Treat a directory as a PO directory if and only if it has a
33555 # POTFILES.in file. This allows packages to have multiple PO
33556 # directories under different names or in different locations.
33557 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33558 rm -f "$ac_dir/POTFILES"
33559 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33560 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33561 POMAKEFILEDEPS="POTFILES.in"
33562 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33563 # on $ac_dir but don't depend on user-specified configuration
33565 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33566 # The LINGUAS file contains the set of available languages.
33567 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33568 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33570 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33571 # Hide the ALL_LINGUAS assigment from automake.
33572 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33573 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33575 # The set of available languages was given in configure.in.
33576 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33579 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33580 # Compute UPDATEPOFILES
33581 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33582 # Compute DUMMYPOFILES
33583 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33585 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33586 case "$ac_given_srcdir" in
33588 *) srcdirpre='$(srcdir)/' ;;
33594 for lang in $ALL_LINGUAS; do
33595 POFILES="$POFILES $srcdirpre$lang.po"
33596 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33597 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33598 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33600 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33601 # environment variable.
33603 if test -n "$ALL_LINGUAS"; then
33604 for presentlang in $ALL_LINGUAS; do
33606 if test "%UNSET%" != "$LINGUAS"; then
33607 desiredlanguages="$LINGUAS"
33609 desiredlanguages="$ALL_LINGUAS"
33611 for desiredlang in $desiredlanguages; do
33612 # Use the presentlang catalog if desiredlang is
33613 # a. equal to presentlang, or
33614 # b. a variant of presentlang (because in this case,
33615 # presentlang can be used as a fallback for messages
33616 # which are not translated in the desiredlang catalog).
33617 case "$desiredlang" in
33618 "$presentlang"*) useit=yes;;
33621 if test $useit = yes; then
33622 INST_LINGUAS="$INST_LINGUAS $presentlang"
33627 if test -n "$INST_LINGUAS"; then
33628 for lang in $INST_LINGUAS; do
33629 CATALOGS="$CATALOGS $lang.gmo"
33632 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33633 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"
33634 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33635 if test -f "$f"; then
33637 *.orig | *.bak | *~) ;;
33638 *) cat "$f" >> "$ac_dir/Makefile" ;;
33655 ac_clean_files=$ac_clean_files_save
33657 test $ac_write_fail = 0 ||
33658 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33661 # configure is writing to config.log, and then calls config.status.
33662 # config.status does its own redirection, appending to config.log.
33663 # Unfortunately, on DOS this fails, as config.log is still kept open
33664 # by configure, so config.status won't be able to write to it; its
33665 # output is simply discarded. So we exec the FD to /dev/null,
33666 # effectively closing config.log, so it can be properly (re)opened and
33667 # appended to by config.status. When coming back to configure, we
33668 # need to make the FD available again.
33669 if test "$no_create" != yes; then
33671 ac_config_status_args=
33672 test "$silent" = yes &&
33673 ac_config_status_args="$ac_config_status_args --quiet"
33675 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33677 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33678 # would make configure fail if this is the last instruction.
33679 $ac_cs_success || as_fn_exit 1
33681 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33683 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33687 if test "${support_bat}" = "yes" ; then
33688 if test "x$QMAKE" = "xnone"; then
33689 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33693 echo "Creating bat Makefile"
33699 ${MAKE:-make} clean
33703 if test X"$GCC" = "Xyes" ; then
33704 echo "Doing make of dependencies"
33705 ${MAKE:-make} depend
33709 chmod 755 install_conf_file build-depkgs-qt-console
33713 chmod 755 bacula btraceback mtx-changer
33714 chmod 755 dvd-handler dvd-simulator
33715 chmod 755 bconsole disk-changer devel_bacula logrotate
33719 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33720 chmod 755 $c/update_postgresql_tables_10_to_11
33721 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33722 chmod 755 $c/update_postgresql_tables_11_to_12
33727 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33728 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33730 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33731 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33733 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33734 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33736 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33737 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33739 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33740 chmod 755 $c/sqlite
33743 chmod 755 $c/install-default-backend
33745 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33746 largefile_support="yes"
33749 if test X"$GCC" = "Xyes" ; then
33750 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33751 if test "x${CCVERSION}" = "x" ; then
33752 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33754 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33755 if test x"${CXXVERSION}" = x ; then
33756 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33760 # clean up any old junk
33764 ${MAKE:-make} clean
33767 Configuration on `date`:
33769 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33770 Bacula version: ${BACULA} ${VERSION} (${DATE})
33771 Source code location: ${srcdir}
33772 Install binaries: ${sbindir}
33773 Install libraries: ${libdir}
33774 Install config files: ${sysconfdir}
33775 Scripts directory: ${scriptdir}
33776 Archive directory: ${archivedir}
33777 Working directory: ${working_dir}
33778 PID directory: ${piddir}
33779 Subsys directory: ${subsysdir}
33780 Man directory: ${mandir}
33781 Data directory: ${datarootdir}
33782 Plugin directory: ${plugindir}
33783 C Compiler: ${CC} ${CCVERSION}
33784 C++ Compiler: ${CXX} ${CXXVERSION}
33785 Compiler flags: ${WCFLAGS} ${CFLAGS}
33786 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33788 Statically Linked Tools: ${support_static_tools}
33789 Statically Linked FD: ${support_static_fd}
33790 Statically Linked SD: ${support_static_sd}
33791 Statically Linked DIR: ${support_static_dir}
33792 Statically Linked CONS: ${support_static_cons}
33793 Database backends: ${db_backends}
33794 Database port: ${db_port}
33795 Database name: ${db_name}
33796 Database user: ${db_user}
33797 Database SSL options: ${db_ssl_options}
33799 Job Output Email: ${job_email}
33800 Traceback Email: ${dump_email}
33801 SMTP Host Address: ${smtp_host}
33803 Director Port: ${dir_port}
33804 File daemon Port: ${fd_port}
33805 Storage daemon Port: ${sd_port}
33807 Director User: ${dir_user}
33808 Director Group: ${dir_group}
33809 Storage Daemon User: ${sd_user}
33810 Storage DaemonGroup: ${sd_group}
33811 File Daemon User: ${fd_user}
33812 File Daemon Group: ${fd_group}
33814 Large file support: $largefile_support
33815 Bacula conio support: ${got_conio} ${CONS_LIBS}
33816 readline support: ${got_readline} ${PRTREADLINE_SRC}
33817 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33818 TLS support: ${support_tls}
33819 Encryption support: ${support_crypto}
33820 ZLIB support: ${have_zlib}
33821 LZO support: ${have_lzo}
33822 enable-smartalloc: ${support_smartalloc}
33823 enable-lockmgr: ${support_lockmgr}
33824 bat support: ${support_bat}
33825 client-only: ${build_client_only}
33826 build-dird: ${build_dird}
33827 build-stored: ${build_stored}
33828 Plugin support: ${have_plugins}
33829 AFS support: ${have_afs}
33830 ACL support: ${have_acl}
33831 XATTR support: ${have_xattr}
33832 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
33833 Batch insert enabled: ${batch_insert_db_backends}
33837 # create a small shell script useful for support with
33838 # configure options and config.out info
33839 cat > scripts/bacula_config << EOF
33842 $ $0 $ac_configure_args
33844 cat config.out >> scripts/bacula_config
33845 echo __EOC__ >> scripts/bacula_config
33846 chmod 755 scripts/bacula_config