2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 7.0.2.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
568 PACKAGE_NAME='bacula'
569 PACKAGE_TARNAME='bacula'
570 PACKAGE_VERSION='7.0.2'
571 PACKAGE_STRING='bacula 7.0.2'
575 ac_unique_file="src/version.h"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
613 ac_subst_vars='LTLIBOBJS
642 SHARED_CATALOG_TARGETS
712 INTL_LIBTOOL_SUFFIX_PREFIX
719 BUILD_INCLUDED_LIBINTL
750 HAVE_OPENBSD_OS_FALSE
754 HAVE_FREEBSD_OS_FALSE
768 INCLUDE_UNINSTALL_TARGET
769 INCLUDE_INSTALL_TARGET
773 LIBTOOL_UNINSTALL_TARGET
774 LIBTOOL_INSTALL_TARGET
775 DEFAULT_SHARED_OBJECT_TYPE
855 LIBBACFIND_LT_RELEASE
856 LIBBACCATS_LT_RELEASE
900 program_transform_name
911 ac_subst_files='MCOMMON'
913 enable_option_checking
927 with_included_gettext
962 with_mon_dir_password
991 ac_precious_vars='build_alias
1007 # Initialize some variables set by options.
1009 ac_init_version=false
1010 ac_unrecognized_opts=
1011 ac_unrecognized_sep=
1012 # The variables have the same names as the options, with
1013 # dashes changed to underlines.
1014 cache_file=/dev/null
1021 program_transform_name=s,x,x,
1029 # Installation directory options.
1030 # These are left unexpanded so users can "make install exec_prefix=/foo"
1031 # and all the variables that are supposed to be based on exec_prefix
1032 # by default will actually change.
1033 # Use braces instead of parens because sh, perl, etc. also accept them.
1034 # (The list follows the same order as the GNU Coding Standards.)
1035 bindir='${exec_prefix}/bin'
1036 sbindir='${exec_prefix}/sbin'
1037 libexecdir='${exec_prefix}/libexec'
1038 datarootdir='${prefix}/share'
1039 datadir='${datarootdir}'
1040 sysconfdir='${prefix}/etc'
1041 sharedstatedir='${prefix}/com'
1042 localstatedir='${prefix}/var'
1043 includedir='${prefix}/include'
1044 oldincludedir='/usr/include'
1045 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1046 infodir='${datarootdir}/info'
1051 libdir='${exec_prefix}/lib'
1052 localedir='${datarootdir}/locale'
1053 mandir='${datarootdir}/man'
1059 # If the previous option needs an argument, assign it.
1060 if test -n "$ac_prev"; then
1061 eval $ac_prev=\$ac_option
1067 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1072 # Accept the important Cygnus configure options, so we can diagnose typos.
1074 case $ac_dashdash$ac_option in
1078 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1080 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1081 bindir=$ac_optarg ;;
1083 -build | --build | --buil | --bui | --bu)
1084 ac_prev=build_alias ;;
1085 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1086 build_alias=$ac_optarg ;;
1088 -cache-file | --cache-file | --cache-fil | --cache-fi \
1089 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1090 ac_prev=cache_file ;;
1091 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1092 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1093 cache_file=$ac_optarg ;;
1095 --config-cache | -C)
1096 cache_file=config.cache ;;
1098 -datadir | --datadir | --datadi | --datad)
1100 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1101 datadir=$ac_optarg ;;
1103 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1104 | --dataroo | --dataro | --datar)
1105 ac_prev=datarootdir ;;
1106 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1107 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1108 datarootdir=$ac_optarg ;;
1110 -disable-* | --disable-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid feature name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1119 "enable_$ac_useropt"
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1124 eval enable_$ac_useropt=no ;;
1126 -docdir | --docdir | --docdi | --doc | --do)
1128 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1129 docdir=$ac_optarg ;;
1131 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1133 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1134 dvidir=$ac_optarg ;;
1136 -enable-* | --enable-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid feature name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1145 "enable_$ac_useropt"
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1150 eval enable_$ac_useropt=\$ac_optarg ;;
1152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1154 | --exec | --exe | --ex)
1155 ac_prev=exec_prefix ;;
1156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1158 | --exec=* | --exe=* | --ex=*)
1159 exec_prefix=$ac_optarg ;;
1161 -gas | --gas | --ga | --g)
1162 # Obsolete; use --with-gas.
1165 -help | --help | --hel | --he | -h)
1166 ac_init_help=long ;;
1167 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1168 ac_init_help=recursive ;;
1169 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1170 ac_init_help=short ;;
1172 -host | --host | --hos | --ho)
1173 ac_prev=host_alias ;;
1174 -host=* | --host=* | --hos=* | --ho=*)
1175 host_alias=$ac_optarg ;;
1177 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1179 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1181 htmldir=$ac_optarg ;;
1183 -includedir | --includedir | --includedi | --included | --include \
1184 | --includ | --inclu | --incl | --inc)
1185 ac_prev=includedir ;;
1186 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1187 | --includ=* | --inclu=* | --incl=* | --inc=*)
1188 includedir=$ac_optarg ;;
1190 -infodir | --infodir | --infodi | --infod | --info | --inf)
1192 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1193 infodir=$ac_optarg ;;
1195 -libdir | --libdir | --libdi | --libd)
1197 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1198 libdir=$ac_optarg ;;
1200 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1201 | --libexe | --libex | --libe)
1202 ac_prev=libexecdir ;;
1203 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1204 | --libexe=* | --libex=* | --libe=*)
1205 libexecdir=$ac_optarg ;;
1207 -localedir | --localedir | --localedi | --localed | --locale)
1208 ac_prev=localedir ;;
1209 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1210 localedir=$ac_optarg ;;
1212 -localstatedir | --localstatedir | --localstatedi | --localstated \
1213 | --localstate | --localstat | --localsta | --localst | --locals)
1214 ac_prev=localstatedir ;;
1215 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1216 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1217 localstatedir=$ac_optarg ;;
1219 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1221 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1222 mandir=$ac_optarg ;;
1224 -nfp | --nfp | --nf)
1225 # Obsolete; use --without-fp.
1228 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1229 | --no-cr | --no-c | -n)
1232 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1233 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1236 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1237 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1238 | --oldin | --oldi | --old | --ol | --o)
1239 ac_prev=oldincludedir ;;
1240 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1241 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1242 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1243 oldincludedir=$ac_optarg ;;
1245 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1247 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1248 prefix=$ac_optarg ;;
1250 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1251 | --program-pre | --program-pr | --program-p)
1252 ac_prev=program_prefix ;;
1253 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1254 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1255 program_prefix=$ac_optarg ;;
1257 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1258 | --program-suf | --program-su | --program-s)
1259 ac_prev=program_suffix ;;
1260 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1261 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1262 program_suffix=$ac_optarg ;;
1264 -program-transform-name | --program-transform-name \
1265 | --program-transform-nam | --program-transform-na \
1266 | --program-transform-n | --program-transform- \
1267 | --program-transform | --program-transfor \
1268 | --program-transfo | --program-transf \
1269 | --program-trans | --program-tran \
1270 | --progr-tra | --program-tr | --program-t)
1271 ac_prev=program_transform_name ;;
1272 -program-transform-name=* | --program-transform-name=* \
1273 | --program-transform-nam=* | --program-transform-na=* \
1274 | --program-transform-n=* | --program-transform-=* \
1275 | --program-transform=* | --program-transfor=* \
1276 | --program-transfo=* | --program-transf=* \
1277 | --program-trans=* | --program-tran=* \
1278 | --progr-tra=* | --program-tr=* | --program-t=*)
1279 program_transform_name=$ac_optarg ;;
1281 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1283 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1284 pdfdir=$ac_optarg ;;
1286 -psdir | --psdir | --psdi | --psd | --ps)
1288 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1292 | -silent | --silent | --silen | --sile | --sil)
1295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1299 sbindir=$ac_optarg ;;
1301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1303 | --sharedst | --shareds | --shared | --share | --shar \
1305 ac_prev=sharedstatedir ;;
1306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1310 sharedstatedir=$ac_optarg ;;
1312 -site | --site | --sit)
1314 -site=* | --site=* | --sit=*)
1317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1320 srcdir=$ac_optarg ;;
1322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1323 | --syscon | --sysco | --sysc | --sys | --sy)
1324 ac_prev=sysconfdir ;;
1325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1327 sysconfdir=$ac_optarg ;;
1329 -target | --target | --targe | --targ | --tar | --ta | --t)
1330 ac_prev=target_alias ;;
1331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1332 target_alias=$ac_optarg ;;
1334 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1337 -version | --version | --versio | --versi | --vers | -V)
1338 ac_init_version=: ;;
1341 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1342 # Reject names that are not valid shell variable names.
1343 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1344 as_fn_error $? "invalid package name: $ac_useropt"
1345 ac_useropt_orig=$ac_useropt
1346 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347 case $ac_user_opts in
1351 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1352 ac_unrecognized_sep=', ';;
1354 eval with_$ac_useropt=\$ac_optarg ;;
1356 -without-* | --without-*)
1357 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360 as_fn_error $? "invalid package name: $ac_useropt"
1361 ac_useropt_orig=$ac_useropt
1362 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1363 case $ac_user_opts in
1367 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1368 ac_unrecognized_sep=', ';;
1370 eval with_$ac_useropt=no ;;
1373 # Obsolete; use --with-x.
1376 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1377 | --x-incl | --x-inc | --x-in | --x-i)
1378 ac_prev=x_includes ;;
1379 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1380 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1381 x_includes=$ac_optarg ;;
1383 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1384 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1385 ac_prev=x_libraries ;;
1386 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1387 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1388 x_libraries=$ac_optarg ;;
1390 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1391 Try \`$0 --help' for more information"
1395 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1396 # Reject names that are not valid shell variable names.
1397 case $ac_envvar in #(
1398 '' | [0-9]* | *[!_$as_cr_alnum]* )
1399 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1401 eval $ac_envvar=\$ac_optarg
1402 export $ac_envvar ;;
1405 # FIXME: should be removed in autoconf 3.0.
1406 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1407 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1408 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1409 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1415 if test -n "$ac_prev"; then
1416 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1417 as_fn_error $? "missing argument to $ac_option"
1420 if test -n "$ac_unrecognized_opts"; then
1421 case $enable_option_checking in
1423 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1424 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1428 # Check all directory arguments for consistency.
1429 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1430 datadir sysconfdir sharedstatedir localstatedir includedir \
1431 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1432 libdir localedir mandir
1434 eval ac_val=\$$ac_var
1435 # Remove trailing slashes.
1438 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1439 eval $ac_var=\$ac_val;;
1441 # Be sure to have absolute directory names.
1443 [\\/$]* | ?:[\\/]* ) continue;;
1444 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1446 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1449 # There might be people who depend on the old broken behavior: `$host'
1450 # used to hold the argument of --host etc.
1451 # FIXME: To remove some day.
1454 target=$target_alias
1456 # FIXME: To remove some day.
1457 if test "x$host_alias" != x; then
1458 if test "x$build_alias" = x; then
1459 cross_compiling=maybe
1460 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1461 If a cross compiler is detected then cross compile mode will be used" >&2
1462 elif test "x$build_alias" != "x$host_alias"; then
1468 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1470 test "$silent" = yes && exec 6>/dev/null
1473 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1474 ac_ls_di=`ls -di .` &&
1475 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1476 as_fn_error $? "working directory cannot be determined"
1477 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1478 as_fn_error $? "pwd does not report name of working directory"
1481 # Find the source files, if location was not specified.
1482 if test -z "$srcdir"; then
1483 ac_srcdir_defaulted=yes
1484 # Try the directory containing this script, then the parent directory.
1485 ac_confdir=`$as_dirname -- "$as_myself" ||
1486 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1487 X"$as_myself" : 'X\(//\)[^/]' \| \
1488 X"$as_myself" : 'X\(//\)$' \| \
1489 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1490 $as_echo X"$as_myself" |
1491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1509 if test ! -r "$srcdir/$ac_unique_file"; then
1513 ac_srcdir_defaulted=no
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1516 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1517 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1519 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1521 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1523 # When building in place, set srcdir=.
1524 if test "$ac_abs_confdir" = "$ac_pwd"; then
1527 # Remove unnecessary trailing slashes from srcdir.
1528 # Double slashes in file names in object file debugging info
1529 # mess up M-x gdb in Emacs.
1531 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1533 for ac_var in $ac_precious_vars; do
1534 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1535 eval ac_env_${ac_var}_value=\$${ac_var}
1536 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1537 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1541 # Report the --help message.
1543 if test "$ac_init_help" = "long"; then
1544 # Omit some internal or obsolete options to make the list less imposing.
1545 # This message is too long to be a string in the A/UX 3.1 sh.
1547 \`configure' configures bacula 7.0.2 to adapt to many kinds of systems.
1549 Usage: $0 [OPTION]... [VAR=VALUE]...
1551 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1552 VAR=VALUE. See below for descriptions of some of the useful variables.
1554 Defaults for the options are specified in brackets.
1557 -h, --help display this help and exit
1558 --help=short display options specific to this package
1559 --help=recursive display the short help of all the included packages
1560 -V, --version display version information and exit
1561 -q, --quiet, --silent do not print \`checking ...' messages
1562 --cache-file=FILE cache test results in FILE [disabled]
1563 -C, --config-cache alias for \`--cache-file=config.cache'
1564 -n, --no-create do not create output files
1565 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1567 Installation directories:
1568 --prefix=PREFIX install architecture-independent files in PREFIX
1569 [$ac_default_prefix]
1570 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1573 By default, \`make install' will install all the files in
1574 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1575 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1576 for instance \`--prefix=\$HOME'.
1578 For better control, use the options below.
1580 Fine tuning of the installation directories:
1581 --bindir=DIR user executables [EPREFIX/bin]
1582 --sbindir=DIR system admin executables [EPREFIX/sbin]
1583 --libexecdir=DIR program executables [EPREFIX/libexec]
1584 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1585 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1586 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1587 --libdir=DIR object code libraries [EPREFIX/lib]
1588 --includedir=DIR C header files [PREFIX/include]
1589 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1590 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1591 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1592 --infodir=DIR info documentation [DATAROOTDIR/info]
1593 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1594 --mandir=DIR man documentation [DATAROOTDIR/man]
1595 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1596 --htmldir=DIR html documentation [DOCDIR]
1597 --dvidir=DIR dvi documentation [DOCDIR]
1598 --pdfdir=DIR pdf documentation [DOCDIR]
1599 --psdir=DIR ps documentation [DOCDIR]
1605 --x-includes=DIR X include files are in DIR
1606 --x-libraries=DIR X library files are in DIR
1609 --build=BUILD configure for building on BUILD [guessed]
1610 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1614 if test -n "$ac_init_help"; then
1615 case $ac_init_help in
1616 short | recursive ) echo "Configuration of bacula 7.0.2:";;
1621 --disable-option-checking ignore unrecognized --enable/--with options
1622 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1623 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1624 --enable-libtool enable building using GNU libtool [default=yes]
1625 --enable-shared[=PKGS] build shared libraries [default=yes]
1626 --enable-static[=PKGS] build static libraries [default=no]
1627 --enable-fast-install[=PKGS]
1628 optimize for fast installation [default=yes]
1629 --disable-libtool-lock avoid locking (might break parallel builds)
1630 --enable-includes enable installing of include files [default=no]
1631 --disable-nls do not use Native Language Support
1632 --disable-rpath do not hardcode runtime library paths
1633 --enable-bat enable build of bat Qt4 GUI [default=no]
1634 --enable-smartalloc enable smartalloc debugging support [default=no]
1635 --enable-lockmgr enable lock manager support [default=no]
1636 --enable-static-tools enable static tape tools [default=no]
1637 --enable-static-fd enable static File daemon [default=no]
1638 --enable-static-sd enable static Storage daemon [default=no]
1639 --enable-static-dir enable static Director [default=no]
1640 --enable-static-cons enable static Console [default=no]
1641 --enable-client-only build client (File daemon) only [default=no]
1642 --enable-build-dird enable building of dird (Director) [default=yes]
1643 --enable-build-stored enable building of stored (Storage daemon)
1645 --disable-conio disable conio support [default=no]
1646 --enable-ipv6 enable ipv6 support [default=yes]
1647 --disable-readline disable readline support [default=yes]
1648 --enable-batch-insert enable the DB batch insert code [default=yes]
1649 --disable-largefile omit support for large files
1650 --disable-afs disable afs support [default=auto]
1651 --disable-lzo disable lzo support [default=yes]
1652 --disable-acl disable acl support [default=auto]
1653 --disable-xattr disable xattr support [default=auto]
1656 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1657 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1658 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1660 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1661 --with-sysroot=DIR Search for dependent libraries within DIR
1662 (or the compiler's sysroot if not specified).
1663 --with-gnu-ld assume the C compiler uses GNU ld default=no
1664 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1665 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1666 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1667 --without-libintl-prefix don't search for libintl in includedir and libdir
1668 --with-included-gettext use the GNU gettext library included here
1669 --with-readline[=DIR] specify readline library directory
1670 --with-tcp-wrappers[=DIR]
1671 enable tcpwrappers support
1672 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1673 --with-working-dir=PATH specify path of Bacula working directory
1674 --with-archivedir=PATH specify path of SD archive directory
1675 --with-basename=RESNAME specify base resource name for daemons
1676 --with-hostname=RESNAME specify host name for daemons
1677 --with-scriptdir=PATH specify path of Bacula scripts directory
1678 --with-bsrdir=PATH specify path of Bacula bsrs directory
1679 --with-logdir=PATH specify path of Bacula logs directory
1680 --with-plugindir=PATH specify path of Bacula plugins directory
1681 --with-dump-email=EMAIL dump email address
1682 --with-job-email=EMAIL job output email address
1683 --with-smtp-host=HOST SMTP mail host address
1684 --with-pid-dir=PATH specify location of Bacula pid files
1685 --with-subsys-dir=PATH specify location of Bacula subsys file
1686 --with-baseport=PORT specify base port address for daemons
1687 --with-dir-password=PASSWORD
1688 specify Director's password
1689 --with-fd-password=PASSWORD
1690 specify Client's password
1691 --with-sd-password=PASSWORD
1692 specify Storage daemon's password
1693 --with-mon-dir-password=PASSWORD
1694 specify Director's password used by the monitor
1695 --with-mon-fd-password=PASSWORD
1696 specify Client's password used by the monitor
1697 --with-mon-sd-password=PASSWORD
1698 specify Storage daemon's password used by the
1700 --with-db-name=DBNAME specify database name [default=bacula]
1701 --with-db-user=UNAME specify database user [default=bacula]
1702 --with-db-password=PWD specify database password [default=*none*]
1703 --with-db-port=DBPORT specify a database port [default=null]
1704 --with-dir-user=USER specify user for Director daemon
1705 --with-dir-group=GROUP specify group for Director daemon
1706 --with-sd-user=USER specify user for Storage daemon
1707 --with-sd-group=GROUP specify group for Storage daemon
1708 --with-fd-user=USER specify user for File daemon
1709 --with-fd-group=GROUP specify group for File daemon
1710 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1711 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1712 base install directory, [default=/usr/local/pgsql]
1713 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1714 directory, default is to search through a number of
1715 common places for the MySQL files.
1716 --with-embedded-mysql[=DIR]
1717 Include MySQL support. DIR is the MySQL base install
1718 directory, default is to search through a number of
1719 common places for the MySQL files.
1720 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1721 install directory, default is to search through a
1722 number of common places for the SQLite3 files.
1723 --with-x use the X Window System
1724 --with-afsdir[=DIR] Directory holding AFS includes/libs
1725 --with-lzo[=DIR] specify lzo library directory
1726 --with-systemd[=UNITDIR]
1727 Include systemd support. UNITDIR is where systemd
1728 system .service files are located, default is to ask
1731 Some influential environment variables:
1732 CC C compiler command
1733 CFLAGS C compiler flags
1734 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1735 nonstandard directory <lib dir>
1736 LIBS libraries to pass to the linker, e.g. -l<library>
1737 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1738 you have headers in a nonstandard directory <include dir>
1739 CXX C++ compiler command
1740 CXXFLAGS C++ compiler flags
1742 CXXCPP C++ preprocessor
1743 XMKMF Path to xmkmf, Makefile generator for X Window System
1745 Use these variables to override the choices made by `configure' or to help
1746 it to find libraries and programs with nonstandard names/locations.
1748 Report bugs to the package provider.
1753 if test "$ac_init_help" = "recursive"; then
1754 # If there are subdirs, report their specific --help.
1755 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1756 test -d "$ac_dir" ||
1757 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1762 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1764 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1765 # A ".." for each directory in $ac_dir_suffix.
1766 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1767 case $ac_top_builddir_sub in
1768 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1769 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1772 ac_abs_top_builddir=$ac_pwd
1773 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1774 # for backward compatibility:
1775 ac_top_builddir=$ac_top_build_prefix
1778 .) # We are building in place.
1780 ac_top_srcdir=$ac_top_builddir_sub
1781 ac_abs_top_srcdir=$ac_pwd ;;
1782 [\\/]* | ?:[\\/]* ) # Absolute name.
1783 ac_srcdir=$srcdir$ac_dir_suffix;
1784 ac_top_srcdir=$srcdir
1785 ac_abs_top_srcdir=$srcdir ;;
1787 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1788 ac_top_srcdir=$ac_top_build_prefix$srcdir
1789 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1791 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1793 cd "$ac_dir" || { ac_status=$?; continue; }
1794 # Check for guested configure.
1795 if test -f "$ac_srcdir/configure.gnu"; then
1797 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1798 elif test -f "$ac_srcdir/configure"; then
1800 $SHELL "$ac_srcdir/configure" --help=recursive
1802 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1804 cd "$ac_pwd" || { ac_status=$?; break; }
1808 test -n "$ac_init_help" && exit $ac_status
1809 if $ac_init_version; then
1811 bacula configure 7.0.2
1812 generated by GNU Autoconf 2.68
1814 Copyright (C) 2010 Free Software Foundation, Inc.
1815 This configure script is free software; the Free Software Foundation
1816 gives unlimited permission to copy, distribute and modify it.
1821 ## ------------------------ ##
1822 ## Autoconf initialization. ##
1823 ## ------------------------ ##
1825 # ac_fn_c_try_compile LINENO
1826 # --------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_c_try_compile ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext
1832 if { { ac_try="$ac_compile"
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_compile") 2>conftest.err
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_c_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest.$ac_objext; then :
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1861 } # ac_fn_c_try_compile
1863 # ac_fn_cxx_try_compile LINENO
1864 # ----------------------------
1865 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_cxx_try_compile ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext
1870 if { { ac_try="$ac_compile"
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_compile") 2>conftest.err
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_cxx_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest.$ac_objext; then :
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1899 } # ac_fn_cxx_try_compile
1901 # ac_fn_c_try_cpp LINENO
1902 # ----------------------
1903 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if { { ac_try="$ac_cpp conftest.$ac_ext"
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } > conftest.i && {
1923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1924 test ! -s conftest.err
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1938 # ac_fn_c_try_link LINENO
1939 # -----------------------
1940 # Try to link conftest.$ac_ext, and return whether this succeeded.
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 rm -f conftest.$ac_objext conftest$ac_exeext
1945 if { { ac_try="$ac_link"
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_link") 2>conftest.err
1954 if test -s conftest.err; then
1955 grep -v '^ *+' conftest.err >conftest.er1
1956 cat conftest.er1 >&5
1957 mv -f conftest.er1 conftest.err
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && {
1961 test -z "$ac_c_werror_flag" ||
1962 test ! -s conftest.err
1963 } && test -s conftest$ac_exeext && {
1964 test "$cross_compiling" = yes ||
1965 $as_test_x conftest$ac_exeext
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1974 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1975 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1976 # interfere with the next link command; also delete a directory that is
1977 # left behind by Apple's compiler. We do this before executing the actions.
1978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980 as_fn_set_status $ac_retval
1982 } # ac_fn_c_try_link
1984 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1985 # -------------------------------------------------------
1986 # Tests whether HEADER exists and can be compiled using the include files in
1987 # INCLUDES, setting the cache variable VAR accordingly.
1988 ac_fn_c_check_header_compile ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994 $as_echo_n "(cached) " >&6
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2001 if ac_fn_c_try_compile "$LINENO"; then :
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 } # ac_fn_c_check_header_compile
2015 # ac_fn_c_try_run LINENO
2016 # ----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2018 # that executables *can* be run.
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 if { { ac_try="$ac_link"
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>&5
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2033 { { case "(($ac_try" in
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_try") 2>&5
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; }; }; then :
2045 $as_echo "$as_me: program exited with status $ac_status" >&5
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2049 ac_retval=$ac_status
2051 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 as_fn_set_status $ac_retval
2057 # ac_fn_c_check_func LINENO FUNC VAR
2058 # ----------------------------------
2059 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2060 ac_fn_c_check_func ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if eval \${$3+:} false; then :
2066 $as_echo_n "(cached) " >&6
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2070 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2072 #define $2 innocuous_$2
2074 /* System header to define __stub macros and hopefully few prototypes,
2075 which can conflict with char $2 (); below.
2076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2077 <limits.h> exists even on freestanding compilers. */
2080 # include <limits.h>
2082 # include <assert.h>
2087 /* Override any GCC internal prototype to avoid an error.
2088 Use char because int might match the return type of a GCC
2089 builtin and then its argument prototype would still apply. */
2094 /* The GNU C library defines this for functions which it implements
2095 to always fail with ENOSYS. Some functions are actually named
2096 something starting with __ and the normal name is an alias. */
2097 #if defined __stub_$2 || defined __stub___$2
2109 if ac_fn_c_try_link "$LINENO"; then :
2114 rm -f core conftest.err conftest.$ac_objext \
2115 conftest$ac_exeext conftest.$ac_ext
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119 $as_echo "$ac_res" >&6; }
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122 } # ac_fn_c_check_func
2124 # ac_fn_cxx_try_cpp LINENO
2125 # ------------------------
2126 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2127 ac_fn_cxx_try_cpp ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 if { { ac_try="$ac_cpp conftest.$ac_ext"
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136 $as_echo "$ac_try_echo"; } >&5
2137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2139 if test -s conftest.err; then
2140 grep -v '^ *+' conftest.err >conftest.er1
2141 cat conftest.er1 >&5
2142 mv -f conftest.er1 conftest.err
2144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145 test $ac_status = 0; } > conftest.i && {
2146 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2147 test ! -s conftest.err
2151 $as_echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157 as_fn_set_status $ac_retval
2159 } # ac_fn_cxx_try_cpp
2161 # ac_fn_cxx_try_link LINENO
2162 # -------------------------
2163 # Try to link conftest.$ac_ext, and return whether this succeeded.
2164 ac_fn_cxx_try_link ()
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 rm -f conftest.$ac_objext conftest$ac_exeext
2168 if { { ac_try="$ac_link"
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_link") 2>conftest.err
2177 if test -s conftest.err; then
2178 grep -v '^ *+' conftest.err >conftest.er1
2179 cat conftest.er1 >&5
2180 mv -f conftest.er1 conftest.err
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183 test $ac_status = 0; } && {
2184 test -z "$ac_cxx_werror_flag" ||
2185 test ! -s conftest.err
2186 } && test -s conftest$ac_exeext && {
2187 test "$cross_compiling" = yes ||
2188 $as_test_x conftest$ac_exeext
2192 $as_echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2197 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2198 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2199 # interfere with the next link command; also delete a directory that is
2200 # left behind by Apple's compiler. We do this before executing the actions.
2201 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203 as_fn_set_status $ac_retval
2205 } # ac_fn_cxx_try_link
2207 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2208 # ---------------------------------------------
2209 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2211 ac_fn_c_check_decl ()
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214 as_decl_name=`echo $2|sed 's/ *(.*//'`
2215 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2217 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2218 if eval \${$3+:} false; then :
2219 $as_echo_n "(cached) " >&6
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2227 #ifndef $as_decl_name
2229 (void) $as_decl_use;
2231 (void) $as_decl_name;
2239 if ac_fn_c_try_compile "$LINENO"; then :
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251 } # ac_fn_c_check_decl
2253 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2254 # -------------------------------------------
2255 # Tests whether TYPE exists after having included INCLUDES, setting cache
2256 # variable VAR accordingly.
2257 ac_fn_c_check_type ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if eval \${$3+:} false; then :
2263 $as_echo_n "(cached) " >&6
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2291 if ac_fn_c_try_compile "$LINENO"; then :
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305 } # ac_fn_c_check_type
2307 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2308 # -------------------------------------------------------
2309 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2310 # the include files in INCLUDES and setting the cache variable VAR
2312 ac_fn_c_check_header_mongrel ()
2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315 if eval \${$3+:} false; then :
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317 $as_echo_n "checking for $2... " >&6; }
2318 if eval \${$3+:} false; then :
2319 $as_echo_n "(cached) " >&6
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2323 $as_echo "$ac_res" >&6; }
2325 # Is the header compilable?
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2327 $as_echo_n "checking $2 usability... " >&6; }
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2333 if ac_fn_c_try_compile "$LINENO"; then :
2334 ac_header_compiler=yes
2336 ac_header_compiler=no
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2340 $as_echo "$ac_header_compiler" >&6; }
2342 # Is the header present?
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2344 $as_echo_n "checking $2 presence... " >&6; }
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2349 if ac_fn_c_try_cpp "$LINENO"; then :
2350 ac_header_preproc=yes
2352 ac_header_preproc=no
2354 rm -f conftest.err conftest.i conftest.$ac_ext
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2356 $as_echo "$ac_header_preproc" >&6; }
2358 # So? What about this header?
2359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2362 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2364 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2368 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2370 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2372 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2374 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2376 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2380 $as_echo_n "checking for $2... " >&6; }
2381 if eval \${$3+:} false; then :
2382 $as_echo_n "(cached) " >&6
2384 eval "$3=\$ac_header_compiler"
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2392 } # ac_fn_c_check_header_mongrel
2394 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2395 # --------------------------------------------
2396 # Tries to find the compile-time value of EXPR in a program that includes
2397 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2399 ac_fn_c_compute_int ()
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 if test "$cross_compiling" = yes; then
2403 # Depending upon the size, compute the lo and hi bounds.
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2410 static int test_array [1 - 2 * !(($2) >= 0)];
2417 if ac_fn_c_try_compile "$LINENO"; then :
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2426 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2433 if ac_fn_c_try_compile "$LINENO"; then :
2434 ac_hi=$ac_mid; break
2436 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2437 if test $ac_lo -le $ac_mid; then
2441 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h. */
2452 static int test_array [1 - 2 * !(($2) < 0)];
2459 if ac_fn_c_try_compile "$LINENO"; then :
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h. */
2468 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2475 if ac_fn_c_try_compile "$LINENO"; then :
2476 ac_lo=$ac_mid; break
2478 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2479 if test $ac_mid -le $ac_hi; then
2483 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 # Binary search between lo and hi bounds.
2494 while test "x$ac_lo" != "x$ac_hi"; do
2495 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2502 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2509 if ac_fn_c_try_compile "$LINENO"; then :
2512 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h. */
2524 static long int longval () { return $2; }
2525 static unsigned long int ulongval () { return $2; }
2532 FILE *f = fopen ("conftest.val", "w");
2537 long int i = longval ();
2540 fprintf (f, "%ld", i);
2544 unsigned long int i = ulongval ();
2547 fprintf (f, "%lu", i);
2549 /* Do not output a trailing newline, as this causes \r\n confusion
2550 on some platforms. */
2551 return ferror (f) || fclose (f) != 0;
2557 if ac_fn_c_try_run "$LINENO"; then :
2558 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2563 conftest.$ac_objext conftest.beam conftest.$ac_ext
2567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2568 as_fn_set_status $ac_retval
2570 } # ac_fn_c_compute_int
2572 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2573 # ----------------------------------------------------
2574 # Tries to find if the field MEMBER exists in type AGGR, after including
2575 # INCLUDES, setting cache variable VAR accordingly.
2576 ac_fn_c_check_member ()
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2580 $as_echo_n "checking for $2.$3... " >&6; }
2581 if eval \${$4+:} false; then :
2582 $as_echo_n "(cached) " >&6
2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2597 if ac_fn_c_try_compile "$LINENO"; then :
2600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2601 /* end confdefs.h. */
2607 if (sizeof ac_aggr.$3)
2613 if ac_fn_c_try_compile "$LINENO"; then :
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2624 $as_echo "$ac_res" >&6; }
2625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2627 } # ac_fn_c_check_member
2629 # ac_fn_cxx_try_run LINENO
2630 # ------------------------
2631 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2632 # that executables *can* be run.
2633 ac_fn_cxx_try_run ()
2635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2636 if { { ac_try="$ac_link"
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2642 $as_echo "$ac_try_echo"; } >&5
2643 (eval "$ac_link") 2>&5
2645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2646 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2647 { { case "(($ac_try" in
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2652 $as_echo "$ac_try_echo"; } >&5
2653 (eval "$ac_try") 2>&5
2655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2656 test $ac_status = 0; }; }; then :
2659 $as_echo "$as_me: program exited with status $ac_status" >&5
2660 $as_echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2663 ac_retval=$ac_status
2665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2667 as_fn_set_status $ac_retval
2669 } # ac_fn_cxx_try_run
2671 # ac_fn_cxx_check_func LINENO FUNC VAR
2672 # ------------------------------------
2673 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2674 ac_fn_cxx_check_func ()
2676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2678 $as_echo_n "checking for $2... " >&6; }
2679 if eval \${$3+:} false; then :
2680 $as_echo_n "(cached) " >&6
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2684 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2686 #define $2 innocuous_$2
2688 /* System header to define __stub macros and hopefully few prototypes,
2689 which can conflict with char $2 (); below.
2690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2691 <limits.h> exists even on freestanding compilers. */
2694 # include <limits.h>
2696 # include <assert.h>
2701 /* Override any GCC internal prototype to avoid an error.
2702 Use char because int might match the return type of a GCC
2703 builtin and then its argument prototype would still apply. */
2708 /* The GNU C library defines this for functions which it implements
2709 to always fail with ENOSYS. Some functions are actually named
2710 something starting with __ and the normal name is an alias. */
2711 #if defined __stub_$2 || defined __stub___$2
2723 if ac_fn_cxx_try_link "$LINENO"; then :
2728 rm -f core conftest.err conftest.$ac_objext \
2729 conftest$ac_exeext conftest.$ac_ext
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2733 $as_echo "$ac_res" >&6; }
2734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2736 } # ac_fn_cxx_check_func
2737 cat >config.log <<_ACEOF
2738 This file contains any messages produced by compilers while
2739 running configure, to aid debugging if configure makes a mistake.
2741 It was created by bacula $as_me 7.0.2, which was
2742 generated by GNU Autoconf 2.68. Invocation command line was
2754 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2755 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2756 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2757 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2758 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2760 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2761 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2763 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2764 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2765 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2766 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2767 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2768 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2769 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 test -z "$as_dir" && as_dir=.
2778 $as_echo "PATH: $as_dir"
2794 # Keep a trace of the command line.
2795 # Strip out --no-create and --no-recursion so they do not pile up.
2796 # Strip out --silent because we don't want to record it for future runs.
2797 # Also quote any args containing shell meta-characters.
2798 # Make two passes to allow for proper duplicate-argument suppression.
2802 ac_must_keep_next=false
2808 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2809 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2810 | -silent | --silent | --silen | --sile | --sil)
2813 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2816 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2818 as_fn_append ac_configure_args1 " '$ac_arg'"
2819 if test $ac_must_keep_next = true; then
2820 ac_must_keep_next=false # Got value, back to normal.
2823 *=* | --config-cache | -C | -disable-* | --disable-* \
2824 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2825 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2826 | -with-* | --with-* | -without-* | --without-* | --x)
2827 case "$ac_configure_args0 " in
2828 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2831 -* ) ac_must_keep_next=true ;;
2834 as_fn_append ac_configure_args " '$ac_arg'"
2839 { ac_configure_args0=; unset ac_configure_args0;}
2840 { ac_configure_args1=; unset ac_configure_args1;}
2842 # When interrupted or exit'd, cleanup temporary files, and complete
2843 # config.log. We remove comments because anyway the quotes in there
2844 # would cause problems or look ugly.
2845 # WARNING: Use '\'' to represent an apostrophe within the trap.
2846 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2847 trap 'exit_status=$?
2848 # Save into config.log some information that might help in debugging.
2852 $as_echo "## ---------------- ##
2853 ## Cache variables. ##
2854 ## ---------------- ##"
2856 # The following way of writing the cache mishandles newlines in values,
2858 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2859 eval ac_val=\$$ac_var
2863 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2864 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2867 _ | IFS | as_nl) ;; #(
2868 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2869 *) { eval $ac_var=; unset $ac_var;} ;;
2874 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2875 *${as_nl}ac_space=\ *)
2877 "s/'\''/'\''\\\\'\'''\''/g;
2878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2888 $as_echo "## ----------------- ##
2889 ## Output variables. ##
2890 ## ----------------- ##"
2892 for ac_var in $ac_subst_vars
2894 eval ac_val=\$$ac_var
2896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2898 $as_echo "$ac_var='\''$ac_val'\''"
2902 if test -n "$ac_subst_files"; then
2903 $as_echo "## ------------------- ##
2904 ## File substitutions. ##
2905 ## ------------------- ##"
2907 for ac_var in $ac_subst_files
2909 eval ac_val=\$$ac_var
2911 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2913 $as_echo "$ac_var='\''$ac_val'\''"
2918 if test -s confdefs.h; then
2919 $as_echo "## ----------- ##
2926 test "$ac_signal" != 0 &&
2927 $as_echo "$as_me: caught signal $ac_signal"
2928 $as_echo "$as_me: exit $exit_status"
2930 rm -f core *.core core.conftest.* &&
2931 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2934 for ac_signal in 1 2 13 15; do
2935 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2939 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2940 rm -f -r conftest* confdefs.h
2942 $as_echo "/* confdefs.h */" > confdefs.h
2944 # Predefined preprocessor variables.
2946 cat >>confdefs.h <<_ACEOF
2947 #define PACKAGE_NAME "$PACKAGE_NAME"
2950 cat >>confdefs.h <<_ACEOF
2951 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2954 cat >>confdefs.h <<_ACEOF
2955 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2958 cat >>confdefs.h <<_ACEOF
2959 #define PACKAGE_STRING "$PACKAGE_STRING"
2962 cat >>confdefs.h <<_ACEOF
2963 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2966 cat >>confdefs.h <<_ACEOF
2967 #define PACKAGE_URL "$PACKAGE_URL"
2971 # Let the site file select an alternate cache file if it wants to.
2972 # Prefer an explicitly selected file to automatically selected ones.
2975 if test -n "$CONFIG_SITE"; then
2976 # We do not want a PATH search for config.site.
2977 case $CONFIG_SITE in #((
2978 -*) ac_site_file1=./$CONFIG_SITE;;
2979 */*) ac_site_file1=$CONFIG_SITE;;
2980 *) ac_site_file1=./$CONFIG_SITE;;
2982 elif test "x$prefix" != xNONE; then
2983 ac_site_file1=$prefix/share/config.site
2984 ac_site_file2=$prefix/etc/config.site
2986 ac_site_file1=$ac_default_prefix/share/config.site
2987 ac_site_file2=$ac_default_prefix/etc/config.site
2989 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2991 test "x$ac_site_file" = xNONE && continue
2992 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2994 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2995 sed 's/^/| /' "$ac_site_file" >&5
2997 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999 as_fn_error $? "failed to load site script $ac_site_file
3000 See \`config.log' for more details" "$LINENO" 5; }
3004 if test -r "$cache_file"; then
3005 # Some versions of bash will fail to source /dev/null (special files
3006 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3007 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3009 $as_echo "$as_me: loading cache $cache_file" >&6;}
3011 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3012 *) . "./$cache_file";;
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3017 $as_echo "$as_me: creating cache $cache_file" >&6;}
3021 as_fn_append ac_header_list " stdlib.h"
3022 as_fn_append ac_header_list " unistd.h"
3023 as_fn_append ac_header_list " sys/param.h"
3024 # Check that the precious variables saved in the cache have kept the same
3026 ac_cache_corrupted=false
3027 for ac_var in $ac_precious_vars; do
3028 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3029 eval ac_new_set=\$ac_env_${ac_var}_set
3030 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3031 eval ac_new_val=\$ac_env_${ac_var}_value
3032 case $ac_old_set,$ac_new_set in
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3035 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3036 ac_cache_corrupted=: ;;
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3039 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3040 ac_cache_corrupted=: ;;
3043 if test "x$ac_old_val" != "x$ac_new_val"; then
3044 # differences in whitespace do not lead to failure.
3045 ac_old_val_w=`echo x $ac_old_val`
3046 ac_new_val_w=`echo x $ac_new_val`
3047 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3049 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3050 ac_cache_corrupted=:
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3053 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3054 eval $ac_var=\$ac_old_val
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3057 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3059 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3062 # Pass precious variables to config.status.
3063 if test "$ac_new_set" = set; then
3065 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3066 *) ac_arg=$ac_var=$ac_new_val ;;
3068 case " $ac_configure_args " in
3069 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3070 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3074 if $ac_cache_corrupted; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3078 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3079 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3081 ## -------------------- ##
3082 ## Main body of script. ##
3083 ## -------------------- ##
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3102 if test -f "$ac_dir/install-sh"; then
3104 ac_install_sh="$ac_aux_dir/install-sh -c"
3106 elif test -f "$ac_dir/install.sh"; then
3108 ac_install_sh="$ac_aux_dir/install.sh -c"
3110 elif test -f "$ac_dir/shtool"; then
3112 ac_install_sh="$ac_aux_dir/shtool install -c"
3116 if test -z "$ac_aux_dir"; then
3117 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3120 # These three variables are undocumented and unsupported,
3121 # and are intended to be withdrawn in a future Autoconf release.
3122 # They can cause serious problems if a builder's source tree is in a directory
3123 # whose full name contains unusual characters.
3124 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3125 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3126 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3129 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3134 # Extract the first word of "$ac_prog", so it can be a program name with args.
3135 set dummy $ac_prog; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_path_TRUEPRG+:} false; then :
3139 $as_echo_n "(cached) " >&6
3143 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 TRUEPRG=$ac_cv_path_TRUEPRG
3165 if test -n "$TRUEPRG"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3167 $as_echo "$TRUEPRG" >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3174 test -n "$TRUEPRG" && break
3176 test -n "$TRUEPRG" || TRUEPRG=":"
3178 for ac_prog in false
3180 # Extract the first word of "$ac_prog", so it can be a program name with args.
3181 set dummy $ac_prog; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_path_FALSEPRG+:} false; then :
3185 $as_echo_n "(cached) " >&6
3189 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 FALSEPRG=$ac_cv_path_FALSEPRG
3211 if test -n "$FALSEPRG"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3213 $as_echo "$FALSEPRG" >&6; }
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3220 test -n "$FALSEPRG" && break
3222 test -n "$FALSEPRG" || FALSEPRG=":"
3227 if test "x$BACULA" != x; then
3228 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3230 BACULA=${BACULA:-Bacula}
3231 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3232 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3233 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3234 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3235 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3236 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3237 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3238 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3240 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3241 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3243 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3244 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3247 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3248 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3250 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3251 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3254 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3256 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3259 echo "configuring for ${BACULA} $VERSION ($DATE)"
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 if test -n "$ac_tool_prefix"; then
3269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_CC+:} false; then :
3274 $as_echo_n "(cached) " >&6
3276 if test -n "$CC"; then
3277 ac_cv_prog_CC="$CC" # Let the user override the test.
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 if test -n "$CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299 $as_echo "$CC" >&6; }
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3307 if test -z "$ac_cv_prog_CC"; then
3309 # Extract the first word of "gcc", so it can be a program name with args.
3310 set dummy gcc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3314 $as_echo_n "(cached) " >&6
3316 if test -n "$ac_ct_CC"; then
3317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326 ac_cv_prog_ac_ct_CC="gcc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337 if test -n "$ac_ct_CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3339 $as_echo "$ac_ct_CC" >&6; }
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3345 if test "x$ac_ct_CC" = x; then
3348 case $cross_compiling:$ac_tool_warned in
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3352 ac_tool_warned=yes ;;
3360 if test -z "$CC"; then
3361 if test -n "$ac_tool_prefix"; then
3362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3363 set dummy ${ac_tool_prefix}cc; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if ${ac_cv_prog_CC+:} false; then :
3367 $as_echo_n "(cached) " >&6
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 ac_cv_prog_CC="${ac_tool_prefix}cc"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 if test -n "$CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 $as_echo "$CC" >&6; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3401 if test -z "$CC"; then
3402 # Extract the first word of "cc", so it can be a program name with args.
3403 set dummy cc; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_CC+:} false; then :
3407 $as_echo_n "(cached) " >&6
3409 if test -n "$CC"; then
3410 ac_cv_prog_CC="$CC" # Let the user override the test.
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3421 ac_prog_rejected=yes
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 if test $ac_prog_rejected = yes; then
3433 # We found a bogon in the path, so make sure we never use it.
3434 set dummy $ac_cv_prog_CC
3436 if test $# != 0; then
3437 # We chose a different compiler from the bogus one.
3438 # However, it has the same basename, so the bogon will be chosen
3439 # first if we set CC to just the basename; use the full file name.
3441 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3447 if test -n "$CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449 $as_echo "$CC" >&6; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3457 if test -z "$CC"; then
3458 if test -n "$ac_tool_prefix"; then
3459 for ac_prog in cl.exe
3461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if ${ac_cv_prog_CC+:} false; then :
3466 $as_echo_n "(cached) " >&6
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 if test -n "$CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3498 test -n "$CC" && break
3501 if test -z "$CC"; then
3503 for ac_prog in cl.exe
3505 # Extract the first word of "$ac_prog", so it can be a program name with args.
3506 set dummy $ac_prog; ac_word=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3510 $as_echo_n "(cached) " >&6
3512 if test -n "$ac_ct_CC"; then
3513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3522 ac_cv_prog_ac_ct_CC="$ac_prog"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3533 if test -n "$ac_ct_CC"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3535 $as_echo "$ac_ct_CC" >&6; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3542 test -n "$ac_ct_CC" && break
3545 if test "x$ac_ct_CC" = x; then
3548 case $cross_compiling:$ac_tool_warned in
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3552 ac_tool_warned=yes ;;
3561 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error $? "no acceptable C compiler found in \$PATH
3564 See \`config.log' for more details" "$LINENO" 5; }
3566 # Provide some information about the compiler.
3567 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3570 for ac_option in --version -v -V -qversion; do
3571 { { ac_try="$ac_compiler $ac_option >&5"
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3580 if test -s conftest.err; then
3582 ... rest of stderr output deleted ...
3583 10q' conftest.err >conftest.er1
3584 cat conftest.er1 >&5
3586 rm -f conftest.er1 conftest.err
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3602 ac_clean_files_save=$ac_clean_files
3603 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3604 # Try to create an executable without -o first, disregard a.out.
3605 # It will help us diagnose broken compilers, and finding out an intuition
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3608 $as_echo_n "checking whether the C compiler works... " >&6; }
3609 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3611 # The possible output files:
3612 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3615 for ac_file in $ac_files
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3619 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3624 if { { ac_try="$ac_link_default"
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 $as_echo "$ac_try_echo"; } >&5
3631 (eval "$ac_link_default") 2>&5
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; then :
3635 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3636 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3637 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3638 # so that the user can short-circuit this test for compilers unknown to
3640 for ac_file in $ac_files ''
3642 test -f "$ac_file" || continue
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3647 # We found the default executable, but exeext='' is most
3651 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3653 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3655 # We set ac_cv_exeext here because the later test for it is not
3656 # safe: cross compilers may not add the suffix if given an `-o'
3657 # argument, so we may need to know it at that point already.
3658 # Even if this section looks crufty: it has the advantage of
3665 test "$ac_cv_exeext" = no && ac_cv_exeext=
3670 if test -z "$ac_file"; then :
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error 77 "C compiler cannot create executables
3679 See \`config.log' for more details" "$LINENO" 5; }
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3682 $as_echo "yes" >&6; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3685 $as_echo_n "checking for C compiler default output file name... " >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3687 $as_echo "$ac_file" >&6; }
3688 ac_exeext=$ac_cv_exeext
3690 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3691 ac_clean_files=$ac_clean_files_save
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3693 $as_echo_n "checking for suffix of executables... " >&6; }
3694 if { { ac_try="$ac_link"
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701 (eval "$ac_link") 2>&5
3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704 test $ac_status = 0; }; then :
3705 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3706 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3707 # work properly (i.e., refer to `conftest.exe'), while it won't with
3709 for ac_file in conftest.exe conftest conftest.*; do
3710 test -f "$ac_file" || continue
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3713 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3722 See \`config.log' for more details" "$LINENO" 5; }
3724 rm -f conftest conftest$ac_cv_exeext
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3726 $as_echo "$ac_cv_exeext" >&6; }
3728 rm -f conftest.$ac_ext
3729 EXEEXT=$ac_cv_exeext
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3737 FILE *f = fopen ("conftest.out", "w");
3738 return ferror (f) || fclose (f) != 0;
3744 ac_clean_files="$ac_clean_files conftest.out"
3745 # Check that the compiler produces executables we can run. If not, either
3746 # the compiler is broken, or we cross compile.
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3748 $as_echo_n "checking whether we are cross compiling... " >&6; }
3749 if test "$cross_compiling" != yes; then
3750 { { ac_try="$ac_link"
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757 (eval "$ac_link") 2>&5
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }
3761 if { ac_try='./conftest$ac_cv_exeext'
3762 { { case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_try") 2>&5
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }; }; then
3774 if test "$cross_compiling" = maybe; then
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "cannot run C compiled programs.
3780 If you meant to cross compile, use \`--host'.
3781 See \`config.log' for more details" "$LINENO" 5; }
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3786 $as_echo "$cross_compiling" >&6; }
3788 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3789 ac_clean_files=$ac_clean_files_save
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3791 $as_echo_n "checking for suffix of object files... " >&6; }
3792 if ${ac_cv_objext+:} false; then :
3793 $as_echo_n "(cached) " >&6
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3806 rm -f conftest.o conftest.obj
3807 if { { ac_try="$ac_compile"
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814 (eval "$ac_compile") 2>&5
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }; then :
3818 for ac_file in conftest.o conftest.obj conftest.*; do
3819 test -f "$ac_file" || continue;
3821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3822 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3827 $as_echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832 as_fn_error $? "cannot compute suffix of object files: cannot compile
3833 See \`config.log' for more details" "$LINENO" 5; }
3835 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3838 $as_echo "$ac_cv_objext" >&6; }
3839 OBJEXT=$ac_cv_objext
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3842 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3843 if ${ac_cv_c_compiler_gnu+:} false; then :
3844 $as_echo_n "(cached) " >&6
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3860 if ac_fn_c_try_compile "$LINENO"; then :
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3870 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3871 if test $ac_compiler_gnu = yes; then
3876 ac_test_CFLAGS=${CFLAGS+set}
3877 ac_save_CFLAGS=$CFLAGS
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3879 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3880 if ${ac_cv_prog_cc_g+:} false; then :
3881 $as_echo_n "(cached) " >&6
3883 ac_save_c_werror_flag=$ac_c_werror_flag
3884 ac_c_werror_flag=yes
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3898 if ac_fn_c_try_compile "$LINENO"; then :
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3913 if ac_fn_c_try_compile "$LINENO"; then :
3916 ac_c_werror_flag=$ac_save_c_werror_flag
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3929 if ac_fn_c_try_compile "$LINENO"; then :
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937 ac_c_werror_flag=$ac_save_c_werror_flag
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3940 $as_echo "$ac_cv_prog_cc_g" >&6; }
3941 if test "$ac_test_CFLAGS" = set; then
3942 CFLAGS=$ac_save_CFLAGS
3943 elif test $ac_cv_prog_cc_g = yes; then
3944 if test "$GCC" = yes; then
3950 if test "$GCC" = yes; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3957 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3958 if ${ac_cv_prog_cc_c89+:} false; then :
3959 $as_echo_n "(cached) " >&6
3961 ac_cv_prog_cc_c89=no
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3967 #include <sys/types.h>
3968 #include <sys/stat.h>
3969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3970 struct buf { int x; };
3971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3972 static char *e (p, i)
3978 static char *f (char * (*g) (char **, int), char **p, ...)
3983 s = g (p, va_arg (v,int));
3988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3989 function prototypes and stuff, but not '\xHH' hex character constants.
3990 These don't provoke an error unfortunately, instead are silently treated
3991 as 'x'. The following induces an error, until -std is added to get
3992 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3993 array size at least. It's necessary to write '\x00'==0 to get something
3994 that's true only with -std. */
3995 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3997 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3998 inside strings and character constants. */
4000 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4002 int test (int i, double x);
4003 struct s1 {int (*f) (int a);};
4004 struct s2 {int (*f) (double a);};
4005 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4011 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4016 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4017 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4019 CC="$ac_save_CC $ac_arg"
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021 ac_cv_prog_cc_c89=$ac_arg
4023 rm -f core conftest.err conftest.$ac_objext
4024 test "x$ac_cv_prog_cc_c89" != "xno" && break
4026 rm -f conftest.$ac_ext
4031 case "x$ac_cv_prog_cc_c89" in
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4034 $as_echo "none needed" >&6; } ;;
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4037 $as_echo "unsupported" >&6; } ;;
4039 CC="$CC $ac_cv_prog_cc_c89"
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4041 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4043 if test "x$ac_cv_prog_cc_c89" != xno; then :
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4054 ac_cpp='$CXXCPP $CPPFLAGS'
4055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4058 if test -z "$CXX"; then
4059 if test -n "$CCC"; then
4062 if test -n "$ac_tool_prefix"; then
4063 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068 $as_echo_n "checking for $ac_word... " >&6; }
4069 if ${ac_cv_prog_CXX+:} false; then :
4070 $as_echo_n "(cached) " >&6
4072 if test -n "$CXX"; then
4073 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4082 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4093 if test -n "$CXX"; then
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4095 $as_echo "$CXX" >&6; }
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4102 test -n "$CXX" && break
4105 if test -z "$CXX"; then
4107 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4109 # Extract the first word of "$ac_prog", so it can be a program name with args.
4110 set dummy $ac_prog; ac_word=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4114 $as_echo_n "(cached) " >&6
4116 if test -n "$ac_ct_CXX"; then
4117 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126 ac_cv_prog_ac_ct_CXX="$ac_prog"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4137 if test -n "$ac_ct_CXX"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4139 $as_echo "$ac_ct_CXX" >&6; }
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4146 test -n "$ac_ct_CXX" && break
4149 if test "x$ac_ct_CXX" = x; then
4152 case $cross_compiling:$ac_tool_warned in
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4156 ac_tool_warned=yes ;;
4164 # Provide some information about the compiler.
4165 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4168 for ac_option in --version -v -V -qversion; do
4169 { { ac_try="$ac_compiler $ac_option >&5"
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175 $as_echo "$ac_try_echo"; } >&5
4176 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4178 if test -s conftest.err; then
4180 ... rest of stderr output deleted ...
4181 10q' conftest.err >conftest.er1
4182 cat conftest.er1 >&5
4184 rm -f conftest.er1 conftest.err
4185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186 test $ac_status = 0; }
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4190 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4191 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4192 $as_echo_n "(cached) " >&6
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4208 if ac_fn_cxx_try_compile "$LINENO"; then :
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4218 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4219 if test $ac_compiler_gnu = yes; then
4224 ac_test_CXXFLAGS=${CXXFLAGS+set}
4225 ac_save_CXXFLAGS=$CXXFLAGS
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4227 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4228 if ${ac_cv_prog_cxx_g+:} false; then :
4229 $as_echo_n "(cached) " >&6
4231 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4232 ac_cxx_werror_flag=yes
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4246 if ac_fn_cxx_try_compile "$LINENO"; then :
4247 ac_cv_prog_cxx_g=yes
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4261 if ac_fn_cxx_try_compile "$LINENO"; then :
4264 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4277 if ac_fn_cxx_try_compile "$LINENO"; then :
4278 ac_cv_prog_cxx_g=yes
4280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4288 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4289 if test "$ac_test_CXXFLAGS" = set; then
4290 CXXFLAGS=$ac_save_CXXFLAGS
4291 elif test $ac_cv_prog_cxx_g = yes; then
4292 if test "$GXX" = yes; then
4298 if test "$GXX" = yes; then
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310 if test "x$CC" != xcc; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4312 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4315 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4317 set dummy $CC; ac_cc=`$as_echo "$2" |
4318 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4319 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4320 $as_echo_n "(cached) " >&6
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4333 # Make sure it works both with $CC and with simple cc.
4334 # We do the test twice because some compilers refuse to overwrite an
4335 # existing .o file with -o, though they will create one.
4336 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4338 if { { case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343 $as_echo "$ac_try_echo"; } >&5
4344 (eval "$ac_try") 2>&5
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; } &&
4348 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 $as_echo "$ac_try_echo"; } >&5
4354 (eval "$ac_try") 2>&5
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; };
4359 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4360 if test "x$CC" != xcc; then
4361 # Test first that cc exists at all.
4362 if { ac_try='cc -c conftest.$ac_ext >&5'
4363 { { case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368 $as_echo "$ac_try_echo"; } >&5
4369 (eval "$ac_try") 2>&5
4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }; }; then
4373 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4375 if { { case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380 $as_echo "$ac_try_echo"; } >&5
4381 (eval "$ac_try") 2>&5
4383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4384 test $ac_status = 0; } &&
4385 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390 $as_echo "$ac_try_echo"; } >&5
4391 (eval "$ac_try") 2>&5
4393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394 test $ac_status = 0; };
4399 # cc exists but doesn't like -o.
4400 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4405 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4407 rm -f core conftest*
4410 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4412 $as_echo "yes" >&6; }
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4417 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4422 ac_cpp='$CPP $CPPFLAGS'
4423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4427 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4428 # On Suns, sometimes $CPP names a directory.
4429 if test -n "$CPP" && test -d "$CPP"; then
4432 if test -z "$CPP"; then
4433 if ${ac_cv_prog_CPP+:} false; then :
4434 $as_echo_n "(cached) " >&6
4436 # Double quotes because CPP needs to be expanded
4437 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4440 for ac_c_preproc_warn_flag in '' yes
4442 # Use a header file that comes with gcc, so configuring glibc
4443 # with a fresh cross-compiler works.
4444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4445 # <limits.h> exists even on freestanding compilers.
4446 # On the NeXT, cc -E runs the code through the compiler's parser,
4447 # not just through cpp. "Syntax error" is here to catch this case.
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4451 # include <limits.h>
4453 # include <assert.h>
4457 if ac_fn_c_try_cpp "$LINENO"; then :
4460 # Broken: fails on valid input.
4463 rm -f conftest.err conftest.i conftest.$ac_ext
4465 # OK, works on sane cases. Now check whether nonexistent headers
4466 # can be detected and how.
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4469 #include <ac_nonexistent.h>
4471 if ac_fn_c_try_cpp "$LINENO"; then :
4472 # Broken: success on invalid input.
4475 # Passes both tests.
4479 rm -f conftest.err conftest.i conftest.$ac_ext
4482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4483 rm -f conftest.i conftest.err conftest.$ac_ext
4484 if $ac_preproc_ok; then :
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4497 $as_echo "$CPP" >&6; }
4499 for ac_c_preproc_warn_flag in '' yes
4501 # Use a header file that comes with gcc, so configuring glibc
4502 # with a fresh cross-compiler works.
4503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4504 # <limits.h> exists even on freestanding compilers.
4505 # On the NeXT, cc -E runs the code through the compiler's parser,
4506 # not just through cpp. "Syntax error" is here to catch this case.
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4510 # include <limits.h>
4512 # include <assert.h>
4516 if ac_fn_c_try_cpp "$LINENO"; then :
4519 # Broken: fails on valid input.
4522 rm -f conftest.err conftest.i conftest.$ac_ext
4524 # OK, works on sane cases. Now check whether nonexistent headers
4525 # can be detected and how.
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4528 #include <ac_nonexistent.h>
4530 if ac_fn_c_try_cpp "$LINENO"; then :
4531 # Broken: success on invalid input.
4534 # Passes both tests.
4538 rm -f conftest.err conftest.i conftest.$ac_ext
4541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4542 rm -f conftest.i conftest.err conftest.$ac_ext
4543 if $ac_preproc_ok; then :
4546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4548 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4549 See \`config.log' for more details" "$LINENO" 5; }
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4560 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4561 if ${ac_cv_path_GREP+:} false; then :
4562 $as_echo_n "(cached) " >&6
4564 if test -z "$GREP"; then
4565 ac_path_GREP_found=false
4566 # Loop through the user's path and test for each of PROGNAME-LIST
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4571 test -z "$as_dir" && as_dir=.
4572 for ac_prog in grep ggrep; do
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4575 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4576 # Check for GNU ac_path_GREP and select it if it is found.
4577 # Check for GNU $ac_path_GREP
4578 case `"$ac_path_GREP" --version 2>&1` in
4580 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4583 $as_echo_n 0123456789 >"conftest.in"
4586 cat "conftest.in" "conftest.in" >"conftest.tmp"
4587 mv "conftest.tmp" "conftest.in"
4588 cp "conftest.in" "conftest.nl"
4589 $as_echo 'GREP' >> "conftest.nl"
4590 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4592 as_fn_arith $ac_count + 1 && ac_count=$as_val
4593 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4594 # Best one so far, save it but keep looking for a better one
4595 ac_cv_path_GREP="$ac_path_GREP"
4596 ac_path_GREP_max=$ac_count
4598 # 10*(2^10) chars as input seems more than enough
4599 test $ac_count -gt 10 && break
4601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604 $ac_path_GREP_found && break 3
4609 if test -z "$ac_cv_path_GREP"; then
4610 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4613 ac_cv_path_GREP=$GREP
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4618 $as_echo "$ac_cv_path_GREP" >&6; }
4619 GREP="$ac_cv_path_GREP"
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4623 $as_echo_n "checking for egrep... " >&6; }
4624 if ${ac_cv_path_EGREP+:} false; then :
4625 $as_echo_n "(cached) " >&6
4627 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4628 then ac_cv_path_EGREP="$GREP -E"
4630 if test -z "$EGREP"; then
4631 ac_path_EGREP_found=false
4632 # Loop through the user's path and test for each of PROGNAME-LIST
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4637 test -z "$as_dir" && as_dir=.
4638 for ac_prog in egrep; do
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4641 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4642 # Check for GNU ac_path_EGREP and select it if it is found.
4643 # Check for GNU $ac_path_EGREP
4644 case `"$ac_path_EGREP" --version 2>&1` in
4646 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4649 $as_echo_n 0123456789 >"conftest.in"
4652 cat "conftest.in" "conftest.in" >"conftest.tmp"
4653 mv "conftest.tmp" "conftest.in"
4654 cp "conftest.in" "conftest.nl"
4655 $as_echo 'EGREP' >> "conftest.nl"
4656 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4658 as_fn_arith $ac_count + 1 && ac_count=$as_val
4659 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4660 # Best one so far, save it but keep looking for a better one
4661 ac_cv_path_EGREP="$ac_path_EGREP"
4662 ac_path_EGREP_max=$ac_count
4664 # 10*(2^10) chars as input seems more than enough
4665 test $ac_count -gt 10 && break
4667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4670 $ac_path_EGREP_found && break 3
4675 if test -z "$ac_cv_path_EGREP"; then
4676 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4679 ac_cv_path_EGREP=$EGREP
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4685 $as_echo "$ac_cv_path_EGREP" >&6; }
4686 EGREP="$ac_cv_path_EGREP"
4689 if test $ac_cv_c_compiler_gnu = yes; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4691 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4692 if ${ac_cv_prog_gcc_traditional+:} false; then :
4693 $as_echo_n "(cached) " >&6
4695 ac_pattern="Autoconf.*'x'"
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4702 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4703 ac_cv_prog_gcc_traditional=yes
4705 ac_cv_prog_gcc_traditional=no
4710 if test $ac_cv_prog_gcc_traditional = no; then
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4717 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4718 ac_cv_prog_gcc_traditional=yes
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4725 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4726 if test $ac_cv_prog_gcc_traditional = yes; then
4727 CC="$CC -traditional"
4731 BASECC=`basename $CC`
4733 if test "x$BASECC" = xgcc; then
4734 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4738 # Extract the first word of "$CXX", so it can be a program name with args.
4739 set dummy $CXX; ac_word=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if ${ac_cv_path_CXX+:} false; then :
4743 $as_echo_n "(cached) " >&6
4747 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4770 if test -n "$CXX"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4772 $as_echo "$CXX" >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4779 if test ! -e $CXX; then
4780 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4783 # Find a good install program. We prefer a C program (faster),
4784 # so one script is as good as another. But avoid the broken or
4785 # incompatible versions:
4786 # SysV /etc/install, /usr/sbin/install
4787 # SunOS /usr/etc/install
4788 # IRIX /sbin/install
4790 # AmigaOS /C/install, which installs bootblocks on floppy discs
4791 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4792 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4793 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4794 # OS/2's system install, which has a completely different semantic
4795 # ./install, which can be erroneously created by make from ./install.sh.
4796 # Reject install programs that cannot install multiple files.
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4798 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4799 if test -z "$INSTALL"; then
4800 if ${ac_cv_path_install+:} false; then :
4801 $as_echo_n "(cached) " >&6
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 test -z "$as_dir" && as_dir=.
4808 # Account for people who put trailing slashes in PATH elements.
4809 case $as_dir/ in #((
4810 ./ | .// | /[cC]/* | \
4811 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4812 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4815 # OSF1 and SCO ODT 3.0 have their own names for install.
4816 # Don't use installbsd from OSF since it installs stuff as root
4818 for ac_prog in ginstall scoinst install; do
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4821 if test $ac_prog = install &&
4822 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4823 # AIX install. It has an incompatible calling convention.
4825 elif test $ac_prog = install &&
4826 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4827 # program-specific install script used by HP pwplus--don't use.
4830 rm -rf conftest.one conftest.two conftest.dir
4831 echo one > conftest.one
4832 echo two > conftest.two
4834 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4835 test -s conftest.one && test -s conftest.two &&
4836 test -s conftest.dir/conftest.one &&
4837 test -s conftest.dir/conftest.two
4839 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4852 rm -rf conftest.one conftest.two conftest.dir
4855 if test "${ac_cv_path_install+set}" = set; then
4856 INSTALL=$ac_cv_path_install
4858 # As a last resort, use the slow shell script. Don't cache a
4859 # value for INSTALL within a source directory, because that will
4860 # break other packages using the cache if that directory is
4861 # removed, or if the value is a relative name.
4862 INSTALL=$ac_install_sh
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4866 $as_echo "$INSTALL" >&6; }
4868 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4869 # It thinks the first close brace ends the variable substitution.
4870 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4872 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4874 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4876 # Extract the first word of "mv", so it can be a program name with args.
4877 set dummy mv; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if ${ac_cv_path_MV+:} false; then :
4881 $as_echo_n "(cached) " >&6
4885 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4908 if test -n "$MV"; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4910 $as_echo "$MV" >&6; }
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 $as_echo "no" >&6; }
4917 # Extract the first word of "rm", so it can be a program name with args.
4918 set dummy rm; ac_word=$2
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if ${ac_cv_path_REMOVE+:} false; then :
4922 $as_echo_n "(cached) " >&6
4926 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4948 REMOVE=$ac_cv_path_REMOVE
4949 if test -n "$REMOVE"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4951 $as_echo "$REMOVE" >&6; }
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4958 # Extract the first word of "cp", so it can be a program name with args.
4959 set dummy cp; ac_word=$2
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if ${ac_cv_path_CP+:} false; then :
4963 $as_echo_n "(cached) " >&6
4967 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4990 if test -n "$CP"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4992 $as_echo "$CP" >&6; }
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4999 # Extract the first word of "sed", so it can be a program name with args.
5000 set dummy sed; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if ${ac_cv_path_SED+:} false; then :
5004 $as_echo_n "(cached) " >&6
5008 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5031 if test -n "$SED"; then
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5033 $as_echo "$SED" >&6; }
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5040 # Extract the first word of "echo", so it can be a program name with args.
5041 set dummy echo; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_path_ECHO+:} false; then :
5045 $as_echo_n "(cached) " >&6
5049 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5071 ECHO=$ac_cv_path_ECHO
5072 if test -n "$ECHO"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5074 $as_echo "$ECHO" >&6; }
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5081 # Extract the first word of "cmp", so it can be a program name with args.
5082 set dummy cmp; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_path_CMP+:} false; then :
5086 $as_echo_n "(cached) " >&6
5090 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5113 if test -n "$CMP"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5115 $as_echo "$CMP" >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5122 # Extract the first word of "tbl", so it can be a program name with args.
5123 set dummy tbl; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if ${ac_cv_path_TBL+:} false; then :
5127 $as_echo_n "(cached) " >&6
5131 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5154 if test -n "$TBL"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5156 $as_echo "$TBL" >&6; }
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5163 # Extract the first word of "ar", so it can be a program name with args.
5164 set dummy ar; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_path_AR+:} false; then :
5168 $as_echo_n "(cached) " >&6
5172 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5195 if test -n "$AR"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5197 $as_echo "$AR" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5204 # Extract the first word of "openssl", so it can be a program name with args.
5205 set dummy openssl; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_path_OPENSSL+:} false; then :
5209 $as_echo_n "(cached) " >&6
5213 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5235 OPENSSL=$ac_cv_path_OPENSSL
5236 if test -n "$OPENSSL"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5238 $as_echo "$OPENSSL" >&6; }
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5245 # Extract the first word of "mtx", so it can be a program name with args.
5246 set dummy mtx; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_path_MTX+:} false; then :
5250 $as_echo_n "(cached) " >&6
5254 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5277 if test -n "$MTX"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5279 $as_echo "$MTX" >&6; }
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5286 # Extract the first word of "dd", so it can be a program name with args.
5287 set dummy dd; ac_word=$2
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if ${ac_cv_path_DD+:} false; then :
5291 $as_echo_n "(cached) " >&6
5295 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5318 if test -n "$DD"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5320 $as_echo "$DD" >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5327 # Extract the first word of "mkisofs", so it can be a program name with args.
5328 set dummy mkisofs; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_path_MKISOFS+:} false; then :
5332 $as_echo_n "(cached) " >&6
5336 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5358 MKISOFS=$ac_cv_path_MKISOFS
5359 if test -n "$MKISOFS"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5361 $as_echo "$MKISOFS" >&6; }
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5368 # Extract the first word of "python", so it can be a program name with args.
5369 set dummy python; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_path_PYTHON+:} false; then :
5373 $as_echo_n "(cached) " >&6
5377 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5399 PYTHON=$ac_cv_path_PYTHON
5400 if test -n "$PYTHON"; then
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5402 $as_echo "$PYTHON" >&6; }
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5409 # Extract the first word of "growisofs", so it can be a program name with args.
5410 set dummy growisofs; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_path_GROWISOFS+:} false; then :
5414 $as_echo_n "(cached) " >&6
5418 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5428 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5440 GROWISOFS=$ac_cv_path_GROWISOFS
5441 if test -n "$GROWISOFS"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5443 $as_echo "$GROWISOFS" >&6; }
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5450 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5451 set dummy dvd+rw-mediainfo; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5455 $as_echo_n "(cached) " >&6
5457 case $DVDRWMEDIAINFO in
5459 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5481 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5482 if test -n "$DVDRWMEDIAINFO"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5484 $as_echo "$DVDRWMEDIAINFO" >&6; }
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5491 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5492 set dummy dvd+rw-format; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5496 $as_echo_n "(cached) " >&6
5498 case $DVDRWFORMAT in
5500 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5522 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5523 if test -n "$DVDRWFORMAT"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5525 $as_echo "$DVDRWFORMAT" >&6; }
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5532 # Extract the first word of "pkg-config", so it can be a program name with args.
5533 set dummy pkg-config; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_path_PKGCONFIG+:} false; then :
5537 $as_echo_n "(cached) " >&6
5541 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5563 PKGCONFIG=$ac_cv_path_PKGCONFIG
5564 if test -n "$PKGCONFIG"; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5566 $as_echo "$PKGCONFIG" >&6; }
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5573 # Extract the first word of "qmake", so it can be a program name with args.
5574 set dummy qmake; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_path_QMAKE+:} false; then :
5578 $as_echo_n "(cached) " >&6
5582 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5604 QMAKE=$ac_cv_path_QMAKE
5605 if test -n "$QMAKE"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5607 $as_echo "$QMAKE" >&6; }
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5614 # Extract the first word of "gmake", so it can be a program name with args.
5615 set dummy gmake; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if ${ac_cv_path_GMAKE+:} false; then :
5619 $as_echo_n "(cached) " >&6
5623 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5633 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5645 GMAKE=$ac_cv_path_GMAKE
5646 if test -n "$GMAKE"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5648 $as_echo "$GMAKE" >&6; }
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5655 # Extract the first word of "cdrecord", so it can be a program name with args.
5656 set dummy cdrecord; ac_word=$2
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if ${ac_cv_path_CDRECORD+:} false; then :
5660 $as_echo_n "(cached) " >&6
5664 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5674 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5686 CDRECORD=$ac_cv_path_CDRECORD
5687 if test -n "$CDRECORD"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5689 $as_echo "$CDRECORD" >&6; }
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5696 # Extract the first word of "pidof", so it can be a program name with args.
5697 set dummy pidof; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_path_PIDOF+:} false; then :
5701 $as_echo_n "(cached) " >&6
5705 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5727 PIDOF=$ac_cv_path_PIDOF
5728 if test -n "$PIDOF"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5730 $as_echo "$PIDOF" >&6; }
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5737 for ac_prog in gawk mawk nawk awk
5739 # Extract the first word of "$ac_prog", so it can be a program name with args.
5740 set dummy $ac_prog; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_AWK+:} false; then :
5744 $as_echo_n "(cached) " >&6
5746 if test -n "$AWK"; then
5747 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5756 ac_cv_prog_AWK="$ac_prog"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 if test -n "$AWK"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5769 $as_echo "$AWK" >&6; }
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5776 test -n "$AWK" && break
5779 # Some AWK programs fail, so test it and warn the user
5780 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5781 { if ((prog == $2) || (("(" prog ")") == $2) ||
5782 (("" prog "") == $2) ||
5783 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5785 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5786 The regex engine of $AWK is too broken to be used you
5787 might want to install GNU AWK.
5788 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5791 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5792 set dummy $THE_AWK; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if ${ac_cv_path_AWK+:} false; then :
5796 $as_echo_n "(cached) " >&6
5800 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5823 if test -n "$AWK"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5825 $as_echo "$AWK" >&6; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5834 test -n "$ARFLAG" || ARFLAGS="cr"
5846 # Check whether --enable-libtool was given.
5847 if test "${enable_libtool+set}" = set; then :
5848 enableval=$enable_libtool;
5849 if test x$enableval = xno; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5859 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5864 macro_version='2.4.2'
5865 macro_revision='1.3337'
5879 ltmain="$ac_aux_dir/ltmain.sh"
5881 # Make sure we can run config.sub.
5882 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5883 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5886 $as_echo_n "checking build system type... " >&6; }
5887 if ${ac_cv_build+:} false; then :
5888 $as_echo_n "(cached) " >&6
5890 ac_build_alias=$build_alias
5891 test "x$ac_build_alias" = x &&
5892 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5893 test "x$ac_build_alias" = x &&
5894 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5895 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5896 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5900 $as_echo "$ac_cv_build" >&6; }
5901 case $ac_cv_build in
5903 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5906 ac_save_IFS=$IFS; IFS='-'
5912 # Remember, the first character of IFS is used to create $*,
5913 # except with old shells:
5916 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5920 $as_echo_n "checking host system type... " >&6; }
5921 if ${ac_cv_host+:} false; then :
5922 $as_echo_n "(cached) " >&6
5924 if test "x$host_alias" = x; then
5925 ac_cv_host=$ac_cv_build
5927 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5928 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5933 $as_echo "$ac_cv_host" >&6; }
5936 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5939 ac_save_IFS=$IFS; IFS='-'
5945 # Remember, the first character of IFS is used to create $*,
5946 # except with old shells:
5949 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5952 # Backslashify metacharacters that are still active within
5953 # double-quoted strings.
5954 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5956 # Same as above, but do not quote variable references.
5957 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5959 # Sed substitution to delay expansion of an escaped shell variable in a
5960 # double_quote_subst'ed string.
5961 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5963 # Sed substitution to delay expansion of an escaped single quote.
5964 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5966 # Sed substitution to avoid accidental globbing in evaled expressions
5967 no_glob_subst='s/\*/\\\*/g'
5969 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5970 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5971 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5974 $as_echo_n "checking how to print strings... " >&6; }
5975 # Test print first, because it will be a builtin if present.
5976 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5977 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5979 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5982 # Use this function as a fallback that always works.
5983 func_fallback_echo ()
5985 eval 'cat <<_LTECHO_EOF
5989 ECHO='func_fallback_echo'
5992 # func_echo_all arg...
5993 # Invoke $ECHO with all args, space-separated.
6000 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6001 $as_echo "printf" >&6; } ;;
6002 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6003 $as_echo "print -r" >&6; } ;;
6004 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6005 $as_echo "cat" >&6; } ;;
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6022 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6023 if ${ac_cv_path_SED+:} false; then :
6024 $as_echo_n "(cached) " >&6
6026 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6027 for ac_i in 1 2 3 4 5 6 7; do
6028 ac_script="$ac_script$as_nl$ac_script"
6030 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6031 { ac_script=; unset ac_script;}
6032 if test -z "$SED"; then
6033 ac_path_SED_found=false
6034 # Loop through the user's path and test for each of PROGNAME-LIST
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 test -z "$as_dir" && as_dir=.
6040 for ac_prog in sed gsed; do
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6043 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6044 # Check for GNU ac_path_SED and select it if it is found.
6045 # Check for GNU $ac_path_SED
6046 case `"$ac_path_SED" --version 2>&1` in
6048 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6051 $as_echo_n 0123456789 >"conftest.in"
6054 cat "conftest.in" "conftest.in" >"conftest.tmp"
6055 mv "conftest.tmp" "conftest.in"
6056 cp "conftest.in" "conftest.nl"
6057 $as_echo '' >> "conftest.nl"
6058 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6059 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6060 as_fn_arith $ac_count + 1 && ac_count=$as_val
6061 if test $ac_count -gt ${ac_path_SED_max-0}; then
6062 # Best one so far, save it but keep looking for a better one
6063 ac_cv_path_SED="$ac_path_SED"
6064 ac_path_SED_max=$ac_count
6066 # 10*(2^10) chars as input seems more than enough
6067 test $ac_count -gt 10 && break
6069 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6072 $ac_path_SED_found && break 3
6077 if test -z "$ac_cv_path_SED"; then
6078 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6086 $as_echo "$ac_cv_path_SED" >&6; }
6087 SED="$ac_cv_path_SED"
6090 test -z "$SED" && SED=sed
6091 Xsed="$SED -e 1s/^X//"
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6104 $as_echo_n "checking for fgrep... " >&6; }
6105 if ${ac_cv_path_FGREP+:} false; then :
6106 $as_echo_n "(cached) " >&6
6108 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6109 then ac_cv_path_FGREP="$GREP -F"
6111 if test -z "$FGREP"; then
6112 ac_path_FGREP_found=false
6113 # Loop through the user's path and test for each of PROGNAME-LIST
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6118 test -z "$as_dir" && as_dir=.
6119 for ac_prog in fgrep; do
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6122 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6123 # Check for GNU ac_path_FGREP and select it if it is found.
6124 # Check for GNU $ac_path_FGREP
6125 case `"$ac_path_FGREP" --version 2>&1` in
6127 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6130 $as_echo_n 0123456789 >"conftest.in"
6133 cat "conftest.in" "conftest.in" >"conftest.tmp"
6134 mv "conftest.tmp" "conftest.in"
6135 cp "conftest.in" "conftest.nl"
6136 $as_echo 'FGREP' >> "conftest.nl"
6137 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6139 as_fn_arith $ac_count + 1 && ac_count=$as_val
6140 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6141 # Best one so far, save it but keep looking for a better one
6142 ac_cv_path_FGREP="$ac_path_FGREP"
6143 ac_path_FGREP_max=$ac_count
6145 # 10*(2^10) chars as input seems more than enough
6146 test $ac_count -gt 10 && break
6148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6151 $ac_path_FGREP_found && break 3
6156 if test -z "$ac_cv_path_FGREP"; then
6157 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6160 ac_cv_path_FGREP=$FGREP
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6166 $as_echo "$ac_cv_path_FGREP" >&6; }
6167 FGREP="$ac_cv_path_FGREP"
6170 test -z "$GREP" && GREP=grep
6190 # Check whether --with-gnu-ld was given.
6191 if test "${with_gnu_ld+set}" = set; then :
6192 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6198 if test "$GCC" = yes; then
6199 # Check if gcc -print-prog-name=ld gives a path.
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6201 $as_echo_n "checking for ld used by $CC... " >&6; }
6204 # gcc leaves a trailing carriage return which upsets mingw
6205 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6207 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6210 # Accept absolute paths.
6212 re_direlt='/[^/][^/]*/\.\./'
6213 # Canonicalize the pathname of ld
6214 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6215 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6216 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6218 test -z "$LD" && LD="$ac_prog"
6221 # If it fails, then pretend we aren't using GCC.
6225 # If it is relative, then search for the first ld in PATH.
6229 elif test "$with_gnu_ld" = yes; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6231 $as_echo_n "checking for GNU ld... " >&6; }
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6234 $as_echo_n "checking for non-GNU ld... " >&6; }
6236 if ${lt_cv_path_LD+:} false; then :
6237 $as_echo_n "(cached) " >&6
6239 if test -z "$LD"; then
6240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6241 for ac_dir in $PATH; do
6243 test -z "$ac_dir" && ac_dir=.
6244 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6245 lt_cv_path_LD="$ac_dir/$ac_prog"
6246 # Check to see if the program is GNU ld. I'd rather use --version,
6247 # but apparently some variants of GNU ld only accept -v.
6248 # Break only if it was the GNU/non-GNU ld that we prefer.
6249 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6250 *GNU* | *'with BFD'*)
6251 test "$with_gnu_ld" != no && break
6254 test "$with_gnu_ld" != yes && break
6261 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6266 if test -n "$LD"; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6268 $as_echo "$LD" >&6; }
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6273 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6275 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6276 if ${lt_cv_prog_gnu_ld+:} false; then :
6277 $as_echo_n "(cached) " >&6
6279 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6280 case `$LD -v 2>&1 </dev/null` in
6281 *GNU* | *'with BFD'*)
6282 lt_cv_prog_gnu_ld=yes
6285 lt_cv_prog_gnu_ld=no
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6290 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6291 with_gnu_ld=$lt_cv_prog_gnu_ld
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6302 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6303 if ${lt_cv_path_NM+:} false; then :
6304 $as_echo_n "(cached) " >&6
6306 if test -n "$NM"; then
6307 # Let the user override the test.
6310 lt_nm_to_check="${ac_tool_prefix}nm"
6311 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6312 lt_nm_to_check="$lt_nm_to_check nm"
6314 for lt_tmp_nm in $lt_nm_to_check; do
6315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6316 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6318 test -z "$ac_dir" && ac_dir=.
6319 tmp_nm="$ac_dir/$lt_tmp_nm"
6320 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6321 # Check to see if the nm accepts a BSD-compat flag.
6322 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6323 # nm: unknown option "B" ignored
6324 # Tru64's nm complains that /dev/null is an invalid object file
6325 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6326 */dev/null* | *'Invalid file or object type'*)
6327 lt_cv_path_NM="$tmp_nm -B"
6331 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6333 lt_cv_path_NM="$tmp_nm -p"
6337 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6338 continue # so that we can try to find one that supports BSD flags
6347 : ${lt_cv_path_NM=no}
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6351 $as_echo "$lt_cv_path_NM" >&6; }
6352 if test "$lt_cv_path_NM" != "no"; then
6355 # Didn't find any BSD compatible name lister, look for dumpbin.
6356 if test -n "$DUMPBIN"; then :
6357 # Let the user override the test.
6359 if test -n "$ac_tool_prefix"; then
6360 for ac_prog in dumpbin "link -dump"
6362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if ${ac_cv_prog_DUMPBIN+:} false; then :
6367 $as_echo_n "(cached) " >&6
6369 if test -n "$DUMPBIN"; then
6370 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 DUMPBIN=$ac_cv_prog_DUMPBIN
6390 if test -n "$DUMPBIN"; then
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6392 $as_echo "$DUMPBIN" >&6; }
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6399 test -n "$DUMPBIN" && break
6402 if test -z "$DUMPBIN"; then
6403 ac_ct_DUMPBIN=$DUMPBIN
6404 for ac_prog in dumpbin "link -dump"
6406 # Extract the first word of "$ac_prog", so it can be a program name with args.
6407 set dummy $ac_prog; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$ac_ct_DUMPBIN"; then
6414 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6434 if test -n "$ac_ct_DUMPBIN"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6436 $as_echo "$ac_ct_DUMPBIN" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6443 test -n "$ac_ct_DUMPBIN" && break
6446 if test "x$ac_ct_DUMPBIN" = x; then
6449 case $cross_compiling:$ac_tool_warned in
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6453 ac_tool_warned=yes ;;
6455 DUMPBIN=$ac_ct_DUMPBIN
6459 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6461 DUMPBIN="$DUMPBIN -symbols"
6469 if test "$DUMPBIN" != ":"; then
6473 test -z "$NM" && NM=nm
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6481 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6482 if ${lt_cv_nm_interface+:} false; then :
6483 $as_echo_n "(cached) " >&6
6485 lt_cv_nm_interface="BSD nm"
6486 echo "int some_variable = 0;" > conftest.$ac_ext
6487 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6488 (eval "$ac_compile" 2>conftest.err)
6489 cat conftest.err >&5
6490 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6491 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6492 cat conftest.err >&5
6493 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6494 cat conftest.out >&5
6495 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6496 lt_cv_nm_interface="MS dumpbin"
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6501 $as_echo "$lt_cv_nm_interface" >&6; }
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6504 $as_echo_n "checking whether ln -s works... " >&6; }
6506 if test "$LN_S" = "ln -s"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6508 $as_echo "yes" >&6; }
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6511 $as_echo "no, using $LN_S" >&6; }
6514 # find the maximum length of command line arguments
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6516 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6517 if ${lt_cv_sys_max_cmd_len+:} false; then :
6518 $as_echo_n "(cached) " >&6
6525 # On DJGPP, this test can blow up pretty badly due to problems in libc
6526 # (any single argument exceeding 2000 bytes causes a buffer overrun
6527 # during glob expansion). Even if it were fixed, the result of this
6528 # check would be larger than it should be.
6529 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6533 # Under GNU Hurd, this test is not required because there is
6534 # no limit to the length of command line arguments.
6535 # Libtool will interpret -1 as no limit whatsoever
6536 lt_cv_sys_max_cmd_len=-1;
6539 cygwin* | mingw* | cegcc*)
6540 # On Win9x/ME, this test blows up -- it succeeds, but takes
6541 # about 5 minutes as the teststring grows exponentially.
6542 # Worse, since 9x/ME are not pre-emptively multitasking,
6543 # you end up with a "frozen" computer, even though with patience
6544 # the test eventually succeeds (with a max line length of 256k).
6545 # Instead, let's just punt: use the minimum linelength reported by
6546 # all of the supported platforms: 8192 (on NT/2K/XP).
6547 lt_cv_sys_max_cmd_len=8192;
6551 # On MiNT this can take a long time and run out of memory.
6552 lt_cv_sys_max_cmd_len=8192;
6556 # On AmigaOS with pdksh, this test takes hours, literally.
6557 # So we just punt and use a minimum line length of 8192.
6558 lt_cv_sys_max_cmd_len=8192;
6561 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6562 # This has been around since 386BSD, at least. Likely further.
6563 if test -x /sbin/sysctl; then
6564 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6565 elif test -x /usr/sbin/sysctl; then
6566 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6568 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6570 # And add a safety zone
6571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6576 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6577 lt_cv_sys_max_cmd_len=196608
6581 # The test takes a long time on OS/2.
6582 lt_cv_sys_max_cmd_len=8192
6586 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6587 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6588 # nice to cause kernel panics so lets avoid the loop below.
6589 # First set a reasonable default.
6590 lt_cv_sys_max_cmd_len=16384
6592 if test -x /sbin/sysconfig; then
6593 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6594 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6599 lt_cv_sys_max_cmd_len=102400
6601 sysv5* | sco5v6* | sysv4.2uw2*)
6602 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6603 if test -n "$kargmax"; then
6604 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6606 lt_cv_sys_max_cmd_len=32768
6610 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6611 if test -n "$lt_cv_sys_max_cmd_len" && \
6612 test undefined != "$lt_cv_sys_max_cmd_len"; then
6613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6616 # Make teststring a little bigger before we do anything with it.
6617 # a 1K string should be a reasonable start.
6618 for i in 1 2 3 4 5 6 7 8 ; do
6619 teststring=$teststring$teststring
6621 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6622 # If test is not a shell built-in, we'll probably end up computing a
6623 # maximum length that is only half of the actual maximum length, but
6625 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6626 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6627 test $i != 17 # 1/2 MB should be enough
6630 teststring=$teststring$teststring
6632 # Only check the string length outside the loop.
6633 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6635 # Add a significant safety factor because C++ compilers can tack on
6636 # massive amounts of additional arguments before passing them to the
6637 # linker. It appears as though 1/2 is a usable value.
6638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6645 if test -n $lt_cv_sys_max_cmd_len ; then
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6647 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6650 $as_echo "none" >&6; }
6652 max_cmd_len=$lt_cv_sys_max_cmd_len
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6664 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6665 # Try some XSI features
6668 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6670 && eval 'test $(( 1 + 1 )) -eq 2 \
6671 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6674 $as_echo "$xsi_shell" >&6; }
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6678 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6680 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6682 && lt_shell_append=yes
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6684 $as_echo "$lt_shell_append" >&6; }
6687 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6697 # test EBCDIC or ASCII
6698 case `echo X|tr X '\101'` in
6699 A) # ASCII based system
6700 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6701 lt_SP2NL='tr \040 \012'
6702 lt_NL2SP='tr \015\012 \040\040'
6704 *) # EBCDIC based system
6705 lt_SP2NL='tr \100 \n'
6706 lt_NL2SP='tr \r\n \100\100'
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6719 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6720 if ${lt_cv_to_host_file_cmd+:} false; then :
6721 $as_echo_n "(cached) " >&6
6726 *-*-mingw* ) # actually msys
6727 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6730 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6732 * ) # otherwise, assume *nix
6733 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6739 *-*-mingw* ) # actually msys
6740 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6743 lt_cv_to_host_file_cmd=func_convert_file_noop
6745 * ) # otherwise, assume *nix
6746 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6750 * ) # unhandled hosts (and "normal" native builds)
6751 lt_cv_to_host_file_cmd=func_convert_file_noop
6757 to_host_file_cmd=$lt_cv_to_host_file_cmd
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6759 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6766 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6767 if ${lt_cv_to_tool_file_cmd+:} false; then :
6768 $as_echo_n "(cached) " >&6
6770 #assume ordinary cross tools, or native build.
6771 lt_cv_to_tool_file_cmd=func_convert_file_noop
6775 *-*-mingw* ) # actually msys
6776 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6784 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6786 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6793 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6794 if ${lt_cv_ld_reload_flag+:} false; then :
6795 $as_echo_n "(cached) " >&6
6797 lt_cv_ld_reload_flag='-r'
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6800 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6801 reload_flag=$lt_cv_ld_reload_flag
6802 case $reload_flag in
6804 *) reload_flag=" $reload_flag" ;;
6806 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6808 cygwin* | mingw* | pw32* | cegcc*)
6809 if test "$GCC" != yes; then
6814 if test "$GCC" = yes; then
6815 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6817 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6830 if test -n "$ac_tool_prefix"; then
6831 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6832 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_OBJDUMP+:} false; then :
6836 $as_echo_n "(cached) " >&6
6838 if test -n "$OBJDUMP"; then
6839 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 OBJDUMP=$ac_cv_prog_OBJDUMP
6859 if test -n "$OBJDUMP"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6861 $as_echo "$OBJDUMP" >&6; }
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6869 if test -z "$ac_cv_prog_OBJDUMP"; then
6870 ac_ct_OBJDUMP=$OBJDUMP
6871 # Extract the first word of "objdump", so it can be a program name with args.
6872 set dummy objdump; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6876 $as_echo_n "(cached) " >&6
6878 if test -n "$ac_ct_OBJDUMP"; then
6879 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6899 if test -n "$ac_ct_OBJDUMP"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6901 $as_echo "$ac_ct_OBJDUMP" >&6; }
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6907 if test "x$ac_ct_OBJDUMP" = x; then
6910 case $cross_compiling:$ac_tool_warned in
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6914 ac_tool_warned=yes ;;
6916 OBJDUMP=$ac_ct_OBJDUMP
6919 OBJDUMP="$ac_cv_prog_OBJDUMP"
6922 test -z "$OBJDUMP" && OBJDUMP=objdump
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6933 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6934 if ${lt_cv_deplibs_check_method+:} false; then :
6935 $as_echo_n "(cached) " >&6
6937 lt_cv_file_magic_cmd='$MAGIC_CMD'
6938 lt_cv_file_magic_test_file=
6939 lt_cv_deplibs_check_method='unknown'
6940 # Need to set the preceding variable on all platforms that support
6941 # interlibrary dependencies.
6942 # 'none' -- dependencies not supported.
6943 # `unknown' -- same as none, but documents that we really don't know.
6944 # 'pass_all' -- all dependencies passed with no checks.
6945 # 'test_compile' -- check by making test program.
6946 # 'file_magic [[regex]]' -- check by looking for files in library path
6947 # which responds to the $file_magic_cmd with a given extended regex.
6948 # If you have `file' or equivalent on your system and you're not sure
6949 # whether `pass_all' will *always* work, you probably want this one.
6953 lt_cv_deplibs_check_method=pass_all
6957 lt_cv_deplibs_check_method=pass_all
6961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6962 lt_cv_file_magic_cmd='/usr/bin/file -L'
6963 lt_cv_file_magic_test_file=/shlib/libc.so
6967 # func_win32_libid is a shell function defined in ltmain.sh
6968 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6969 lt_cv_file_magic_cmd='func_win32_libid'
6973 # Base MSYS/MinGW do not provide the 'file' command needed by
6974 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6975 # unless we find 'file', for example because we are cross-compiling.
6976 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6977 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6978 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6979 lt_cv_file_magic_cmd='func_win32_libid'
6981 # Keep this pattern in sync with the one in func_win32_libid.
6982 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6983 lt_cv_file_magic_cmd='$OBJDUMP -f'
6988 # use the weaker test based on 'objdump'. See mingw*.
6989 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6990 lt_cv_file_magic_cmd='$OBJDUMP -f'
6993 darwin* | rhapsody*)
6994 lt_cv_deplibs_check_method=pass_all
6997 freebsd* | dragonfly*)
6998 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7001 # Not sure whether the presence of OpenBSD here was a mistake.
7002 # Let's accept both of them until this is cleared up.
7003 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7004 lt_cv_file_magic_cmd=/usr/bin/file
7005 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7009 lt_cv_deplibs_check_method=pass_all
7014 lt_cv_deplibs_check_method=pass_all
7017 hpux10.20* | hpux11*)
7018 lt_cv_file_magic_cmd=/usr/bin/file
7021 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7022 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7025 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]'
7026 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7029 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7030 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7036 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7040 irix5* | irix6* | nonstopux*)
7042 *-32|*"-32 ") libmagic=32-bit;;
7043 *-n32|*"-n32 ") libmagic=N32;;
7044 *-64|*"-64 ") libmagic=64-bit;;
7045 *) libmagic=never-match;;
7047 lt_cv_deplibs_check_method=pass_all
7050 # This must be glibc/ELF.
7051 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7052 lt_cv_deplibs_check_method=pass_all
7055 netbsd* | netbsdelf*-gnu)
7056 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7059 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7064 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7065 lt_cv_file_magic_cmd=/usr/bin/file
7066 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7070 lt_cv_deplibs_check_method=pass_all
7074 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7081 osf3* | osf4* | osf5*)
7082 lt_cv_deplibs_check_method=pass_all
7086 lt_cv_deplibs_check_method=pass_all
7090 lt_cv_deplibs_check_method=pass_all
7093 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7094 lt_cv_deplibs_check_method=pass_all
7098 case $host_vendor in
7100 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]'
7101 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7104 lt_cv_deplibs_check_method=pass_all
7107 lt_cv_file_magic_cmd='/bin/file'
7108 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7111 lt_cv_file_magic_cmd='/bin/file'
7112 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7113 lt_cv_file_magic_test_file=/lib/libc.so
7116 lt_cv_deplibs_check_method=pass_all
7119 lt_cv_deplibs_check_method=pass_all
7125 lt_cv_deplibs_check_method=pass_all
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7131 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7135 if test "$build" = "$host"; then
7138 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7141 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7147 file_magic_cmd=$lt_cv_file_magic_cmd
7148 deplibs_check_method=$lt_cv_deplibs_check_method
7149 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7172 if test -n "$ac_tool_prefix"; then
7173 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176 $as_echo_n "checking for $ac_word... " >&6; }
7177 if ${ac_cv_prog_DLLTOOL+:} false; then :
7178 $as_echo_n "(cached) " >&6
7180 if test -n "$DLLTOOL"; then
7181 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 DLLTOOL=$ac_cv_prog_DLLTOOL
7201 if test -n "$DLLTOOL"; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7203 $as_echo "$DLLTOOL" >&6; }
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206 $as_echo "no" >&6; }
7211 if test -z "$ac_cv_prog_DLLTOOL"; then
7212 ac_ct_DLLTOOL=$DLLTOOL
7213 # Extract the first word of "dlltool", so it can be a program name with args.
7214 set dummy dlltool; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7218 $as_echo_n "(cached) " >&6
7220 if test -n "$ac_ct_DLLTOOL"; then
7221 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7230 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7241 if test -n "$ac_ct_DLLTOOL"; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7243 $as_echo "$ac_ct_DLLTOOL" >&6; }
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7249 if test "x$ac_ct_DLLTOOL" = x; then
7252 case $cross_compiling:$ac_tool_warned in
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7256 ac_tool_warned=yes ;;
7258 DLLTOOL=$ac_ct_DLLTOOL
7261 DLLTOOL="$ac_cv_prog_DLLTOOL"
7264 test -z "$DLLTOOL" && DLLTOOL=dlltool
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7276 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7277 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7278 $as_echo_n "(cached) " >&6
7280 lt_cv_sharedlib_from_linklib_cmd='unknown'
7283 cygwin* | mingw* | pw32* | cegcc*)
7284 # two different shell functions defined in ltmain.sh
7285 # decide which to use based on capabilities of $DLLTOOL
7286 case `$DLLTOOL --help 2>&1` in
7287 *--identify-strict*)
7288 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7291 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7296 # fallback: assume linklib IS sharedlib
7297 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7303 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7304 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7305 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7313 if test -n "$ac_tool_prefix"; then
7316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if ${ac_cv_prog_AR+:} false; then :
7321 $as_echo_n "(cached) " >&6
7323 if test -n "$AR"; then
7324 ac_cv_prog_AR="$AR" # Let the user override the test.
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 if test -n "$AR"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7346 $as_echo "$AR" >&6; }
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7353 test -n "$AR" && break
7356 if test -z "$AR"; then
7360 # Extract the first word of "$ac_prog", so it can be a program name with args.
7361 set dummy $ac_prog; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7365 $as_echo_n "(cached) " >&6
7367 if test -n "$ac_ct_AR"; then
7368 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_prog_ac_ct_AR="$ac_prog"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7388 if test -n "$ac_ct_AR"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7390 $as_echo "$ac_ct_AR" >&6; }
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7397 test -n "$ac_ct_AR" && break
7400 if test "x$ac_ct_AR" = x; then
7403 case $cross_compiling:$ac_tool_warned in
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7427 $as_echo_n "checking for archiver @FILE support... " >&6; }
7428 if ${lt_cv_ar_at_file+:} false; then :
7429 $as_echo_n "(cached) " >&6
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7443 if ac_fn_c_try_compile "$LINENO"; then :
7444 echo conftest.$ac_objext > conftest.lst
7445 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7447 (eval $lt_ar_try) 2>&5
7449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7450 test $ac_status = 0; }
7451 if test "$ac_status" -eq 0; then
7452 # Ensure the archiver fails upon bogus file names.
7453 rm -f conftest.$ac_objext libconftest.a
7454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7455 (eval $lt_ar_try) 2>&5
7457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7458 test $ac_status = 0; }
7459 if test "$ac_status" -ne 0; then
7463 rm -f conftest.* libconftest.a
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7470 $as_echo "$lt_cv_ar_at_file" >&6; }
7472 if test "x$lt_cv_ar_at_file" = xno; then
7475 archiver_list_spec=$lt_cv_ar_at_file
7484 if test -n "$ac_tool_prefix"; then
7485 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7486 set dummy ${ac_tool_prefix}strip; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_prog_STRIP+:} false; then :
7490 $as_echo_n "(cached) " >&6
7492 if test -n "$STRIP"; then
7493 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7502 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 STRIP=$ac_cv_prog_STRIP
7513 if test -n "$STRIP"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7515 $as_echo "$STRIP" >&6; }
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7523 if test -z "$ac_cv_prog_STRIP"; then
7525 # Extract the first word of "strip", so it can be a program name with args.
7526 set dummy strip; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7530 $as_echo_n "(cached) " >&6
7532 if test -n "$ac_ct_STRIP"; then
7533 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7542 ac_cv_prog_ac_ct_STRIP="strip"
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7553 if test -n "$ac_ct_STRIP"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7555 $as_echo "$ac_ct_STRIP" >&6; }
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7561 if test "x$ac_ct_STRIP" = x; then
7564 case $cross_compiling:$ac_tool_warned in
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7568 ac_tool_warned=yes ;;
7573 STRIP="$ac_cv_prog_STRIP"
7576 test -z "$STRIP" && STRIP=:
7583 if test -n "$ac_tool_prefix"; then
7584 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7585 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if ${ac_cv_prog_RANLIB+:} false; then :
7589 $as_echo_n "(cached) " >&6
7591 if test -n "$RANLIB"; then
7592 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 RANLIB=$ac_cv_prog_RANLIB
7612 if test -n "$RANLIB"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7614 $as_echo "$RANLIB" >&6; }
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7622 if test -z "$ac_cv_prog_RANLIB"; then
7623 ac_ct_RANLIB=$RANLIB
7624 # Extract the first word of "ranlib", so it can be a program name with args.
7625 set dummy ranlib; ac_word=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7629 $as_echo_n "(cached) " >&6
7631 if test -n "$ac_ct_RANLIB"; then
7632 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7641 ac_cv_prog_ac_ct_RANLIB="ranlib"
7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7652 if test -n "$ac_ct_RANLIB"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7654 $as_echo "$ac_ct_RANLIB" >&6; }
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7660 if test "x$ac_ct_RANLIB" = x; then
7663 case $cross_compiling:$ac_tool_warned in
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7667 ac_tool_warned=yes ;;
7669 RANLIB=$ac_ct_RANLIB
7672 RANLIB="$ac_cv_prog_RANLIB"
7675 test -z "$RANLIB" && RANLIB=:
7682 # Determine commands to create old-style static archives.
7683 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7684 old_postinstall_cmds='chmod 644 $oldlib'
7685 old_postuninstall_cmds=
7687 if test -n "$RANLIB"; then
7690 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7693 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7696 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7701 lock_old_archive_extraction=yes ;;
7703 lock_old_archive_extraction=no ;;
7744 # If no C compiler was specified, use CC.
7747 # If no C compiler flags were specified, use CFLAGS.
7748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7750 # Allow CC to be a program name with arguments.
7754 # Check for command to grab the raw symbol name followed by C symbol from nm.
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7756 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7757 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7758 $as_echo_n "(cached) " >&6
7761 # These are sane defaults that work on at least a few old systems.
7762 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7764 # Character class describing NM global symbol codes.
7765 symcode='[BCDEGRST]'
7767 # Regexp to match symbols that can be accessed directly from C.
7768 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7770 # Define system-specific variables.
7775 cygwin* | mingw* | pw32* | cegcc*)
7776 symcode='[ABCDGISTW]'
7779 if test "$host_cpu" = ia64; then
7780 symcode='[ABCDEGRST]'
7784 symcode='[BCDEGRST]'
7787 symcode='[BCDEGQRST]'
7798 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7806 # If we're using GNU nm, then use its standard symbol codes.
7807 case `$NM -V 2>&1` in
7808 *GNU* | *'with BFD'*)
7809 symcode='[ABCDGIRSTW]' ;;
7812 # Transform an extracted symbol line into a proper C declaration.
7813 # Some systems (esp. on ia64) link data and code symbols differently,
7814 # so use this general approach.
7815 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7817 # Transform an extracted symbol line into symbol name and symbol address
7818 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7819 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'"
7821 # Handle CRLF in mingw tool chain
7825 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7829 # Try without a prefix underscore, then with it.
7830 for ac_symprfx in "" "_"; do
7832 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7833 symxfrm="\\1 $ac_symprfx\\2 \\2"
7835 # Write the raw and C identifiers.
7836 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7837 # Fake it for dumpbin and say T for any non-static function
7838 # and D for any global variable.
7839 # Also find C++ and __fastcall symbols from MSVC++,
7840 # which start with @ or ?.
7841 lt_cv_sys_global_symbol_pipe="$AWK '"\
7842 " {last_section=section; section=\$ 3};"\
7843 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7844 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7845 " \$ 0!~/External *\|/{next};"\
7846 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7847 " {if(hide[section]) next};"\
7848 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7849 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7850 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7851 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7852 " ' prfx=^$ac_symprfx"
7854 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7856 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7858 # Check to see that the pipe works correctly.
7862 cat > conftest.$ac_ext <<_LT_EOF
7867 void nm_test_func(void);
7868 void nm_test_func(void){}
7872 int main(){nm_test_var='a';nm_test_func();return(0);}
7875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7876 (eval $ac_compile) 2>&5
7878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7879 test $ac_status = 0; }; then
7880 # Now try to grab the symbols.
7882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7883 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7886 test $ac_status = 0; } && test -s "$nlist"; then
7887 # Try sorting and uniquifying the output.
7888 if sort "$nlist" | uniq > "$nlist"T; then
7889 mv -f "$nlist"T "$nlist"
7894 # Make sure that we snagged all the symbols we need.
7895 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7896 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7897 cat <<_LT_EOF > conftest.$ac_ext
7898 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7899 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7900 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7901 relocations are performed -- see ld's documentation on pseudo-relocs. */
7902 # define LT_DLSYM_CONST
7903 #elif defined(__osf__)
7904 /* This system does not cope well with relocations in const data. */
7905 # define LT_DLSYM_CONST
7907 # define LT_DLSYM_CONST const
7915 # Now generate the symbol file.
7916 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7918 cat <<_LT_EOF >> conftest.$ac_ext
7920 /* The mapping between symbol names and symbols. */
7921 LT_DLSYM_CONST struct {
7925 lt__PROGRAM__LTX_preloaded_symbols[] =
7927 { "@PROGRAM@", (void *) 0 },
7929 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7930 cat <<\_LT_EOF >> conftest.$ac_ext
7934 /* This works around a problem in FreeBSD linker */
7935 #ifdef FREEBSD_WORKAROUND
7936 static const void *lt_preloaded_setup() {
7937 return lt__PROGRAM__LTX_preloaded_symbols;
7945 # Now try linking the two files.
7946 mv conftest.$ac_objext conftstm.$ac_objext
7947 lt_globsym_save_LIBS=$LIBS
7948 lt_globsym_save_CFLAGS=$CFLAGS
7949 LIBS="conftstm.$ac_objext"
7950 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7952 (eval $ac_link) 2>&5
7954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7955 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7958 LIBS=$lt_globsym_save_LIBS
7959 CFLAGS=$lt_globsym_save_CFLAGS
7961 echo "cannot find nm_test_func in $nlist" >&5
7964 echo "cannot find nm_test_var in $nlist" >&5
7967 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7970 echo "$progname: failed program was:" >&5
7971 cat conftest.$ac_ext >&5
7973 rm -rf conftest* conftst*
7975 # Do not use the global_symbol_pipe unless it works.
7976 if test "$pipe_works" = yes; then
7979 lt_cv_sys_global_symbol_pipe=
7985 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7986 lt_cv_sys_global_symbol_to_cdecl=
7988 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7990 $as_echo "failed" >&6; }
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7993 $as_echo "ok" >&6; }
7996 # Response file support.
7997 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7998 nm_file_list_spec='@'
7999 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8000 nm_file_list_spec='@'
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8030 $as_echo_n "checking for sysroot... " >&6; }
8032 # Check whether --with-sysroot was given.
8033 if test "${with_sysroot+set}" = set; then :
8034 withval=$with_sysroot;
8041 case ${with_sysroot} in #(
8043 if test "$GCC" = yes; then
8044 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8048 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8054 $as_echo "${with_sysroot}" >&6; }
8055 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8060 $as_echo "${lt_sysroot:-no}" >&6; }
8066 # Check whether --enable-libtool-lock was given.
8067 if test "${enable_libtool_lock+set}" = set; then :
8068 enableval=$enable_libtool_lock;
8071 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8073 # Some flags need to be propagated to the compiler or linker for good
8077 # Find out which ABI we are using.
8078 echo 'int i;' > conftest.$ac_ext
8079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8080 (eval $ac_compile) 2>&5
8082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8083 test $ac_status = 0; }; then
8084 case `/usr/bin/file conftest.$ac_objext` in
8096 # Find out which ABI we are using.
8097 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8099 (eval $ac_compile) 2>&5
8101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8102 test $ac_status = 0; }; then
8103 if test "$lt_cv_prog_gnu_ld" = yes; then
8104 case `/usr/bin/file conftest.$ac_objext` in
8106 LD="${LD-ld} -melf32bsmip"
8109 LD="${LD-ld} -melf32bmipn32"
8112 LD="${LD-ld} -melf64bmip"
8116 case `/usr/bin/file conftest.$ac_objext` in
8132 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8133 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8134 # Find out which ABI we are using.
8135 echo 'int i;' > conftest.$ac_ext
8136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8137 (eval $ac_compile) 2>&5
8139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8140 test $ac_status = 0; }; then
8141 case `/usr/bin/file conftest.o` in
8144 x86_64-*kfreebsd*-gnu)
8145 LD="${LD-ld} -m elf_i386_fbsd"
8148 case `/usr/bin/file conftest.o` in
8150 LD="${LD-ld} -m elf32_x86_64"
8153 LD="${LD-ld} -m elf_i386"
8158 LD="${LD-ld} -m elf32lppclinux"
8161 LD="${LD-ld} -m elf32ppclinux"
8164 LD="${LD-ld} -m elf_s390"
8167 LD="${LD-ld} -m elf32_sparc"
8173 x86_64-*kfreebsd*-gnu)
8174 LD="${LD-ld} -m elf_x86_64_fbsd"
8177 LD="${LD-ld} -m elf_x86_64"
8180 LD="${LD-ld} -m elf64lppc"
8183 LD="${LD-ld} -m elf64ppc"
8185 s390*-*linux*|s390*-*tpf*)
8186 LD="${LD-ld} -m elf64_s390"
8189 LD="${LD-ld} -m elf64_sparc"
8199 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8200 SAVE_CFLAGS="$CFLAGS"
8201 CFLAGS="$CFLAGS -belf"
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8203 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8204 if ${lt_cv_cc_needs_belf+:} false; then :
8205 $as_echo_n "(cached) " >&6
8208 ac_cpp='$CPP $CPPFLAGS'
8209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8224 if ac_fn_c_try_link "$LINENO"; then :
8225 lt_cv_cc_needs_belf=yes
8227 lt_cv_cc_needs_belf=no
8229 rm -f core conftest.err conftest.$ac_objext \
8230 conftest$ac_exeext conftest.$ac_ext
8232 ac_cpp='$CPP $CPPFLAGS'
8233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8239 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8240 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8241 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8242 CFLAGS="$SAVE_CFLAGS"
8246 # Find out which ABI we are using.
8247 echo 'int i;' > conftest.$ac_ext
8248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8249 (eval $ac_compile) 2>&5
8251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8252 test $ac_status = 0; }; then
8253 case `/usr/bin/file conftest.o` in
8255 case $lt_cv_prog_gnu_ld in
8259 LD="${LD-ld} -m elf_x86_64"
8262 LD="${LD-ld} -m elf64_sparc"
8265 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8266 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8271 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8283 need_locks="$enable_libtool_lock"
8285 if test -n "$ac_tool_prefix"; then
8286 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8287 set dummy ${ac_tool_prefix}mt; ac_word=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8291 $as_echo_n "(cached) " >&6
8293 if test -n "$MANIFEST_TOOL"; then
8294 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 test -z "$as_dir" && as_dir=.
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8314 if test -n "$MANIFEST_TOOL"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8316 $as_echo "$MANIFEST_TOOL" >&6; }
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8324 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8325 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8326 # Extract the first word of "mt", so it can be a program name with args.
8327 set dummy mt; ac_word=$2
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8329 $as_echo_n "checking for $ac_word... " >&6; }
8330 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8331 $as_echo_n "(cached) " >&6
8333 if test -n "$ac_ct_MANIFEST_TOOL"; then
8334 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 test -z "$as_dir" && as_dir=.
8341 for ac_exec_ext in '' $ac_executable_extensions; do
8342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8343 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8353 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8354 if test -n "$ac_ct_MANIFEST_TOOL"; then
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8356 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 $as_echo "no" >&6; }
8362 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8365 case $cross_compiling:$ac_tool_warned in
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8369 ac_tool_warned=yes ;;
8371 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8374 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8377 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8379 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8380 if ${lt_cv_path_mainfest_tool+:} false; then :
8381 $as_echo_n "(cached) " >&6
8383 lt_cv_path_mainfest_tool=no
8384 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8385 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8386 cat conftest.err >&5
8387 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8388 lt_cv_path_mainfest_tool=yes
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8393 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8394 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8404 rhapsody* | darwin*)
8405 if test -n "$ac_tool_prefix"; then
8406 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8407 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409 $as_echo_n "checking for $ac_word... " >&6; }
8410 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8411 $as_echo_n "(cached) " >&6
8413 if test -n "$DSYMUTIL"; then
8414 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 test -z "$as_dir" && as_dir=.
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8423 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8434 if test -n "$DSYMUTIL"; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8436 $as_echo "$DSYMUTIL" >&6; }
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 $as_echo "no" >&6; }
8444 if test -z "$ac_cv_prog_DSYMUTIL"; then
8445 ac_ct_DSYMUTIL=$DSYMUTIL
8446 # Extract the first word of "dsymutil", so it can be a program name with args.
8447 set dummy dsymutil; ac_word=$2
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8449 $as_echo_n "checking for $ac_word... " >&6; }
8450 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8451 $as_echo_n "(cached) " >&6
8453 if test -n "$ac_ct_DSYMUTIL"; then
8454 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 test -z "$as_dir" && as_dir=.
8461 for ac_exec_ext in '' $ac_executable_extensions; do
8462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8463 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8473 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8474 if test -n "$ac_ct_DSYMUTIL"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8476 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8482 if test "x$ac_ct_DSYMUTIL" = x; then
8485 case $cross_compiling:$ac_tool_warned in
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8489 ac_tool_warned=yes ;;
8491 DSYMUTIL=$ac_ct_DSYMUTIL
8494 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8497 if test -n "$ac_tool_prefix"; then
8498 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8499 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8501 $as_echo_n "checking for $ac_word... " >&6; }
8502 if ${ac_cv_prog_NMEDIT+:} false; then :
8503 $as_echo_n "(cached) " >&6
8505 if test -n "$NMEDIT"; then
8506 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8515 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 NMEDIT=$ac_cv_prog_NMEDIT
8526 if test -n "$NMEDIT"; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8528 $as_echo "$NMEDIT" >&6; }
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531 $as_echo "no" >&6; }
8536 if test -z "$ac_cv_prog_NMEDIT"; then
8537 ac_ct_NMEDIT=$NMEDIT
8538 # Extract the first word of "nmedit", so it can be a program name with args.
8539 set dummy nmedit; ac_word=$2
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541 $as_echo_n "checking for $ac_word... " >&6; }
8542 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8543 $as_echo_n "(cached) " >&6
8545 if test -n "$ac_ct_NMEDIT"; then
8546 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8555 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8566 if test -n "$ac_ct_NMEDIT"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8568 $as_echo "$ac_ct_NMEDIT" >&6; }
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8574 if test "x$ac_ct_NMEDIT" = x; then
8577 case $cross_compiling:$ac_tool_warned in
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8581 ac_tool_warned=yes ;;
8583 NMEDIT=$ac_ct_NMEDIT
8586 NMEDIT="$ac_cv_prog_NMEDIT"
8589 if test -n "$ac_tool_prefix"; then
8590 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8591 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 $as_echo_n "checking for $ac_word... " >&6; }
8594 if ${ac_cv_prog_LIPO+:} false; then :
8595 $as_echo_n "(cached) " >&6
8597 if test -n "$LIPO"; then
8598 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604 test -z "$as_dir" && as_dir=.
8605 for ac_exec_ext in '' $ac_executable_extensions; do
8606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8607 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617 LIPO=$ac_cv_prog_LIPO
8618 if test -n "$LIPO"; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8620 $as_echo "$LIPO" >&6; }
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8628 if test -z "$ac_cv_prog_LIPO"; then
8630 # Extract the first word of "lipo", so it can be a program name with args.
8631 set dummy lipo; ac_word=$2
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 $as_echo_n "checking for $ac_word... " >&6; }
8634 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8635 $as_echo_n "(cached) " >&6
8637 if test -n "$ac_ct_LIPO"; then
8638 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 test -z "$as_dir" && as_dir=.
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8647 ac_cv_prog_ac_ct_LIPO="lipo"
8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8658 if test -n "$ac_ct_LIPO"; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8660 $as_echo "$ac_ct_LIPO" >&6; }
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 $as_echo "no" >&6; }
8666 if test "x$ac_ct_LIPO" = x; then
8669 case $cross_compiling:$ac_tool_warned in
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8673 ac_tool_warned=yes ;;
8678 LIPO="$ac_cv_prog_LIPO"
8681 if test -n "$ac_tool_prefix"; then
8682 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8683 set dummy ${ac_tool_prefix}otool; ac_word=$2
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 $as_echo_n "checking for $ac_word... " >&6; }
8686 if ${ac_cv_prog_OTOOL+:} false; then :
8687 $as_echo_n "(cached) " >&6
8689 if test -n "$OTOOL"; then
8690 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696 test -z "$as_dir" && as_dir=.
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8699 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 OTOOL=$ac_cv_prog_OTOOL
8710 if test -n "$OTOOL"; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8712 $as_echo "$OTOOL" >&6; }
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8720 if test -z "$ac_cv_prog_OTOOL"; then
8722 # Extract the first word of "otool", so it can be a program name with args.
8723 set dummy otool; ac_word=$2
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 $as_echo_n "checking for $ac_word... " >&6; }
8726 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8727 $as_echo_n "(cached) " >&6
8729 if test -n "$ac_ct_OTOOL"; then
8730 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736 test -z "$as_dir" && as_dir=.
8737 for ac_exec_ext in '' $ac_executable_extensions; do
8738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8739 ac_cv_prog_ac_ct_OTOOL="otool"
8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8750 if test -n "$ac_ct_OTOOL"; then
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8752 $as_echo "$ac_ct_OTOOL" >&6; }
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 $as_echo "no" >&6; }
8758 if test "x$ac_ct_OTOOL" = x; then
8761 case $cross_compiling:$ac_tool_warned in
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8765 ac_tool_warned=yes ;;
8770 OTOOL="$ac_cv_prog_OTOOL"
8773 if test -n "$ac_tool_prefix"; then
8774 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8775 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 $as_echo_n "checking for $ac_word... " >&6; }
8778 if ${ac_cv_prog_OTOOL64+:} false; then :
8779 $as_echo_n "(cached) " >&6
8781 if test -n "$OTOOL64"; then
8782 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 test -z "$as_dir" && as_dir=.
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8791 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 OTOOL64=$ac_cv_prog_OTOOL64
8802 if test -n "$OTOOL64"; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8804 $as_echo "$OTOOL64" >&6; }
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8812 if test -z "$ac_cv_prog_OTOOL64"; then
8813 ac_ct_OTOOL64=$OTOOL64
8814 # Extract the first word of "otool64", so it can be a program name with args.
8815 set dummy otool64; ac_word=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8819 $as_echo_n "(cached) " >&6
8821 if test -n "$ac_ct_OTOOL64"; then
8822 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8831 ac_cv_prog_ac_ct_OTOOL64="otool64"
8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8842 if test -n "$ac_ct_OTOOL64"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8844 $as_echo "$ac_ct_OTOOL64" >&6; }
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8850 if test "x$ac_ct_OTOOL64" = x; then
8853 case $cross_compiling:$ac_tool_warned in
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8857 ac_tool_warned=yes ;;
8859 OTOOL64=$ac_ct_OTOOL64
8862 OTOOL64="$ac_cv_prog_OTOOL64"
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8892 $as_echo_n "checking for -single_module linker flag... " >&6; }
8893 if ${lt_cv_apple_cc_single_mod+:} false; then :
8894 $as_echo_n "(cached) " >&6
8896 lt_cv_apple_cc_single_mod=no
8897 if test -z "${LT_MULTI_MODULE}"; then
8898 # By default we will add the -single_module flag. You can override
8899 # by either setting the environment variable LT_MULTI_MODULE
8900 # non-empty at configure time, or by adding -multi_module to the
8902 rm -rf libconftest.dylib*
8903 echo "int foo(void){return 1;}" > conftest.c
8904 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8905 -dynamiclib -Wl,-single_module conftest.c" >&5
8906 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8907 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8909 # If there is a non-empty error log, and "single_module"
8910 # appears in it, assume the flag caused a linker warning
8911 if test -s conftest.err && $GREP single_module conftest.err; then
8912 cat conftest.err >&5
8913 # Otherwise, if the output was created with a 0 exit code from
8914 # the compiler, it worked.
8915 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8916 lt_cv_apple_cc_single_mod=yes
8918 cat conftest.err >&5
8920 rm -rf libconftest.dylib*
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8925 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8928 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8929 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8930 $as_echo_n "(cached) " >&6
8932 lt_cv_ld_exported_symbols_list=no
8933 save_LDFLAGS=$LDFLAGS
8934 echo "_main" > conftest.sym
8935 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8947 if ac_fn_c_try_link "$LINENO"; then :
8948 lt_cv_ld_exported_symbols_list=yes
8950 lt_cv_ld_exported_symbols_list=no
8952 rm -f core conftest.err conftest.$ac_objext \
8953 conftest$ac_exeext conftest.$ac_ext
8954 LDFLAGS="$save_LDFLAGS"
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8958 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8961 $as_echo_n "checking for -force_load linker flag... " >&6; }
8962 if ${lt_cv_ld_force_load+:} false; then :
8963 $as_echo_n "(cached) " >&6
8965 lt_cv_ld_force_load=no
8966 cat > conftest.c << _LT_EOF
8967 int forced_loaded() { return 2;}
8969 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8970 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8971 echo "$AR cru libconftest.a conftest.o" >&5
8972 $AR cru libconftest.a conftest.o 2>&5
8973 echo "$RANLIB libconftest.a" >&5
8974 $RANLIB libconftest.a 2>&5
8975 cat > conftest.c << _LT_EOF
8976 int main() { return 0;}
8978 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8979 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8981 if test -s conftest.err && $GREP force_load conftest.err; then
8982 cat conftest.err >&5
8983 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8984 lt_cv_ld_force_load=yes
8986 cat conftest.err >&5
8988 rm -f conftest.err libconftest.a conftest conftest.c
8989 rm -rf conftest.dSYM
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8993 $as_echo "$lt_cv_ld_force_load" >&6; }
8995 rhapsody* | darwin1.[012])
8996 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8998 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8999 darwin*) # darwin 5.x on
9000 # if running on 10.5 or later, the deployment target defaults
9001 # to the OS version, if on x86, and 10.4, the deployment
9002 # target defaults to 10.4. Don't you love it?
9003 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9004 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9005 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9007 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9009 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9013 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9014 _lt_dar_single_mod='$single_module'
9016 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9017 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9019 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9021 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9022 _lt_dsymutil='~$DSYMUTIL $lib || :'
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9030 $as_echo_n "checking for ANSI C header files... " >&6; }
9031 if ${ac_cv_header_stdc+:} false; then :
9032 $as_echo_n "(cached) " >&6
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9049 if ac_fn_c_try_compile "$LINENO"; then :
9050 ac_cv_header_stdc=yes
9052 ac_cv_header_stdc=no
9054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056 if test $ac_cv_header_stdc = yes; then
9057 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9064 $EGREP "memchr" >/dev/null 2>&1; then :
9067 ac_cv_header_stdc=no
9073 if test $ac_cv_header_stdc = yes; then
9074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9081 $EGREP "free" >/dev/null 2>&1; then :
9084 ac_cv_header_stdc=no
9090 if test $ac_cv_header_stdc = yes; then
9091 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9092 if test "$cross_compiling" = yes; then :
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9099 #if ((' ' & 0x0FF) == 0x020)
9100 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9101 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9103 # define ISLOWER(c) \
9104 (('a' <= (c) && (c) <= 'i') \
9105 || ('j' <= (c) && (c) <= 'r') \
9106 || ('s' <= (c) && (c) <= 'z'))
9107 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9110 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9115 for (i = 0; i < 256; i++)
9116 if (XOR (islower (i), ISLOWER (i))
9117 || toupper (i) != TOUPPER (i))
9122 if ac_fn_c_try_run "$LINENO"; then :
9125 ac_cv_header_stdc=no
9127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9128 conftest.$ac_objext conftest.beam conftest.$ac_ext
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9134 $as_echo "$ac_cv_header_stdc" >&6; }
9135 if test $ac_cv_header_stdc = yes; then
9137 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9141 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9142 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9143 inttypes.h stdint.h unistd.h
9145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9146 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9148 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9149 cat >>confdefs.h <<_ACEOF
9150 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9158 for ac_header in dlfcn.h
9160 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9162 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9163 cat >>confdefs.h <<_ACEOF
9164 #define HAVE_DLFCN_H 1
9174 func_stripname_cnf ()
9177 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9178 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9180 } # func_stripname_cnf
9187 # Check whether --enable-shared was given.
9188 if test "${enable_shared+set}" = set; then :
9189 enableval=$enable_shared; p=${PACKAGE-default}
9191 yes) enable_shared=yes ;;
9192 no) enable_shared=no ;;
9195 # Look at the argument we got. We use all the common list separators.
9196 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9197 for pkg in $enableval; do
9199 if test "X$pkg" = "X$p"; then
9216 # Check whether --enable-static was given.
9217 if test "${enable_static+set}" = set; then :
9218 enableval=$enable_static; p=${PACKAGE-default}
9220 yes) enable_static=yes ;;
9221 no) enable_static=no ;;
9224 # Look at the argument we got. We use all the common list separators.
9225 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9226 for pkg in $enableval; do
9228 if test "X$pkg" = "X$p"; then
9257 # Check whether --with-pic was given.
9258 if test "${with_pic+set}" = set; then :
9259 withval=$with_pic; lt_p=${PACKAGE-default}
9261 yes|no) pic_mode=$withval ;;
9264 # Look at the argument we got. We use all the common list separators.
9265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9266 for lt_pkg in $withval; do
9268 if test "X$lt_pkg" = "X$lt_p"; then
9280 test -z "$pic_mode" && pic_mode=default
9288 # Check whether --enable-fast-install was given.
9289 if test "${enable_fast_install+set}" = set; then :
9290 enableval=$enable_fast_install; p=${PACKAGE-default}
9292 yes) enable_fast_install=yes ;;
9293 no) enable_fast_install=no ;;
9295 enable_fast_install=no
9296 # Look at the argument we got. We use all the common list separators.
9297 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9298 for pkg in $enableval; do
9300 if test "X$pkg" = "X$p"; then
9301 enable_fast_install=yes
9308 enable_fast_install=yes
9321 # This can be used to rebuild libtool when needed
9322 LIBTOOL_DEPS="$ltmain"
9324 # Always use our own libtool.
9325 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9356 test -z "$LN_S" && LN_S="ln -s"
9371 if test -n "${ZSH_VERSION+set}" ; then
9372 setopt NO_GLOB_SUBST
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9376 $as_echo_n "checking for objdir... " >&6; }
9377 if ${lt_cv_objdir+:} false; then :
9378 $as_echo_n "(cached) " >&6
9380 rm -f .libs 2>/dev/null
9381 mkdir .libs 2>/dev/null
9382 if test -d .libs; then
9385 # MS-DOS does not allow filenames that begin with a dot.
9388 rmdir .libs 2>/dev/null
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9391 $as_echo "$lt_cv_objdir" >&6; }
9392 objdir=$lt_cv_objdir
9398 cat >>confdefs.h <<_ACEOF
9399 #define LT_OBJDIR "$lt_cv_objdir/"
9407 # AIX sometimes has problems with the GCC collect2 program. For some
9408 # reason, if we set the COLLECT_NAMES environment variable, the problems
9409 # vanish in a puff of smoke.
9410 if test "X${COLLECT_NAMES+set}" != Xset; then
9412 export COLLECT_NAMES
9419 can_build_shared=yes
9421 # All known linkers require a `.a' archive for static linking (except MSVC,
9422 # which needs '.lib').
9425 with_gnu_ld="$lt_cv_prog_gnu_ld"
9428 old_CFLAGS="$CFLAGS"
9430 # Set sane defaults for various variables
9431 test -z "$CC" && CC=cc
9432 test -z "$LTCC" && LTCC=$CC
9433 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9434 test -z "$LD" && LD=ld
9435 test -z "$ac_objext" && ac_objext=o
9437 for cc_temp in $compiler""; do
9439 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9440 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9445 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9448 # Only perform the check for file, if the check method requires it
9449 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9450 case $deplibs_check_method in
9452 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9454 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9455 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9456 $as_echo_n "(cached) " >&6
9460 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9463 lt_save_MAGIC_CMD="$MAGIC_CMD"
9464 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9465 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9466 for ac_dir in $ac_dummy; do
9468 test -z "$ac_dir" && ac_dir=.
9469 if test -f $ac_dir/${ac_tool_prefix}file; then
9470 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9471 if test -n "$file_magic_test_file"; then
9472 case $deplibs_check_method in
9474 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9475 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9476 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9477 $EGREP "$file_magic_regex" > /dev/null; then
9482 *** Warning: the command libtool uses to detect shared libraries,
9483 *** $file_magic_cmd, produces output that libtool cannot recognize.
9484 *** The result is that libtool may fail to recognize shared libraries
9485 *** as such. This will affect the creation of libtool libraries that
9486 *** depend on shared libraries, but programs linked with such libtool
9487 *** libraries will work regardless of this problem. Nevertheless, you
9488 *** may want to report the problem to your system manager and/or to
9489 *** bug-libtool@gnu.org
9499 MAGIC_CMD="$lt_save_MAGIC_CMD"
9504 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9505 if test -n "$MAGIC_CMD"; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9507 $as_echo "$MAGIC_CMD" >&6; }
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510 $as_echo "no" >&6; }
9517 if test -z "$lt_cv_path_MAGIC_CMD"; then
9518 if test -n "$ac_tool_prefix"; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9520 $as_echo_n "checking for file... " >&6; }
9521 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9522 $as_echo_n "(cached) " >&6
9526 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9529 lt_save_MAGIC_CMD="$MAGIC_CMD"
9530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9531 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9532 for ac_dir in $ac_dummy; do
9534 test -z "$ac_dir" && ac_dir=.
9535 if test -f $ac_dir/file; then
9536 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9537 if test -n "$file_magic_test_file"; then
9538 case $deplibs_check_method in
9540 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9541 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9542 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9543 $EGREP "$file_magic_regex" > /dev/null; then
9548 *** Warning: the command libtool uses to detect shared libraries,
9549 *** $file_magic_cmd, produces output that libtool cannot recognize.
9550 *** The result is that libtool may fail to recognize shared libraries
9551 *** as such. This will affect the creation of libtool libraries that
9552 *** depend on shared libraries, but programs linked with such libtool
9553 *** libraries will work regardless of this problem. Nevertheless, you
9554 *** may want to report the problem to your system manager and/or to
9555 *** bug-libtool@gnu.org
9565 MAGIC_CMD="$lt_save_MAGIC_CMD"
9570 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9571 if test -n "$MAGIC_CMD"; then
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9573 $as_echo "$MAGIC_CMD" >&6; }
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576 $as_echo "no" >&6; }
9589 # Use C for the default configuration in the libtool script
9593 ac_cpp='$CPP $CPPFLAGS'
9594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9599 # Source file extension for C test sources.
9602 # Object file extension for compiled C test sources.
9606 # Code to be used in simple compile tests
9607 lt_simple_compile_test_code="int some_variable = 0;"
9609 # Code to be used in simple link tests
9610 lt_simple_link_test_code='int main(){return(0);}'
9618 # If no C compiler was specified, use CC.
9621 # If no C compiler flags were specified, use CFLAGS.
9622 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9624 # Allow CC to be a program name with arguments.
9627 # Save the default compiler, since it gets overwritten when the other
9628 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9629 compiler_DEFAULT=$CC
9631 # save warnings/boilerplate of simple test code
9632 ac_outfile=conftest.$ac_objext
9633 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9634 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9635 _lt_compiler_boilerplate=`cat conftest.err`
9638 ac_outfile=conftest.$ac_objext
9639 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9640 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9641 _lt_linker_boilerplate=`cat conftest.err`
9646 ## There is no encapsulation within the following macros, do not change
9647 ## the running order or otherwise move them around unless you know exactly
9648 ## what you are doing...
9649 if test -n "$compiler"; then
9651 lt_prog_compiler_no_builtin_flag=
9653 if test "$GCC" = yes; then
9654 case $cc_basename in
9656 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9658 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9662 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9663 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9664 $as_echo_n "(cached) " >&6
9666 lt_cv_prog_compiler_rtti_exceptions=no
9667 ac_outfile=conftest.$ac_objext
9668 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9669 lt_compiler_flag="-fno-rtti -fno-exceptions"
9670 # Insert the option either (1) after the last *FLAGS variable, or
9671 # (2) before a word containing "conftest.", or (3) at the end.
9672 # Note that $ac_compile itself does not contain backslashes and begins
9673 # with a dollar sign (not a hyphen), so the echo should work correctly.
9674 # The option is referenced via a variable to avoid confusing sed.
9675 lt_compile=`echo "$ac_compile" | $SED \
9676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9678 -e 's:$: $lt_compiler_flag:'`
9679 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9680 (eval "$lt_compile" 2>conftest.err)
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 if (exit $ac_status) && test -s "$ac_outfile"; then
9685 # The compiler can only warn and ignore the option if not recognized
9686 # So say no if there are warnings other than the usual output.
9687 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9689 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9690 lt_cv_prog_compiler_rtti_exceptions=yes
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9697 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9699 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9700 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9712 lt_prog_compiler_wl=
9713 lt_prog_compiler_pic=
9714 lt_prog_compiler_static=
9717 if test "$GCC" = yes; then
9718 lt_prog_compiler_wl='-Wl,'
9719 lt_prog_compiler_static='-static'
9723 # All AIX code is PIC.
9724 if test "$host_cpu" = ia64; then
9725 # AIX 5 now supports IA64 processor
9726 lt_prog_compiler_static='-Bstatic'
9733 # see comment about AmigaOS4 .so support
9734 lt_prog_compiler_pic='-fPIC'
9737 # FIXME: we need at least 68020 code to build shared libraries, but
9738 # adding the `-m68020' flag to GCC prevents building anything better,
9740 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9745 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9746 # PIC is the default for these OSes.
9749 mingw* | cygwin* | pw32* | os2* | cegcc*)
9750 # This hack is so that the source file can tell whether it is being
9751 # built for inclusion in a dll (and should export symbols for example).
9752 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9753 # (--disable-auto-import) libraries
9754 lt_prog_compiler_pic='-DDLL_EXPORT'
9757 darwin* | rhapsody*)
9758 # PIC is the default on this platform
9759 # Common symbols not allowed in MH_DYLIB files
9760 lt_prog_compiler_pic='-fno-common'
9764 # PIC is the default for Haiku.
9765 # The "-static" flag exists, but is broken.
9766 lt_prog_compiler_static=
9770 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9771 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9772 # sets the default TLS model and affects inlining.
9778 lt_prog_compiler_pic='-fPIC'
9784 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9785 # Instead, we relocate shared libraries at runtime.
9789 # Just because we use GCC doesn't mean we suddenly get shared libraries
9790 # on systems that don't support them.
9791 lt_prog_compiler_can_build_shared=no
9796 # QNX uses GNU C++, but need to define -shared option too, otherwise
9798 lt_prog_compiler_pic='-fPIC -shared'
9802 if test -d /usr/nec; then
9803 lt_prog_compiler_pic=-Kconform_pic
9808 lt_prog_compiler_pic='-fPIC'
9812 case $cc_basename in
9813 nvcc*) # Cuda Compiler Driver 2.2
9814 lt_prog_compiler_wl='-Xlinker '
9815 if test -n "$lt_prog_compiler_pic"; then
9816 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9821 # PORTME Check for flag to pass linker flags through the system compiler.
9824 lt_prog_compiler_wl='-Wl,'
9825 if test "$host_cpu" = ia64; then
9826 # AIX 5 now supports IA64 processor
9827 lt_prog_compiler_static='-Bstatic'
9829 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9833 mingw* | cygwin* | pw32* | os2* | cegcc*)
9834 # This hack is so that the source file can tell whether it is being
9835 # built for inclusion in a dll (and should export symbols for example).
9836 lt_prog_compiler_pic='-DDLL_EXPORT'
9839 hpux9* | hpux10* | hpux11*)
9840 lt_prog_compiler_wl='-Wl,'
9841 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9848 lt_prog_compiler_pic='+Z'
9851 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9852 lt_prog_compiler_static='${wl}-a ${wl}archive'
9855 irix5* | irix6* | nonstopux*)
9856 lt_prog_compiler_wl='-Wl,'
9857 # PIC (with -KPIC) is the default.
9858 lt_prog_compiler_static='-non_shared'
9861 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9862 case $cc_basename in
9863 # old Intel for x86_64 which still supported -KPIC.
9865 lt_prog_compiler_wl='-Wl,'
9866 lt_prog_compiler_pic='-KPIC'
9867 lt_prog_compiler_static='-static'
9869 # icc used to be incompatible with GCC.
9870 # ICC 10 doesn't accept -KPIC any more.
9872 lt_prog_compiler_wl='-Wl,'
9873 lt_prog_compiler_pic='-fPIC'
9874 lt_prog_compiler_static='-static'
9876 # Lahey Fortran 8.1.
9878 lt_prog_compiler_wl='-Wl,'
9879 lt_prog_compiler_pic='--shared'
9880 lt_prog_compiler_static='--static'
9883 # NAG Fortran compiler
9884 lt_prog_compiler_wl='-Wl,-Wl,,'
9885 lt_prog_compiler_pic='-PIC'
9886 lt_prog_compiler_static='-Bstatic'
9888 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9889 # Portland Group compilers (*not* the Pentium gcc compiler,
9890 # which looks to be a dead project)
9891 lt_prog_compiler_wl='-Wl,'
9892 lt_prog_compiler_pic='-fpic'
9893 lt_prog_compiler_static='-Bstatic'
9896 lt_prog_compiler_wl='-Wl,'
9897 # All Alpha code is PIC.
9898 lt_prog_compiler_static='-non_shared'
9900 xl* | bgxl* | bgf* | mpixl*)
9901 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9902 lt_prog_compiler_wl='-Wl,'
9903 lt_prog_compiler_pic='-qpic'
9904 lt_prog_compiler_static='-qstaticlink'
9907 case `$CC -V 2>&1 | sed 5q` in
9908 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9909 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9910 lt_prog_compiler_pic='-KPIC'
9911 lt_prog_compiler_static='-Bstatic'
9912 lt_prog_compiler_wl=''
9914 *Sun\ F* | *Sun*Fortran*)
9915 lt_prog_compiler_pic='-KPIC'
9916 lt_prog_compiler_static='-Bstatic'
9917 lt_prog_compiler_wl='-Qoption ld '
9921 lt_prog_compiler_pic='-KPIC'
9922 lt_prog_compiler_static='-Bstatic'
9923 lt_prog_compiler_wl='-Wl,'
9925 *Intel*\ [CF]*Compiler*)
9926 lt_prog_compiler_wl='-Wl,'
9927 lt_prog_compiler_pic='-fPIC'
9928 lt_prog_compiler_static='-static'
9931 lt_prog_compiler_wl='-Wl,'
9932 lt_prog_compiler_pic='-fpic'
9933 lt_prog_compiler_static='-Bstatic'
9941 lt_prog_compiler_pic='-KPIC'
9942 lt_prog_compiler_static='-Bstatic'
9946 # QNX uses GNU C++, but need to define -shared option too, otherwise
9948 lt_prog_compiler_pic='-fPIC -shared'
9951 osf3* | osf4* | osf5*)
9952 lt_prog_compiler_wl='-Wl,'
9953 # All OSF/1 code is PIC.
9954 lt_prog_compiler_static='-non_shared'
9958 lt_prog_compiler_static='-non_shared'
9962 lt_prog_compiler_pic='-KPIC'
9963 lt_prog_compiler_static='-Bstatic'
9964 case $cc_basename in
9965 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9966 lt_prog_compiler_wl='-Qoption ld ';;
9968 lt_prog_compiler_wl='-Wl,';;
9973 lt_prog_compiler_wl='-Qoption ld '
9974 lt_prog_compiler_pic='-PIC'
9975 lt_prog_compiler_static='-Bstatic'
9978 sysv4 | sysv4.2uw2* | sysv4.3*)
9979 lt_prog_compiler_wl='-Wl,'
9980 lt_prog_compiler_pic='-KPIC'
9981 lt_prog_compiler_static='-Bstatic'
9985 if test -d /usr/nec ;then
9986 lt_prog_compiler_pic='-Kconform_pic'
9987 lt_prog_compiler_static='-Bstatic'
9991 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9992 lt_prog_compiler_wl='-Wl,'
9993 lt_prog_compiler_pic='-KPIC'
9994 lt_prog_compiler_static='-Bstatic'
9998 lt_prog_compiler_wl='-Wl,'
9999 lt_prog_compiler_can_build_shared=no
10003 lt_prog_compiler_pic='-pic'
10004 lt_prog_compiler_static='-Bstatic'
10008 lt_prog_compiler_can_build_shared=no
10014 # For platforms which do not support PIC, -DPIC is meaningless:
10016 lt_prog_compiler_pic=
10019 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10024 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10025 if ${lt_cv_prog_compiler_pic+:} false; then :
10026 $as_echo_n "(cached) " >&6
10028 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10031 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10032 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10035 # Check to make sure the PIC flag actually works.
10037 if test -n "$lt_prog_compiler_pic"; then
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10039 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10040 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10041 $as_echo_n "(cached) " >&6
10043 lt_cv_prog_compiler_pic_works=no
10044 ac_outfile=conftest.$ac_objext
10045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10046 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10047 # Insert the option either (1) after the last *FLAGS variable, or
10048 # (2) before a word containing "conftest.", or (3) at the end.
10049 # Note that $ac_compile itself does not contain backslashes and begins
10050 # with a dollar sign (not a hyphen), so the echo should work correctly.
10051 # The option is referenced via a variable to avoid confusing sed.
10052 lt_compile=`echo "$ac_compile" | $SED \
10053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10055 -e 's:$: $lt_compiler_flag:'`
10056 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10057 (eval "$lt_compile" 2>conftest.err)
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 if (exit $ac_status) && test -s "$ac_outfile"; then
10062 # The compiler can only warn and ignore the option if not recognized
10063 # So say no if there are warnings other than the usual output.
10064 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10066 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10067 lt_cv_prog_compiler_pic_works=yes
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10074 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10076 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10077 case $lt_prog_compiler_pic in
10079 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10082 lt_prog_compiler_pic=
10083 lt_prog_compiler_can_build_shared=no
10099 # Check to make sure the static flag actually works.
10101 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10103 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10104 if ${lt_cv_prog_compiler_static_works+:} false; then :
10105 $as_echo_n "(cached) " >&6
10107 lt_cv_prog_compiler_static_works=no
10108 save_LDFLAGS="$LDFLAGS"
10109 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10110 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10111 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10112 # The linker can only warn and ignore the option if not recognized
10113 # So say no if there are warnings
10114 if test -s conftest.err; then
10115 # Append any errors to the config.log.
10116 cat conftest.err 1>&5
10117 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10119 if diff conftest.exp conftest.er2 >/dev/null; then
10120 lt_cv_prog_compiler_static_works=yes
10123 lt_cv_prog_compiler_static_works=yes
10127 LDFLAGS="$save_LDFLAGS"
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10131 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10133 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10136 lt_prog_compiler_static=
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10146 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10147 if ${lt_cv_prog_compiler_c_o+:} false; then :
10148 $as_echo_n "(cached) " >&6
10150 lt_cv_prog_compiler_c_o=no
10151 $RM -r conftest 2>/dev/null
10155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10157 lt_compiler_flag="-o out/conftest2.$ac_objext"
10158 # Insert the option either (1) after the last *FLAGS variable, or
10159 # (2) before a word containing "conftest.", or (3) at the end.
10160 # Note that $ac_compile itself does not contain backslashes and begins
10161 # with a dollar sign (not a hyphen), so the echo should work correctly.
10162 lt_compile=`echo "$ac_compile" | $SED \
10163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10165 -e 's:$: $lt_compiler_flag:'`
10166 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10167 (eval "$lt_compile" 2>out/conftest.err)
10169 cat out/conftest.err >&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10173 # The compiler can only warn and ignore the option if not recognized
10174 # So say no if there are warnings
10175 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10176 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10177 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10178 lt_cv_prog_compiler_c_o=yes
10183 # SGI C++ compiler will create directory out/ii_files/ for
10184 # template instantiation
10185 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10186 $RM out/* && rmdir out
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10193 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10201 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10202 if ${lt_cv_prog_compiler_c_o+:} false; then :
10203 $as_echo_n "(cached) " >&6
10205 lt_cv_prog_compiler_c_o=no
10206 $RM -r conftest 2>/dev/null
10210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10212 lt_compiler_flag="-o out/conftest2.$ac_objext"
10213 # Insert the option either (1) after the last *FLAGS variable, or
10214 # (2) before a word containing "conftest.", or (3) at the end.
10215 # Note that $ac_compile itself does not contain backslashes and begins
10216 # with a dollar sign (not a hyphen), so the echo should work correctly.
10217 lt_compile=`echo "$ac_compile" | $SED \
10218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10220 -e 's:$: $lt_compiler_flag:'`
10221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10222 (eval "$lt_compile" 2>out/conftest.err)
10224 cat out/conftest.err >&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10228 # The compiler can only warn and ignore the option if not recognized
10229 # So say no if there are warnings
10230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10231 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10232 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10233 lt_cv_prog_compiler_c_o=yes
10238 # SGI C++ compiler will create directory out/ii_files/ for
10239 # template instantiation
10240 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10241 $RM out/* && rmdir out
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10248 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10253 hard_links="nottested"
10254 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10255 # do not overwrite the value of need_locks provided by the user
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10257 $as_echo_n "checking if we can lock with hard links... " >&6; }
10260 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10262 ln conftest.a conftest.b 2>&5 || hard_links=no
10263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10265 $as_echo "$hard_links" >&6; }
10266 if test "$hard_links" = no; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10268 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10281 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10284 allow_undefined_flag=
10285 always_export_symbols=no
10287 archive_expsym_cmds=
10288 compiler_needs_object=no
10289 enable_shared_with_static_runtimes=no
10290 export_dynamic_flag_spec=
10291 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10292 hardcode_automatic=no
10294 hardcode_direct_absolute=no
10295 hardcode_libdir_flag_spec=
10296 hardcode_libdir_separator=
10297 hardcode_minus_L=no
10298 hardcode_shlibpath_var=unsupported
10300 link_all_deplibs=unknown
10302 module_expsym_cmds=
10303 old_archive_from_new_cmds=
10304 old_archive_from_expsyms_cmds=
10305 thread_safe_flag_spec=
10306 whole_archive_flag_spec=
10307 # include_expsyms should be a list of space-separated symbols to be *always*
10308 # included in the symbol list
10310 # exclude_expsyms can be an extended regexp of symbols to exclude
10311 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10312 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10313 # as well as any symbol that contains `d'.
10314 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10315 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10316 # platforms (ab)use it in PIC code, but their linkers get confused if
10317 # the symbol is explicitly referenced. Since portable code cannot
10318 # rely on this symbol name, it's probably fine to never include it in
10319 # preloaded symbol tables.
10320 # Exclude shared library initialization/finalization symbols.
10321 extract_expsyms_cmds=
10324 cygwin* | mingw* | pw32* | cegcc*)
10325 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10326 # When not using gcc, we currently assume that we are using
10327 # Microsoft Visual C++.
10328 if test "$GCC" != yes; then
10333 # we just hope/assume this is gcc and not c89 (= MSVC++)
10339 linux* | k*bsd*-gnu | gnu*)
10340 link_all_deplibs=no
10346 # On some targets, GNU ld is compatible enough with the native linker
10347 # that we're better off using the native interface for both.
10348 lt_use_gnu_ld_interface=no
10349 if test "$with_gnu_ld" = yes; then
10352 # The AIX port of GNU ld has always aspired to compatibility
10353 # with the native linker. However, as the warning in the GNU ld
10354 # block says, versions before 2.19.5* couldn't really create working
10355 # shared libraries, regardless of the interface used.
10356 case `$LD -v 2>&1` in
10357 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10358 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10359 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10361 lt_use_gnu_ld_interface=yes
10366 lt_use_gnu_ld_interface=yes
10371 if test "$lt_use_gnu_ld_interface" = yes; then
10372 # If archive_cmds runs LD, not CC, wlarc should be empty
10375 # Set some defaults for GNU ld with shared library support. These
10376 # are reset later if shared libraries are not supported. Putting them
10377 # here allows them to be overridden if necessary.
10378 runpath_var=LD_RUN_PATH
10379 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10380 export_dynamic_flag_spec='${wl}--export-dynamic'
10381 # ancient GNU ld didn't support --whole-archive et. al.
10382 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10383 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10385 whole_archive_flag_spec=
10387 supports_anon_versioning=no
10388 case `$LD -v 2>&1` in
10389 *GNU\ gold*) supports_anon_versioning=yes ;;
10390 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10391 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10392 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10393 *\ 2.11.*) ;; # other 2.11 versions
10394 *) supports_anon_versioning=yes ;;
10397 # See if GNU ld supports shared libraries.
10400 # On AIX/PPC, the GNU linker is very broken
10401 if test "$host_cpu" != ia64; then
10405 *** Warning: the GNU linker, at least up to release 2.19, is reported
10406 *** to be unable to reliably create shared libraries on AIX.
10407 *** Therefore, libtool is disabling shared libraries support. If you
10408 *** really care for shared libraries, you may want to install binutils
10409 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10410 *** You will then need to restart the configuration process.
10419 # see comment about AmigaOS4 .so support
10420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10421 archive_expsym_cmds=''
10424 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)'
10425 hardcode_libdir_flag_spec='-L$libdir'
10426 hardcode_minus_L=yes
10432 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10433 allow_undefined_flag=unsupported
10434 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10435 # support --undefined. This deserves some investigation. FIXME
10436 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10442 cygwin* | mingw* | pw32* | cegcc*)
10443 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10444 # as there is no search path for DLLs.
10445 hardcode_libdir_flag_spec='-L$libdir'
10446 export_dynamic_flag_spec='${wl}--export-all-symbols'
10447 allow_undefined_flag=unsupported
10448 always_export_symbols=no
10449 enable_shared_with_static_runtimes=yes
10450 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'
10451 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10453 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10455 # If the export-symbols file already is a .def file (1st line
10456 # is EXPORTS), use it as is; otherwise, prepend...
10457 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10458 cp $export_symbols $output_objdir/$soname.def;
10460 echo EXPORTS > $output_objdir/$soname.def;
10461 cat $export_symbols >> $output_objdir/$soname.def;
10463 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10471 link_all_deplibs=yes
10476 hardcode_shlibpath_var=no
10477 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10478 export_dynamic_flag_spec='${wl}-E'
10479 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10480 # Instead, shared libraries are loaded at an image base (0x10000000 by
10481 # default) and relocated if they conflict, which is a slow very memory
10482 # consuming and fragmenting process. To avoid this, we pick a random,
10483 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10484 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10485 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10486 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'
10489 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10491 if test "$host_os" = linux-dietlibc; then
10492 case $cc_basename in
10493 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10496 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10497 && test "$tmp_diet" = no
10499 tmp_addflag=' $pic_flag'
10500 tmp_sharedflag='-shared'
10501 case $cc_basename,$host_cpu in
10502 pgcc*) # Portland Group C compiler
10503 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'
10504 tmp_addflag=' $pic_flag'
10506 pgf77* | pgf90* | pgf95* | pgfortran*)
10507 # Portland Group f77 and f90 compilers
10508 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10509 tmp_addflag=' $pic_flag -Mnomain' ;;
10510 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10511 tmp_addflag=' -i_dynamic' ;;
10512 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10513 tmp_addflag=' -i_dynamic -nofor_main' ;;
10514 ifc* | ifort*) # Intel Fortran compiler
10515 tmp_addflag=' -nofor_main' ;;
10516 lf95*) # Lahey Fortran 8.1
10517 whole_archive_flag_spec=
10518 tmp_sharedflag='--shared' ;;
10519 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10520 tmp_sharedflag='-qmkshrobj'
10522 nvcc*) # Cuda Compiler Driver 2.2
10523 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'
10524 compiler_needs_object=yes
10527 case `$CC -V 2>&1 | sed 5q` in
10528 *Sun\ C*) # Sun C 5.9
10529 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'
10530 compiler_needs_object=yes
10531 tmp_sharedflag='-G' ;;
10532 *Sun\ F*) # Sun Fortran 8.3
10533 tmp_sharedflag='-G' ;;
10535 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10537 if test "x$supports_anon_versioning" = xyes; then
10538 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10539 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10540 echo "local: *; };" >> $output_objdir/$libname.ver~
10541 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10544 case $cc_basename in
10545 xlf* | bgf* | bgxlf* | mpixlf*)
10546 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10547 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10549 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10550 if test "x$supports_anon_versioning" = xyes; then
10551 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10552 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10553 echo "local: *; };" >> $output_objdir/$libname.ver~
10554 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10563 netbsd* | netbsdelf*-gnu)
10564 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10565 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10568 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10569 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10574 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10578 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10579 *** create shared libraries on Solaris systems. Therefore, libtool
10580 *** is disabling shared libraries support. We urge you to upgrade GNU
10581 *** binutils to release 2.9.1 or newer. Another option is to modify
10582 *** your PATH or compiler configuration so that the native linker is
10583 *** used, and then restart.
10586 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10587 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10588 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10594 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10595 case `$LD -v 2>&1` in
10596 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10600 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10601 *** reliably create shared libraries on SCO systems. Therefore, libtool
10602 *** is disabling shared libraries support. We urge you to upgrade GNU
10603 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10604 *** your PATH or compiler configuration so that the native linker is
10605 *** used, and then restart.
10610 # For security reasons, it is highly recommended that you always
10611 # use absolute paths for naming shared libraries, and exclude the
10612 # DT_RUNPATH tag from executables and libraries. But doing so
10613 # requires that you compile everything twice, which is a pain.
10614 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10626 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10628 hardcode_direct=yes
10629 hardcode_shlibpath_var=no
10633 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10634 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10635 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10642 if test "$ld_shlibs" = no; then
10644 hardcode_libdir_flag_spec=
10645 export_dynamic_flag_spec=
10646 whole_archive_flag_spec=
10649 # PORTME fill in a description of your system's linker (not GNU ld)
10652 allow_undefined_flag=unsupported
10653 always_export_symbols=yes
10654 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'
10655 # Note: this linker hardcodes the directories in LIBPATH if there
10656 # are no directories specified by -L.
10657 hardcode_minus_L=yes
10658 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10659 # Neither direct hardcoding nor static linking is supported with a
10661 hardcode_direct=unsupported
10666 if test "$host_cpu" = ia64; then
10667 # On IA64, the linker does run time linking by default, so we don't
10668 # have to do anything special.
10669 aix_use_runtimelinking=no
10670 exp_sym_flag='-Bexport'
10673 # If we're using GNU nm, then we don't want the "-C" option.
10674 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10675 # Also, AIX nm treats weak defined symbols like other global
10676 # defined symbols, whereas GNU nm marks them as "W".
10677 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10678 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'
10680 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'
10682 aix_use_runtimelinking=no
10684 # Test if we are trying to use run time linking or normal
10685 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10686 # need to do runtime linking.
10687 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10688 for ld_flag in $LDFLAGS; do
10689 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10690 aix_use_runtimelinking=yes
10697 exp_sym_flag='-bexport'
10698 no_entry_flag='-bnoentry'
10701 # When large executables or shared objects are built, AIX ld can
10702 # have problems creating the table of contents. If linking a library
10703 # or program results in "error TOC overflow" add -mminimal-toc to
10704 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10705 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10708 hardcode_direct=yes
10709 hardcode_direct_absolute=yes
10710 hardcode_libdir_separator=':'
10711 link_all_deplibs=yes
10712 file_list_spec='${wl}-f,'
10714 if test "$GCC" = yes; then
10715 case $host_os in aix4.[012]|aix4.[012].*)
10716 # We only want to do this on AIX 4.2 and lower, the check
10717 # below for broken collect2 doesn't work under 4.3+
10718 collect2name=`${CC} -print-prog-name=collect2`
10719 if test -f "$collect2name" &&
10720 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10722 # We have reworked collect2
10725 # We have old collect2
10726 hardcode_direct=unsupported
10727 # It fails to find uninstalled libraries when the uninstalled
10728 # path is not listed in the libpath. Setting hardcode_minus_L
10729 # to unsupported forces relinking
10730 hardcode_minus_L=yes
10731 hardcode_libdir_flag_spec='-L$libdir'
10732 hardcode_libdir_separator=
10736 shared_flag='-shared'
10737 if test "$aix_use_runtimelinking" = yes; then
10738 shared_flag="$shared_flag "'${wl}-G'
10740 link_all_deplibs=no
10743 if test "$host_cpu" = ia64; then
10744 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10745 # chokes on -Wl,-G. The following line is correct:
10748 if test "$aix_use_runtimelinking" = yes; then
10749 shared_flag='${wl}-G'
10751 shared_flag='${wl}-bM:SRE'
10756 export_dynamic_flag_spec='${wl}-bexpall'
10757 # It seems that -bexpall does not export symbols beginning with
10758 # underscore (_), so it is better to generate a list of symbols to export.
10759 always_export_symbols=yes
10760 if test "$aix_use_runtimelinking" = yes; then
10761 # Warning - without using the other runtime loading flags (-brtl),
10762 # -berok will link without error, but may produce a broken library.
10763 allow_undefined_flag='-berok'
10764 # Determine the default libpath from the value encoded in an
10765 # empty executable.
10766 if test "${lt_cv_aix_libpath+set}" = set; then
10767 aix_libpath=$lt_cv_aix_libpath
10769 if ${lt_cv_aix_libpath_+:} false; then :
10770 $as_echo_n "(cached) " >&6
10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10783 if ac_fn_c_try_link "$LINENO"; then :
10785 lt_aix_libpath_sed='
10786 /Import File Strings/,/^$/ {
10788 s/^0 *\([^ ]*\) *$/\1/
10792 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10793 # Check for a 64-bit object if we didn't find anything.
10794 if test -z "$lt_cv_aix_libpath_"; then
10795 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10798 rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10800 if test -z "$lt_cv_aix_libpath_"; then
10801 lt_cv_aix_libpath_="/usr/lib:/lib"
10806 aix_libpath=$lt_cv_aix_libpath_
10809 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10810 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"
10812 if test "$host_cpu" = ia64; then
10813 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10814 allow_undefined_flag="-z nodefs"
10815 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"
10817 # Determine the default libpath from the value encoded in an
10818 # empty executable.
10819 if test "${lt_cv_aix_libpath+set}" = set; then
10820 aix_libpath=$lt_cv_aix_libpath
10822 if ${lt_cv_aix_libpath_+:} false; then :
10823 $as_echo_n "(cached) " >&6
10825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10836 if ac_fn_c_try_link "$LINENO"; then :
10838 lt_aix_libpath_sed='
10839 /Import File Strings/,/^$/ {
10841 s/^0 *\([^ ]*\) *$/\1/
10845 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10846 # Check for a 64-bit object if we didn't find anything.
10847 if test -z "$lt_cv_aix_libpath_"; then
10848 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10851 rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10853 if test -z "$lt_cv_aix_libpath_"; then
10854 lt_cv_aix_libpath_="/usr/lib:/lib"
10859 aix_libpath=$lt_cv_aix_libpath_
10862 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10863 # Warning - without using the other run time loading flags,
10864 # -berok will link without error, but may produce a broken library.
10865 no_undefined_flag=' ${wl}-bernotok'
10866 allow_undefined_flag=' ${wl}-berok'
10867 if test "$with_gnu_ld" = yes; then
10868 # We only use this code for GNU lds that support --whole-archive.
10869 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10871 # Exported symbols can be pulled into shared objects from archives
10872 whole_archive_flag_spec='$convenience'
10874 archive_cmds_need_lc=yes
10875 # This is similar to how AIX traditionally builds its shared libraries.
10876 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'
10884 # see comment about AmigaOS4 .so support
10885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10886 archive_expsym_cmds=''
10889 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)'
10890 hardcode_libdir_flag_spec='-L$libdir'
10891 hardcode_minus_L=yes
10897 export_dynamic_flag_spec=-rdynamic
10900 cygwin* | mingw* | pw32* | cegcc*)
10901 # When not using gcc, we currently assume that we are using
10902 # Microsoft Visual C++.
10903 # hardcode_libdir_flag_spec is actually meaningless, as there is
10904 # no search path for DLLs.
10905 case $cc_basename in
10908 hardcode_libdir_flag_spec=' '
10909 allow_undefined_flag=unsupported
10910 always_export_symbols=yes
10912 # Tell ltmain to make .lib files, not .a files.
10914 # Tell ltmain to make .dll files, not .so files.
10916 # FIXME: Setting linknames here is a bad hack.
10917 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10918 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10919 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10921 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10923 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10925 # The linker will not automatically build a static lib if we build a DLL.
10926 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10927 enable_shared_with_static_runtimes=yes
10928 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10929 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10931 old_postinstall_cmds='chmod 644 $oldlib'
10932 postlink_cmds='lt_outputfile="@OUTPUT@"~
10933 lt_tool_outputfile="@TOOL_OUTPUT@"~
10934 case $lt_outputfile in
10937 lt_outputfile="$lt_outputfile.exe"
10938 lt_tool_outputfile="$lt_tool_outputfile.exe"
10941 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10942 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10943 $RM "$lt_outputfile.manifest";
10947 # Assume MSVC wrapper
10948 hardcode_libdir_flag_spec=' '
10949 allow_undefined_flag=unsupported
10950 # Tell ltmain to make .lib files, not .a files.
10952 # Tell ltmain to make .dll files, not .so files.
10954 # FIXME: Setting linknames here is a bad hack.
10955 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10956 # The linker will automatically build a .lib file if we build a DLL.
10957 old_archive_from_new_cmds='true'
10958 # FIXME: Should let the user specify the lib program.
10959 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10960 enable_shared_with_static_runtimes=yes
10965 darwin* | rhapsody*)
10968 archive_cmds_need_lc=no
10970 hardcode_automatic=yes
10971 hardcode_shlibpath_var=unsupported
10972 if test "$lt_cv_ld_force_load" = "yes"; then
10973 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\"`'
10976 whole_archive_flag_spec=''
10978 link_all_deplibs=yes
10979 allow_undefined_flag="$_lt_dar_allow_undefined"
10980 case $cc_basename in
10981 ifort*) _lt_dar_can_shared=yes ;;
10982 *) _lt_dar_can_shared=$GCC ;;
10984 if test "$_lt_dar_can_shared" = "yes"; then
10985 output_verbose_link_cmd=func_echo_all
10986 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10987 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10988 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}"
10989 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}"
10998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10999 hardcode_libdir_flag_spec='-L$libdir'
11000 hardcode_shlibpath_var=no
11003 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11004 # support. Future versions do this automatically, but an explicit c++rt0.o
11005 # does not break anything, and helps significantly (at the cost of a little
11008 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11009 hardcode_libdir_flag_spec='-R$libdir'
11010 hardcode_direct=yes
11011 hardcode_shlibpath_var=no
11014 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11016 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11017 hardcode_direct=yes
11018 hardcode_minus_L=yes
11019 hardcode_shlibpath_var=no
11022 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11023 freebsd* | dragonfly*)
11024 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11025 hardcode_libdir_flag_spec='-R$libdir'
11026 hardcode_direct=yes
11027 hardcode_shlibpath_var=no
11031 if test "$GCC" = yes; then
11032 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'
11034 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'
11036 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11037 hardcode_libdir_separator=:
11038 hardcode_direct=yes
11040 # hardcode_minus_L: Not really in the search PATH,
11041 # but as the default location of the library.
11042 hardcode_minus_L=yes
11043 export_dynamic_flag_spec='${wl}-E'
11047 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11048 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11050 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11052 if test "$with_gnu_ld" = no; then
11053 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11054 hardcode_libdir_separator=:
11055 hardcode_direct=yes
11056 hardcode_direct_absolute=yes
11057 export_dynamic_flag_spec='${wl}-E'
11058 # hardcode_minus_L: Not really in the search PATH,
11059 # but as the default location of the library.
11060 hardcode_minus_L=yes
11065 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11068 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11071 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11074 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11080 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11083 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11087 # Older versions of the 11.00 compiler do not understand -b yet
11088 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11090 $as_echo_n "checking if $CC understands -b... " >&6; }
11091 if ${lt_cv_prog_compiler__b+:} false; then :
11092 $as_echo_n "(cached) " >&6
11094 lt_cv_prog_compiler__b=no
11095 save_LDFLAGS="$LDFLAGS"
11096 LDFLAGS="$LDFLAGS -b"
11097 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11098 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11099 # The linker can only warn and ignore the option if not recognized
11100 # So say no if there are warnings
11101 if test -s conftest.err; then
11102 # Append any errors to the config.log.
11103 cat conftest.err 1>&5
11104 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11106 if diff conftest.exp conftest.er2 >/dev/null; then
11107 lt_cv_prog_compiler__b=yes
11110 lt_cv_prog_compiler__b=yes
11114 LDFLAGS="$save_LDFLAGS"
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11118 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11120 if test x"$lt_cv_prog_compiler__b" = xyes; then
11121 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11123 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11129 if test "$with_gnu_ld" = no; then
11130 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11131 hardcode_libdir_separator=:
11136 hardcode_shlibpath_var=no
11139 hardcode_direct=yes
11140 hardcode_direct_absolute=yes
11141 export_dynamic_flag_spec='${wl}-E'
11143 # hardcode_minus_L: Not really in the search PATH,
11144 # but as the default location of the library.
11145 hardcode_minus_L=yes
11151 irix5* | irix6* | nonstopux*)
11152 if test "$GCC" = yes; then
11153 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'
11154 # Try to use the -exported_symbol ld option, if it does not
11155 # work, assume that -exports_file does not work either and
11156 # implicitly export all symbols.
11157 # This should be the same for all languages, so no per-tag cache variable.
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11159 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11160 if ${lt_cv_irix_exported_symbol+:} false; then :
11161 $as_echo_n "(cached) " >&6
11163 save_LDFLAGS="$LDFLAGS"
11164 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11166 /* end confdefs.h. */
11167 int foo (void) { return 0; }
11169 if ac_fn_c_try_link "$LINENO"; then :
11170 lt_cv_irix_exported_symbol=yes
11172 lt_cv_irix_exported_symbol=no
11174 rm -f core conftest.err conftest.$ac_objext \
11175 conftest$ac_exeext conftest.$ac_ext
11176 LDFLAGS="$save_LDFLAGS"
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11179 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11180 if test "$lt_cv_irix_exported_symbol" = yes; then
11181 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'
11184 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'
11185 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'
11187 archive_cmds_need_lc='no'
11188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11189 hardcode_libdir_separator=:
11191 link_all_deplibs=yes
11194 netbsd* | netbsdelf*-gnu)
11195 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11196 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11198 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11200 hardcode_libdir_flag_spec='-R$libdir'
11201 hardcode_direct=yes
11202 hardcode_shlibpath_var=no
11206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11207 hardcode_direct=yes
11208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11209 hardcode_libdir_separator=:
11210 hardcode_shlibpath_var=no
11217 if test -f /usr/libexec/ld.so; then
11218 hardcode_direct=yes
11219 hardcode_shlibpath_var=no
11220 hardcode_direct_absolute=yes
11221 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11223 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11224 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11225 export_dynamic_flag_spec='${wl}-E'
11228 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11230 hardcode_libdir_flag_spec='-R$libdir'
11233 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11234 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11244 hardcode_libdir_flag_spec='-L$libdir'
11245 hardcode_minus_L=yes
11246 allow_undefined_flag=unsupported
11247 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'
11248 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11252 if test "$GCC" = yes; then
11253 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11254 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'
11256 allow_undefined_flag=' -expect_unresolved \*'
11257 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'
11259 archive_cmds_need_lc='no'
11260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11261 hardcode_libdir_separator=:
11264 osf4* | osf5*) # as osf3* with the addition of -msym flag
11265 if test "$GCC" = yes; then
11266 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11267 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'
11268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11270 allow_undefined_flag=' -expect_unresolved \*'
11271 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'
11272 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~
11273 $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'
11275 # Both c and cxx compiler support -rpath directly
11276 hardcode_libdir_flag_spec='-rpath $libdir'
11278 archive_cmds_need_lc='no'
11279 hardcode_libdir_separator=:
11283 no_undefined_flag=' -z defs'
11284 if test "$GCC" = yes; then
11286 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11287 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11288 $CC -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'
11290 case `$CC -V 2>&1` in
11293 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11294 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11295 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11299 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11300 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11301 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11305 hardcode_libdir_flag_spec='-R$libdir'
11306 hardcode_shlibpath_var=no
11308 solaris2.[0-5] | solaris2.[0-5].*) ;;
11310 # The compiler driver will combine and reorder linker options,
11311 # but understands `-z linker_flag'. GCC discards it without `$wl',
11312 # but is careful enough not to reorder.
11313 # Supported since Solaris 2.6 (maybe 2.5.1?)
11314 if test "$GCC" = yes; then
11315 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11317 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11321 link_all_deplibs=yes
11325 if test "x$host_vendor" = xsequent; then
11326 # Use $CC to link under sequent, because it throws in some extra .o
11327 # files that make .init and .fini sections work.
11328 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11330 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11332 hardcode_libdir_flag_spec='-L$libdir'
11333 hardcode_direct=yes
11334 hardcode_minus_L=yes
11335 hardcode_shlibpath_var=no
11339 case $host_vendor in
11341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11342 hardcode_direct=yes # is this really true???
11345 ## LD is ld it makes a PLAMLIB
11346 ## CC just makes a GrossModule.
11347 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11348 reload_cmds='$CC -r -o $output$reload_objs'
11352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11353 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11356 runpath_var='LD_RUN_PATH'
11357 hardcode_shlibpath_var=no
11361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11362 hardcode_shlibpath_var=no
11363 export_dynamic_flag_spec='-Bexport'
11367 if test -d /usr/nec; then
11368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11369 hardcode_shlibpath_var=no
11370 runpath_var=LD_RUN_PATH
11371 hardcode_runpath_var=yes
11376 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11377 no_undefined_flag='${wl}-z,text'
11378 archive_cmds_need_lc=no
11379 hardcode_shlibpath_var=no
11380 runpath_var='LD_RUN_PATH'
11382 if test "$GCC" = yes; then
11383 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11384 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11386 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11387 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11391 sysv5* | sco3.2v5* | sco5v6*)
11392 # Note: We can NOT use -z defs as we might desire, because we do not
11393 # link with -lc, and that would cause any symbols used from libc to
11394 # always be unresolved, which means just about no library would
11395 # ever link correctly. If we're not using GNU ld we use -z text
11396 # though, which does catch some bad symbols but isn't as heavy-handed
11398 no_undefined_flag='${wl}-z,text'
11399 allow_undefined_flag='${wl}-z,nodefs'
11400 archive_cmds_need_lc=no
11401 hardcode_shlibpath_var=no
11402 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11403 hardcode_libdir_separator=':'
11404 link_all_deplibs=yes
11405 export_dynamic_flag_spec='${wl}-Bexport'
11406 runpath_var='LD_RUN_PATH'
11408 if test "$GCC" = yes; then
11409 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11410 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11412 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11413 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11419 hardcode_libdir_flag_spec='-L$libdir'
11420 hardcode_shlibpath_var=no
11428 if test x$host_vendor = xsni; then
11430 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11431 export_dynamic_flag_spec='${wl}-Blargedynsym'
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11438 $as_echo "$ld_shlibs" >&6; }
11439 test "$ld_shlibs" = no && can_build_shared=no
11441 with_gnu_ld=$with_gnu_ld
11458 # Do we need to explicitly link libc?
11460 case "x$archive_cmds_need_lc" in
11462 # Assume -lc should be added
11463 archive_cmds_need_lc=yes
11465 if test "$enable_shared" = yes && test "$GCC" = yes; then
11466 case $archive_cmds in
11468 # FIXME: we may have to deal with multi-command sequences.
11471 # Test whether the compiler implicitly links with -lc since on some
11472 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11473 # to ld, don't add -lc before -lgcc.
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11475 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11476 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11477 $as_echo_n "(cached) " >&6
11480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11483 (eval $ac_compile) 2>&5
11485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11486 test $ac_status = 0; } 2>conftest.err; then
11489 libobjs=conftest.$ac_objext
11491 wl=$lt_prog_compiler_wl
11492 pic_flag=$lt_prog_compiler_pic
11498 lt_save_allow_undefined_flag=$allow_undefined_flag
11499 allow_undefined_flag=
11500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11501 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11504 test $ac_status = 0; }
11506 lt_cv_archive_cmds_need_lc=no
11508 lt_cv_archive_cmds_need_lc=yes
11510 allow_undefined_flag=$lt_save_allow_undefined_flag
11512 cat conftest.err 1>&5
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11518 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11519 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11678 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11680 if test "$GCC" = yes; then
11682 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11683 *) lt_awk_arg="/^libraries:/" ;;
11686 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11687 *) lt_sed_strip_eq="s,=/,/,g" ;;
11689 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11690 case $lt_search_path_spec in
11692 # if the path contains ";" then we assume it to be the separator
11693 # otherwise default to the standard path separator (i.e. ":") - it is
11694 # assumed that no part of a normal pathname contains ";" but that should
11695 # okay in the real world where ";" in dirpaths is itself problematic.
11696 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11699 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11702 # Ok, now we have the path, separated by spaces, we can step through it
11703 # and add multilib dir if necessary.
11704 lt_tmp_lt_search_path_spec=
11705 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11706 for lt_sys_path in $lt_search_path_spec; do
11707 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11708 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11710 test -d "$lt_sys_path" && \
11711 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11714 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11715 BEGIN {RS=" "; FS="/|\n";} {
11718 for (lt_i = NF; lt_i > 0; lt_i--) {
11719 if ($lt_i != "" && $lt_i != ".") {
11720 if ($lt_i == "..") {
11723 if (lt_count == 0) {
11724 lt_foo="/" $lt_i lt_foo;
11731 if (lt_foo != "") { lt_freq[lt_foo]++; }
11732 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11734 # AWK program above erroneously prepends '/' to C:/dos/paths
11737 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11738 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11740 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11742 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11744 library_names_spec=
11745 libname_spec='lib$name'
11749 postuninstall_cmds=
11753 shlibpath_overrides_runpath=unknown
11755 dynamic_linker="$host_os ld.so"
11756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11757 need_lib_prefix=unknown
11758 hardcode_into_libs=no
11760 # when you set need_version to no, make sure it does not cause -set_version
11761 # flags to be left without arguments
11762 need_version=unknown
11766 version_type=linux # correct to gnu/linux during the next big refactor
11767 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11768 shlibpath_var=LIBPATH
11770 # AIX 3 has no versioning support, so we append a major version to the name.
11771 soname_spec='${libname}${release}${shared_ext}$major'
11775 version_type=linux # correct to gnu/linux during the next big refactor
11778 hardcode_into_libs=yes
11779 if test "$host_cpu" = ia64; then
11780 # AIX 5 supports IA64
11781 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11782 shlibpath_var=LD_LIBRARY_PATH
11784 # With GCC up to 2.95.x, collect2 would create an import file
11785 # for dependence libraries. The import file would start with
11786 # the line `#! .'. This would cause the generated library to
11787 # depend on `.', always an invalid library. This was fixed in
11788 # development snapshots of GCC prior to 3.0.
11790 aix4 | aix4.[01] | aix4.[01].*)
11791 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11793 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11796 can_build_shared=no
11800 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11801 # soname into executable. Probably we can add versioning support to
11802 # collect2, so additional links can be useful in future.
11803 if test "$aix_use_runtimelinking" = yes; then
11804 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11805 # instead of lib<name>.a to let people know that these are not
11806 # typical AIX shared libraries.
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809 # We preserve .a as extension for shared libraries through AIX4.2
11810 # and later when we are not doing run time linking.
11811 library_names_spec='${libname}${release}.a $libname.a'
11812 soname_spec='${libname}${release}${shared_ext}$major'
11814 shlibpath_var=LIBPATH
11821 # Since July 2007 AmigaOS4 officially supports .so libraries.
11822 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11826 library_names_spec='$libname.ixlibrary $libname.a'
11827 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11828 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'
11834 library_names_spec='${libname}${shared_ext}'
11835 dynamic_linker="$host_os ld.so"
11836 shlibpath_var=LIBRARY_PATH
11840 version_type=linux # correct to gnu/linux during the next big refactor
11842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11843 soname_spec='${libname}${release}${shared_ext}$major'
11844 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11845 shlibpath_var=LD_LIBRARY_PATH
11846 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11847 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11848 # the default ld.so.conf also contains /usr/contrib/lib and
11849 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11850 # libtool to hard-code these into programs
11853 cygwin* | mingw* | pw32* | cegcc*)
11854 version_type=windows
11859 case $GCC,$cc_basename in
11862 library_names_spec='$libname.dll.a'
11863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11864 postinstall_cmds='base_file=`basename \${file}`~
11865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11866 dldir=$destdir/`dirname \$dlpath`~
11867 test -d \$dldir || mkdir -p \$dldir~
11868 $install_prog $dir/$dlname \$dldir/$dlname~
11869 chmod a+x \$dldir/$dlname~
11870 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11871 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11874 dlpath=$dir/\$dldll~
11876 shlibpath_overrides_runpath=yes
11880 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11881 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11883 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11886 # MinGW DLLs use traditional 'lib' prefix
11887 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11890 # pw32 DLLs use 'pw' prefix rather than 'lib'
11891 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11894 dynamic_linker='Win32 ld.exe'
11899 libname_spec='$name'
11900 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11901 library_names_spec='${libname}.dll.lib'
11905 sys_lib_search_path_spec=
11908 for lt_path in $LIB
11911 # Let DOS variable expansion print the short 8.3 style file name.
11912 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11913 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11916 # Convert to MSYS style.
11917 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11920 # Convert to unix form, then to dos form, then back to unix form
11921 # but this time dos style (no spaces!) so that the unix form looks
11922 # like /cygdrive/c/PROGRA~1:/cygdr...
11923 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11924 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11925 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11928 sys_lib_search_path_spec="$LIB"
11929 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11930 # It is most probably a Windows format PATH.
11931 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11933 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11935 # FIXME: find the short name or the path components, as spaces are
11936 # common. (e.g. "Program Files" -> "PROGRA~1")
11940 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11941 postinstall_cmds='base_file=`basename \${file}`~
11942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11943 dldir=$destdir/`dirname \$dlpath`~
11944 test -d \$dldir || mkdir -p \$dldir~
11945 $install_prog $dir/$dlname \$dldir/$dlname'
11946 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11947 dlpath=$dir/\$dldll~
11949 shlibpath_overrides_runpath=yes
11950 dynamic_linker='Win32 link.exe'
11954 # Assume MSVC wrapper
11955 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11956 dynamic_linker='Win32 ld.exe'
11959 # FIXME: first we should search . and the directory the executable is in
11963 darwin* | rhapsody*)
11964 dynamic_linker="$host_os dyld"
11965 version_type=darwin
11968 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11969 soname_spec='${libname}${release}${major}$shared_ext'
11970 shlibpath_overrides_runpath=yes
11971 shlibpath_var=DYLD_LIBRARY_PATH
11972 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11974 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11975 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11979 version_type=linux # correct to gnu/linux during the next big refactor
11982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11983 soname_spec='${libname}${release}${shared_ext}$major'
11984 shlibpath_var=LD_LIBRARY_PATH
11987 freebsd* | dragonfly*)
11988 # DragonFly does not have aout. When/if they implement a new
11989 # versioning mechanism, adjust this.
11990 if test -x /usr/bin/objformat; then
11991 objformat=`/usr/bin/objformat`
11994 freebsd[23].*) objformat=aout ;;
11995 *) objformat=elf ;;
11998 version_type=freebsd-$objformat
11999 case $version_type in
12001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12010 shlibpath_var=LD_LIBRARY_PATH
12013 shlibpath_overrides_runpath=yes
12015 freebsd3.[01]* | freebsdelf3.[01]*)
12016 shlibpath_overrides_runpath=yes
12017 hardcode_into_libs=yes
12019 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12020 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12021 shlibpath_overrides_runpath=no
12022 hardcode_into_libs=yes
12024 *) # from 4.6 on, and DragonFly
12025 shlibpath_overrides_runpath=yes
12026 hardcode_into_libs=yes
12032 version_type=linux # correct to gnu/linux during the next big refactor
12035 dynamic_linker="$host_os runtime_loader"
12036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12037 soname_spec='${libname}${release}${shared_ext}$major'
12038 shlibpath_var=LIBRARY_PATH
12039 shlibpath_overrides_runpath=yes
12040 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12041 hardcode_into_libs=yes
12044 hpux9* | hpux10* | hpux11*)
12045 # Give a soname corresponding to the major version so that dld.sl refuses to
12046 # link against other versions.
12053 hardcode_into_libs=yes
12054 dynamic_linker="$host_os dld.so"
12055 shlibpath_var=LD_LIBRARY_PATH
12056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12058 soname_spec='${libname}${release}${shared_ext}$major'
12059 if test "X$HPUX_IA64_MODE" = X32; then
12060 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12062 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12068 hardcode_into_libs=yes
12069 dynamic_linker="$host_os dld.sl"
12070 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12073 soname_spec='${libname}${release}${shared_ext}$major'
12074 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12079 dynamic_linker="$host_os dld.sl"
12080 shlibpath_var=SHLIB_PATH
12081 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12083 soname_spec='${libname}${release}${shared_ext}$major'
12086 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12087 postinstall_cmds='chmod 555 $lib'
12088 # or fails outright, so override atomically:
12089 install_override_mode=555
12093 version_type=linux # correct to gnu/linux during the next big refactor
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12097 soname_spec='${libname}${release}${shared_ext}$major'
12098 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12099 shlibpath_var=LD_LIBRARY_PATH
12100 shlibpath_overrides_runpath=no
12101 hardcode_into_libs=yes
12104 irix5* | irix6* | nonstopux*)
12106 nonstopux*) version_type=nonstopux ;;
12108 if test "$lt_cv_prog_gnu_ld" = yes; then
12109 version_type=linux # correct to gnu/linux during the next big refactor
12116 soname_spec='${libname}${release}${shared_ext}$major'
12117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12119 irix5* | nonstopux*)
12120 libsuff= shlibsuff=
12123 case $LD in # libtool.m4 will add one of these switches to LD
12124 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12125 libsuff= shlibsuff= libmagic=32-bit;;
12126 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12127 libsuff=32 shlibsuff=N32 libmagic=N32;;
12128 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12129 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12130 *) libsuff= shlibsuff= libmagic=never-match;;
12134 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12135 shlibpath_overrides_runpath=no
12136 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12137 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12138 hardcode_into_libs=yes
12141 # No shared lib support for Linux oldld, aout, or coff.
12142 linux*oldld* | linux*aout* | linux*coff*)
12146 # This must be glibc/ELF.
12147 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12148 version_type=linux # correct to gnu/linux during the next big refactor
12151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12152 soname_spec='${libname}${release}${shared_ext}$major'
12153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12154 shlibpath_var=LD_LIBRARY_PATH
12155 shlibpath_overrides_runpath=no
12157 # Some binutils ld are patched to set DT_RUNPATH
12158 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12159 $as_echo_n "(cached) " >&6
12161 lt_cv_shlibpath_overrides_runpath=no
12162 save_LDFLAGS=$LDFLAGS
12163 save_libdir=$libdir
12164 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12165 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12177 if ac_fn_c_try_link "$LINENO"; then :
12178 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12179 lt_cv_shlibpath_overrides_runpath=yes
12182 rm -f core conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
12184 LDFLAGS=$save_LDFLAGS
12185 libdir=$save_libdir
12189 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12191 # This implies no fast_install, which is unacceptable.
12192 # Some rework will be needed to allow for fast_install
12193 # before this can be enabled.
12194 hardcode_into_libs=yes
12196 # Append ld.so.conf contents to the search path
12197 if test -f /etc/ld.so.conf; then
12198 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' ' '`
12199 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12202 # We used to test for /lib/ld.so.1 and disable shared libraries on
12203 # powerpc, because MkLinux only supported shared libraries with the
12204 # GNU dynamic linker. Since this was broken with cross compilers,
12205 # most powerpc-linux boxes support dynamic linking these days and
12206 # people can always --disable-shared, the test was removed, and we
12207 # assume the GNU/Linux dynamic linker is in use.
12208 dynamic_linker='GNU/Linux ld.so'
12215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12216 soname_spec='${libname}${release}${shared_ext}$major'
12217 shlibpath_var=LD_LIBRARY_PATH
12218 shlibpath_overrides_runpath=no
12219 hardcode_into_libs=yes
12220 dynamic_linker='NetBSD ld.elf_so'
12227 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12230 dynamic_linker='NetBSD (a.out) ld.so'
12232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12233 soname_spec='${libname}${release}${shared_ext}$major'
12234 dynamic_linker='NetBSD ld.elf_so'
12236 shlibpath_var=LD_LIBRARY_PATH
12237 shlibpath_overrides_runpath=yes
12238 hardcode_into_libs=yes
12242 version_type=linux # correct to gnu/linux during the next big refactor
12243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12244 shlibpath_var=LD_LIBRARY_PATH
12245 shlibpath_overrides_runpath=yes
12252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12253 soname_spec='${libname}${release}${shared_ext}$major'
12254 shlibpath_var=LD_LIBRARY_PATH
12255 shlibpath_overrides_runpath=no
12256 hardcode_into_libs=yes
12257 dynamic_linker='ldqnx.so'
12262 sys_lib_dlsearch_path_spec="/usr/lib"
12264 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12266 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12267 *) need_version=no ;;
12269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12271 shlibpath_var=LD_LIBRARY_PATH
12272 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12274 openbsd2.[89] | openbsd2.[89].*)
12275 shlibpath_overrides_runpath=no
12278 shlibpath_overrides_runpath=yes
12282 shlibpath_overrides_runpath=yes
12287 libname_spec='$name'
12290 library_names_spec='$libname${shared_ext} $libname.a'
12291 dynamic_linker='OS/2 ld.exe'
12292 shlibpath_var=LIBPATH
12295 osf3* | osf4* | osf5*)
12299 soname_spec='${libname}${release}${shared_ext}$major'
12300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12301 shlibpath_var=LD_LIBRARY_PATH
12302 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12303 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12311 version_type=linux # correct to gnu/linux during the next big refactor
12314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12315 soname_spec='${libname}${release}${shared_ext}$major'
12316 shlibpath_var=LD_LIBRARY_PATH
12317 shlibpath_overrides_runpath=yes
12318 hardcode_into_libs=yes
12319 # ldd complains unless libraries are executable
12320 postinstall_cmds='chmod +x $lib'
12325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12326 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12327 shlibpath_var=LD_LIBRARY_PATH
12328 shlibpath_overrides_runpath=yes
12329 if test "$with_gnu_ld" = yes; then
12336 version_type=linux # correct to gnu/linux during the next big refactor
12337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12338 soname_spec='${libname}${release}${shared_ext}$major'
12339 shlibpath_var=LD_LIBRARY_PATH
12340 case $host_vendor in
12342 shlibpath_overrides_runpath=no
12344 runpath_var=LD_RUN_PATH
12352 shlibpath_overrides_runpath=no
12353 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12359 if test -d /usr/nec ;then
12360 version_type=linux # correct to gnu/linux during the next big refactor
12361 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12362 soname_spec='$libname${shared_ext}.$major'
12363 shlibpath_var=LD_LIBRARY_PATH
12367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12368 version_type=freebsd-elf
12371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12372 soname_spec='${libname}${release}${shared_ext}$major'
12373 shlibpath_var=LD_LIBRARY_PATH
12374 shlibpath_overrides_runpath=yes
12375 hardcode_into_libs=yes
12376 if test "$with_gnu_ld" = yes; then
12377 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12379 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12382 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12386 sys_lib_dlsearch_path_spec='/usr/lib'
12390 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12391 version_type=linux # correct to gnu/linux during the next big refactor
12394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12395 shlibpath_var=LD_LIBRARY_PATH
12396 shlibpath_overrides_runpath=no
12397 hardcode_into_libs=yes
12401 version_type=linux # correct to gnu/linux during the next big refactor
12402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12403 soname_spec='${libname}${release}${shared_ext}$major'
12404 shlibpath_var=LD_LIBRARY_PATH
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12412 $as_echo "$dynamic_linker" >&6; }
12413 test "$dynamic_linker" = no && can_build_shared=no
12415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12416 if test "$GCC" = yes; then
12417 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12420 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12421 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12423 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12424 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12519 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12521 if test -n "$hardcode_libdir_flag_spec" ||
12522 test -n "$runpath_var" ||
12523 test "X$hardcode_automatic" = "Xyes" ; then
12525 # We can hardcode non-existent directories.
12526 if test "$hardcode_direct" != no &&
12527 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12528 # have to relink, otherwise we might link with an installed library
12529 # when we should be linking with a yet-to-be-installed one
12530 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12531 test "$hardcode_minus_L" != no; then
12532 # Linking always hardcodes the temporary library directory.
12533 hardcode_action=relink
12535 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12536 hardcode_action=immediate
12539 # We cannot hardcode anything, or else we can only hardcode existing
12541 hardcode_action=unsupported
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12544 $as_echo "$hardcode_action" >&6; }
12546 if test "$hardcode_action" = relink ||
12547 test "$inherit_rpath" = yes; then
12548 # Fast installation is not supported
12549 enable_fast_install=no
12550 elif test "$shlibpath_overrides_runpath" = yes ||
12551 test "$enable_shared" = no; then
12552 # Fast installation is not necessary
12553 enable_fast_install=needless
12561 if test "x$enable_dlopen" != xyes; then
12562 enable_dlopen=unknown
12563 enable_dlopen_self=unknown
12564 enable_dlopen_self_static=unknown
12571 lt_cv_dlopen="load_add_on"
12573 lt_cv_dlopen_self=yes
12576 mingw* | pw32* | cegcc*)
12577 lt_cv_dlopen="LoadLibrary"
12582 lt_cv_dlopen="dlopen"
12587 # if libdl is installed we need to link against it
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12589 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12590 if ${ac_cv_lib_dl_dlopen+:} false; then :
12591 $as_echo_n "(cached) " >&6
12593 ac_check_lib_save_LIBS=$LIBS
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12598 /* Override any GCC internal prototype to avoid an error.
12599 Use char because int might match the return type of a GCC
12600 builtin and then its argument prototype would still apply. */
12613 if ac_fn_c_try_link "$LINENO"; then :
12614 ac_cv_lib_dl_dlopen=yes
12616 ac_cv_lib_dl_dlopen=no
12618 rm -f core conftest.err conftest.$ac_objext \
12619 conftest$ac_exeext conftest.$ac_ext
12620 LIBS=$ac_check_lib_save_LIBS
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12623 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12624 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12625 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12628 lt_cv_dlopen="dyld"
12630 lt_cv_dlopen_self=yes
12637 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12638 if test "x$ac_cv_func_shl_load" = xyes; then :
12639 lt_cv_dlopen="shl_load"
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12642 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12643 if ${ac_cv_lib_dld_shl_load+:} false; then :
12644 $as_echo_n "(cached) " >&6
12646 ac_check_lib_save_LIBS=$LIBS
12648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h. */
12651 /* Override any GCC internal prototype to avoid an error.
12652 Use char because int might match the return type of a GCC
12653 builtin and then its argument prototype would still apply. */
12661 return shl_load ();
12666 if ac_fn_c_try_link "$LINENO"; then :
12667 ac_cv_lib_dld_shl_load=yes
12669 ac_cv_lib_dld_shl_load=no
12671 rm -f core conftest.err conftest.$ac_objext \
12672 conftest$ac_exeext conftest.$ac_ext
12673 LIBS=$ac_check_lib_save_LIBS
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12676 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12677 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12678 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12680 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12681 if test "x$ac_cv_func_dlopen" = xyes; then :
12682 lt_cv_dlopen="dlopen"
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12685 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12686 if ${ac_cv_lib_dl_dlopen+:} false; then :
12687 $as_echo_n "(cached) " >&6
12689 ac_check_lib_save_LIBS=$LIBS
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12694 /* Override any GCC internal prototype to avoid an error.
12695 Use char because int might match the return type of a GCC
12696 builtin and then its argument prototype would still apply. */
12709 if ac_fn_c_try_link "$LINENO"; then :
12710 ac_cv_lib_dl_dlopen=yes
12712 ac_cv_lib_dl_dlopen=no
12714 rm -f core conftest.err conftest.$ac_objext \
12715 conftest$ac_exeext conftest.$ac_ext
12716 LIBS=$ac_check_lib_save_LIBS
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12719 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12720 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12721 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12724 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12725 if ${ac_cv_lib_svld_dlopen+:} false; then :
12726 $as_echo_n "(cached) " >&6
12728 ac_check_lib_save_LIBS=$LIBS
12729 LIBS="-lsvld $LIBS"
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12733 /* Override any GCC internal prototype to avoid an error.
12734 Use char because int might match the return type of a GCC
12735 builtin and then its argument prototype would still apply. */
12748 if ac_fn_c_try_link "$LINENO"; then :
12749 ac_cv_lib_svld_dlopen=yes
12751 ac_cv_lib_svld_dlopen=no
12753 rm -f core conftest.err conftest.$ac_objext \
12754 conftest$ac_exeext conftest.$ac_ext
12755 LIBS=$ac_check_lib_save_LIBS
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12758 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12759 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12760 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12763 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12764 if ${ac_cv_lib_dld_dld_link+:} false; then :
12765 $as_echo_n "(cached) " >&6
12767 ac_check_lib_save_LIBS=$LIBS
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12772 /* Override any GCC internal prototype to avoid an error.
12773 Use char because int might match the return type of a GCC
12774 builtin and then its argument prototype would still apply. */
12782 return dld_link ();
12787 if ac_fn_c_try_link "$LINENO"; then :
12788 ac_cv_lib_dld_dld_link=yes
12790 ac_cv_lib_dld_dld_link=no
12792 rm -f core conftest.err conftest.$ac_objext \
12793 conftest$ac_exeext conftest.$ac_ext
12794 LIBS=$ac_check_lib_save_LIBS
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12797 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12798 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12799 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12820 if test "x$lt_cv_dlopen" != xno; then
12826 case $lt_cv_dlopen in
12828 save_CPPFLAGS="$CPPFLAGS"
12829 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12831 save_LDFLAGS="$LDFLAGS"
12832 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12835 LIBS="$lt_cv_dlopen_libs $LIBS"
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12838 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12839 if ${lt_cv_dlopen_self+:} false; then :
12840 $as_echo_n "(cached) " >&6
12842 if test "$cross_compiling" = yes; then :
12843 lt_cv_dlopen_self=cross
12845 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12846 lt_status=$lt_dlunknown
12847 cat > conftest.$ac_ext <<_LT_EOF
12848 #line $LINENO "configure"
12849 #include "confdefs.h"
12858 # define LT_DLGLOBAL RTLD_GLOBAL
12861 # define LT_DLGLOBAL DL_GLOBAL
12863 # define LT_DLGLOBAL 0
12867 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12868 find out it does not work in some platform. */
12869 #ifndef LT_DLLAZY_OR_NOW
12871 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12874 # define LT_DLLAZY_OR_NOW DL_LAZY
12877 # define LT_DLLAZY_OR_NOW RTLD_NOW
12880 # define LT_DLLAZY_OR_NOW DL_NOW
12882 # define LT_DLLAZY_OR_NOW 0
12889 /* When -fvisbility=hidden is used, assume the code has been annotated
12890 correspondingly for the symbols needed. */
12891 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12892 int fnord () __attribute__((visibility("default")));
12895 int fnord () { return 42; }
12898 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12899 int status = $lt_dlunknown;
12903 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12906 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12907 else puts (dlerror ());
12909 /* dlclose (self); */
12917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12918 (eval $ac_link) 2>&5
12920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12921 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12922 (./conftest; exit; ) >&5 2>/dev/null
12924 case x$lt_status in
12925 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12926 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12927 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12930 # compilation failed
12931 lt_cv_dlopen_self=no
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12939 $as_echo "$lt_cv_dlopen_self" >&6; }
12941 if test "x$lt_cv_dlopen_self" = xyes; then
12942 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12944 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12945 if ${lt_cv_dlopen_self_static+:} false; then :
12946 $as_echo_n "(cached) " >&6
12948 if test "$cross_compiling" = yes; then :
12949 lt_cv_dlopen_self_static=cross
12951 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12952 lt_status=$lt_dlunknown
12953 cat > conftest.$ac_ext <<_LT_EOF
12954 #line $LINENO "configure"
12955 #include "confdefs.h"
12964 # define LT_DLGLOBAL RTLD_GLOBAL
12967 # define LT_DLGLOBAL DL_GLOBAL
12969 # define LT_DLGLOBAL 0
12973 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12974 find out it does not work in some platform. */
12975 #ifndef LT_DLLAZY_OR_NOW
12977 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12980 # define LT_DLLAZY_OR_NOW DL_LAZY
12983 # define LT_DLLAZY_OR_NOW RTLD_NOW
12986 # define LT_DLLAZY_OR_NOW DL_NOW
12988 # define LT_DLLAZY_OR_NOW 0
12995 /* When -fvisbility=hidden is used, assume the code has been annotated
12996 correspondingly for the symbols needed. */
12997 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12998 int fnord () __attribute__((visibility("default")));
13001 int fnord () { return 42; }
13004 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13005 int status = $lt_dlunknown;
13009 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13012 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13013 else puts (dlerror ());
13015 /* dlclose (self); */
13023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13024 (eval $ac_link) 2>&5
13026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13027 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13028 (./conftest; exit; ) >&5 2>/dev/null
13030 case x$lt_status in
13031 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13032 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13033 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13036 # compilation failed
13037 lt_cv_dlopen_self_static=no
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13045 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13048 CPPFLAGS="$save_CPPFLAGS"
13049 LDFLAGS="$save_LDFLAGS"
13054 case $lt_cv_dlopen_self in
13055 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13056 *) enable_dlopen_self=unknown ;;
13059 case $lt_cv_dlopen_self_static in
13060 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13061 *) enable_dlopen_self_static=unknown ;;
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13084 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13085 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13086 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13087 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13089 $as_echo "yes" >&6; }
13091 # FIXME - insert some real tests, host_os isn't really good enough
13094 if test -n "$STRIP" ; then
13095 striplib="$STRIP -x"
13096 old_striplib="$STRIP -S"
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13098 $as_echo "yes" >&6; }
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13101 $as_echo "no" >&6; }
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106 $as_echo "no" >&6; }
13122 # Report which library types will actually be built
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13124 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13126 $as_echo "$can_build_shared" >&6; }
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13129 $as_echo_n "checking whether to build shared libraries... " >&6; }
13130 test "$can_build_shared" = "no" && enable_shared=no
13132 # On AIX, shared libraries and static libraries use the same namespace, and
13133 # are all built from PIC.
13136 test "$enable_shared" = yes && enable_static=no
13137 if test -n "$RANLIB"; then
13138 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13139 postinstall_cmds='$RANLIB $lib'
13144 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13145 test "$enable_shared" = yes && enable_static=no
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13150 $as_echo "$enable_shared" >&6; }
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13153 $as_echo_n "checking whether to build static libraries... " >&6; }
13154 # Make sure either enable_shared or enable_static is yes.
13155 test "$enable_shared" = yes || enable_static=yes
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13157 $as_echo "$enable_static" >&6; }
13164 ac_cpp='$CPP $CPPFLAGS'
13165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13171 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13172 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13173 (test "X$CXX" != "Xg++"))) ; then
13175 ac_cpp='$CXXCPP $CPPFLAGS'
13176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13180 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13181 if test -z "$CXXCPP"; then
13182 if ${ac_cv_prog_CXXCPP+:} false; then :
13183 $as_echo_n "(cached) " >&6
13185 # Double quotes because CXXCPP needs to be expanded
13186 for CXXCPP in "$CXX -E" "/lib/cpp"
13188 ac_preproc_ok=false
13189 for ac_cxx_preproc_warn_flag in '' yes
13191 # Use a header file that comes with gcc, so configuring glibc
13192 # with a fresh cross-compiler works.
13193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13194 # <limits.h> exists even on freestanding compilers.
13195 # On the NeXT, cc -E runs the code through the compiler's parser,
13196 # not just through cpp. "Syntax error" is here to catch this case.
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13200 # include <limits.h>
13202 # include <assert.h>
13206 if ac_fn_cxx_try_cpp "$LINENO"; then :
13209 # Broken: fails on valid input.
13212 rm -f conftest.err conftest.i conftest.$ac_ext
13214 # OK, works on sane cases. Now check whether nonexistent headers
13215 # can be detected and how.
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13218 #include <ac_nonexistent.h>
13220 if ac_fn_cxx_try_cpp "$LINENO"; then :
13221 # Broken: success on invalid input.
13224 # Passes both tests.
13228 rm -f conftest.err conftest.i conftest.$ac_ext
13231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13232 rm -f conftest.i conftest.err conftest.$ac_ext
13233 if $ac_preproc_ok; then :
13238 ac_cv_prog_CXXCPP=$CXXCPP
13241 CXXCPP=$ac_cv_prog_CXXCPP
13243 ac_cv_prog_CXXCPP=$CXXCPP
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13246 $as_echo "$CXXCPP" >&6; }
13247 ac_preproc_ok=false
13248 for ac_cxx_preproc_warn_flag in '' yes
13250 # Use a header file that comes with gcc, so configuring glibc
13251 # with a fresh cross-compiler works.
13252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13253 # <limits.h> exists even on freestanding compilers.
13254 # On the NeXT, cc -E runs the code through the compiler's parser,
13255 # not just through cpp. "Syntax error" is here to catch this case.
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13259 # include <limits.h>
13261 # include <assert.h>
13265 if ac_fn_cxx_try_cpp "$LINENO"; then :
13268 # Broken: fails on valid input.
13271 rm -f conftest.err conftest.i conftest.$ac_ext
13273 # OK, works on sane cases. Now check whether nonexistent headers
13274 # can be detected and how.
13275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276 /* end confdefs.h. */
13277 #include <ac_nonexistent.h>
13279 if ac_fn_cxx_try_cpp "$LINENO"; then :
13280 # Broken: success on invalid input.
13283 # Passes both tests.
13287 rm -f conftest.err conftest.i conftest.$ac_ext
13290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13291 rm -f conftest.i conftest.err conftest.$ac_ext
13292 if $ac_preproc_ok; then :
13295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13297 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13298 See \`config.log' for more details" "$LINENO" 5; }
13302 ac_cpp='$CPP $CPPFLAGS'
13303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13308 _lt_caught_CXX_error=yes
13312 ac_cpp='$CXXCPP $CPPFLAGS'
13313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13317 archive_cmds_need_lc_CXX=no
13318 allow_undefined_flag_CXX=
13319 always_export_symbols_CXX=no
13320 archive_expsym_cmds_CXX=
13321 compiler_needs_object_CXX=no
13322 export_dynamic_flag_spec_CXX=
13323 hardcode_direct_CXX=no
13324 hardcode_direct_absolute_CXX=no
13325 hardcode_libdir_flag_spec_CXX=
13326 hardcode_libdir_separator_CXX=
13327 hardcode_minus_L_CXX=no
13328 hardcode_shlibpath_var_CXX=unsupported
13329 hardcode_automatic_CXX=no
13330 inherit_rpath_CXX=no
13332 module_expsym_cmds_CXX=
13333 link_all_deplibs_CXX=unknown
13334 old_archive_cmds_CXX=$old_archive_cmds
13335 reload_flag_CXX=$reload_flag
13336 reload_cmds_CXX=$reload_cmds
13337 no_undefined_flag_CXX=
13338 whole_archive_flag_spec_CXX=
13339 enable_shared_with_static_runtimes_CXX=no
13341 # Source file extension for C++ test sources.
13344 # Object file extension for compiled C++ test sources.
13348 # No sense in running all these tests if we already determined that
13349 # the CXX compiler isn't working. Some variables (like enable_shared)
13350 # are currently assumed to apply to all compilers on this platform,
13351 # and will be corrupted by setting them based on a non-working compiler.
13352 if test "$_lt_caught_CXX_error" != yes; then
13353 # Code to be used in simple compile tests
13354 lt_simple_compile_test_code="int some_variable = 0;"
13356 # Code to be used in simple link tests
13357 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13359 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13366 # If no C compiler was specified, use CC.
13369 # If no C compiler flags were specified, use CFLAGS.
13370 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13372 # Allow CC to be a program name with arguments.
13376 # save warnings/boilerplate of simple test code
13377 ac_outfile=conftest.$ac_objext
13378 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13379 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13380 _lt_compiler_boilerplate=`cat conftest.err`
13383 ac_outfile=conftest.$ac_objext
13384 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13385 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13386 _lt_linker_boilerplate=`cat conftest.err`
13390 # Allow CC to be a program name with arguments.
13392 lt_save_CFLAGS=$CFLAGS
13396 lt_save_with_gnu_ld=$with_gnu_ld
13397 lt_save_path_LD=$lt_cv_path_LD
13398 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13399 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13401 $as_unset lt_cv_prog_gnu_ld
13403 if test -n "${lt_cv_path_LDCXX+set}"; then
13404 lt_cv_path_LD=$lt_cv_path_LDCXX
13406 $as_unset lt_cv_path_LD
13408 test -z "${LDCXX+set}" || LD=$LDCXX
13413 for cc_temp in $compiler""; do
13415 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13416 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13421 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13424 if test -n "$compiler"; then
13425 # We don't want -fno-exception when compiling C++ code, so set the
13426 # no_builtin_flag separately
13427 if test "$GXX" = yes; then
13428 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13430 lt_prog_compiler_no_builtin_flag_CXX=
13433 if test "$GXX" = yes; then
13434 # Set up default GNU C++ configuration
13438 # Check whether --with-gnu-ld was given.
13439 if test "${with_gnu_ld+set}" = set; then :
13440 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13446 if test "$GCC" = yes; then
13447 # Check if gcc -print-prog-name=ld gives a path.
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13449 $as_echo_n "checking for ld used by $CC... " >&6; }
13452 # gcc leaves a trailing carriage return which upsets mingw
13453 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13455 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13458 # Accept absolute paths.
13460 re_direlt='/[^/][^/]*/\.\./'
13461 # Canonicalize the pathname of ld
13462 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13463 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13464 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13466 test -z "$LD" && LD="$ac_prog"
13469 # If it fails, then pretend we aren't using GCC.
13473 # If it is relative, then search for the first ld in PATH.
13474 with_gnu_ld=unknown
13477 elif test "$with_gnu_ld" = yes; then
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13479 $as_echo_n "checking for GNU ld... " >&6; }
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13482 $as_echo_n "checking for non-GNU ld... " >&6; }
13484 if ${lt_cv_path_LD+:} false; then :
13485 $as_echo_n "(cached) " >&6
13487 if test -z "$LD"; then
13488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13489 for ac_dir in $PATH; do
13491 test -z "$ac_dir" && ac_dir=.
13492 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13493 lt_cv_path_LD="$ac_dir/$ac_prog"
13494 # Check to see if the program is GNU ld. I'd rather use --version,
13495 # but apparently some variants of GNU ld only accept -v.
13496 # Break only if it was the GNU/non-GNU ld that we prefer.
13497 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13498 *GNU* | *'with BFD'*)
13499 test "$with_gnu_ld" != no && break
13502 test "$with_gnu_ld" != yes && break
13509 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13513 LD="$lt_cv_path_LD"
13514 if test -n "$LD"; then
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13516 $as_echo "$LD" >&6; }
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13519 $as_echo "no" >&6; }
13521 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13523 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13524 if ${lt_cv_prog_gnu_ld+:} false; then :
13525 $as_echo_n "(cached) " >&6
13527 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13528 case `$LD -v 2>&1 </dev/null` in
13529 *GNU* | *'with BFD'*)
13530 lt_cv_prog_gnu_ld=yes
13533 lt_cv_prog_gnu_ld=no
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13538 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13539 with_gnu_ld=$lt_cv_prog_gnu_ld
13547 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13548 # archiving commands below assume that GNU ld is being used.
13549 if test "$with_gnu_ld" = yes; then
13550 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13551 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'
13553 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13554 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13556 # If archive_cmds runs LD, not CC, wlarc should be empty
13557 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13558 # investigate it a little bit more. (MM)
13561 # ancient GNU ld didn't support --whole-archive et. al.
13562 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13563 $GREP 'no-whole-archive' > /dev/null; then
13564 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13566 whole_archive_flag_spec_CXX=
13572 # A generic and very simple default shared library creation
13573 # command for GNU C++ for the case where it uses the native
13574 # linker, instead of GNU ld. If possible, this setting should
13575 # overridden to take advantage of the native linker features on
13576 # the platform it is being used on.
13577 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13580 # Commands to make compiler produce verbose output that lists
13581 # what "hidden" libraries, object files and flags are used when
13582 # linking a shared library.
13583 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13591 # PORTME: fill in a description of your system's C++ link characteristics
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13593 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13597 # FIXME: insert proper C++ library support
13601 if test "$host_cpu" = ia64; then
13602 # On IA64, the linker does run time linking by default, so we don't
13603 # have to do anything special.
13604 aix_use_runtimelinking=no
13605 exp_sym_flag='-Bexport'
13608 aix_use_runtimelinking=no
13610 # Test if we are trying to use run time linking or normal
13611 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13612 # need to do runtime linking.
13613 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13614 for ld_flag in $LDFLAGS; do
13617 aix_use_runtimelinking=yes
13625 exp_sym_flag='-bexport'
13626 no_entry_flag='-bnoentry'
13629 # When large executables or shared objects are built, AIX ld can
13630 # have problems creating the table of contents. If linking a library
13631 # or program results in "error TOC overflow" add -mminimal-toc to
13632 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13633 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13635 archive_cmds_CXX=''
13636 hardcode_direct_CXX=yes
13637 hardcode_direct_absolute_CXX=yes
13638 hardcode_libdir_separator_CXX=':'
13639 link_all_deplibs_CXX=yes
13640 file_list_spec_CXX='${wl}-f,'
13642 if test "$GXX" = yes; then
13643 case $host_os in aix4.[012]|aix4.[012].*)
13644 # We only want to do this on AIX 4.2 and lower, the check
13645 # below for broken collect2 doesn't work under 4.3+
13646 collect2name=`${CC} -print-prog-name=collect2`
13647 if test -f "$collect2name" &&
13648 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13650 # We have reworked collect2
13653 # We have old collect2
13654 hardcode_direct_CXX=unsupported
13655 # It fails to find uninstalled libraries when the uninstalled
13656 # path is not listed in the libpath. Setting hardcode_minus_L
13657 # to unsupported forces relinking
13658 hardcode_minus_L_CXX=yes
13659 hardcode_libdir_flag_spec_CXX='-L$libdir'
13660 hardcode_libdir_separator_CXX=
13663 shared_flag='-shared'
13664 if test "$aix_use_runtimelinking" = yes; then
13665 shared_flag="$shared_flag "'${wl}-G'
13669 if test "$host_cpu" = ia64; then
13670 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13671 # chokes on -Wl,-G. The following line is correct:
13674 if test "$aix_use_runtimelinking" = yes; then
13675 shared_flag='${wl}-G'
13677 shared_flag='${wl}-bM:SRE'
13682 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13683 # It seems that -bexpall does not export symbols beginning with
13684 # underscore (_), so it is better to generate a list of symbols to
13686 always_export_symbols_CXX=yes
13687 if test "$aix_use_runtimelinking" = yes; then
13688 # Warning - without using the other runtime loading flags (-brtl),
13689 # -berok will link without error, but may produce a broken library.
13690 allow_undefined_flag_CXX='-berok'
13691 # Determine the default libpath from the value encoded in an empty
13693 if test "${lt_cv_aix_libpath+set}" = set; then
13694 aix_libpath=$lt_cv_aix_libpath
13696 if ${lt_cv_aix_libpath__CXX+:} false; then :
13697 $as_echo_n "(cached) " >&6
13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700 /* end confdefs.h. */
13710 if ac_fn_cxx_try_link "$LINENO"; then :
13712 lt_aix_libpath_sed='
13713 /Import File Strings/,/^$/ {
13715 s/^0 *\([^ ]*\) *$/\1/
13719 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13720 # Check for a 64-bit object if we didn't find anything.
13721 if test -z "$lt_cv_aix_libpath__CXX"; then
13722 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13725 rm -f core conftest.err conftest.$ac_objext \
13726 conftest$ac_exeext conftest.$ac_ext
13727 if test -z "$lt_cv_aix_libpath__CXX"; then
13728 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13733 aix_libpath=$lt_cv_aix_libpath__CXX
13736 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13738 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"
13740 if test "$host_cpu" = ia64; then
13741 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13742 allow_undefined_flag_CXX="-z nodefs"
13743 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"
13745 # Determine the default libpath from the value encoded in an
13746 # empty executable.
13747 if test "${lt_cv_aix_libpath+set}" = set; then
13748 aix_libpath=$lt_cv_aix_libpath
13750 if ${lt_cv_aix_libpath__CXX+:} false; then :
13751 $as_echo_n "(cached) " >&6
13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13764 if ac_fn_cxx_try_link "$LINENO"; then :
13766 lt_aix_libpath_sed='
13767 /Import File Strings/,/^$/ {
13769 s/^0 *\([^ ]*\) *$/\1/
13773 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13774 # Check for a 64-bit object if we didn't find anything.
13775 if test -z "$lt_cv_aix_libpath__CXX"; then
13776 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13779 rm -f core conftest.err conftest.$ac_objext \
13780 conftest$ac_exeext conftest.$ac_ext
13781 if test -z "$lt_cv_aix_libpath__CXX"; then
13782 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13787 aix_libpath=$lt_cv_aix_libpath__CXX
13790 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13791 # Warning - without using the other run time loading flags,
13792 # -berok will link without error, but may produce a broken library.
13793 no_undefined_flag_CXX=' ${wl}-bernotok'
13794 allow_undefined_flag_CXX=' ${wl}-berok'
13795 if test "$with_gnu_ld" = yes; then
13796 # We only use this code for GNU lds that support --whole-archive.
13797 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13799 # Exported symbols can be pulled into shared objects from archives
13800 whole_archive_flag_spec_CXX='$convenience'
13802 archive_cmds_need_lc_CXX=yes
13803 # This is similar to how AIX traditionally builds its shared
13805 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'
13811 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13812 allow_undefined_flag_CXX=unsupported
13813 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13814 # support --undefined. This deserves some investigation. FIXME
13815 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822 case $cc_basename in
13824 # FIXME: insert proper C++ library support
13830 cygwin* | mingw* | pw32* | cegcc*)
13831 case $GXX,$cc_basename in
13834 # hardcode_libdir_flag_spec is actually meaningless, as there is
13835 # no search path for DLLs.
13836 hardcode_libdir_flag_spec_CXX=' '
13837 allow_undefined_flag_CXX=unsupported
13838 always_export_symbols_CXX=yes
13839 file_list_spec_CXX='@'
13840 # Tell ltmain to make .lib files, not .a files.
13842 # Tell ltmain to make .dll files, not .so files.
13844 # FIXME: Setting linknames here is a bad hack.
13845 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13846 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13847 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13849 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13851 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13853 # The linker will not automatically build a static lib if we build a DLL.
13854 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13855 enable_shared_with_static_runtimes_CXX=yes
13857 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13858 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13859 lt_tool_outputfile="@TOOL_OUTPUT@"~
13860 case $lt_outputfile in
13863 lt_outputfile="$lt_outputfile.exe"
13864 lt_tool_outputfile="$lt_tool_outputfile.exe"
13867 func_to_tool_file "$lt_outputfile"~
13868 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13869 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13870 $RM "$lt_outputfile.manifest";
13875 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13876 # as there is no search path for DLLs.
13877 hardcode_libdir_flag_spec_CXX='-L$libdir'
13878 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13879 allow_undefined_flag_CXX=unsupported
13880 always_export_symbols_CXX=no
13881 enable_shared_with_static_runtimes_CXX=yes
13883 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13884 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'
13885 # If the export-symbols file already is a .def file (1st line
13886 # is EXPORTS), use it as is; otherwise, prepend...
13887 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13888 cp $export_symbols $output_objdir/$soname.def;
13890 echo EXPORTS > $output_objdir/$soname.def;
13891 cat $export_symbols >> $output_objdir/$soname.def;
13893 $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'
13900 darwin* | rhapsody*)
13903 archive_cmds_need_lc_CXX=no
13904 hardcode_direct_CXX=no
13905 hardcode_automatic_CXX=yes
13906 hardcode_shlibpath_var_CXX=unsupported
13907 if test "$lt_cv_ld_force_load" = "yes"; then
13908 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\"`'
13911 whole_archive_flag_spec_CXX=''
13913 link_all_deplibs_CXX=yes
13914 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13915 case $cc_basename in
13916 ifort*) _lt_dar_can_shared=yes ;;
13917 *) _lt_dar_can_shared=$GCC ;;
13919 if test "$_lt_dar_can_shared" = "yes"; then
13920 output_verbose_link_cmd=func_echo_all
13921 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}"
13922 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13923 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}"
13924 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}"
13925 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13926 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}"
13927 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}"
13937 case $cc_basename in
13939 # FIXME: insert proper C++ library support
13943 # Green Hills C++ Compiler
13944 # FIXME: insert proper C++ library support
13948 # FIXME: insert proper C++ library support
13955 # C++ shared libraries reported to be fairly broken before
13961 archive_cmds_need_lc_CXX=no
13964 freebsd* | dragonfly*)
13965 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13971 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13972 link_all_deplibs_CXX=yes
13976 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13977 hardcode_libdir_separator_CXX=:
13978 export_dynamic_flag_spec_CXX='${wl}-E'
13979 hardcode_direct_CXX=yes
13980 hardcode_minus_L_CXX=yes # Not in the search PATH,
13981 # but as the default
13982 # location of the library.
13984 case $cc_basename in
13986 # FIXME: insert proper C++ library support
13990 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'
13991 # Commands to make compiler produce verbose output that lists
13992 # what "hidden" libraries, object files and flags are used when
13993 # linking a shared library.
13995 # There doesn't appear to be a way to prevent this compiler from
13996 # explicitly linking system object files so we need to strip them
13997 # from the output so that they don't get included in the library
13999 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"'
14002 if test "$GXX" = yes; then
14003 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'
14005 # FIXME: insert proper C++ library support
14013 if test $with_gnu_ld = no; then
14014 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14015 hardcode_libdir_separator_CXX=:
14021 export_dynamic_flag_spec_CXX='${wl}-E'
14027 hardcode_direct_CXX=no
14028 hardcode_shlibpath_var_CXX=no
14031 hardcode_direct_CXX=yes
14032 hardcode_direct_absolute_CXX=yes
14033 hardcode_minus_L_CXX=yes # Not in the search PATH,
14034 # but as the default
14035 # location of the library.
14039 case $cc_basename in
14041 # FIXME: insert proper C++ library support
14047 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14050 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14053 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14056 # Commands to make compiler produce verbose output that lists
14057 # what "hidden" libraries, object files and flags are used when
14058 # linking a shared library.
14060 # There doesn't appear to be a way to prevent this compiler from
14061 # explicitly linking system object files so we need to strip them
14062 # from the output so that they don't get included in the library
14064 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"'
14067 if test "$GXX" = yes; then
14068 if test $with_gnu_ld = no; then
14071 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14074 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14077 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'
14082 # FIXME: insert proper C++ library support
14090 hardcode_direct_CXX=no
14091 hardcode_shlibpath_var_CXX=no
14092 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14093 export_dynamic_flag_spec_CXX='${wl}-E'
14094 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14095 # Instead, shared libraries are loaded at an image base (0x10000000 by
14096 # default) and relocated if they conflict, which is a slow very memory
14097 # consuming and fragmenting process. To avoid this, we pick a random,
14098 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14099 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14100 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'
14101 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'
14104 case $cc_basename in
14107 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'
14109 # Archives containing C++ object files must be created using
14110 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14111 # necessary to make sure instantiated templates are included
14113 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14116 if test "$GXX" = yes; then
14117 if test "$with_gnu_ld" = no; then
14118 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'
14120 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'
14123 link_all_deplibs_CXX=yes
14126 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14127 hardcode_libdir_separator_CXX=:
14128 inherit_rpath_CXX=yes
14131 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14132 case $cc_basename in
14134 # Kuck and Associates, Inc. (KAI) C++ Compiler
14136 # KCC will only create a shared library if the output file
14137 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14138 # to its proper name (with version) after linking.
14139 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'
14140 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'
14141 # Commands to make compiler produce verbose output that lists
14142 # what "hidden" libraries, object files and flags are used when
14143 # linking a shared library.
14145 # There doesn't appear to be a way to prevent this compiler from
14146 # explicitly linking system object files so we need to strip them
14147 # from the output so that they don't get included in the library
14149 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"'
14151 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14152 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14154 # Archives containing C++ object files must be created using
14155 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14156 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14161 # version 8.0 and above of icpc choke on multiply defined symbols
14162 # if we add $predep_objects and $postdep_objects, however 7.1 and
14163 # earlier do not add the objects themselves.
14164 case `$CC -V 2>&1` in
14166 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14167 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'
14169 *) # Version 8.0 or newer
14172 ia64*) tmp_idyn=' -i_dynamic';;
14174 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14175 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'
14178 archive_cmds_need_lc_CXX=no
14179 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14180 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14181 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14184 # Portland Group C++ compiler
14186 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14187 prelink_cmds_CXX='tpldir=Template.dir~
14189 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14190 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14191 old_archive_cmds_CXX='tpldir=Template.dir~
14193 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14194 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14196 archive_cmds_CXX='tpldir=Template.dir~
14198 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14199 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14200 archive_expsym_cmds_CXX='tpldir=Template.dir~
14202 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14203 $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'
14205 *) # Version 6 and above use weak symbols
14206 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14207 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'
14211 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14212 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14213 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'
14217 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14218 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'
14220 runpath_var=LD_RUN_PATH
14221 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14222 hardcode_libdir_separator_CXX=:
14224 # Commands to make compiler produce verbose output that lists
14225 # what "hidden" libraries, object files and flags are used when
14226 # linking a shared library.
14228 # There doesn't appear to be a way to prevent this compiler from
14229 # explicitly linking system object files so we need to strip them
14230 # from the output so that they don't get included in the library
14232 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'
14234 xl* | mpixl* | bgxl*)
14235 # IBM XL 8.0 on PPC, with GNU ld
14236 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14238 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14239 if test "x$supports_anon_versioning" = xyes; then
14240 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14242 echo "local: *; };" >> $output_objdir/$libname.ver~
14243 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14247 case `$CC -V 2>&1 | sed 5q` in
14250 no_undefined_flag_CXX=' -zdefs'
14251 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14252 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'
14253 hardcode_libdir_flag_spec_CXX='-R$libdir'
14254 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'
14255 compiler_needs_object_CXX=yes
14257 # Not sure whether something based on
14258 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14260 output_verbose_link_cmd='func_echo_all'
14262 # Archives containing C++ object files must be created using
14263 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14264 # necessary to make sure instantiated templates are included
14266 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14274 # FIXME: insert proper C++ library support
14279 # FIXME: insert proper C++ library support
14284 case $cc_basename in
14286 # FIXME: insert proper C++ library support
14290 # FIXME: insert proper C++ library support
14297 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14298 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14300 hardcode_libdir_flag_spec_CXX='-R$libdir'
14301 hardcode_direct_CXX=yes
14302 hardcode_shlibpath_var_CXX=no
14304 # Workaround some broken pre-1.5 toolchains
14305 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14313 # C++ shared libraries are fairly broken
14318 if test -f /usr/libexec/ld.so; then
14319 hardcode_direct_CXX=yes
14320 hardcode_shlibpath_var_CXX=no
14321 hardcode_direct_absolute_CXX=yes
14322 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14323 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14324 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14325 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14326 export_dynamic_flag_spec_CXX='${wl}-E'
14327 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14329 output_verbose_link_cmd=func_echo_all
14335 osf3* | osf4* | osf5*)
14336 case $cc_basename in
14338 # Kuck and Associates, Inc. (KAI) C++ Compiler
14340 # KCC will only create a shared library if the output file
14341 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14342 # to its proper name (with version) after linking.
14343 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'
14345 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14346 hardcode_libdir_separator_CXX=:
14348 # Archives containing C++ object files must be created using
14349 # the KAI C++ compiler.
14351 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14352 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14356 # Rational C++ 2.4.1
14357 # FIXME: insert proper C++ library support
14363 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14364 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'
14365 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14368 allow_undefined_flag_CXX=' -expect_unresolved \*'
14369 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'
14370 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14371 echo "-hidden">> $lib.exp~
14372 $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~
14374 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14378 hardcode_libdir_separator_CXX=:
14380 # Commands to make compiler produce verbose output that lists
14381 # what "hidden" libraries, object files and flags are used when
14382 # linking a shared library.
14384 # There doesn't appear to be a way to prevent this compiler from
14385 # explicitly linking system object files so we need to strip them
14386 # from the output so that they don't get included in the library
14388 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"'
14391 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14392 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14395 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'
14398 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'
14402 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14403 hardcode_libdir_separator_CXX=:
14405 # Commands to make compiler produce verbose output that lists
14406 # what "hidden" libraries, object files and flags are used when
14407 # linking a shared library.
14408 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14411 # FIXME: insert proper C++ library support
14419 # FIXME: insert proper C++ library support
14424 case $cc_basename in
14427 # FIXME: insert proper C++ library support
14432 # FIXME: insert proper C++ library support
14436 # FIXME: insert proper C++ library support
14443 case $cc_basename in
14445 # Sun C++ 4.2, 5.x and Centerline C++
14446 archive_cmds_need_lc_CXX=yes
14447 no_undefined_flag_CXX=' -zdefs'
14448 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14449 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14450 $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'
14452 hardcode_libdir_flag_spec_CXX='-R$libdir'
14453 hardcode_shlibpath_var_CXX=no
14455 solaris2.[0-5] | solaris2.[0-5].*) ;;
14457 # The compiler driver will combine and reorder linker options,
14458 # but understands `-z linker_flag'.
14459 # Supported since Solaris 2.6 (maybe 2.5.1?)
14460 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14463 link_all_deplibs_CXX=yes
14465 output_verbose_link_cmd='func_echo_all'
14467 # Archives containing C++ object files must be created using
14468 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14469 # necessary to make sure instantiated templates are included
14471 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14474 # Green Hills C++ Compiler
14475 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14477 # The C++ compiler must be used to create the archive.
14478 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14481 # GNU C++ compiler with Solaris linker
14482 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14483 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14484 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14485 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14486 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14487 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14489 # Commands to make compiler produce verbose output that lists
14490 # what "hidden" libraries, object files and flags are used when
14491 # linking a shared library.
14492 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14494 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14496 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14497 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14498 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14500 # Commands to make compiler produce verbose output that lists
14501 # what "hidden" libraries, object files and flags are used when
14502 # linking a shared library.
14503 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14506 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14508 solaris2.[0-5] | solaris2.[0-5].*) ;;
14510 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14518 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14519 no_undefined_flag_CXX='${wl}-z,text'
14520 archive_cmds_need_lc_CXX=no
14521 hardcode_shlibpath_var_CXX=no
14522 runpath_var='LD_RUN_PATH'
14524 case $cc_basename in
14526 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14527 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14530 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14531 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14536 sysv5* | sco3.2v5* | sco5v6*)
14537 # Note: We can NOT use -z defs as we might desire, because we do not
14538 # link with -lc, and that would cause any symbols used from libc to
14539 # always be unresolved, which means just about no library would
14540 # ever link correctly. If we're not using GNU ld we use -z text
14541 # though, which does catch some bad symbols but isn't as heavy-handed
14543 no_undefined_flag_CXX='${wl}-z,text'
14544 allow_undefined_flag_CXX='${wl}-z,nodefs'
14545 archive_cmds_need_lc_CXX=no
14546 hardcode_shlibpath_var_CXX=no
14547 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14548 hardcode_libdir_separator_CXX=':'
14549 link_all_deplibs_CXX=yes
14550 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14551 runpath_var='LD_RUN_PATH'
14553 case $cc_basename in
14555 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14556 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14557 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14558 '"$old_archive_cmds_CXX"
14559 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14560 '"$reload_cmds_CXX"
14563 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14564 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14570 case $cc_basename in
14572 # NonStop-UX NCC 3.20
14573 # FIXME: insert proper C++ library support
14577 # FIXME: insert proper C++ library support
14584 # FIXME: insert proper C++ library support
14589 # FIXME: insert proper C++ library support
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14595 $as_echo "$ld_shlibs_CXX" >&6; }
14596 test "$ld_shlibs_CXX" = no && can_build_shared=no
14602 ## There is no encapsulation within the following macros, do not change
14603 ## the running order or otherwise move them around unless you know exactly
14604 ## what you are doing...
14605 # Dependencies to place before and after the object being linked:
14606 predep_objects_CXX=
14607 postdep_objects_CXX=
14610 compiler_lib_search_path_CXX=
14612 cat > conftest.$ac_ext <<_LT_EOF
14616 Foo (void) { a = 0; }
14623 _lt_libdeps_save_CFLAGS=$CFLAGS
14624 case "$CC $CFLAGS " in #(
14625 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14626 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14627 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14631 (eval $ac_compile) 2>&5
14633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14634 test $ac_status = 0; }; then
14635 # Parse the compiler output and extract the necessary
14636 # objects, libraries and library flags.
14638 # Sentinel used to keep track of whether or not we are before
14639 # the conftest object file.
14640 pre_test_object_deps_done=no
14642 for p in `eval "$output_verbose_link_cmd"`; do
14643 case ${prev}${p} in
14646 # Some compilers place space between "-{L,R}" and the path.
14647 # Remove the space.
14648 if test $p = "-L" ||
14649 test $p = "-R"; then
14654 # Expand the sysroot to ease extracting the directories later.
14655 if test -z "$prev"; then
14657 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14658 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14659 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14663 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14665 if test "$pre_test_object_deps_done" = no; then
14668 # Internal compiler library paths should come after those
14669 # provided the user. The postdeps already come after the
14670 # user supplied libs so there is no need to process them.
14671 if test -z "$compiler_lib_search_path_CXX"; then
14672 compiler_lib_search_path_CXX="${prev}${p}"
14674 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14677 # The "-l" case would never come before the object being
14678 # linked, so don't bother handling this case.
14681 if test -z "$postdeps_CXX"; then
14682 postdeps_CXX="${prev}${p}"
14684 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14690 *.lto.$objext) ;; # Ignore GCC LTO objects
14692 # This assumes that the test object file only shows up
14693 # once in the compiler output.
14694 if test "$p" = "conftest.$objext"; then
14695 pre_test_object_deps_done=yes
14699 if test "$pre_test_object_deps_done" = no; then
14700 if test -z "$predep_objects_CXX"; then
14701 predep_objects_CXX="$p"
14703 predep_objects_CXX="$predep_objects_CXX $p"
14706 if test -z "$postdep_objects_CXX"; then
14707 postdep_objects_CXX="$p"
14709 postdep_objects_CXX="$postdep_objects_CXX $p"
14714 *) ;; # Ignore the rest.
14722 echo "libtool.m4: error: problem compiling CXX test program"
14725 $RM -f confest.$objext
14726 CFLAGS=$_lt_libdeps_save_CFLAGS
14728 # PORTME: override above test on systems where it is broken
14731 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14732 # hack all around it, let's just trust "g++" to DTRT.
14733 predep_objects_CXX=
14734 postdep_objects_CXX=
14739 case `$CC -V 2>&1 | sed 5q` in
14743 # The more standards-conforming stlport4 library is
14744 # incompatible with the Cstd library. Avoid specifying
14745 # it if it's in CXXFLAGS. Ignore libCrun as
14746 # -library=stlport4 depends on it.
14747 case " $CXX $CXXFLAGS " in
14748 *" -library=stlport4 "*)
14749 solaris_use_stlport4=yes
14753 if test "$solaris_use_stlport4" != yes; then
14754 postdeps_CXX='-library=Cstd -library=Crun'
14761 case $cc_basename in
14763 # The more standards-conforming stlport4 library is
14764 # incompatible with the Cstd library. Avoid specifying
14765 # it if it's in CXXFLAGS. Ignore libCrun as
14766 # -library=stlport4 depends on it.
14767 case " $CXX $CXXFLAGS " in
14768 *" -library=stlport4 "*)
14769 solaris_use_stlport4=yes
14773 # Adding this requires a known-good setup of shared libraries for
14774 # Sun compiler versions before 5.6, else PIC objects from an old
14775 # archive will be linked into the output, leading to subtle bugs.
14776 if test "$solaris_use_stlport4" != yes; then
14777 postdeps_CXX='-library=Cstd -library=Crun'
14785 case " $postdeps_CXX " in
14786 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14788 compiler_lib_search_dirs_CXX=
14789 if test -n "${compiler_lib_search_path_CXX}"; then
14790 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14823 lt_prog_compiler_wl_CXX=
14824 lt_prog_compiler_pic_CXX=
14825 lt_prog_compiler_static_CXX=
14828 # C++ specific cases for pic, static, wl, etc.
14829 if test "$GXX" = yes; then
14830 lt_prog_compiler_wl_CXX='-Wl,'
14831 lt_prog_compiler_static_CXX='-static'
14835 # All AIX code is PIC.
14836 if test "$host_cpu" = ia64; then
14837 # AIX 5 now supports IA64 processor
14838 lt_prog_compiler_static_CXX='-Bstatic'
14845 # see comment about AmigaOS4 .so support
14846 lt_prog_compiler_pic_CXX='-fPIC'
14849 # FIXME: we need at least 68020 code to build shared libraries, but
14850 # adding the `-m68020' flag to GCC prevents building anything better,
14852 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14857 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14858 # PIC is the default for these OSes.
14860 mingw* | cygwin* | os2* | pw32* | cegcc*)
14861 # This hack is so that the source file can tell whether it is being
14862 # built for inclusion in a dll (and should export symbols for example).
14863 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14864 # (--disable-auto-import) libraries
14865 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14867 darwin* | rhapsody*)
14868 # PIC is the default on this platform
14869 # Common symbols not allowed in MH_DYLIB files
14870 lt_prog_compiler_pic_CXX='-fno-common'
14873 # DJGPP does not support shared libraries at all
14874 lt_prog_compiler_pic_CXX=
14877 # PIC is the default for Haiku.
14878 # The "-static" flag exists, but is broken.
14879 lt_prog_compiler_static_CXX=
14882 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14883 # Instead, we relocate shared libraries at runtime.
14886 if test -d /usr/nec; then
14887 lt_prog_compiler_pic_CXX=-Kconform_pic
14891 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14892 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14893 # sets the default TLS model and affects inlining.
14898 lt_prog_compiler_pic_CXX='-fPIC'
14903 # QNX uses GNU C++, but need to define -shared option too, otherwise
14904 # it will coredump.
14905 lt_prog_compiler_pic_CXX='-fPIC -shared'
14908 lt_prog_compiler_pic_CXX='-fPIC'
14914 # All AIX code is PIC.
14915 if test "$host_cpu" = ia64; then
14916 # AIX 5 now supports IA64 processor
14917 lt_prog_compiler_static_CXX='-Bstatic'
14919 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14923 case $cc_basename in
14925 # Green Hills C++ Compiler
14926 # _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"
14930 mingw* | cygwin* | os2* | pw32* | cegcc*)
14931 # This hack is so that the source file can tell whether it is being
14932 # built for inclusion in a dll (and should export symbols for example).
14933 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14936 case $cc_basename in
14938 lt_prog_compiler_pic_CXX='-KPIC'
14941 # Green Hills C++ Compiler
14942 lt_prog_compiler_pic_CXX='-pic'
14948 freebsd* | dragonfly*)
14949 # FreeBSD uses GNU C++
14951 hpux9* | hpux10* | hpux11*)
14952 case $cc_basename in
14954 lt_prog_compiler_wl_CXX='-Wl,'
14955 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14956 if test "$host_cpu" != ia64; then
14957 lt_prog_compiler_pic_CXX='+Z'
14961 lt_prog_compiler_wl_CXX='-Wl,'
14962 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14968 lt_prog_compiler_pic_CXX='+Z'
14977 # This is c89, which is MS Visual C++ (no shared libs)
14978 # Anyone wants to do a port?
14980 irix5* | irix6* | nonstopux*)
14981 case $cc_basename in
14983 lt_prog_compiler_wl_CXX='-Wl,'
14984 lt_prog_compiler_static_CXX='-non_shared'
14985 # CC pic flag -KPIC is the default.
14991 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14992 case $cc_basename in
14995 lt_prog_compiler_wl_CXX='--backend -Wl,'
14996 lt_prog_compiler_pic_CXX='-fPIC'
14999 # old Intel C++ for x86_64 which still supported -KPIC.
15000 lt_prog_compiler_wl_CXX='-Wl,'
15001 lt_prog_compiler_pic_CXX='-KPIC'
15002 lt_prog_compiler_static_CXX='-static'
15005 # Intel C++, used to be incompatible with GCC.
15006 # ICC 10 doesn't accept -KPIC any more.
15007 lt_prog_compiler_wl_CXX='-Wl,'
15008 lt_prog_compiler_pic_CXX='-fPIC'
15009 lt_prog_compiler_static_CXX='-static'
15012 # Portland Group C++ compiler
15013 lt_prog_compiler_wl_CXX='-Wl,'
15014 lt_prog_compiler_pic_CXX='-fpic'
15015 lt_prog_compiler_static_CXX='-Bstatic'
15019 # Make sure the PIC flag is empty. It appears that all Alpha
15020 # Linux and Compaq Tru64 Unix objects are PIC.
15021 lt_prog_compiler_pic_CXX=
15022 lt_prog_compiler_static_CXX='-non_shared'
15024 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15025 # IBM XL 8.0, 9.0 on PPC and BlueGene
15026 lt_prog_compiler_wl_CXX='-Wl,'
15027 lt_prog_compiler_pic_CXX='-qpic'
15028 lt_prog_compiler_static_CXX='-qstaticlink'
15031 case `$CC -V 2>&1 | sed 5q` in
15034 lt_prog_compiler_pic_CXX='-KPIC'
15035 lt_prog_compiler_static_CXX='-Bstatic'
15036 lt_prog_compiler_wl_CXX='-Qoption ld '
15047 case $cc_basename in
15049 lt_prog_compiler_pic_CXX='-W c,exportall'
15055 netbsd* | netbsdelf*-gnu)
15058 # QNX uses GNU C++, but need to define -shared option too, otherwise
15059 # it will coredump.
15060 lt_prog_compiler_pic_CXX='-fPIC -shared'
15062 osf3* | osf4* | osf5*)
15063 case $cc_basename in
15065 lt_prog_compiler_wl_CXX='--backend -Wl,'
15068 # Rational C++ 2.4.1
15069 lt_prog_compiler_pic_CXX='-pic'
15072 # Digital/Compaq C++
15073 lt_prog_compiler_wl_CXX='-Wl,'
15074 # Make sure the PIC flag is empty. It appears that all Alpha
15075 # Linux and Compaq Tru64 Unix objects are PIC.
15076 lt_prog_compiler_pic_CXX=
15077 lt_prog_compiler_static_CXX='-non_shared'
15086 case $cc_basename in
15088 # Sun C++ 4.2, 5.x and Centerline C++
15089 lt_prog_compiler_pic_CXX='-KPIC'
15090 lt_prog_compiler_static_CXX='-Bstatic'
15091 lt_prog_compiler_wl_CXX='-Qoption ld '
15094 # Green Hills C++ Compiler
15095 lt_prog_compiler_pic_CXX='-PIC'
15102 case $cc_basename in
15105 lt_prog_compiler_pic_CXX='-pic'
15106 lt_prog_compiler_static_CXX='-Bstatic'
15110 lt_prog_compiler_pic_CXX='-pic'
15116 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15117 case $cc_basename in
15119 lt_prog_compiler_wl_CXX='-Wl,'
15120 lt_prog_compiler_pic_CXX='-KPIC'
15121 lt_prog_compiler_static_CXX='-Bstatic'
15126 case $cc_basename in
15128 # NonStop-UX NCC 3.20
15129 lt_prog_compiler_pic_CXX='-KPIC'
15138 lt_prog_compiler_can_build_shared_CXX=no
15144 # For platforms which do not support PIC, -DPIC is meaningless:
15146 lt_prog_compiler_pic_CXX=
15149 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15154 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15155 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15156 $as_echo_n "(cached) " >&6
15158 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15161 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15162 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15165 # Check to make sure the PIC flag actually works.
15167 if test -n "$lt_prog_compiler_pic_CXX"; then
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15169 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15170 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15171 $as_echo_n "(cached) " >&6
15173 lt_cv_prog_compiler_pic_works_CXX=no
15174 ac_outfile=conftest.$ac_objext
15175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15176 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15177 # Insert the option either (1) after the last *FLAGS variable, or
15178 # (2) before a word containing "conftest.", or (3) at the end.
15179 # Note that $ac_compile itself does not contain backslashes and begins
15180 # with a dollar sign (not a hyphen), so the echo should work correctly.
15181 # The option is referenced via a variable to avoid confusing sed.
15182 lt_compile=`echo "$ac_compile" | $SED \
15183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15185 -e 's:$: $lt_compiler_flag:'`
15186 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15187 (eval "$lt_compile" 2>conftest.err)
15189 cat conftest.err >&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 if (exit $ac_status) && test -s "$ac_outfile"; then
15192 # The compiler can only warn and ignore the option if not recognized
15193 # So say no if there are warnings other than the usual output.
15194 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15195 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15196 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15197 lt_cv_prog_compiler_pic_works_CXX=yes
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15204 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15206 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15207 case $lt_prog_compiler_pic_CXX in
15209 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15212 lt_prog_compiler_pic_CXX=
15213 lt_prog_compiler_can_build_shared_CXX=no
15223 # Check to make sure the static flag actually works.
15225 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15227 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15228 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15229 $as_echo_n "(cached) " >&6
15231 lt_cv_prog_compiler_static_works_CXX=no
15232 save_LDFLAGS="$LDFLAGS"
15233 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15234 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15235 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15236 # The linker can only warn and ignore the option if not recognized
15237 # So say no if there are warnings
15238 if test -s conftest.err; then
15239 # Append any errors to the config.log.
15240 cat conftest.err 1>&5
15241 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15243 if diff conftest.exp conftest.er2 >/dev/null; then
15244 lt_cv_prog_compiler_static_works_CXX=yes
15247 lt_cv_prog_compiler_static_works_CXX=yes
15251 LDFLAGS="$save_LDFLAGS"
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15255 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15257 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15260 lt_prog_compiler_static_CXX=
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15267 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15268 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15269 $as_echo_n "(cached) " >&6
15271 lt_cv_prog_compiler_c_o_CXX=no
15272 $RM -r conftest 2>/dev/null
15276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15278 lt_compiler_flag="-o out/conftest2.$ac_objext"
15279 # Insert the option either (1) after the last *FLAGS variable, or
15280 # (2) before a word containing "conftest.", or (3) at the end.
15281 # Note that $ac_compile itself does not contain backslashes and begins
15282 # with a dollar sign (not a hyphen), so the echo should work correctly.
15283 lt_compile=`echo "$ac_compile" | $SED \
15284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15286 -e 's:$: $lt_compiler_flag:'`
15287 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15288 (eval "$lt_compile" 2>out/conftest.err)
15290 cat out/conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15294 # The compiler can only warn and ignore the option if not recognized
15295 # So say no if there are warnings
15296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15297 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15298 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15299 lt_cv_prog_compiler_c_o_CXX=yes
15304 # SGI C++ compiler will create directory out/ii_files/ for
15305 # template instantiation
15306 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15307 $RM out/* && rmdir out
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15314 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15319 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15320 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15321 $as_echo_n "(cached) " >&6
15323 lt_cv_prog_compiler_c_o_CXX=no
15324 $RM -r conftest 2>/dev/null
15328 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15330 lt_compiler_flag="-o out/conftest2.$ac_objext"
15331 # Insert the option either (1) after the last *FLAGS variable, or
15332 # (2) before a word containing "conftest.", or (3) at the end.
15333 # Note that $ac_compile itself does not contain backslashes and begins
15334 # with a dollar sign (not a hyphen), so the echo should work correctly.
15335 lt_compile=`echo "$ac_compile" | $SED \
15336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15338 -e 's:$: $lt_compiler_flag:'`
15339 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15340 (eval "$lt_compile" 2>out/conftest.err)
15342 cat out/conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15346 # The compiler can only warn and ignore the option if not recognized
15347 # So say no if there are warnings
15348 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15349 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15350 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15351 lt_cv_prog_compiler_c_o_CXX=yes
15356 # SGI C++ compiler will create directory out/ii_files/ for
15357 # template instantiation
15358 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15359 $RM out/* && rmdir out
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15366 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15371 hard_links="nottested"
15372 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15373 # do not overwrite the value of need_locks provided by the user
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15375 $as_echo_n "checking if we can lock with hard links... " >&6; }
15378 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15380 ln conftest.a conftest.b 2>&5 || hard_links=no
15381 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15383 $as_echo "$hard_links" >&6; }
15384 if test "$hard_links" = no; then
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15386 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15396 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15398 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15399 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15402 # If we're using GNU nm, then we don't want the "-C" option.
15403 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15404 # Also, AIX nm treats weak defined symbols like other global defined
15405 # symbols, whereas GNU nm marks them as "W".
15406 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15407 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'
15409 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'
15413 export_symbols_cmds_CXX="$ltdll_cmds"
15415 cygwin* | mingw* | cegcc*)
15416 case $cc_basename in
15418 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15421 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'
15422 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15426 linux* | k*bsd*-gnu | gnu*)
15427 link_all_deplibs_CXX=no
15430 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15435 $as_echo "$ld_shlibs_CXX" >&6; }
15436 test "$ld_shlibs_CXX" = no && can_build_shared=no
15438 with_gnu_ld_CXX=$with_gnu_ld
15446 # Do we need to explicitly link libc?
15448 case "x$archive_cmds_need_lc_CXX" in
15450 # Assume -lc should be added
15451 archive_cmds_need_lc_CXX=yes
15453 if test "$enable_shared" = yes && test "$GCC" = yes; then
15454 case $archive_cmds_CXX in
15456 # FIXME: we may have to deal with multi-command sequences.
15459 # Test whether the compiler implicitly links with -lc since on some
15460 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15461 # to ld, don't add -lc before -lgcc.
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15463 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15464 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15465 $as_echo_n "(cached) " >&6
15468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15471 (eval $ac_compile) 2>&5
15473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15474 test $ac_status = 0; } 2>conftest.err; then
15477 libobjs=conftest.$ac_objext
15479 wl=$lt_prog_compiler_wl_CXX
15480 pic_flag=$lt_prog_compiler_pic_CXX
15486 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15487 allow_undefined_flag_CXX=
15488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15489 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15492 test $ac_status = 0; }
15494 lt_cv_archive_cmds_need_lc_CXX=no
15496 lt_cv_archive_cmds_need_lc_CXX=yes
15498 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15500 cat conftest.err 1>&5
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15506 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15507 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15576 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15578 library_names_spec=
15579 libname_spec='lib$name'
15583 postuninstall_cmds=
15587 shlibpath_overrides_runpath=unknown
15589 dynamic_linker="$host_os ld.so"
15590 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15591 need_lib_prefix=unknown
15592 hardcode_into_libs=no
15594 # when you set need_version to no, make sure it does not cause -set_version
15595 # flags to be left without arguments
15596 need_version=unknown
15600 version_type=linux # correct to gnu/linux during the next big refactor
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15602 shlibpath_var=LIBPATH
15604 # AIX 3 has no versioning support, so we append a major version to the name.
15605 soname_spec='${libname}${release}${shared_ext}$major'
15609 version_type=linux # correct to gnu/linux during the next big refactor
15612 hardcode_into_libs=yes
15613 if test "$host_cpu" = ia64; then
15614 # AIX 5 supports IA64
15615 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15616 shlibpath_var=LD_LIBRARY_PATH
15618 # With GCC up to 2.95.x, collect2 would create an import file
15619 # for dependence libraries. The import file would start with
15620 # the line `#! .'. This would cause the generated library to
15621 # depend on `.', always an invalid library. This was fixed in
15622 # development snapshots of GCC prior to 3.0.
15624 aix4 | aix4.[01] | aix4.[01].*)
15625 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15627 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15630 can_build_shared=no
15634 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15635 # soname into executable. Probably we can add versioning support to
15636 # collect2, so additional links can be useful in future.
15637 if test "$aix_use_runtimelinking" = yes; then
15638 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15639 # instead of lib<name>.a to let people know that these are not
15640 # typical AIX shared libraries.
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643 # We preserve .a as extension for shared libraries through AIX4.2
15644 # and later when we are not doing run time linking.
15645 library_names_spec='${libname}${release}.a $libname.a'
15646 soname_spec='${libname}${release}${shared_ext}$major'
15648 shlibpath_var=LIBPATH
15655 # Since July 2007 AmigaOS4 officially supports .so libraries.
15656 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15660 library_names_spec='$libname.ixlibrary $libname.a'
15661 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15662 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'
15668 library_names_spec='${libname}${shared_ext}'
15669 dynamic_linker="$host_os ld.so"
15670 shlibpath_var=LIBRARY_PATH
15674 version_type=linux # correct to gnu/linux during the next big refactor
15676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15677 soname_spec='${libname}${release}${shared_ext}$major'
15678 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15679 shlibpath_var=LD_LIBRARY_PATH
15680 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15681 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15682 # the default ld.so.conf also contains /usr/contrib/lib and
15683 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15684 # libtool to hard-code these into programs
15687 cygwin* | mingw* | pw32* | cegcc*)
15688 version_type=windows
15693 case $GCC,$cc_basename in
15696 library_names_spec='$libname.dll.a'
15697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15698 postinstall_cmds='base_file=`basename \${file}`~
15699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15700 dldir=$destdir/`dirname \$dlpath`~
15701 test -d \$dldir || mkdir -p \$dldir~
15702 $install_prog $dir/$dlname \$dldir/$dlname~
15703 chmod a+x \$dldir/$dlname~
15704 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15705 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15707 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15708 dlpath=$dir/\$dldll~
15710 shlibpath_overrides_runpath=yes
15714 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15715 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15719 # MinGW DLLs use traditional 'lib' prefix
15720 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15723 # pw32 DLLs use 'pw' prefix rather than 'lib'
15724 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15727 dynamic_linker='Win32 ld.exe'
15732 libname_spec='$name'
15733 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15734 library_names_spec='${libname}.dll.lib'
15738 sys_lib_search_path_spec=
15741 for lt_path in $LIB
15744 # Let DOS variable expansion print the short 8.3 style file name.
15745 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15746 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15749 # Convert to MSYS style.
15750 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15753 # Convert to unix form, then to dos form, then back to unix form
15754 # but this time dos style (no spaces!) so that the unix form looks
15755 # like /cygdrive/c/PROGRA~1:/cygdr...
15756 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15757 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15758 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15761 sys_lib_search_path_spec="$LIB"
15762 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15763 # It is most probably a Windows format PATH.
15764 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15766 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15768 # FIXME: find the short name or the path components, as spaces are
15769 # common. (e.g. "Program Files" -> "PROGRA~1")
15773 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15774 postinstall_cmds='base_file=`basename \${file}`~
15775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15776 dldir=$destdir/`dirname \$dlpath`~
15777 test -d \$dldir || mkdir -p \$dldir~
15778 $install_prog $dir/$dlname \$dldir/$dlname'
15779 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15780 dlpath=$dir/\$dldll~
15782 shlibpath_overrides_runpath=yes
15783 dynamic_linker='Win32 link.exe'
15787 # Assume MSVC wrapper
15788 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15789 dynamic_linker='Win32 ld.exe'
15792 # FIXME: first we should search . and the directory the executable is in
15796 darwin* | rhapsody*)
15797 dynamic_linker="$host_os dyld"
15798 version_type=darwin
15801 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15802 soname_spec='${libname}${release}${major}$shared_ext'
15803 shlibpath_overrides_runpath=yes
15804 shlibpath_var=DYLD_LIBRARY_PATH
15805 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15807 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15811 version_type=linux # correct to gnu/linux during the next big refactor
15814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15815 soname_spec='${libname}${release}${shared_ext}$major'
15816 shlibpath_var=LD_LIBRARY_PATH
15819 freebsd* | dragonfly*)
15820 # DragonFly does not have aout. When/if they implement a new
15821 # versioning mechanism, adjust this.
15822 if test -x /usr/bin/objformat; then
15823 objformat=`/usr/bin/objformat`
15826 freebsd[23].*) objformat=aout ;;
15827 *) objformat=elf ;;
15830 version_type=freebsd-$objformat
15831 case $version_type in
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15842 shlibpath_var=LD_LIBRARY_PATH
15845 shlibpath_overrides_runpath=yes
15847 freebsd3.[01]* | freebsdelf3.[01]*)
15848 shlibpath_overrides_runpath=yes
15849 hardcode_into_libs=yes
15851 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15852 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15853 shlibpath_overrides_runpath=no
15854 hardcode_into_libs=yes
15856 *) # from 4.6 on, and DragonFly
15857 shlibpath_overrides_runpath=yes
15858 hardcode_into_libs=yes
15864 version_type=linux # correct to gnu/linux during the next big refactor
15867 dynamic_linker="$host_os runtime_loader"
15868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15869 soname_spec='${libname}${release}${shared_ext}$major'
15870 shlibpath_var=LIBRARY_PATH
15871 shlibpath_overrides_runpath=yes
15872 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15873 hardcode_into_libs=yes
15876 hpux9* | hpux10* | hpux11*)
15877 # Give a soname corresponding to the major version so that dld.sl refuses to
15878 # link against other versions.
15885 hardcode_into_libs=yes
15886 dynamic_linker="$host_os dld.so"
15887 shlibpath_var=LD_LIBRARY_PATH
15888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890 soname_spec='${libname}${release}${shared_ext}$major'
15891 if test "X$HPUX_IA64_MODE" = X32; then
15892 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15894 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15900 hardcode_into_libs=yes
15901 dynamic_linker="$host_os dld.sl"
15902 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15905 soname_spec='${libname}${release}${shared_ext}$major'
15906 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15911 dynamic_linker="$host_os dld.sl"
15912 shlibpath_var=SHLIB_PATH
15913 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15915 soname_spec='${libname}${release}${shared_ext}$major'
15918 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15919 postinstall_cmds='chmod 555 $lib'
15920 # or fails outright, so override atomically:
15921 install_override_mode=555
15925 version_type=linux # correct to gnu/linux during the next big refactor
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15929 soname_spec='${libname}${release}${shared_ext}$major'
15930 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15931 shlibpath_var=LD_LIBRARY_PATH
15932 shlibpath_overrides_runpath=no
15933 hardcode_into_libs=yes
15936 irix5* | irix6* | nonstopux*)
15938 nonstopux*) version_type=nonstopux ;;
15940 if test "$lt_cv_prog_gnu_ld" = yes; then
15941 version_type=linux # correct to gnu/linux during the next big refactor
15948 soname_spec='${libname}${release}${shared_ext}$major'
15949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15951 irix5* | nonstopux*)
15952 libsuff= shlibsuff=
15955 case $LD in # libtool.m4 will add one of these switches to LD
15956 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15957 libsuff= shlibsuff= libmagic=32-bit;;
15958 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15959 libsuff=32 shlibsuff=N32 libmagic=N32;;
15960 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15961 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15962 *) libsuff= shlibsuff= libmagic=never-match;;
15966 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15967 shlibpath_overrides_runpath=no
15968 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15969 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15970 hardcode_into_libs=yes
15973 # No shared lib support for Linux oldld, aout, or coff.
15974 linux*oldld* | linux*aout* | linux*coff*)
15978 # This must be glibc/ELF.
15979 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15980 version_type=linux # correct to gnu/linux during the next big refactor
15983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984 soname_spec='${libname}${release}${shared_ext}$major'
15985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15986 shlibpath_var=LD_LIBRARY_PATH
15987 shlibpath_overrides_runpath=no
15989 # Some binutils ld are patched to set DT_RUNPATH
15990 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15991 $as_echo_n "(cached) " >&6
15993 lt_cv_shlibpath_overrides_runpath=no
15994 save_LDFLAGS=$LDFLAGS
15995 save_libdir=$libdir
15996 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15997 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h. */
16009 if ac_fn_cxx_try_link "$LINENO"; then :
16010 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16011 lt_cv_shlibpath_overrides_runpath=yes
16014 rm -f core conftest.err conftest.$ac_objext \
16015 conftest$ac_exeext conftest.$ac_ext
16016 LDFLAGS=$save_LDFLAGS
16017 libdir=$save_libdir
16021 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16023 # This implies no fast_install, which is unacceptable.
16024 # Some rework will be needed to allow for fast_install
16025 # before this can be enabled.
16026 hardcode_into_libs=yes
16028 # Append ld.so.conf contents to the search path
16029 if test -f /etc/ld.so.conf; then
16030 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' ' '`
16031 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16034 # We used to test for /lib/ld.so.1 and disable shared libraries on
16035 # powerpc, because MkLinux only supported shared libraries with the
16036 # GNU dynamic linker. Since this was broken with cross compilers,
16037 # most powerpc-linux boxes support dynamic linking these days and
16038 # people can always --disable-shared, the test was removed, and we
16039 # assume the GNU/Linux dynamic linker is in use.
16040 dynamic_linker='GNU/Linux ld.so'
16047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16048 soname_spec='${libname}${release}${shared_ext}$major'
16049 shlibpath_var=LD_LIBRARY_PATH
16050 shlibpath_overrides_runpath=no
16051 hardcode_into_libs=yes
16052 dynamic_linker='NetBSD ld.elf_so'
16059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16062 dynamic_linker='NetBSD (a.out) ld.so'
16064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16065 soname_spec='${libname}${release}${shared_ext}$major'
16066 dynamic_linker='NetBSD ld.elf_so'
16068 shlibpath_var=LD_LIBRARY_PATH
16069 shlibpath_overrides_runpath=yes
16070 hardcode_into_libs=yes
16074 version_type=linux # correct to gnu/linux during the next big refactor
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076 shlibpath_var=LD_LIBRARY_PATH
16077 shlibpath_overrides_runpath=yes
16084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16085 soname_spec='${libname}${release}${shared_ext}$major'
16086 shlibpath_var=LD_LIBRARY_PATH
16087 shlibpath_overrides_runpath=no
16088 hardcode_into_libs=yes
16089 dynamic_linker='ldqnx.so'
16094 sys_lib_dlsearch_path_spec="/usr/lib"
16096 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16098 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16099 *) need_version=no ;;
16101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16103 shlibpath_var=LD_LIBRARY_PATH
16104 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16106 openbsd2.[89] | openbsd2.[89].*)
16107 shlibpath_overrides_runpath=no
16110 shlibpath_overrides_runpath=yes
16114 shlibpath_overrides_runpath=yes
16119 libname_spec='$name'
16122 library_names_spec='$libname${shared_ext} $libname.a'
16123 dynamic_linker='OS/2 ld.exe'
16124 shlibpath_var=LIBPATH
16127 osf3* | osf4* | osf5*)
16131 soname_spec='${libname}${release}${shared_ext}$major'
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133 shlibpath_var=LD_LIBRARY_PATH
16134 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16135 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16143 version_type=linux # correct to gnu/linux during the next big refactor
16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147 soname_spec='${libname}${release}${shared_ext}$major'
16148 shlibpath_var=LD_LIBRARY_PATH
16149 shlibpath_overrides_runpath=yes
16150 hardcode_into_libs=yes
16151 # ldd complains unless libraries are executable
16152 postinstall_cmds='chmod +x $lib'
16157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16158 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16159 shlibpath_var=LD_LIBRARY_PATH
16160 shlibpath_overrides_runpath=yes
16161 if test "$with_gnu_ld" = yes; then
16168 version_type=linux # correct to gnu/linux during the next big refactor
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 shlibpath_var=LD_LIBRARY_PATH
16172 case $host_vendor in
16174 shlibpath_overrides_runpath=no
16176 runpath_var=LD_RUN_PATH
16184 shlibpath_overrides_runpath=no
16185 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16191 if test -d /usr/nec ;then
16192 version_type=linux # correct to gnu/linux during the next big refactor
16193 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16194 soname_spec='$libname${shared_ext}.$major'
16195 shlibpath_var=LD_LIBRARY_PATH
16199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16200 version_type=freebsd-elf
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 shlibpath_var=LD_LIBRARY_PATH
16206 shlibpath_overrides_runpath=yes
16207 hardcode_into_libs=yes
16208 if test "$with_gnu_ld" = yes; then
16209 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16211 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16214 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16218 sys_lib_dlsearch_path_spec='/usr/lib'
16222 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16223 version_type=linux # correct to gnu/linux during the next big refactor
16226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16227 shlibpath_var=LD_LIBRARY_PATH
16228 shlibpath_overrides_runpath=no
16229 hardcode_into_libs=yes
16233 version_type=linux # correct to gnu/linux during the next big refactor
16234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16235 soname_spec='${libname}${release}${shared_ext}$major'
16236 shlibpath_var=LD_LIBRARY_PATH
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16244 $as_echo "$dynamic_linker" >&6; }
16245 test "$dynamic_linker" = no && can_build_shared=no
16247 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16248 if test "$GCC" = yes; then
16249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16252 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16253 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16255 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16256 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16297 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16298 hardcode_action_CXX=
16299 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16300 test -n "$runpath_var_CXX" ||
16301 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16303 # We can hardcode non-existent directories.
16304 if test "$hardcode_direct_CXX" != no &&
16305 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16306 # have to relink, otherwise we might link with an installed library
16307 # when we should be linking with a yet-to-be-installed one
16308 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16309 test "$hardcode_minus_L_CXX" != no; then
16310 # Linking always hardcodes the temporary library directory.
16311 hardcode_action_CXX=relink
16313 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16314 hardcode_action_CXX=immediate
16317 # We cannot hardcode anything, or else we can only hardcode existing
16319 hardcode_action_CXX=unsupported
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16322 $as_echo "$hardcode_action_CXX" >&6; }
16324 if test "$hardcode_action_CXX" = relink ||
16325 test "$inherit_rpath_CXX" = yes; then
16326 # Fast installation is not supported
16327 enable_fast_install=no
16328 elif test "$shlibpath_overrides_runpath" = yes ||
16329 test "$enable_shared" = no; then
16330 # Fast installation is not necessary
16331 enable_fast_install=needless
16340 fi # test -n "$compiler"
16343 CFLAGS=$lt_save_CFLAGS
16347 with_gnu_ld=$lt_save_with_gnu_ld
16348 lt_cv_path_LDCXX=$lt_cv_path_LD
16349 lt_cv_path_LD=$lt_save_path_LD
16350 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16351 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16352 fi # test "$_lt_caught_CXX_error" != yes
16355 ac_cpp='$CPP $CPPFLAGS'
16356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16374 ac_config_commands="$ac_config_commands libtool"
16379 # Only expand once:
16387 ac_cpp='$CPP $CPPFLAGS'
16388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16395 $as_echo_n "checking for library containing dlopen... " >&6; }
16396 if ${ac_cv_search_dlopen+:} false; then :
16397 $as_echo_n "(cached) " >&6
16399 ac_func_search_save_LIBS=$LIBS
16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16401 /* end confdefs.h. */
16403 /* Override any GCC internal prototype to avoid an error.
16404 Use char because int might match the return type of a GCC
16405 builtin and then its argument prototype would still apply. */
16418 for ac_lib in '' dl; do
16419 if test -z "$ac_lib"; then
16420 ac_res="none required"
16423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16425 if ac_fn_c_try_link "$LINENO"; then :
16426 ac_cv_search_dlopen=$ac_res
16428 rm -f core conftest.err conftest.$ac_objext \
16430 if ${ac_cv_search_dlopen+:} false; then :
16434 if ${ac_cv_search_dlopen+:} false; then :
16437 ac_cv_search_dlopen=no
16439 rm conftest.$ac_ext
16440 LIBS=$ac_func_search_save_LIBS
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16443 $as_echo "$ac_cv_search_dlopen" >&6; }
16444 ac_res=$ac_cv_search_dlopen
16445 if test "$ac_res" != no; then :
16446 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16448 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16450 if test "$ac_cv_search_dlopen" != "none required" ; then
16451 LIBADD_DLOPEN="-ldl"
16453 libltdl_cv_lib_dl_dlopen="yes"
16454 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16457 /* end confdefs.h. */
16459 # include <dlfcn.h>
16470 if ac_fn_c_try_link "$LINENO"; then :
16472 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16474 libltdl_cv_func_dlopen="yes"
16475 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16478 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16479 if ${ac_cv_lib_svld_dlopen+:} false; then :
16480 $as_echo_n "(cached) " >&6
16482 ac_check_lib_save_LIBS=$LIBS
16483 LIBS="-lsvld $LIBS"
16484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16485 /* end confdefs.h. */
16487 /* Override any GCC internal prototype to avoid an error.
16488 Use char because int might match the return type of a GCC
16489 builtin and then its argument prototype would still apply. */
16502 if ac_fn_c_try_link "$LINENO"; then :
16503 ac_cv_lib_svld_dlopen=yes
16505 ac_cv_lib_svld_dlopen=no
16507 rm -f core conftest.err conftest.$ac_objext \
16508 conftest$ac_exeext conftest.$ac_ext
16509 LIBS=$ac_check_lib_save_LIBS
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16512 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16513 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16515 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16517 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16518 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16522 rm -f core conftest.err conftest.$ac_objext \
16523 conftest$ac_exeext conftest.$ac_ext
16526 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16528 lt_save_LIBS="$LIBS"
16529 LIBS="$LIBS $LIBADD_DLOPEN"
16530 for ac_func in dlerror
16532 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16533 if test "x$ac_cv_func_dlerror" = xyes; then :
16534 cat >>confdefs.h <<_ACEOF
16535 #define HAVE_DLERROR 1
16541 LIBS="$lt_save_LIBS"
16546 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16547 if test "x$ac_cv_func_shl_load" = xyes; then :
16549 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16551 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16554 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16555 if ${ac_cv_lib_dld_shl_load+:} false; then :
16556 $as_echo_n "(cached) " >&6
16558 ac_check_lib_save_LIBS=$LIBS
16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h. */
16563 /* Override any GCC internal prototype to avoid an error.
16564 Use char because int might match the return type of a GCC
16565 builtin and then its argument prototype would still apply. */
16573 return shl_load ();
16578 if ac_fn_c_try_link "$LINENO"; then :
16579 ac_cv_lib_dld_shl_load=yes
16581 ac_cv_lib_dld_shl_load=no
16583 rm -f core conftest.err conftest.$ac_objext \
16584 conftest$ac_exeext conftest.$ac_ext
16585 LIBS=$ac_check_lib_save_LIBS
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16588 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16589 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16591 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16593 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16594 LIBADD_SHL_LOAD="-ldld"
16603 # We only want this for pre-Mac OS X 10.4.
16604 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16605 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16607 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16609 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16614 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16616 cygwin* | mingw* | os2* | pw32*)
16617 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16619 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16625 cat >>confdefs.h <<_ACEOF
16626 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16629 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16634 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16635 if ${ac_cv_lib_dld_dld_link+:} false; then :
16636 $as_echo_n "(cached) " >&6
16638 ac_check_lib_save_LIBS=$LIBS
16640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h. */
16643 /* Override any GCC internal prototype to avoid an error.
16644 Use char because int might match the return type of a GCC
16645 builtin and then its argument prototype would still apply. */
16653 return dld_link ();
16658 if ac_fn_c_try_link "$LINENO"; then :
16659 ac_cv_lib_dld_dld_link=yes
16661 ac_cv_lib_dld_dld_link=no
16663 rm -f core conftest.err conftest.$ac_objext \
16664 conftest$ac_exeext conftest.$ac_ext
16665 LIBS=$ac_check_lib_save_LIBS
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16668 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16669 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16671 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16673 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16680 if test -n "$LT_DLLOADERS"
16682 for lt_loader in $LT_DLLOADERS; do
16683 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16686 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16691 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16695 ac_cpp='$CPP $CPPFLAGS'
16696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16703 if test x$use_libtool != xno; then
16704 DEFAULT_OBJECT_TYPE=".lo"
16705 DEFAULT_ARCHIVE_TYPE=".la"
16706 DEFAULT_SHARED_OBJECT_TYPE=".la"
16707 LIBTOOL="\$(LIBTOOL)"
16708 LIBTOOL_INSTALL_TARGET="libtool-install"
16709 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16710 LIBTOOL_CLEAN_TARGET="libtool-clean"
16711 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16712 FD_PLUGIN_DIR="src/plugins/fd"
16715 DEFAULT_OBJECT_TYPE=".o"
16716 DEFAULT_ARCHIVE_TYPE=".a"
16717 DEFAULT_SHARED_OBJECT_TYPE=".so"
16718 LIBTOOL="# \$(LIBTOOL)"
16719 LIBTOOL_INSTALL_TARGET=""
16720 LIBTOOL_UNINSTALL_TARGET=""
16721 LIBTOOL_CLEAN_TARGET=""
16722 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16737 # Check whether --enable-includes was given.
16738 if test "${enable_includes+set}" = set; then :
16739 enableval=$enable_includes;
16740 if test x$enableval = xyes; then
16741 install_includes=yes
16749 if test x$use_libtool != xno -a x$install_includes = xyes; then
16750 INCLUDE_INSTALL_TARGET="install-includes"
16751 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16753 INCLUDE_INSTALL_TARGET=""
16754 INCLUDE_UNINSTALL_TARGET=""
16762 *cygwin* ) CYGWIN=yes;;
16766 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16772 HAVE_SUN_OS_FALSE='#'
16774 HAVE_SUN_OS_TRUE='#'
16777 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16784 HAVE_SUN_OS_FALSE='#'
16786 HAVE_SUN_OS_TRUE='#'
16791 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16797 HAVE_HURD_OS_FALSE='#'
16799 HAVE_HURD_OS_TRUE='#'
16800 HAVE_HURD_OS_FALSE=
16802 $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16809 HAVE_HURD_OS_FALSE='#'
16811 HAVE_HURD_OS_TRUE='#'
16812 HAVE_HURD_OS_FALSE=
16816 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16822 HAVE_OSF1_OS_FALSE='#'
16824 HAVE_OSF1_OS_TRUE='#'
16825 HAVE_OSF1_OS_FALSE=
16827 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16834 HAVE_OSF1_OS_FALSE='#'
16836 HAVE_OSF1_OS_TRUE='#'
16837 HAVE_OSF1_OS_FALSE=
16841 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16847 HAVE_AIX_OS_FALSE='#'
16849 HAVE_AIX_OS_TRUE='#'
16852 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16859 HAVE_AIX_OS_FALSE='#'
16861 HAVE_AIX_OS_TRUE='#'
16866 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16872 HAVE_HPUX_OS_FALSE='#'
16874 HAVE_HPUX_OS_TRUE='#'
16875 HAVE_HPUX_OS_FALSE=
16877 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16884 HAVE_HPUX_OS_FALSE='#'
16886 HAVE_HPUX_OS_TRUE='#'
16887 HAVE_HPUX_OS_FALSE=
16891 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16896 HAVE_LINUX_OS_TRUE=
16897 HAVE_LINUX_OS_FALSE='#'
16899 HAVE_LINUX_OS_TRUE='#'
16900 HAVE_LINUX_OS_FALSE=
16902 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16908 HAVE_LINUX_OS_TRUE=
16909 HAVE_LINUX_OS_FALSE='#'
16911 HAVE_LINUX_OS_TRUE='#'
16912 HAVE_LINUX_OS_FALSE=
16916 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16921 HAVE_FREEBSD_OS_TRUE=
16922 HAVE_FREEBSD_OS_FALSE='#'
16924 HAVE_FREEBSD_OS_TRUE='#'
16925 HAVE_FREEBSD_OS_FALSE=
16927 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16933 HAVE_FREEBSD_OS_TRUE=
16934 HAVE_FREEBSD_OS_FALSE='#'
16936 HAVE_FREEBSD_OS_TRUE='#'
16937 HAVE_FREEBSD_OS_FALSE=
16941 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16946 HAVE_NETBSD_OS_TRUE=
16947 HAVE_NETBSD_OS_FALSE='#'
16949 HAVE_NETBSD_OS_TRUE='#'
16950 HAVE_NETBSD_OS_FALSE=
16952 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16958 HAVE_NETBSD_OS_TRUE=
16959 HAVE_NETBSD_OS_FALSE='#'
16961 HAVE_NETBSD_OS_TRUE='#'
16962 HAVE_NETBSD_OS_FALSE=
16966 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16971 HAVE_OPENBSD_OS_TRUE=
16972 HAVE_OPENBSD_OS_FALSE='#'
16974 HAVE_OPENBSD_OS_TRUE='#'
16975 HAVE_OPENBSD_OS_FALSE=
16977 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16983 HAVE_OPENBSD_OS_TRUE=
16984 HAVE_OPENBSD_OS_FALSE='#'
16986 HAVE_OPENBSD_OS_TRUE='#'
16987 HAVE_OPENBSD_OS_FALSE=
16991 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16997 HAVE_BSDI_OS_FALSE='#'
16999 HAVE_BSDI_OS_TRUE='#'
17000 HAVE_BSDI_OS_FALSE=
17002 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
17009 HAVE_BSDI_OS_FALSE='#'
17011 HAVE_BSDI_OS_TRUE='#'
17012 HAVE_BSDI_OS_FALSE=
17016 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17022 HAVE_SGI_OS_FALSE='#'
17024 HAVE_SGI_OS_TRUE='#'
17027 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17034 HAVE_SGI_OS_FALSE='#'
17036 HAVE_SGI_OS_TRUE='#'
17041 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17047 HAVE_IRIX_OS_FALSE='#'
17049 HAVE_IRIX_OS_TRUE='#'
17050 HAVE_IRIX_OS_FALSE=
17052 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17059 HAVE_IRIX_OS_FALSE='#'
17061 HAVE_IRIX_OS_TRUE='#'
17062 HAVE_IRIX_OS_FALSE=
17066 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17071 HAVE_DARWIN_OS_TRUE=
17072 HAVE_DARWIN_OS_FALSE='#'
17074 HAVE_DARWIN_OS_TRUE='#'
17075 HAVE_DARWIN_OS_FALSE=
17077 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17083 HAVE_DARWIN_OS_TRUE=
17084 HAVE_DARWIN_OS_FALSE='#'
17086 HAVE_DARWIN_OS_TRUE='#'
17087 HAVE_DARWIN_OS_FALSE=
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17093 $as_echo_n "checking for Operating System Distribution... " >&6; }
17094 if test "x$DISTNAME" != "x"
17096 echo "distname set to $DISTNAME"
17097 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17100 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17103 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17106 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17109 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17112 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17115 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17118 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17121 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17124 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17127 elif test -f /etc/SuSE-release
17130 elif test -d /etc/SuSEconfig
17133 elif test -f /etc/mandrake-release
17136 elif test -f /etc/whitebox-release
17139 elif test -f /etc/redhat-release
17142 elif test -f /etc/gentoo-release
17145 elif test -f /etc/debian_version
17148 elif test -f /etc/slackware-version
17151 elif test x$host_vendor = xapple
17154 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17157 elif test -f /etc/engarde-version
17160 elif test -f /etc/arch-release
17163 elif test "$CYGWIN" = yes
17166 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17172 $as_echo "done" >&6; }
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17176 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17178 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17179 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17180 $as_echo_n "(cached) " >&6
17182 cat >conftest.make <<\_ACEOF
17185 @echo '@@@%%%=$(MAKE)=@@@%%%'
17187 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17188 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17189 *@@@%%%=?*=@@@%%%*)
17190 eval ac_cv_prog_make_${ac_make}_set=yes;;
17192 eval ac_cv_prog_make_${ac_make}_set=no;;
17194 rm -f conftest.make
17196 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17198 $as_echo "yes" >&6; }
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17202 $as_echo "no" >&6; }
17203 SET_MAKE="MAKE=${MAKE-make}"
17209 if test -n "$ac_aux_dir"; then
17210 case "$ac_aux_dir" in
17211 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17212 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17215 if test -z "$MKINSTALLDIRS"; then
17216 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17222 $as_echo_n "checking whether NLS is requested... " >&6; }
17223 # Check whether --enable-nls was given.
17224 if test "${enable_nls+set}" = set; then :
17225 enableval=$enable_nls; USE_NLS=$enableval
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17231 $as_echo "$USE_NLS" >&6; }
17238 # Prepare PATH_SEPARATOR.
17239 # The user is always right.
17240 if test "${PATH_SEPARATOR+set}" != set; then
17241 echo "#! /bin/sh" >conf$$.sh
17242 echo "exit 0" >>conf$$.sh
17244 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17252 # Find out how to test for executable files. Don't use a zero-byte file,
17253 # as systems may use methods other than mode bits to determine executability.
17254 cat >conf$$.file <<_ASEOF
17258 chmod +x conf$$.file
17259 if test -x conf$$.file >/dev/null 2>&1; then
17260 ac_executable_p="test -x"
17262 ac_executable_p="test -f"
17266 # Extract the first word of "msgfmt", so it can be a program name with args.
17267 set dummy msgfmt; ac_word=$2
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17269 $as_echo_n "checking for $ac_word... " >&6; }
17270 if ${ac_cv_path_MSGFMT+:} false; then :
17271 $as_echo_n "(cached) " >&6
17275 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17278 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17279 for ac_dir in $PATH; do
17281 test -z "$ac_dir" && ac_dir=.
17282 for ac_exec_ext in '' $ac_executable_extensions; do
17283 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17284 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17285 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17286 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17287 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17294 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17298 MSGFMT="$ac_cv_path_MSGFMT"
17299 if test "$MSGFMT" != ":"; then
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17301 $as_echo "$MSGFMT" >&6; }
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17304 $as_echo "no" >&6; }
17307 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17308 set dummy gmsgfmt; ac_word=$2
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17310 $as_echo_n "checking for $ac_word... " >&6; }
17311 if ${ac_cv_path_GMSGFMT+:} false; then :
17312 $as_echo_n "(cached) " >&6
17316 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17320 for as_dir in $PATH
17323 test -z "$as_dir" && as_dir=.
17324 for ac_exec_ext in '' $ac_executable_extensions; do
17325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17326 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17334 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17338 GMSGFMT=$ac_cv_path_GMSGFMT
17339 if test -n "$GMSGFMT"; then
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17341 $as_echo "$GMSGFMT" >&6; }
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17344 $as_echo "no" >&6; }
17350 # Prepare PATH_SEPARATOR.
17351 # The user is always right.
17352 if test "${PATH_SEPARATOR+set}" != set; then
17353 echo "#! /bin/sh" >conf$$.sh
17354 echo "exit 0" >>conf$$.sh
17356 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17364 # Find out how to test for executable files. Don't use a zero-byte file,
17365 # as systems may use methods other than mode bits to determine executability.
17366 cat >conf$$.file <<_ASEOF
17370 chmod +x conf$$.file
17371 if test -x conf$$.file >/dev/null 2>&1; then
17372 ac_executable_p="test -x"
17374 ac_executable_p="test -f"
17378 # Extract the first word of "xgettext", so it can be a program name with args.
17379 set dummy xgettext; ac_word=$2
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17381 $as_echo_n "checking for $ac_word... " >&6; }
17382 if ${ac_cv_path_XGETTEXT+:} false; then :
17383 $as_echo_n "(cached) " >&6
17385 case "$XGETTEXT" in
17387 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17390 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17391 for ac_dir in $PATH; do
17393 test -z "$ac_dir" && ac_dir=.
17394 for ac_exec_ext in '' $ac_executable_extensions; do
17395 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17396 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17397 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17398 (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
17399 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17406 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17410 XGETTEXT="$ac_cv_path_XGETTEXT"
17411 if test "$XGETTEXT" != ":"; then
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17413 $as_echo "$XGETTEXT" >&6; }
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17416 $as_echo "no" >&6; }
17422 # Prepare PATH_SEPARATOR.
17423 # The user is always right.
17424 if test "${PATH_SEPARATOR+set}" != set; then
17425 echo "#! /bin/sh" >conf$$.sh
17426 echo "exit 0" >>conf$$.sh
17428 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17436 # Find out how to test for executable files. Don't use a zero-byte file,
17437 # as systems may use methods other than mode bits to determine executability.
17438 cat >conf$$.file <<_ASEOF
17442 chmod +x conf$$.file
17443 if test -x conf$$.file >/dev/null 2>&1; then
17444 ac_executable_p="test -x"
17446 ac_executable_p="test -f"
17450 # Extract the first word of "msgmerge", so it can be a program name with args.
17451 set dummy msgmerge; ac_word=$2
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17453 $as_echo_n "checking for $ac_word... " >&6; }
17454 if ${ac_cv_path_MSGMERGE+:} false; then :
17455 $as_echo_n "(cached) " >&6
17457 case "$MSGMERGE" in
17459 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17462 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17463 for ac_dir in $PATH; do
17465 test -z "$ac_dir" && ac_dir=.
17466 for ac_exec_ext in '' $ac_executable_extensions; do
17467 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17468 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17469 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17470 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17477 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17481 MSGMERGE="$ac_cv_path_MSGMERGE"
17482 if test "$MSGMERGE" != ":"; then
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17484 $as_echo "$MSGMERGE" >&6; }
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17487 $as_echo "no" >&6; }
17491 if test "$GMSGFMT" != ":"; then
17492 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17493 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17496 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17498 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17503 if test "$XGETTEXT" != ":"; then
17504 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17505 (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
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17509 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17515 ac_config_commands="$ac_config_commands default-1"
17519 if test "X$prefix" = "XNONE"; then
17520 acl_final_prefix="$ac_default_prefix"
17522 acl_final_prefix="$prefix"
17524 if test "X$exec_prefix" = "XNONE"; then
17525 acl_final_exec_prefix='${prefix}'
17527 acl_final_exec_prefix="$exec_prefix"
17529 acl_save_prefix="$prefix"
17530 prefix="$acl_final_prefix"
17531 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17532 prefix="$acl_save_prefix"
17535 # Check whether --with-gnu-ld was given.
17536 if test "${with_gnu_ld+set}" = set; then :
17537 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17542 # Prepare PATH_SEPARATOR.
17543 # The user is always right.
17544 if test "${PATH_SEPARATOR+set}" != set; then
17545 echo "#! /bin/sh" >conf$$.sh
17546 echo "exit 0" >>conf$$.sh
17548 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17556 if test "$GCC" = yes; then
17557 # Check if gcc -print-prog-name=ld gives a path.
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17559 $as_echo_n "checking for ld used by GCC... " >&6; }
17562 # gcc leaves a trailing carriage return which upsets mingw
17563 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17565 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17568 # Accept absolute paths.
17569 [\\/]* | [A-Za-z]:[\\/]*)
17570 re_direlt='/[^/][^/]*/\.\./'
17571 # Canonicalize the path of ld
17572 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17573 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17574 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17576 test -z "$LD" && LD="$ac_prog"
17579 # If it fails, then pretend we aren't using GCC.
17583 # If it is relative, then search for the first ld in PATH.
17584 with_gnu_ld=unknown
17587 elif test "$with_gnu_ld" = yes; then
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17589 $as_echo_n "checking for GNU ld... " >&6; }
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17592 $as_echo_n "checking for non-GNU ld... " >&6; }
17594 if ${acl_cv_path_LD+:} false; then :
17595 $as_echo_n "(cached) " >&6
17597 if test -z "$LD"; then
17598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17599 for ac_dir in $PATH; do
17600 test -z "$ac_dir" && ac_dir=.
17601 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17602 acl_cv_path_LD="$ac_dir/$ac_prog"
17603 # Check to see if the program is GNU ld. I'd rather use --version,
17604 # but apparently some GNU ld's only accept -v.
17605 # Break only if it was the GNU/non-GNU ld that we prefer.
17606 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17607 *GNU* | *'with BFD'*)
17608 test "$with_gnu_ld" != no && break ;;
17610 test "$with_gnu_ld" != yes && break ;;
17616 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17620 LD="$acl_cv_path_LD"
17621 if test -n "$LD"; then
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17623 $as_echo "$LD" >&6; }
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17626 $as_echo "no" >&6; }
17628 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17630 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17631 if ${acl_cv_prog_gnu_ld+:} false; then :
17632 $as_echo_n "(cached) " >&6
17634 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17635 case `$LD -v 2>&1 </dev/null` in
17636 *GNU* | *'with BFD'*)
17637 acl_cv_prog_gnu_ld=yes ;;
17639 acl_cv_prog_gnu_ld=no ;;
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17643 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17644 with_gnu_ld=$acl_cv_prog_gnu_ld
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17650 $as_echo_n "checking for shared library run path origin... " >&6; }
17651 if ${acl_cv_rpath+:} false; then :
17652 $as_echo_n "(cached) " >&6
17655 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17656 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17658 rm -f ./conftest.sh
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17663 $as_echo "$acl_cv_rpath" >&6; }
17665 libext="$acl_cv_libext"
17666 shlibext="$acl_cv_shlibext"
17667 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17668 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17669 hardcode_direct="$acl_cv_hardcode_direct"
17670 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17671 # Check whether --enable-rpath was given.
17672 if test "${enable_rpath+set}" = set; then :
17673 enableval=$enable_rpath; :
17687 acl_save_prefix="$prefix"
17688 prefix="$acl_final_prefix"
17689 acl_save_exec_prefix="$exec_prefix"
17690 exec_prefix="$acl_final_exec_prefix"
17692 eval additional_includedir=\"$includedir\"
17693 eval additional_libdir=\"$libdir\"
17695 exec_prefix="$acl_save_exec_prefix"
17696 prefix="$acl_save_prefix"
17699 # Check whether --with-libiconv-prefix was given.
17700 if test "${with_libiconv_prefix+set}" = set; then :
17701 withval=$with_libiconv_prefix;
17702 if test "X$withval" = "Xno"; then
17705 if test "X$withval" = "X"; then
17707 acl_save_prefix="$prefix"
17708 prefix="$acl_final_prefix"
17709 acl_save_exec_prefix="$exec_prefix"
17710 exec_prefix="$acl_final_exec_prefix"
17712 eval additional_includedir=\"$includedir\"
17713 eval additional_libdir=\"$libdir\"
17715 exec_prefix="$acl_save_exec_prefix"
17716 prefix="$acl_save_prefix"
17719 additional_includedir="$withval/include"
17720 additional_libdir="$withval/lib"
17731 names_already_handled=
17732 names_next_round='iconv '
17733 while test -n "$names_next_round"; do
17734 names_this_round="$names_next_round"
17736 for name in $names_this_round; do
17738 for n in $names_already_handled; do
17739 if test "$n" = "$name"; then
17740 already_handled=yes
17744 if test -z "$already_handled"; then
17745 names_already_handled="$names_already_handled $name"
17746 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17747 eval value=\"\$HAVE_LIB$uppername\"
17748 if test -n "$value"; then
17749 if test "$value" = yes; then
17750 eval value=\"\$LIB$uppername\"
17751 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17752 eval value=\"\$LTLIB$uppername\"
17753 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17762 if test $use_additional = yes; then
17763 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17764 found_dir="$additional_libdir"
17765 found_so="$additional_libdir/lib$name.$shlibext"
17766 if test -f "$additional_libdir/lib$name.la"; then
17767 found_la="$additional_libdir/lib$name.la"
17770 if test -f "$additional_libdir/lib$name.$libext"; then
17771 found_dir="$additional_libdir"
17772 found_a="$additional_libdir/lib$name.$libext"
17773 if test -f "$additional_libdir/lib$name.la"; then
17774 found_la="$additional_libdir/lib$name.la"
17779 if test "X$found_dir" = "X"; then
17780 for x in $LDFLAGS $LTLIBICONV; do
17782 acl_save_prefix="$prefix"
17783 prefix="$acl_final_prefix"
17784 acl_save_exec_prefix="$exec_prefix"
17785 exec_prefix="$acl_final_exec_prefix"
17787 exec_prefix="$acl_save_exec_prefix"
17788 prefix="$acl_save_prefix"
17792 dir=`echo "X$x" | sed -e 's/^X-L//'`
17793 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17795 found_so="$dir/lib$name.$shlibext"
17796 if test -f "$dir/lib$name.la"; then
17797 found_la="$dir/lib$name.la"
17800 if test -f "$dir/lib$name.$libext"; then
17802 found_a="$dir/lib$name.$libext"
17803 if test -f "$dir/lib$name.la"; then
17804 found_la="$dir/lib$name.la"
17810 if test "X$found_dir" != "X"; then
17815 if test "X$found_dir" != "X"; then
17816 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17817 if test "X$found_so" != "X"; then
17818 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17819 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17822 for x in $ltrpathdirs; do
17823 if test "X$x" = "X$found_dir"; then
17828 if test -z "$haveit"; then
17829 ltrpathdirs="$ltrpathdirs $found_dir"
17831 if test "$hardcode_direct" = yes; then
17832 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17834 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17835 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17837 for x in $rpathdirs; do
17838 if test "X$x" = "X$found_dir"; then
17843 if test -z "$haveit"; then
17844 rpathdirs="$rpathdirs $found_dir"
17848 for x in $LDFLAGS $LIBICONV; do
17850 acl_save_prefix="$prefix"
17851 prefix="$acl_final_prefix"
17852 acl_save_exec_prefix="$exec_prefix"
17853 exec_prefix="$acl_final_exec_prefix"
17855 exec_prefix="$acl_save_exec_prefix"
17856 prefix="$acl_save_prefix"
17858 if test "X$x" = "X-L$found_dir"; then
17863 if test -z "$haveit"; then
17864 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17866 if test "$hardcode_minus_L" != no; then
17867 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17869 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17875 if test "X$found_a" != "X"; then
17876 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17878 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17881 additional_includedir=
17882 case "$found_dir" in
17884 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17885 additional_includedir="$basedir/include"
17888 if test "X$additional_includedir" != "X"; then
17889 if test "X$additional_includedir" != "X/usr/include"; then
17891 if test "X$additional_includedir" = "X/usr/local/include"; then
17892 if test -n "$GCC"; then
17894 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17898 if test -z "$haveit"; then
17899 for x in $CPPFLAGS $INCICONV; do
17901 acl_save_prefix="$prefix"
17902 prefix="$acl_final_prefix"
17903 acl_save_exec_prefix="$exec_prefix"
17904 exec_prefix="$acl_final_exec_prefix"
17906 exec_prefix="$acl_save_exec_prefix"
17907 prefix="$acl_save_prefix"
17909 if test "X$x" = "X-I$additional_includedir"; then
17914 if test -z "$haveit"; then
17915 if test -d "$additional_includedir"; then
17916 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17922 if test -n "$found_la"; then
17923 save_libdir="$libdir"
17924 case "$found_la" in
17925 */* | *\\*) . "$found_la" ;;
17926 *) . "./$found_la" ;;
17928 libdir="$save_libdir"
17929 for dep in $dependency_libs; do
17932 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17933 if test "X$additional_libdir" != "X/usr/lib"; then
17935 if test "X$additional_libdir" = "X/usr/local/lib"; then
17936 if test -n "$GCC"; then
17938 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17942 if test -z "$haveit"; then
17944 for x in $LDFLAGS $LIBICONV; do
17946 acl_save_prefix="$prefix"
17947 prefix="$acl_final_prefix"
17948 acl_save_exec_prefix="$exec_prefix"
17949 exec_prefix="$acl_final_exec_prefix"
17951 exec_prefix="$acl_save_exec_prefix"
17952 prefix="$acl_save_prefix"
17954 if test "X$x" = "X-L$additional_libdir"; then
17959 if test -z "$haveit"; then
17960 if test -d "$additional_libdir"; then
17961 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17965 for x in $LDFLAGS $LTLIBICONV; do
17967 acl_save_prefix="$prefix"
17968 prefix="$acl_final_prefix"
17969 acl_save_exec_prefix="$exec_prefix"
17970 exec_prefix="$acl_final_exec_prefix"
17972 exec_prefix="$acl_save_exec_prefix"
17973 prefix="$acl_save_prefix"
17975 if test "X$x" = "X-L$additional_libdir"; then
17980 if test -z "$haveit"; then
17981 if test -d "$additional_libdir"; then
17982 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17989 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17990 if test "$enable_rpath" != no; then
17992 for x in $rpathdirs; do
17993 if test "X$x" = "X$dir"; then
17998 if test -z "$haveit"; then
17999 rpathdirs="$rpathdirs $dir"
18002 for x in $ltrpathdirs; do
18003 if test "X$x" = "X$dir"; then
18008 if test -z "$haveit"; then
18009 ltrpathdirs="$ltrpathdirs $dir"
18014 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18017 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18020 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18021 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18027 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18028 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18034 if test "X$rpathdirs" != "X"; then
18035 if test -n "$hardcode_libdir_separator"; then
18037 for found_dir in $rpathdirs; do
18038 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18040 acl_save_libdir="$libdir"
18042 eval flag=\"$hardcode_libdir_flag_spec\"
18043 libdir="$acl_save_libdir"
18044 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18046 for found_dir in $rpathdirs; do
18047 acl_save_libdir="$libdir"
18048 libdir="$found_dir"
18049 eval flag=\"$hardcode_libdir_flag_spec\"
18050 libdir="$acl_save_libdir"
18051 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18055 if test "X$ltrpathdirs" != "X"; then
18056 for found_dir in $ltrpathdirs; do
18057 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18079 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18080 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18081 $as_echo_n "(cached) " >&6
18083 gt_save_CPPFLAGS="$CPPFLAGS"
18084 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18085 gt_save_LIBS="$LIBS"
18086 LIBS="$LIBS -framework CoreFoundation"
18087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18088 /* end confdefs.h. */
18089 #include <CFPreferences.h>
18093 CFPreferencesCopyAppValue(NULL, NULL)
18098 if ac_fn_c_try_link "$LINENO"; then :
18099 gt_cv_func_CFPreferencesCopyAppValue=yes
18101 gt_cv_func_CFPreferencesCopyAppValue=no
18103 rm -f core conftest.err conftest.$ac_objext \
18104 conftest$ac_exeext conftest.$ac_ext
18105 CPPFLAGS="$gt_save_CPPFLAGS"
18106 LIBS="$gt_save_LIBS"
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18109 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18110 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18112 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18116 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18117 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18118 $as_echo_n "(cached) " >&6
18120 gt_save_CPPFLAGS="$CPPFLAGS"
18121 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18122 gt_save_LIBS="$LIBS"
18123 LIBS="$LIBS -framework CoreFoundation"
18124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18125 /* end confdefs.h. */
18126 #include <CFLocale.h>
18130 CFLocaleCopyCurrent();
18135 if ac_fn_c_try_link "$LINENO"; then :
18136 gt_cv_func_CFLocaleCopyCurrent=yes
18138 gt_cv_func_CFLocaleCopyCurrent=no
18140 rm -f core conftest.err conftest.$ac_objext \
18141 conftest$ac_exeext conftest.$ac_ext
18142 CPPFLAGS="$gt_save_CPPFLAGS"
18143 LIBS="$gt_save_LIBS"
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18146 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18147 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18149 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18153 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18154 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18161 $as_echo_n "checking whether NLS is requested... " >&6; }
18162 # Check whether --enable-nls was given.
18163 if test "${enable_nls+set}" = set; then :
18164 enableval=$enable_nls; USE_NLS=$enableval
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18170 $as_echo "$USE_NLS" >&6; }
18179 if test "$USE_NLS" = "yes"; then
18180 gt_use_preinstalled_gnugettext=no
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18188 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18189 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18190 $as_echo_n "(cached) " >&6
18192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h. */
18194 #include <libintl.h>
18195 extern int _nl_msg_cat_cntr;
18196 extern int *_nl_domain_bindings;
18200 bindtextdomain ("", "");
18201 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18206 if ac_fn_c_try_link "$LINENO"; then :
18207 gt_cv_func_gnugettext1_libc=yes
18209 gt_cv_func_gnugettext1_libc=no
18211 rm -f core conftest.err conftest.$ac_objext \
18212 conftest$ac_exeext conftest.$ac_ext
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18215 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18217 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18223 am_save_CPPFLAGS="$CPPFLAGS"
18225 for element in $INCICONV; do
18227 for x in $CPPFLAGS; do
18229 acl_save_prefix="$prefix"
18230 prefix="$acl_final_prefix"
18231 acl_save_exec_prefix="$exec_prefix"
18232 exec_prefix="$acl_final_exec_prefix"
18234 exec_prefix="$acl_save_exec_prefix"
18235 prefix="$acl_save_prefix"
18237 if test "X$x" = "X$element"; then
18242 if test -z "$haveit"; then
18243 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18249 $as_echo_n "checking for iconv... " >&6; }
18250 if ${am_cv_func_iconv+:} false; then :
18251 $as_echo_n "(cached) " >&6
18254 am_cv_func_iconv="no, consider installing GNU libiconv"
18256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18257 /* end confdefs.h. */
18258 #include <stdlib.h>
18263 iconv_t cd = iconv_open("","");
18264 iconv(cd,NULL,NULL,NULL,NULL);
18270 if ac_fn_c_try_link "$LINENO"; then :
18271 am_cv_func_iconv=yes
18273 rm -f core conftest.err conftest.$ac_objext \
18274 conftest$ac_exeext conftest.$ac_ext
18275 if test "$am_cv_func_iconv" != yes; then
18276 am_save_LIBS="$LIBS"
18277 LIBS="$LIBS $LIBICONV"
18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h. */
18280 #include <stdlib.h>
18285 iconv_t cd = iconv_open("","");
18286 iconv(cd,NULL,NULL,NULL,NULL);
18292 if ac_fn_c_try_link "$LINENO"; then :
18293 am_cv_lib_iconv=yes
18294 am_cv_func_iconv=yes
18296 rm -f core conftest.err conftest.$ac_objext \
18297 conftest$ac_exeext conftest.$ac_ext
18298 LIBS="$am_save_LIBS"
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18303 $as_echo "$am_cv_func_iconv" >&6; }
18304 if test "$am_cv_func_iconv" = yes; then
18306 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18309 if test "$am_cv_lib_iconv" = yes; then
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18311 $as_echo_n "checking how to link with libiconv... " >&6; }
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18313 $as_echo "$LIBICONV" >&6; }
18315 CPPFLAGS="$am_save_CPPFLAGS"
18327 acl_save_prefix="$prefix"
18328 prefix="$acl_final_prefix"
18329 acl_save_exec_prefix="$exec_prefix"
18330 exec_prefix="$acl_final_exec_prefix"
18332 eval additional_includedir=\"$includedir\"
18333 eval additional_libdir=\"$libdir\"
18335 exec_prefix="$acl_save_exec_prefix"
18336 prefix="$acl_save_prefix"
18339 # Check whether --with-libintl-prefix was given.
18340 if test "${with_libintl_prefix+set}" = set; then :
18341 withval=$with_libintl_prefix;
18342 if test "X$withval" = "Xno"; then
18345 if test "X$withval" = "X"; then
18347 acl_save_prefix="$prefix"
18348 prefix="$acl_final_prefix"
18349 acl_save_exec_prefix="$exec_prefix"
18350 exec_prefix="$acl_final_exec_prefix"
18352 eval additional_includedir=\"$includedir\"
18353 eval additional_libdir=\"$libdir\"
18355 exec_prefix="$acl_save_exec_prefix"
18356 prefix="$acl_save_prefix"
18359 additional_includedir="$withval/include"
18360 additional_libdir="$withval/lib"
18371 names_already_handled=
18372 names_next_round='intl '
18373 while test -n "$names_next_round"; do
18374 names_this_round="$names_next_round"
18376 for name in $names_this_round; do
18378 for n in $names_already_handled; do
18379 if test "$n" = "$name"; then
18380 already_handled=yes
18384 if test -z "$already_handled"; then
18385 names_already_handled="$names_already_handled $name"
18386 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18387 eval value=\"\$HAVE_LIB$uppername\"
18388 if test -n "$value"; then
18389 if test "$value" = yes; then
18390 eval value=\"\$LIB$uppername\"
18391 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18392 eval value=\"\$LTLIB$uppername\"
18393 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18402 if test $use_additional = yes; then
18403 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18404 found_dir="$additional_libdir"
18405 found_so="$additional_libdir/lib$name.$shlibext"
18406 if test -f "$additional_libdir/lib$name.la"; then
18407 found_la="$additional_libdir/lib$name.la"
18410 if test -f "$additional_libdir/lib$name.$libext"; then
18411 found_dir="$additional_libdir"
18412 found_a="$additional_libdir/lib$name.$libext"
18413 if test -f "$additional_libdir/lib$name.la"; then
18414 found_la="$additional_libdir/lib$name.la"
18419 if test "X$found_dir" = "X"; then
18420 for x in $LDFLAGS $LTLIBINTL; do
18422 acl_save_prefix="$prefix"
18423 prefix="$acl_final_prefix"
18424 acl_save_exec_prefix="$exec_prefix"
18425 exec_prefix="$acl_final_exec_prefix"
18427 exec_prefix="$acl_save_exec_prefix"
18428 prefix="$acl_save_prefix"
18432 dir=`echo "X$x" | sed -e 's/^X-L//'`
18433 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18435 found_so="$dir/lib$name.$shlibext"
18436 if test -f "$dir/lib$name.la"; then
18437 found_la="$dir/lib$name.la"
18440 if test -f "$dir/lib$name.$libext"; then
18442 found_a="$dir/lib$name.$libext"
18443 if test -f "$dir/lib$name.la"; then
18444 found_la="$dir/lib$name.la"
18450 if test "X$found_dir" != "X"; then
18455 if test "X$found_dir" != "X"; then
18456 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18457 if test "X$found_so" != "X"; then
18458 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18459 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18462 for x in $ltrpathdirs; do
18463 if test "X$x" = "X$found_dir"; then
18468 if test -z "$haveit"; then
18469 ltrpathdirs="$ltrpathdirs $found_dir"
18471 if test "$hardcode_direct" = yes; then
18472 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18474 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18475 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18477 for x in $rpathdirs; do
18478 if test "X$x" = "X$found_dir"; then
18483 if test -z "$haveit"; then
18484 rpathdirs="$rpathdirs $found_dir"
18488 for x in $LDFLAGS $LIBINTL; do
18490 acl_save_prefix="$prefix"
18491 prefix="$acl_final_prefix"
18492 acl_save_exec_prefix="$exec_prefix"
18493 exec_prefix="$acl_final_exec_prefix"
18495 exec_prefix="$acl_save_exec_prefix"
18496 prefix="$acl_save_prefix"
18498 if test "X$x" = "X-L$found_dir"; then
18503 if test -z "$haveit"; then
18504 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18506 if test "$hardcode_minus_L" != no; then
18507 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18509 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18515 if test "X$found_a" != "X"; then
18516 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18518 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18521 additional_includedir=
18522 case "$found_dir" in
18524 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18525 additional_includedir="$basedir/include"
18528 if test "X$additional_includedir" != "X"; then
18529 if test "X$additional_includedir" != "X/usr/include"; then
18531 if test "X$additional_includedir" = "X/usr/local/include"; then
18532 if test -n "$GCC"; then
18534 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18538 if test -z "$haveit"; then
18539 for x in $CPPFLAGS $INCINTL; do
18541 acl_save_prefix="$prefix"
18542 prefix="$acl_final_prefix"
18543 acl_save_exec_prefix="$exec_prefix"
18544 exec_prefix="$acl_final_exec_prefix"
18546 exec_prefix="$acl_save_exec_prefix"
18547 prefix="$acl_save_prefix"
18549 if test "X$x" = "X-I$additional_includedir"; then
18554 if test -z "$haveit"; then
18555 if test -d "$additional_includedir"; then
18556 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18562 if test -n "$found_la"; then
18563 save_libdir="$libdir"
18564 case "$found_la" in
18565 */* | *\\*) . "$found_la" ;;
18566 *) . "./$found_la" ;;
18568 libdir="$save_libdir"
18569 for dep in $dependency_libs; do
18572 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18573 if test "X$additional_libdir" != "X/usr/lib"; then
18575 if test "X$additional_libdir" = "X/usr/local/lib"; then
18576 if test -n "$GCC"; then
18578 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18582 if test -z "$haveit"; then
18584 for x in $LDFLAGS $LIBINTL; do
18586 acl_save_prefix="$prefix"
18587 prefix="$acl_final_prefix"
18588 acl_save_exec_prefix="$exec_prefix"
18589 exec_prefix="$acl_final_exec_prefix"
18591 exec_prefix="$acl_save_exec_prefix"
18592 prefix="$acl_save_prefix"
18594 if test "X$x" = "X-L$additional_libdir"; then
18599 if test -z "$haveit"; then
18600 if test -d "$additional_libdir"; then
18601 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18605 for x in $LDFLAGS $LTLIBINTL; do
18607 acl_save_prefix="$prefix"
18608 prefix="$acl_final_prefix"
18609 acl_save_exec_prefix="$exec_prefix"
18610 exec_prefix="$acl_final_exec_prefix"
18612 exec_prefix="$acl_save_exec_prefix"
18613 prefix="$acl_save_prefix"
18615 if test "X$x" = "X-L$additional_libdir"; then
18620 if test -z "$haveit"; then
18621 if test -d "$additional_libdir"; then
18622 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18629 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18630 if test "$enable_rpath" != no; then
18632 for x in $rpathdirs; do
18633 if test "X$x" = "X$dir"; then
18638 if test -z "$haveit"; then
18639 rpathdirs="$rpathdirs $dir"
18642 for x in $ltrpathdirs; do
18643 if test "X$x" = "X$dir"; then
18648 if test -z "$haveit"; then
18649 ltrpathdirs="$ltrpathdirs $dir"
18654 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18657 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18660 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18661 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18667 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18668 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18674 if test "X$rpathdirs" != "X"; then
18675 if test -n "$hardcode_libdir_separator"; then
18677 for found_dir in $rpathdirs; do
18678 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18680 acl_save_libdir="$libdir"
18682 eval flag=\"$hardcode_libdir_flag_spec\"
18683 libdir="$acl_save_libdir"
18684 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18686 for found_dir in $rpathdirs; do
18687 acl_save_libdir="$libdir"
18688 libdir="$found_dir"
18689 eval flag=\"$hardcode_libdir_flag_spec\"
18690 libdir="$acl_save_libdir"
18691 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18695 if test "X$ltrpathdirs" != "X"; then
18696 for found_dir in $ltrpathdirs; do
18697 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18702 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18703 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18704 $as_echo_n "(cached) " >&6
18706 gt_save_CPPFLAGS="$CPPFLAGS"
18707 CPPFLAGS="$CPPFLAGS $INCINTL"
18708 gt_save_LIBS="$LIBS"
18709 LIBS="$LIBS $LIBINTL"
18710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18711 /* end confdefs.h. */
18712 #include <libintl.h>
18713 extern int _nl_msg_cat_cntr;
18718 const char *_nl_expand_alias (const char *);
18722 bindtextdomain ("", "");
18723 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18728 if ac_fn_c_try_link "$LINENO"; then :
18729 gt_cv_func_gnugettext1_libintl=yes
18731 gt_cv_func_gnugettext1_libintl=no
18733 rm -f core conftest.err conftest.$ac_objext \
18734 conftest$ac_exeext conftest.$ac_ext
18735 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18736 LIBS="$LIBS $LIBICONV"
18737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18738 /* end confdefs.h. */
18739 #include <libintl.h>
18740 extern int _nl_msg_cat_cntr;
18745 const char *_nl_expand_alias (const char *);
18749 bindtextdomain ("", "");
18750 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18755 if ac_fn_c_try_link "$LINENO"; then :
18756 LIBINTL="$LIBINTL $LIBICONV"
18757 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18758 gt_cv_func_gnugettext1_libintl=yes
18761 rm -f core conftest.err conftest.$ac_objext \
18762 conftest$ac_exeext conftest.$ac_ext
18764 CPPFLAGS="$gt_save_CPPFLAGS"
18765 LIBS="$gt_save_LIBS"
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18768 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18771 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18772 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18773 && test "$PACKAGE" != gettext-runtime \
18774 && test "$PACKAGE" != gettext-tools; }; then
18775 gt_use_preinstalled_gnugettext=yes
18784 if test -n "$INTL_MACOSX_LIBS"; then
18785 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18786 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18787 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18788 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18792 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18793 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18795 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18803 $as_echo_n "checking whether to use NLS... " >&6; }
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18805 $as_echo "$USE_NLS" >&6; }
18806 if test "$USE_NLS" = "yes"; then
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18808 $as_echo_n "checking where the gettext function comes from... " >&6; }
18809 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18810 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18811 gt_source="external libintl"
18816 gt_source="included intl directory"
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18819 $as_echo "$gt_source" >&6; }
18822 if test "$USE_NLS" = "yes"; then
18824 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18825 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18827 $as_echo_n "checking how to link with libintl... " >&6; }
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18829 $as_echo "$LIBINTL" >&6; }
18831 for element in $INCINTL; do
18833 for x in $CPPFLAGS; do
18835 acl_save_prefix="$prefix"
18836 prefix="$acl_final_prefix"
18837 acl_save_exec_prefix="$exec_prefix"
18838 exec_prefix="$acl_final_exec_prefix"
18840 exec_prefix="$acl_save_exec_prefix"
18841 prefix="$acl_save_prefix"
18843 if test "X$x" = "X$element"; then
18848 if test -z "$haveit"; then
18849 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18856 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18859 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18868 INTLLIBS="$LIBINTL"
18876 os_name=`uname -s 2>/dev/null`
18877 if test x${prefix} = xNONE ; then
18878 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18879 sysconfdir=/etc/bacula
18882 if test `eval echo ${libdir}` = NONE/lib ; then
18885 os_processor=`uname -p 2>/dev/null`
18886 case ${os_processor} in
18901 if test `eval echo ${includedir}` = NONE/include ; then
18902 includedir=/usr/include
18905 if test `eval echo ${datarootdir}` = NONE/share ; then
18906 datarootdir=/usr/share
18911 if test x${exec_prefix} = xNONE ; then
18912 exec_prefix=${prefix}
18915 sysconfdir=`eval echo ${sysconfdir}`
18916 datarootdir=`eval echo ${datarootdir}`
18917 docdir=`eval echo ${docdir}`
18918 htmldir=`eval echo ${htmldir}`
18919 libdir=`eval echo ${libdir}`
18920 includedir=`eval echo ${includedir}`
18921 localedir=`eval echo ${datarootdir}/locale`
18922 cat >>confdefs.h <<_ACEOF
18923 #define SYSCONFDIR "$sysconfdir"
18926 cat >>confdefs.h <<_ACEOF
18927 #define LOCALEDIR "$localedir"
18931 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18932 sbindir=${exec_prefix}/sbin
18934 sbindir=`eval echo ${sbindir}`
18936 if test x$mandir = x'${prefix}/man' ; then
18937 mandir=/usr/share/man
18940 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18941 htmldir=`eval echo ${docdir}html`
18944 if test x$docdir = x'/usr/share/doc/' ; then
18945 docdir=`eval echo ${docdir}bacula`
18949 for ac_prog in msgfmt
18951 # Extract the first word of "$ac_prog", so it can be a program name with args.
18952 set dummy $ac_prog; ac_word=$2
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18954 $as_echo_n "checking for $ac_word... " >&6; }
18955 if ${ac_cv_path_MSGFMT+:} false; then :
18956 $as_echo_n "(cached) " >&6
18960 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18964 for as_dir in $PATH
18967 test -z "$as_dir" && as_dir=.
18968 for ac_exec_ext in '' $ac_executable_extensions; do
18969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18970 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18981 MSGFMT=$ac_cv_path_MSGFMT
18982 if test -n "$MSGFMT"; then
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18984 $as_echo "$MSGFMT" >&6; }
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18987 $as_echo "no" >&6; }
18991 test -n "$MSGFMT" && break
18993 test -n "$MSGFMT" || MSGFMT="no"
18995 if test "$MSGFMT" = "no"
18997 echo 'msgfmt program not found, disabling NLS !'
18999 USE_INCLUDED_LIBINTL=no
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19003 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19004 if ${ac_cv_gnu_library_2+:} false; then :
19005 $as_echo_n "(cached) " >&6
19007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19008 /* end confdefs.h. */
19010 #include <features.h>
19011 #ifdef __GNU_LIBRARY__
19012 #if (__GLIBC__ >= 2)
19018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19019 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19020 ac_cv_gnu_library_2=yes
19022 ac_cv_gnu_library_2=no
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19030 $as_echo "$ac_cv_gnu_library_2" >&6; }
19032 GLIBC2="$ac_cv_gnu_library_2"
19035 if test -n "$ac_tool_prefix"; then
19036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19037 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19039 $as_echo_n "checking for $ac_word... " >&6; }
19040 if ${ac_cv_prog_RANLIB+:} false; then :
19041 $as_echo_n "(cached) " >&6
19043 if test -n "$RANLIB"; then
19044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19047 for as_dir in $PATH
19050 test -z "$as_dir" && as_dir=.
19051 for ac_exec_ext in '' $ac_executable_extensions; do
19052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19053 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19063 RANLIB=$ac_cv_prog_RANLIB
19064 if test -n "$RANLIB"; then
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19066 $as_echo "$RANLIB" >&6; }
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19069 $as_echo "no" >&6; }
19074 if test -z "$ac_cv_prog_RANLIB"; then
19075 ac_ct_RANLIB=$RANLIB
19076 # Extract the first word of "ranlib", so it can be a program name with args.
19077 set dummy ranlib; ac_word=$2
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19079 $as_echo_n "checking for $ac_word... " >&6; }
19080 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19081 $as_echo_n "(cached) " >&6
19083 if test -n "$ac_ct_RANLIB"; then
19084 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19087 for as_dir in $PATH
19090 test -z "$as_dir" && as_dir=.
19091 for ac_exec_ext in '' $ac_executable_extensions; do
19092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19093 ac_cv_prog_ac_ct_RANLIB="ranlib"
19094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19103 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19104 if test -n "$ac_ct_RANLIB"; then
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19106 $as_echo "$ac_ct_RANLIB" >&6; }
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19109 $as_echo "no" >&6; }
19112 if test "x$ac_ct_RANLIB" = x; then
19115 case $cross_compiling:$ac_tool_warned in
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19119 ac_tool_warned=yes ;;
19121 RANLIB=$ac_ct_RANLIB
19124 RANLIB="$ac_cv_prog_RANLIB"
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19129 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19130 if ${ac_cv_lib_cposix_strerror+:} false; then :
19131 $as_echo_n "(cached) " >&6
19133 ac_check_lib_save_LIBS=$LIBS
19134 LIBS="-lcposix $LIBS"
19135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19136 /* end confdefs.h. */
19138 /* Override any GCC internal prototype to avoid an error.
19139 Use char because int might match the return type of a GCC
19140 builtin and then its argument prototype would still apply. */
19148 return strerror ();
19153 if ac_fn_c_try_link "$LINENO"; then :
19154 ac_cv_lib_cposix_strerror=yes
19156 ac_cv_lib_cposix_strerror=no
19158 rm -f core conftest.err conftest.$ac_objext \
19159 conftest$ac_exeext conftest.$ac_ext
19160 LIBS=$ac_check_lib_save_LIBS
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19163 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19164 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19165 LIBS="$LIBS -lcposix"
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19171 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19172 if ${ac_cv_c_const+:} false; then :
19173 $as_echo_n "(cached) " >&6
19175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19176 /* end confdefs.h. */
19181 /* FIXME: Include the comments suggested by Paul. */
19182 #ifndef __cplusplus
19183 /* Ultrix mips cc rejects this. */
19184 typedef int charset[2];
19186 /* SunOS 4.1.1 cc rejects this. */
19187 char const *const *pcpcc;
19189 /* NEC SVR4.0.2 mips cc rejects this. */
19190 struct point {int x, y;};
19191 static struct point const zero = {0,0};
19192 /* AIX XL C 1.02.0.0 rejects this.
19193 It does not let you subtract one const X* pointer from another in
19194 an arm of an if-expression whose if-part is not a constant
19196 const char *g = "string";
19197 pcpcc = &g + (g ? g-g : 0);
19198 /* HPUX 7.0 cc rejects these. */
19200 ppc = (char**) pcpcc;
19201 pcpcc = (char const *const *) ppc;
19202 { /* SCO 3.2v4 cc rejects this. */
19204 char const *s = 0 ? (char *) 0 : (char const *) 0;
19209 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19210 int x[] = {25, 17};
19211 const int *foo = &x[0];
19214 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19215 typedef const int *iptr;
19219 { /* AIX XL C 1.02.0.0 rejects this saying
19220 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19221 struct s { int j; const int *ap[3]; };
19222 struct s *b; b->j = 5;
19224 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19225 const int foo = 10;
19226 if (!foo) return 0;
19228 return !cs[0] && !zero.x;
19235 if ac_fn_c_try_compile "$LINENO"; then :
19240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19243 $as_echo "$ac_cv_c_const" >&6; }
19244 if test $ac_cv_c_const = no; then
19246 $as_echo "#define const /**/" >>confdefs.h
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19252 $as_echo_n "checking for signed... " >&6; }
19253 if ${bh_cv_c_signed+:} false; then :
19254 $as_echo_n "(cached) " >&6
19256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19257 /* end confdefs.h. */
19267 if ac_fn_c_try_compile "$LINENO"; then :
19272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19275 $as_echo "$bh_cv_c_signed" >&6; }
19276 if test $bh_cv_c_signed = no; then
19278 $as_echo "#define signed /**/" >>confdefs.h
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19283 $as_echo_n "checking for inline... " >&6; }
19284 if ${ac_cv_c_inline+:} false; then :
19285 $as_echo_n "(cached) " >&6
19288 for ac_kw in inline __inline__ __inline; do
19289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19290 /* end confdefs.h. */
19291 #ifndef __cplusplus
19293 static $ac_kw foo_t static_foo () {return 0; }
19294 $ac_kw foo_t foo () {return 0; }
19298 if ac_fn_c_try_compile "$LINENO"; then :
19299 ac_cv_c_inline=$ac_kw
19301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19302 test "$ac_cv_c_inline" != no && break
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19307 $as_echo "$ac_cv_c_inline" >&6; }
19309 case $ac_cv_c_inline in
19312 case $ac_cv_c_inline in
19314 *) ac_val=$ac_cv_c_inline;;
19316 cat >>confdefs.h <<_ACEOF
19317 #ifndef __cplusplus
19318 #define inline $ac_val
19324 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19325 if test "x$ac_cv_type_off_t" = xyes; then :
19329 cat >>confdefs.h <<_ACEOF
19330 #define off_t long int
19335 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19336 if test "x$ac_cv_type_size_t" = xyes; then :
19340 cat >>confdefs.h <<_ACEOF
19341 #define size_t unsigned int
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19348 $as_echo_n "checking for long long... " >&6; }
19349 if ${ac_cv_type_long_long+:} false; then :
19350 $as_echo_n "(cached) " >&6
19352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19353 /* end confdefs.h. */
19354 long long ll = 1LL; int i = 63;
19358 long long llmax = (long long) -1;
19359 return ll << i | ll >> i | llmax / ll | llmax % ll;
19364 if ac_fn_c_try_link "$LINENO"; then :
19365 ac_cv_type_long_long=yes
19367 ac_cv_type_long_long=no
19369 rm -f core conftest.err conftest.$ac_objext \
19370 conftest$ac_exeext conftest.$ac_ext
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19373 $as_echo "$ac_cv_type_long_long" >&6; }
19374 if test $ac_cv_type_long_long = yes; then
19376 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19382 $as_echo_n "checking for long double... " >&6; }
19383 if ${gt_cv_c_long_double+:} false; then :
19384 $as_echo_n "(cached) " >&6
19386 if test "$GCC" = yes; then
19387 gt_cv_c_long_double=yes
19389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19390 /* end confdefs.h. */
19392 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19393 long double foo = 0.0;
19394 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19395 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19405 if ac_fn_c_try_compile "$LINENO"; then :
19406 gt_cv_c_long_double=yes
19408 gt_cv_c_long_double=no
19410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19414 $as_echo "$gt_cv_c_long_double" >&6; }
19415 if test $gt_cv_c_long_double = yes; then
19417 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19423 $as_echo_n "checking for wchar_t... " >&6; }
19424 if ${gt_cv_c_wchar_t+:} false; then :
19425 $as_echo_n "(cached) " >&6
19427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19428 /* end confdefs.h. */
19429 #include <stddef.h>
19430 wchar_t foo = (wchar_t)'\0';
19439 if ac_fn_c_try_compile "$LINENO"; then :
19440 gt_cv_c_wchar_t=yes
19444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19447 $as_echo "$gt_cv_c_wchar_t" >&6; }
19448 if test $gt_cv_c_wchar_t = yes; then
19450 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19456 $as_echo_n "checking for wint_t... " >&6; }
19457 if ${gt_cv_c_wint_t+:} false; then :
19458 $as_echo_n "(cached) " >&6
19460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19461 /* end confdefs.h. */
19463 wint_t foo = (wchar_t)'\0';
19472 if ac_fn_c_try_compile "$LINENO"; then :
19477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19480 $as_echo "$gt_cv_c_wint_t" >&6; }
19481 if test $gt_cv_c_wint_t = yes; then
19483 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19489 $as_echo_n "checking for inttypes.h... " >&6; }
19490 if ${gl_cv_header_inttypes_h+:} false; then :
19491 $as_echo_n "(cached) " >&6
19493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19494 /* end confdefs.h. */
19495 #include <sys/types.h>
19496 #include <inttypes.h>
19500 uintmax_t i = (uintmax_t) -1;
19505 if ac_fn_c_try_compile "$LINENO"; then :
19506 gl_cv_header_inttypes_h=yes
19508 gl_cv_header_inttypes_h=no
19510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19513 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19514 if test $gl_cv_header_inttypes_h = yes; then
19516 cat >>confdefs.h <<_ACEOF
19517 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19524 $as_echo_n "checking for stdint.h... " >&6; }
19525 if ${gl_cv_header_stdint_h+:} false; then :
19526 $as_echo_n "(cached) " >&6
19528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19529 /* end confdefs.h. */
19530 #include <sys/types.h>
19531 #include <stdint.h>
19535 uintmax_t i = (uintmax_t) -1;
19540 if ac_fn_c_try_compile "$LINENO"; then :
19541 gl_cv_header_stdint_h=yes
19543 gl_cv_header_stdint_h=no
19545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19548 $as_echo "$gl_cv_header_stdint_h" >&6; }
19549 if test $gl_cv_header_stdint_h = yes; then
19551 cat >>confdefs.h <<_ACEOF
19552 #define HAVE_STDINT_H_WITH_UINTMAX 1
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19561 $as_echo_n "checking for intmax_t... " >&6; }
19562 if ${gt_cv_c_intmax_t+:} false; then :
19563 $as_echo_n "(cached) " >&6
19565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19566 /* end confdefs.h. */
19568 #include <stddef.h>
19569 #include <stdlib.h>
19570 #if HAVE_STDINT_H_WITH_UINTMAX
19571 #include <stdint.h>
19573 #if HAVE_INTTYPES_H_WITH_UINTMAX
19574 #include <inttypes.h>
19585 if ac_fn_c_try_compile "$LINENO"; then :
19586 gt_cv_c_intmax_t=yes
19588 gt_cv_c_intmax_t=no
19590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19593 $as_echo "$gt_cv_c_intmax_t" >&6; }
19594 if test $gt_cv_c_intmax_t = yes; then
19596 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19603 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19604 if ${gt_cv_func_printf_posix+:} false; then :
19605 $as_echo_n "(cached) " >&6
19608 if test "$cross_compiling" = yes; then :
19610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19611 /* end confdefs.h. */
19613 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19619 $EGREP "notposix" >/dev/null 2>&1; then :
19620 gt_cv_func_printf_posix="guessing no"
19622 gt_cv_func_printf_posix="guessing yes"
19628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19629 /* end confdefs.h. */
19632 #include <string.h>
19633 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19634 dollar expansion (possibly an autoconf bug). */
19635 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19636 static char buf[100];
19639 sprintf (buf, format, 33, 55);
19640 return (strcmp (buf, "55 33") != 0);
19643 if ac_fn_c_try_run "$LINENO"; then :
19644 gt_cv_func_printf_posix=yes
19646 gt_cv_func_printf_posix=no
19648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19649 conftest.$ac_objext conftest.beam conftest.$ac_ext
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19655 $as_echo "$gt_cv_func_printf_posix" >&6; }
19656 case $gt_cv_func_printf_posix in
19659 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19664 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19665 # for constant arguments. Useless!
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19667 $as_echo_n "checking for working alloca.h... " >&6; }
19668 if ${ac_cv_working_alloca_h+:} false; then :
19669 $as_echo_n "(cached) " >&6
19671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19672 /* end confdefs.h. */
19673 #include <alloca.h>
19677 char *p = (char *) alloca (2 * sizeof (int));
19683 if ac_fn_c_try_link "$LINENO"; then :
19684 ac_cv_working_alloca_h=yes
19686 ac_cv_working_alloca_h=no
19688 rm -f core conftest.err conftest.$ac_objext \
19689 conftest$ac_exeext conftest.$ac_ext
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19692 $as_echo "$ac_cv_working_alloca_h" >&6; }
19693 if test $ac_cv_working_alloca_h = yes; then
19695 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19700 $as_echo_n "checking for alloca... " >&6; }
19701 if ${ac_cv_func_alloca_works+:} false; then :
19702 $as_echo_n "(cached) " >&6
19704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19705 /* end confdefs.h. */
19707 # define alloca __builtin_alloca
19710 # include <malloc.h>
19711 # define alloca _alloca
19713 # ifdef HAVE_ALLOCA_H
19714 # include <alloca.h>
19719 # ifndef alloca /* predefined by HP cc +Olibcalls */
19720 void *alloca (size_t);
19730 char *p = (char *) alloca (1);
19736 if ac_fn_c_try_link "$LINENO"; then :
19737 ac_cv_func_alloca_works=yes
19739 ac_cv_func_alloca_works=no
19741 rm -f core conftest.err conftest.$ac_objext \
19742 conftest$ac_exeext conftest.$ac_ext
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19745 $as_echo "$ac_cv_func_alloca_works" >&6; }
19747 if test $ac_cv_func_alloca_works = yes; then
19749 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19752 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19753 # that cause trouble. Some versions do not even contain alloca or
19754 # contain a buggy version. If you still want to use their alloca,
19755 # use ar to extract alloca.o from them instead of compiling alloca.c.
19757 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19759 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19763 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19764 if ${ac_cv_os_cray+:} false; then :
19765 $as_echo_n "(cached) " >&6
19767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19768 /* end confdefs.h. */
19769 #if defined CRAY && ! defined CRAY2
19776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19777 $EGREP "webecray" >/dev/null 2>&1; then :
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19786 $as_echo "$ac_cv_os_cray" >&6; }
19787 if test $ac_cv_os_cray = yes; then
19788 for ac_func in _getb67 GETB67 getb67; do
19789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19790 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19791 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19793 cat >>confdefs.h <<_ACEOF
19794 #define CRAY_STACKSEG_END $ac_func
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19804 $as_echo_n "checking stack direction for C alloca... " >&6; }
19805 if ${ac_cv_c_stack_direction+:} false; then :
19806 $as_echo_n "(cached) " >&6
19808 if test "$cross_compiling" = yes; then :
19809 ac_cv_c_stack_direction=0
19811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19812 /* end confdefs.h. */
19813 $ac_includes_default
19815 find_stack_direction ()
19817 static char *addr = 0;
19822 return find_stack_direction ();
19825 return (&dummy > addr) ? 1 : -1;
19831 return find_stack_direction () < 0;
19834 if ac_fn_c_try_run "$LINENO"; then :
19835 ac_cv_c_stack_direction=1
19837 ac_cv_c_stack_direction=-1
19839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19840 conftest.$ac_objext conftest.beam conftest.$ac_ext
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19845 $as_echo "$ac_cv_c_stack_direction" >&6; }
19846 cat >>confdefs.h <<_ACEOF
19847 #define STACK_DIRECTION $ac_cv_c_stack_direction
19856 for ac_header in $ac_header_list
19858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19859 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19861 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19862 cat >>confdefs.h <<_ACEOF
19863 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19877 for ac_func in getpagesize
19879 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19880 if test "x$ac_cv_func_getpagesize" = xyes; then :
19881 cat >>confdefs.h <<_ACEOF
19882 #define HAVE_GETPAGESIZE 1
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19889 $as_echo_n "checking for working mmap... " >&6; }
19890 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19891 $as_echo_n "(cached) " >&6
19893 if test "$cross_compiling" = yes; then :
19894 ac_cv_func_mmap_fixed_mapped=no
19896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19897 /* end confdefs.h. */
19898 $ac_includes_default
19899 /* malloc might have been renamed as rpl_malloc. */
19902 /* Thanks to Mike Haertel and Jim Avera for this test.
19903 Here is a matrix of mmap possibilities:
19904 mmap private not fixed
19905 mmap private fixed at somewhere currently unmapped
19906 mmap private fixed at somewhere already mapped
19907 mmap shared not fixed
19908 mmap shared fixed at somewhere currently unmapped
19909 mmap shared fixed at somewhere already mapped
19910 For private mappings, we should verify that changes cannot be read()
19911 back from the file, nor mmap's back from the file at a different
19912 address. (There have been systems where private was not correctly
19913 implemented like the infamous i386 svr4.0, and systems where the
19914 VM page cache was not coherent with the file system buffer cache
19915 like early versions of FreeBSD and possibly contemporary NetBSD.)
19916 For shared mappings, we should conversely verify that changes get
19917 propagated back to all the places they're supposed to be.
19919 Grep wants private fixed already mapped.
19920 The main things grep needs to know about mmap are:
19921 * does it exist and is it safe to write into the mmap'd area
19922 * how to use it (BSD variants) */
19925 #include <sys/mman.h>
19927 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19931 /* This mess was copied from the GNU getpagesize.h. */
19932 #ifndef HAVE_GETPAGESIZE
19933 # ifdef _SC_PAGESIZE
19934 # define getpagesize() sysconf(_SC_PAGESIZE)
19935 # else /* no _SC_PAGESIZE */
19936 # ifdef HAVE_SYS_PARAM_H
19937 # include <sys/param.h>
19938 # ifdef EXEC_PAGESIZE
19939 # define getpagesize() EXEC_PAGESIZE
19940 # else /* no EXEC_PAGESIZE */
19942 # define getpagesize() NBPG * CLSIZE
19945 # endif /* no CLSIZE */
19946 # else /* no NBPG */
19948 # define getpagesize() NBPC
19949 # else /* no NBPC */
19951 # define getpagesize() PAGESIZE
19952 # endif /* PAGESIZE */
19953 # endif /* no NBPC */
19954 # endif /* no NBPG */
19955 # endif /* no EXEC_PAGESIZE */
19956 # else /* no HAVE_SYS_PARAM_H */
19957 # define getpagesize() 8192 /* punt totally */
19958 # endif /* no HAVE_SYS_PARAM_H */
19959 # endif /* no _SC_PAGESIZE */
19961 #endif /* no HAVE_GETPAGESIZE */
19966 char *data, *data2, *data3;
19967 const char *cdata2;
19971 pagesize = getpagesize ();
19973 /* First, make a file with some known garbage in it. */
19974 data = (char *) malloc (pagesize);
19977 for (i = 0; i < pagesize; ++i)
19978 *(data + i) = rand ();
19980 fd = creat ("conftest.mmap", 0600);
19983 if (write (fd, data, pagesize) != pagesize)
19987 /* Next, check that the tail of a page is zero-filled. File must have
19988 non-zero length, otherwise we risk SIGBUS for entire page. */
19989 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19993 if (write (fd2, cdata2, 1) != 1)
19995 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19996 if (data2 == MAP_FAILED)
19998 for (i = 0; i < pagesize; ++i)
20002 if (munmap (data2, pagesize))
20005 /* Next, try to mmap the file at a fixed address which already has
20006 something else allocated at it. If we can, also make sure that
20007 we see the same garbage. */
20008 fd = open ("conftest.mmap", O_RDWR);
20011 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20012 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20014 for (i = 0; i < pagesize; ++i)
20015 if (*(data + i) != *(data2 + i))
20018 /* Finally, make sure that changes to the mapped area do not
20019 percolate back to the file as seen by read(). (This is a bug on
20020 some variants of i386 svr4.0.) */
20021 for (i = 0; i < pagesize; ++i)
20022 *(data2 + i) = *(data2 + i) + 1;
20023 data3 = (char *) malloc (pagesize);
20026 if (read (fd, data3, pagesize) != pagesize)
20028 for (i = 0; i < pagesize; ++i)
20029 if (*(data + i) != *(data3 + i))
20035 if ac_fn_c_try_run "$LINENO"; then :
20036 ac_cv_func_mmap_fixed_mapped=yes
20038 ac_cv_func_mmap_fixed_mapped=no
20040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20041 conftest.$ac_objext conftest.beam conftest.$ac_ext
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20046 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20047 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20049 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20052 rm -f conftest.mmap conftest.txt
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20056 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20057 if ${ac_cv_gnu_library_2_1+:} false; then :
20058 $as_echo_n "(cached) " >&6
20060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20061 /* end confdefs.h. */
20063 #include <features.h>
20064 #ifdef __GNU_LIBRARY__
20065 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20072 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20073 ac_cv_gnu_library_2_1=yes
20075 ac_cv_gnu_library_2_1=no
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20083 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20085 GLIBC21="$ac_cv_gnu_library_2_1"
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20091 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20092 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20093 $as_echo_n "(cached) " >&6
20096 if test "$cross_compiling" = yes; then :
20098 # Guess based on the CPU.
20099 case "$host_cpu" in
20100 alpha* | i3456786 | m68k | s390*)
20101 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20103 gt_cv_int_divbyzero_sigfpe="guessing no";;
20107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20108 /* end confdefs.h. */
20110 #include <stdlib.h>
20111 #include <signal.h>
20115 sigfpe_handler (int sig)
20117 sigfpe_handler (sig) int sig;
20120 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20121 exit (sig != SIGFPE);
20131 signal (SIGFPE, sigfpe_handler);
20132 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20133 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20134 signal (SIGTRAP, sigfpe_handler);
20136 /* Linux/SPARC yields signal SIGILL. */
20137 #if defined (__sparc__) && defined (__linux__)
20138 signal (SIGILL, sigfpe_handler);
20147 if ac_fn_c_try_run "$LINENO"; then :
20148 gt_cv_int_divbyzero_sigfpe=yes
20150 gt_cv_int_divbyzero_sigfpe=no
20152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20153 conftest.$ac_objext conftest.beam conftest.$ac_ext
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20159 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20160 case "$gt_cv_int_divbyzero_sigfpe" in
20165 cat >>confdefs.h <<_ACEOF
20166 #define INTDIV0_RAISES_SIGFPE $value
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20172 $as_echo_n "checking for unsigned long long... " >&6; }
20173 if ${ac_cv_type_unsigned_long_long+:} false; then :
20174 $as_echo_n "(cached) " >&6
20176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20177 /* end confdefs.h. */
20178 unsigned long long ull = 1ULL; int i = 63;
20182 unsigned long long ullmax = (unsigned long long) -1;
20183 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20188 if ac_fn_c_try_link "$LINENO"; then :
20189 ac_cv_type_unsigned_long_long=yes
20191 ac_cv_type_unsigned_long_long=no
20193 rm -f core conftest.err conftest.$ac_objext \
20194 conftest$ac_exeext conftest.$ac_ext
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20197 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20198 if test $ac_cv_type_unsigned_long_long = yes; then
20200 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20207 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20209 test $ac_cv_type_unsigned_long_long = yes \
20210 && ac_type='unsigned long long' \
20211 || ac_type='unsigned long'
20213 cat >>confdefs.h <<_ACEOF
20214 #define uintmax_t $ac_type
20219 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20225 $as_echo_n "checking for inttypes.h... " >&6; }
20226 if ${gt_cv_header_inttypes_h+:} false; then :
20227 $as_echo_n "(cached) " >&6
20230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20231 /* end confdefs.h. */
20232 #include <sys/types.h>
20233 #include <inttypes.h>
20242 if ac_fn_c_try_compile "$LINENO"; then :
20243 gt_cv_header_inttypes_h=yes
20245 gt_cv_header_inttypes_h=no
20247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20251 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20252 if test $gt_cv_header_inttypes_h = yes; then
20254 cat >>confdefs.h <<_ACEOF
20255 #define HAVE_INTTYPES_H 1
20262 if test $gt_cv_header_inttypes_h = yes; then
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20264 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20265 if ${gt_cv_inttypes_pri_broken+:} false; then :
20266 $as_echo_n "(cached) " >&6
20269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20270 /* end confdefs.h. */
20271 #include <inttypes.h>
20284 if ac_fn_c_try_compile "$LINENO"; then :
20285 gt_cv_inttypes_pri_broken=no
20287 gt_cv_inttypes_pri_broken=yes
20289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20293 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20295 if test "$gt_cv_inttypes_pri_broken" = yes; then
20297 cat >>confdefs.h <<_ACEOF
20298 #define PRI_MACROS_BROKEN 1
20304 for ac_header in stdint.h
20306 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20307 if test "x$ac_cv_header_stdint_h" = xyes; then :
20308 cat >>confdefs.h <<_ACEOF
20309 #define HAVE_STDINT_H 1
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20317 $as_echo_n "checking for SIZE_MAX... " >&6; }
20319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20320 /* end confdefs.h. */
20322 #include <limits.h>
20324 #include <stdint.h>
20331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20332 $EGREP "Found it" >/dev/null 2>&1; then :
20337 if test -z "$result"; then
20338 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20345 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20352 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20359 if test "$fits_in_uint" = 1; then
20360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20361 /* end confdefs.h. */
20362 #include <stddef.h>
20364 extern unsigned long foo;
20374 if ac_fn_c_try_compile "$LINENO"; then :
20377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20379 if test -z "$result"; then
20380 if test "$fits_in_uint" = 1; then
20381 result="$res_hi$res_lo"U
20383 result="$res_hi$res_lo"UL
20386 result='~(size_t)0'
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20390 $as_echo "$result" >&6; }
20391 if test "$result" != yes; then
20393 cat >>confdefs.h <<_ACEOF
20394 #define SIZE_MAX $result
20402 for ac_header in stdint.h
20404 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20405 if test "x$ac_cv_header_stdint_h" = xyes; then :
20406 cat >>confdefs.h <<_ACEOF
20407 #define HAVE_STDINT_H 1
20421 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20422 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20426 $as_echo "#define ptrdiff_t long" >>confdefs.h
20431 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20432 stdlib.h string.h unistd.h sys/param.h
20434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20435 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20436 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20437 cat >>confdefs.h <<_ACEOF
20438 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20445 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20446 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20447 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20450 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20451 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20452 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20453 cat >>confdefs.h <<_ACEOF
20454 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20463 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20464 if ${ac_cv_have_decl__snprintf+:} false; then :
20465 $as_echo_n "(cached) " >&6
20467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20468 /* end confdefs.h. */
20475 char *p = (char *) _snprintf;
20482 if ac_fn_c_try_compile "$LINENO"; then :
20483 ac_cv_have_decl__snprintf=yes
20485 ac_cv_have_decl__snprintf=no
20487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20490 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20491 if test $ac_cv_have_decl__snprintf = yes; then
20497 cat >>confdefs.h <<_ACEOF
20498 #define HAVE_DECL__SNPRINTF $gt_value
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20504 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20505 if ${ac_cv_have_decl__snwprintf+:} false; then :
20506 $as_echo_n "(cached) " >&6
20508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20509 /* end confdefs.h. */
20516 char *p = (char *) _snwprintf;
20523 if ac_fn_c_try_compile "$LINENO"; then :
20524 ac_cv_have_decl__snwprintf=yes
20526 ac_cv_have_decl__snwprintf=no
20528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20531 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20532 if test $ac_cv_have_decl__snwprintf = yes; then
20538 cat >>confdefs.h <<_ACEOF
20539 #define HAVE_DECL__SNWPRINTF $gt_value
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20546 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20547 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20548 $as_echo_n "(cached) " >&6
20550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20551 /* end confdefs.h. */
20557 #ifndef feof_unlocked
20558 char *p = (char *) feof_unlocked;
20565 if ac_fn_c_try_compile "$LINENO"; then :
20566 ac_cv_have_decl_feof_unlocked=yes
20568 ac_cv_have_decl_feof_unlocked=no
20570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20573 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20574 if test $ac_cv_have_decl_feof_unlocked = yes; then
20580 cat >>confdefs.h <<_ACEOF
20581 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20587 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20588 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20589 $as_echo_n "(cached) " >&6
20591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20592 /* end confdefs.h. */
20598 #ifndef fgets_unlocked
20599 char *p = (char *) fgets_unlocked;
20606 if ac_fn_c_try_compile "$LINENO"; then :
20607 ac_cv_have_decl_fgets_unlocked=yes
20609 ac_cv_have_decl_fgets_unlocked=no
20611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20614 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20615 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20621 cat >>confdefs.h <<_ACEOF
20622 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20628 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20629 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20630 $as_echo_n "(cached) " >&6
20632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20633 /* end confdefs.h. */
20639 #ifndef getc_unlocked
20640 char *p = (char *) getc_unlocked;
20647 if ac_fn_c_try_compile "$LINENO"; then :
20648 ac_cv_have_decl_getc_unlocked=yes
20650 ac_cv_have_decl_getc_unlocked=no
20652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20655 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20656 if test $ac_cv_have_decl_getc_unlocked = yes; then
20662 cat >>confdefs.h <<_ACEOF
20663 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20668 case $gt_cv_func_printf_posix in
20669 *yes) HAVE_POSIX_PRINTF=1 ;;
20670 *) HAVE_POSIX_PRINTF=0 ;;
20673 if test "$ac_cv_func_asprintf" = yes; then
20679 if test "$ac_cv_func_snprintf" = yes; then
20685 if test "$ac_cv_func_wprintf" = yes; then
20697 am_save_CPPFLAGS="$CPPFLAGS"
20699 for element in $INCICONV; do
20701 for x in $CPPFLAGS; do
20703 acl_save_prefix="$prefix"
20704 prefix="$acl_final_prefix"
20705 acl_save_exec_prefix="$exec_prefix"
20706 exec_prefix="$acl_final_exec_prefix"
20708 exec_prefix="$acl_save_exec_prefix"
20709 prefix="$acl_save_prefix"
20711 if test "X$x" = "X$element"; then
20716 if test -z "$haveit"; then
20717 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20723 $as_echo_n "checking for iconv... " >&6; }
20724 if ${am_cv_func_iconv+:} false; then :
20725 $as_echo_n "(cached) " >&6
20728 am_cv_func_iconv="no, consider installing GNU libiconv"
20730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20731 /* end confdefs.h. */
20732 #include <stdlib.h>
20737 iconv_t cd = iconv_open("","");
20738 iconv(cd,NULL,NULL,NULL,NULL);
20744 if ac_fn_c_try_link "$LINENO"; then :
20745 am_cv_func_iconv=yes
20747 rm -f core conftest.err conftest.$ac_objext \
20748 conftest$ac_exeext conftest.$ac_ext
20749 if test "$am_cv_func_iconv" != yes; then
20750 am_save_LIBS="$LIBS"
20751 LIBS="$LIBS $LIBICONV"
20752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20753 /* end confdefs.h. */
20754 #include <stdlib.h>
20759 iconv_t cd = iconv_open("","");
20760 iconv(cd,NULL,NULL,NULL,NULL);
20766 if ac_fn_c_try_link "$LINENO"; then :
20767 am_cv_lib_iconv=yes
20768 am_cv_func_iconv=yes
20770 rm -f core conftest.err conftest.$ac_objext \
20771 conftest$ac_exeext conftest.$ac_ext
20772 LIBS="$am_save_LIBS"
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20777 $as_echo "$am_cv_func_iconv" >&6; }
20778 if test "$am_cv_func_iconv" = yes; then
20780 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20783 if test "$am_cv_lib_iconv" = yes; then
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20785 $as_echo_n "checking how to link with libiconv... " >&6; }
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20787 $as_echo "$LIBICONV" >&6; }
20789 CPPFLAGS="$am_save_CPPFLAGS"
20796 if test "$am_cv_func_iconv" = yes; then
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20798 $as_echo_n "checking for iconv declaration... " >&6; }
20799 if ${am_cv_proto_iconv+:} false; then :
20800 $as_echo_n "(cached) " >&6
20803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20804 /* end confdefs.h. */
20806 #include <stdlib.h>
20812 #if defined(__STDC__) || defined(__cplusplus)
20813 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20826 if ac_fn_c_try_compile "$LINENO"; then :
20827 am_cv_proto_iconv_arg1=""
20829 am_cv_proto_iconv_arg1="const"
20831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20832 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);"
20835 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20837 }$am_cv_proto_iconv" >&5
20839 }$am_cv_proto_iconv" >&6; }
20841 cat >>confdefs.h <<_ACEOF
20842 #define ICONV_CONST $am_cv_proto_iconv_arg1
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20849 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20850 if ${am_cv_langinfo_codeset+:} false; then :
20851 $as_echo_n "(cached) " >&6
20853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20854 /* end confdefs.h. */
20855 #include <langinfo.h>
20859 char* cs = nl_langinfo(CODESET);
20864 if ac_fn_c_try_link "$LINENO"; then :
20865 am_cv_langinfo_codeset=yes
20867 am_cv_langinfo_codeset=no
20869 rm -f core conftest.err conftest.$ac_objext \
20870 conftest$ac_exeext conftest.$ac_ext
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20874 $as_echo "$am_cv_langinfo_codeset" >&6; }
20875 if test $am_cv_langinfo_codeset = yes; then
20877 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20881 if test $ac_cv_header_locale_h = yes; then
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20884 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20885 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20886 $as_echo_n "(cached) " >&6
20888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20889 /* end confdefs.h. */
20890 #include <locale.h>
20899 if ac_fn_c_try_link "$LINENO"; then :
20900 gt_cv_val_LC_MESSAGES=yes
20902 gt_cv_val_LC_MESSAGES=no
20904 rm -f core conftest.err conftest.$ac_objext \
20905 conftest$ac_exeext conftest.$ac_ext
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20908 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20909 if test $gt_cv_val_LC_MESSAGES = yes; then
20911 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20917 if test -n "$INTL_MACOSX_LIBS"; then
20918 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20921 for ac_prog in bison
20923 # Extract the first word of "$ac_prog", so it can be a program name with args.
20924 set dummy $ac_prog; ac_word=$2
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20926 $as_echo_n "checking for $ac_word... " >&6; }
20927 if ${ac_cv_prog_INTLBISON+:} false; then :
20928 $as_echo_n "(cached) " >&6
20930 if test -n "$INTLBISON"; then
20931 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20934 for as_dir in $PATH
20937 test -z "$as_dir" && as_dir=.
20938 for ac_exec_ext in '' $ac_executable_extensions; do
20939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20940 ac_cv_prog_INTLBISON="$ac_prog"
20941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20950 INTLBISON=$ac_cv_prog_INTLBISON
20951 if test -n "$INTLBISON"; then
20952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20953 $as_echo "$INTLBISON" >&6; }
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20956 $as_echo "no" >&6; }
20960 test -n "$INTLBISON" && break
20963 if test -z "$INTLBISON"; then
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20967 $as_echo_n "checking version of bison... " >&6; }
20968 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20969 case $ac_prog_version in
20970 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20971 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20972 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20973 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20976 $as_echo "$ac_prog_version" >&6; }
20978 if test $ac_verc_fail = yes; then
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20998 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20999 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21000 $as_echo_n "(cached) " >&6
21002 gt_save_CPPFLAGS="$CPPFLAGS"
21003 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21004 gt_save_LIBS="$LIBS"
21005 LIBS="$LIBS -framework CoreFoundation"
21006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21007 /* end confdefs.h. */
21008 #include <CFPreferences.h>
21012 CFPreferencesCopyAppValue(NULL, NULL)
21017 if ac_fn_c_try_link "$LINENO"; then :
21018 gt_cv_func_CFPreferencesCopyAppValue=yes
21020 gt_cv_func_CFPreferencesCopyAppValue=no
21022 rm -f core conftest.err conftest.$ac_objext \
21023 conftest$ac_exeext conftest.$ac_ext
21024 CPPFLAGS="$gt_save_CPPFLAGS"
21025 LIBS="$gt_save_LIBS"
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21028 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21029 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21031 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21035 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21036 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21037 $as_echo_n "(cached) " >&6
21039 gt_save_CPPFLAGS="$CPPFLAGS"
21040 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21041 gt_save_LIBS="$LIBS"
21042 LIBS="$LIBS -framework CoreFoundation"
21043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21044 /* end confdefs.h. */
21045 #include <CFLocale.h>
21049 CFLocaleCopyCurrent();
21054 if ac_fn_c_try_link "$LINENO"; then :
21055 gt_cv_func_CFLocaleCopyCurrent=yes
21057 gt_cv_func_CFLocaleCopyCurrent=no
21059 rm -f core conftest.err conftest.$ac_objext \
21060 conftest$ac_exeext conftest.$ac_ext
21061 CPPFLAGS="$gt_save_CPPFLAGS"
21062 LIBS="$gt_save_LIBS"
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21065 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21066 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21068 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21072 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21073 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21080 $as_echo_n "checking whether NLS is requested... " >&6; }
21081 # Check whether --enable-nls was given.
21082 if test "${enable_nls+set}" = set; then :
21083 enableval=$enable_nls; USE_NLS=$enableval
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21089 $as_echo "$USE_NLS" >&6; }
21094 BUILD_INCLUDED_LIBINTL=no
21095 USE_INCLUDED_LIBINTL=no
21101 if test "$USE_NLS" = "yes"; then
21102 gt_use_preinstalled_gnugettext=no
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21105 $as_echo_n "checking whether included gettext is requested... " >&6; }
21107 # Check whether --with-included-gettext was given.
21108 if test "${with_included_gettext+set}" = set; then :
21109 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21111 nls_cv_force_use_gnu_gettext=no
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21115 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21117 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21118 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21126 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21127 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21128 $as_echo_n "(cached) " >&6
21130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21131 /* end confdefs.h. */
21132 #include <libintl.h>
21133 extern int _nl_msg_cat_cntr;
21134 extern int *_nl_domain_bindings;
21138 bindtextdomain ("", "");
21139 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21144 if ac_fn_c_try_link "$LINENO"; then :
21145 gt_cv_func_gnugettext1_libc=yes
21147 gt_cv_func_gnugettext1_libc=no
21149 rm -f core conftest.err conftest.$ac_objext \
21150 conftest$ac_exeext conftest.$ac_ext
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21153 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21155 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21161 acl_save_prefix="$prefix"
21162 prefix="$acl_final_prefix"
21163 acl_save_exec_prefix="$exec_prefix"
21164 exec_prefix="$acl_final_exec_prefix"
21166 eval additional_includedir=\"$includedir\"
21167 eval additional_libdir=\"$libdir\"
21169 exec_prefix="$acl_save_exec_prefix"
21170 prefix="$acl_save_prefix"
21173 # Check whether --with-libintl-prefix was given.
21174 if test "${with_libintl_prefix+set}" = set; then :
21175 withval=$with_libintl_prefix;
21176 if test "X$withval" = "Xno"; then
21179 if test "X$withval" = "X"; then
21181 acl_save_prefix="$prefix"
21182 prefix="$acl_final_prefix"
21183 acl_save_exec_prefix="$exec_prefix"
21184 exec_prefix="$acl_final_exec_prefix"
21186 eval additional_includedir=\"$includedir\"
21187 eval additional_libdir=\"$libdir\"
21189 exec_prefix="$acl_save_exec_prefix"
21190 prefix="$acl_save_prefix"
21193 additional_includedir="$withval/include"
21194 additional_libdir="$withval/lib"
21205 names_already_handled=
21206 names_next_round='intl '
21207 while test -n "$names_next_round"; do
21208 names_this_round="$names_next_round"
21210 for name in $names_this_round; do
21212 for n in $names_already_handled; do
21213 if test "$n" = "$name"; then
21214 already_handled=yes
21218 if test -z "$already_handled"; then
21219 names_already_handled="$names_already_handled $name"
21220 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21221 eval value=\"\$HAVE_LIB$uppername\"
21222 if test -n "$value"; then
21223 if test "$value" = yes; then
21224 eval value=\"\$LIB$uppername\"
21225 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21226 eval value=\"\$LTLIB$uppername\"
21227 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21236 if test $use_additional = yes; then
21237 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21238 found_dir="$additional_libdir"
21239 found_so="$additional_libdir/lib$name.$shlibext"
21240 if test -f "$additional_libdir/lib$name.la"; then
21241 found_la="$additional_libdir/lib$name.la"
21244 if test -f "$additional_libdir/lib$name.$libext"; then
21245 found_dir="$additional_libdir"
21246 found_a="$additional_libdir/lib$name.$libext"
21247 if test -f "$additional_libdir/lib$name.la"; then
21248 found_la="$additional_libdir/lib$name.la"
21253 if test "X$found_dir" = "X"; then
21254 for x in $LDFLAGS $LTLIBINTL; do
21256 acl_save_prefix="$prefix"
21257 prefix="$acl_final_prefix"
21258 acl_save_exec_prefix="$exec_prefix"
21259 exec_prefix="$acl_final_exec_prefix"
21261 exec_prefix="$acl_save_exec_prefix"
21262 prefix="$acl_save_prefix"
21266 dir=`echo "X$x" | sed -e 's/^X-L//'`
21267 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21269 found_so="$dir/lib$name.$shlibext"
21270 if test -f "$dir/lib$name.la"; then
21271 found_la="$dir/lib$name.la"
21274 if test -f "$dir/lib$name.$libext"; then
21276 found_a="$dir/lib$name.$libext"
21277 if test -f "$dir/lib$name.la"; then
21278 found_la="$dir/lib$name.la"
21284 if test "X$found_dir" != "X"; then
21289 if test "X$found_dir" != "X"; then
21290 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21291 if test "X$found_so" != "X"; then
21292 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21293 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21296 for x in $ltrpathdirs; do
21297 if test "X$x" = "X$found_dir"; then
21302 if test -z "$haveit"; then
21303 ltrpathdirs="$ltrpathdirs $found_dir"
21305 if test "$hardcode_direct" = yes; then
21306 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21308 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21309 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21311 for x in $rpathdirs; do
21312 if test "X$x" = "X$found_dir"; then
21317 if test -z "$haveit"; then
21318 rpathdirs="$rpathdirs $found_dir"
21322 for x in $LDFLAGS $LIBINTL; do
21324 acl_save_prefix="$prefix"
21325 prefix="$acl_final_prefix"
21326 acl_save_exec_prefix="$exec_prefix"
21327 exec_prefix="$acl_final_exec_prefix"
21329 exec_prefix="$acl_save_exec_prefix"
21330 prefix="$acl_save_prefix"
21332 if test "X$x" = "X-L$found_dir"; then
21337 if test -z "$haveit"; then
21338 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21340 if test "$hardcode_minus_L" != no; then
21341 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21343 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21349 if test "X$found_a" != "X"; then
21350 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21352 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21355 additional_includedir=
21356 case "$found_dir" in
21358 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21359 additional_includedir="$basedir/include"
21362 if test "X$additional_includedir" != "X"; then
21363 if test "X$additional_includedir" != "X/usr/include"; then
21365 if test "X$additional_includedir" = "X/usr/local/include"; then
21366 if test -n "$GCC"; then
21368 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21372 if test -z "$haveit"; then
21373 for x in $CPPFLAGS $INCINTL; do
21375 acl_save_prefix="$prefix"
21376 prefix="$acl_final_prefix"
21377 acl_save_exec_prefix="$exec_prefix"
21378 exec_prefix="$acl_final_exec_prefix"
21380 exec_prefix="$acl_save_exec_prefix"
21381 prefix="$acl_save_prefix"
21383 if test "X$x" = "X-I$additional_includedir"; then
21388 if test -z "$haveit"; then
21389 if test -d "$additional_includedir"; then
21390 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21396 if test -n "$found_la"; then
21397 save_libdir="$libdir"
21398 case "$found_la" in
21399 */* | *\\*) . "$found_la" ;;
21400 *) . "./$found_la" ;;
21402 libdir="$save_libdir"
21403 for dep in $dependency_libs; do
21406 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21407 if test "X$additional_libdir" != "X/usr/lib"; then
21409 if test "X$additional_libdir" = "X/usr/local/lib"; then
21410 if test -n "$GCC"; then
21412 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21416 if test -z "$haveit"; then
21418 for x in $LDFLAGS $LIBINTL; do
21420 acl_save_prefix="$prefix"
21421 prefix="$acl_final_prefix"
21422 acl_save_exec_prefix="$exec_prefix"
21423 exec_prefix="$acl_final_exec_prefix"
21425 exec_prefix="$acl_save_exec_prefix"
21426 prefix="$acl_save_prefix"
21428 if test "X$x" = "X-L$additional_libdir"; then
21433 if test -z "$haveit"; then
21434 if test -d "$additional_libdir"; then
21435 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21439 for x in $LDFLAGS $LTLIBINTL; do
21441 acl_save_prefix="$prefix"
21442 prefix="$acl_final_prefix"
21443 acl_save_exec_prefix="$exec_prefix"
21444 exec_prefix="$acl_final_exec_prefix"
21446 exec_prefix="$acl_save_exec_prefix"
21447 prefix="$acl_save_prefix"
21449 if test "X$x" = "X-L$additional_libdir"; then
21454 if test -z "$haveit"; then
21455 if test -d "$additional_libdir"; then
21456 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21463 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21464 if test "$enable_rpath" != no; then
21466 for x in $rpathdirs; do
21467 if test "X$x" = "X$dir"; then
21472 if test -z "$haveit"; then
21473 rpathdirs="$rpathdirs $dir"
21476 for x in $ltrpathdirs; do
21477 if test "X$x" = "X$dir"; then
21482 if test -z "$haveit"; then
21483 ltrpathdirs="$ltrpathdirs $dir"
21488 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21491 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21494 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21495 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21501 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21502 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21508 if test "X$rpathdirs" != "X"; then
21509 if test -n "$hardcode_libdir_separator"; then
21511 for found_dir in $rpathdirs; do
21512 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21514 acl_save_libdir="$libdir"
21516 eval flag=\"$hardcode_libdir_flag_spec\"
21517 libdir="$acl_save_libdir"
21518 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21520 for found_dir in $rpathdirs; do
21521 acl_save_libdir="$libdir"
21522 libdir="$found_dir"
21523 eval flag=\"$hardcode_libdir_flag_spec\"
21524 libdir="$acl_save_libdir"
21525 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21529 if test "X$ltrpathdirs" != "X"; then
21530 for found_dir in $ltrpathdirs; do
21531 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21536 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21537 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21538 $as_echo_n "(cached) " >&6
21540 gt_save_CPPFLAGS="$CPPFLAGS"
21541 CPPFLAGS="$CPPFLAGS $INCINTL"
21542 gt_save_LIBS="$LIBS"
21543 LIBS="$LIBS $LIBINTL"
21544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21545 /* end confdefs.h. */
21546 #include <libintl.h>
21547 extern int _nl_msg_cat_cntr;
21552 const char *_nl_expand_alias (const char *);
21556 bindtextdomain ("", "");
21557 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21562 if ac_fn_c_try_link "$LINENO"; then :
21563 gt_cv_func_gnugettext1_libintl=yes
21565 gt_cv_func_gnugettext1_libintl=no
21567 rm -f core conftest.err conftest.$ac_objext \
21568 conftest$ac_exeext conftest.$ac_ext
21569 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21570 LIBS="$LIBS $LIBICONV"
21571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21572 /* end confdefs.h. */
21573 #include <libintl.h>
21574 extern int _nl_msg_cat_cntr;
21579 const char *_nl_expand_alias (const char *);
21583 bindtextdomain ("", "");
21584 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21589 if ac_fn_c_try_link "$LINENO"; then :
21590 LIBINTL="$LIBINTL $LIBICONV"
21591 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21592 gt_cv_func_gnugettext1_libintl=yes
21595 rm -f core conftest.err conftest.$ac_objext \
21596 conftest$ac_exeext conftest.$ac_ext
21598 CPPFLAGS="$gt_save_CPPFLAGS"
21599 LIBS="$gt_save_LIBS"
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21602 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21605 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21606 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21607 && test "$PACKAGE" != gettext-runtime \
21608 && test "$PACKAGE" != gettext-tools; }; then
21609 gt_use_preinstalled_gnugettext=yes
21617 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21618 nls_cv_use_gnu_gettext=yes
21622 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21623 BUILD_INCLUDED_LIBINTL=yes
21624 USE_INCLUDED_LIBINTL=yes
21625 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21626 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21627 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21631 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21632 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21637 if test -n "$INTL_MACOSX_LIBS"; then
21638 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21639 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21640 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21641 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21645 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21646 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21648 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21656 $as_echo_n "checking whether to use NLS... " >&6; }
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21658 $as_echo "$USE_NLS" >&6; }
21659 if test "$USE_NLS" = "yes"; then
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21661 $as_echo_n "checking where the gettext function comes from... " >&6; }
21662 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21663 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21664 gt_source="external libintl"
21669 gt_source="included intl directory"
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21672 $as_echo "$gt_source" >&6; }
21675 if test "$USE_NLS" = "yes"; then
21677 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21678 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21680 $as_echo_n "checking how to link with libintl... " >&6; }
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21682 $as_echo "$LIBINTL" >&6; }
21684 for element in $INCINTL; do
21686 for x in $CPPFLAGS; do
21688 acl_save_prefix="$prefix"
21689 prefix="$acl_final_prefix"
21690 acl_save_exec_prefix="$exec_prefix"
21691 exec_prefix="$acl_final_exec_prefix"
21693 exec_prefix="$acl_save_exec_prefix"
21694 prefix="$acl_save_prefix"
21696 if test "X$x" = "X$element"; then
21701 if test -z "$haveit"; then
21702 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21709 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21712 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21720 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21721 BUILD_INCLUDED_LIBINTL=yes
21728 nls_cv_header_intl=
21729 nls_cv_header_libgt=
21741 if test "$USE_INCLUDED_LIBINTL" = yes; then
21742 INTLOBJS="\$(GETTOBJS)"
21746 INTL_LIBTOOL_SUFFIX_PREFIX=
21750 INTLLIBS="$LIBINTL"
21759 support_smartalloc=yes
21760 support_readline=yes
21766 support_static_tools=no
21767 support_static_fd=no
21768 support_static_sd=no
21769 support_static_dir=no
21770 support_static_cons=no
21771 build_client_only=no
21775 batch_insert_db_backends=""
21779 # Check whether --enable-bat was given.
21780 if test "${enable_bat+set}" = set; then :
21781 enableval=$enable_bat;
21782 if test x$enableval = xyes; then
21784 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21794 if test x$support_bat = xyes; then
21795 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21797 if test $pkg = 0; then
21798 BAT_DIR=src/qt-console
21800 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21819 # Check whether --enable-smartalloc was given.
21820 if test "${enable_smartalloc+set}" = set; then :
21821 enableval=$enable_smartalloc;
21822 if test x$enableval = xno; then
21823 support_smartalloc=no
21830 if test x$support_smartalloc = xyes; then
21832 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21836 # Check whether --enable-lockmgr was given.
21837 if test "${enable_lockmgr+set}" = set; then :
21838 enableval=$enable_lockmgr;
21839 if test x$enableval = xyes; then
21840 support_lockmgr=yes
21847 if test x$support_lockmgr = xyes; then
21849 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21854 # Check whether --enable-static-tools was given.
21855 if test "${enable_static_tools+set}" = set; then :
21856 enableval=$enable_static_tools;
21857 if test x$enableval = xyes; then
21858 if test x$use_libtool = xyes; then
21859 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21860 please rerun configure with --disable-libtool" "$LINENO" 5
21862 support_static_tools=yes
21870 if test x$support_static_tools = xyes; then
21871 TTOOL_LDFLAGS="-static"
21875 # Check whether --enable-static-fd was given.
21876 if test "${enable_static_fd+set}" = set; then :
21877 enableval=$enable_static_fd;
21878 if test x$enableval = xyes; then
21879 if test x$use_libtool = xyes; then
21880 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21881 please rerun configure with --disable-libtool" "$LINENO" 5
21883 support_static_fd=yes
21891 if test x$support_static_fd = xyes; then
21892 STATIC_FD="static-bacula-fd"
21896 # Check whether --enable-static-sd was given.
21897 if test "${enable_static_sd+set}" = set; then :
21898 enableval=$enable_static_sd;
21899 if test x$enableval = xyes; then
21900 if test x$use_libtool = xyes; then
21901 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21902 please rerun configure with --disable-libtool" "$LINENO" 5
21904 support_static_sd=yes
21912 if test x$support_static_sd = xyes; then
21913 STATIC_SD="static-bacula-sd"
21917 # Check whether --enable-static-dir was given.
21918 if test "${enable_static_dir+set}" = set; then :
21919 enableval=$enable_static_dir;
21920 if test x$enableval = xyes; then
21921 if test x$use_libtool = xyes; then
21922 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21923 please rerun configure with --disable-libtool" "$LINENO" 5
21925 support_static_dir=yes
21933 if test x$support_static_dir = xyes; then
21934 STATIC_DIR="static-bacula-dir"
21938 # Check whether --enable-static-cons was given.
21939 if test "${enable_static_cons+set}" = set; then :
21940 enableval=$enable_static_cons;
21941 if test x$enableval = xyes; then
21942 if test x$use_libtool = xyes; then
21943 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21944 please rerun configure with --disable-libtool" "$LINENO" 5
21946 support_static_cons=yes
21954 if test x$support_static_cons = xyes; then
21955 STATIC_CONS="static-bconsole"
21959 # Check whether --enable-client-only was given.
21960 if test "${enable_client_only+set}" = set; then :
21961 enableval=$enable_client_only;
21962 if test x$enableval = xyes; then
21963 build_client_only=yes
21971 if test x$build_client_only = xno; then
21978 # Check whether --enable-build-dird was given.
21979 if test "${enable_build_dird+set}" = set; then :
21980 enableval=$enable_build_dird;
21981 if test x$enableval = xno; then
21988 if test x$build_dird = xyes; then
21989 DIRD_DIR="src/dird"
21990 DIR_TOOLS="DIRTOOLS"
21993 DIR_TOOLS="NODIRTOOLS"
21998 # Check whether --enable-build-stored was given.
21999 if test "${enable_build_stored+set}" = set; then :
22000 enableval=$enable_build_stored;
22001 if test x$enableval = xno; then
22008 if test x$build_stored = xyes; then
22009 STORED_DIR="src/stored"
22015 # Check whether --enable-conio was given.
22016 if test "${enable_conio+set}" = set; then :
22017 enableval=$enable_conio;
22018 if test x$enableval = xno; then
22028 # Check whether --enable-ipv6 was given.
22029 if test "${enable_ipv6+set}" = set; then :
22030 enableval=$enable_ipv6;
22031 if test x$enableval = xno; then
22039 if test x$support_ipv6 = xyes; then
22040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22041 /* end confdefs.h. */
22042 #include <sys/types.h>
22043 #include <sys/socket.h>
22044 #include <netinet/in.h>
22048 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22053 if ac_fn_c_try_link "$LINENO"; then :
22058 rm -f core conftest.err conftest.$ac_objext \
22059 conftest$ac_exeext conftest.$ac_ext
22062 if test x$support_ipv6 = xyes; then
22064 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22069 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22070 if test "x$ac_cv_header_curses_h" = xyes; then :
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22073 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22074 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22075 $as_echo_n "(cached) " >&6
22077 ac_check_lib_save_LIBS=$LIBS
22078 LIBS="-ltinfo $LIBS"
22079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22080 /* end confdefs.h. */
22082 /* Override any GCC internal prototype to avoid an error.
22083 Use char because int might match the return type of a GCC
22084 builtin and then its argument prototype would still apply. */
22097 if ac_fn_c_try_link "$LINENO"; then :
22098 ac_cv_lib_tinfo_tgetent=yes
22100 ac_cv_lib_tinfo_tgetent=no
22102 rm -f core conftest.err conftest.$ac_objext \
22103 conftest$ac_exeext conftest.$ac_ext
22104 LIBS=$ac_check_lib_save_LIBS
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22107 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22108 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22113 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22114 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22115 $as_echo_n "(cached) " >&6
22117 ac_check_lib_save_LIBS=$LIBS
22118 LIBS="-lncurses $LIBS"
22119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22120 /* end confdefs.h. */
22122 /* Override any GCC internal prototype to avoid an error.
22123 Use char because int might match the return type of a GCC
22124 builtin and then its argument prototype would still apply. */
22137 if ac_fn_c_try_link "$LINENO"; then :
22138 ac_cv_lib_ncurses_tgetent=yes
22140 ac_cv_lib_ncurses_tgetent=no
22142 rm -f core conftest.err conftest.$ac_objext \
22143 conftest$ac_exeext conftest.$ac_ext
22144 LIBS=$ac_check_lib_save_LIBS
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22147 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22148 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22149 TERM_LIB="-lncurses"
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22153 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22154 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22155 $as_echo_n "(cached) " >&6
22157 ac_check_lib_save_LIBS=$LIBS
22158 LIBS="-ltermcap $LIBS"
22159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22160 /* end confdefs.h. */
22162 /* Override any GCC internal prototype to avoid an error.
22163 Use char because int might match the return type of a GCC
22164 builtin and then its argument prototype would still apply. */
22177 if ac_fn_c_try_link "$LINENO"; then :
22178 ac_cv_lib_termcap_tgetent=yes
22180 ac_cv_lib_termcap_tgetent=no
22182 rm -f core conftest.err conftest.$ac_objext \
22183 conftest$ac_exeext conftest.$ac_ext
22184 LIBS=$ac_check_lib_save_LIBS
22186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22187 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22188 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22189 TERM_LIB="-ltermcap"
22200 for ac_header in curses.h
22202 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22203 if test "x$ac_cv_header_curses_h" = xyes; then :
22204 cat >>confdefs.h <<_ACEOF
22205 #define HAVE_CURSES_H 1
22212 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22213 if test "x$ac_cv_header_term_h" = xyes; then :
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22215 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22216 if ${ac_cv_lib_curses_tgetent+:} false; then :
22217 $as_echo_n "(cached) " >&6
22219 ac_check_lib_save_LIBS=$LIBS
22220 LIBS="-lcurses $LIBS"
22221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22222 /* end confdefs.h. */
22224 /* Override any GCC internal prototype to avoid an error.
22225 Use char because int might match the return type of a GCC
22226 builtin and then its argument prototype would still apply. */
22239 if ac_fn_c_try_link "$LINENO"; then :
22240 ac_cv_lib_curses_tgetent=yes
22242 ac_cv_lib_curses_tgetent=no
22244 rm -f core conftest.err conftest.$ac_objext \
22245 conftest$ac_exeext conftest.$ac_ext
22246 LIBS=$ac_check_lib_save_LIBS
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22249 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22250 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22251 TERM_LIB="-lcurses"
22265 if test x$support_conio = xyes; then
22266 if test x$TERM_LIB != x; then
22267 CONS_LIBS=$TERM_LIB
22271 support_readline=no
22273 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22276 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22281 # Check whether --enable-readline was given.
22282 if test "${enable_readline+set}" = set; then :
22283 enableval=$enable_readline;
22284 if test x$enableval = xno; then
22285 support_readline=no
22294 if test x$support_readline = xyes; then
22296 # Check whether --with-readline was given.
22297 if test "${with_readline+set}" = set; then :
22298 withval=$with_readline;
22299 case "$with_readline" in
22304 if test -f ${with_readline}/readline.h; then
22305 CONS_INC="-I${with_readline}"
22306 CONS_LDFLAGS="-L$with_readline"
22307 elif test -f ${with_readline}/include/readline/readline.h; then
22308 CONS_INC="-I${with_readline}/include/readline"
22309 CONS_LDFLAGS="-L${with_readline}/lib"
22310 with_readline="${with_readline}/include/readline"
22312 with_readline="/usr/include/readline"
22315 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22316 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22317 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22320 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22322 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22328 echo "readline.h not found. readline turned off ..."
22340 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22341 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22344 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22347 CONS_INC="-I/usr/include/readline"
22348 CONS_LIBS="-lreadline ${TERM_LIB}"
22352 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22353 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22354 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22357 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22360 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22361 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22362 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22363 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22368 echo "readline.h not found. readline turned off ..."
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22396 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22397 if ${ac_cv_header_stat_broken+:} false; then :
22398 $as_echo_n "(cached) " >&6
22400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22401 /* end confdefs.h. */
22402 #include <sys/types.h>
22403 #include <sys/stat.h>
22405 #if defined S_ISBLK && defined S_IFDIR
22406 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22409 #if defined S_ISBLK && defined S_IFCHR
22410 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22413 #if defined S_ISLNK && defined S_IFREG
22414 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22417 #if defined S_ISSOCK && defined S_IFREG
22418 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22422 if ac_fn_c_try_compile "$LINENO"; then :
22423 ac_cv_header_stat_broken=no
22425 ac_cv_header_stat_broken=yes
22427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22430 $as_echo "$ac_cv_header_stat_broken" >&6; }
22431 if test $ac_cv_header_stat_broken = yes; then
22433 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22437 ac_header_dirent=no
22438 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22439 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22441 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22442 if eval \${$as_ac_Header+:} false; then :
22443 $as_echo_n "(cached) " >&6
22445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22446 /* end confdefs.h. */
22447 #include <sys/types.h>
22459 if ac_fn_c_try_compile "$LINENO"; then :
22460 eval "$as_ac_Header=yes"
22462 eval "$as_ac_Header=no"
22464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22466 eval ac_res=\$$as_ac_Header
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22468 $as_echo "$ac_res" >&6; }
22469 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22470 cat >>confdefs.h <<_ACEOF
22471 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22474 ac_header_dirent=$ac_hdr; break
22478 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22479 if test $ac_header_dirent = dirent.h; then
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22481 $as_echo_n "checking for library containing opendir... " >&6; }
22482 if ${ac_cv_search_opendir+:} false; then :
22483 $as_echo_n "(cached) " >&6
22485 ac_func_search_save_LIBS=$LIBS
22486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22487 /* end confdefs.h. */
22489 /* Override any GCC internal prototype to avoid an error.
22490 Use char because int might match the return type of a GCC
22491 builtin and then its argument prototype would still apply. */
22504 for ac_lib in '' dir; do
22505 if test -z "$ac_lib"; then
22506 ac_res="none required"
22509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22511 if ac_fn_c_try_link "$LINENO"; then :
22512 ac_cv_search_opendir=$ac_res
22514 rm -f core conftest.err conftest.$ac_objext \
22516 if ${ac_cv_search_opendir+:} false; then :
22520 if ${ac_cv_search_opendir+:} false; then :
22523 ac_cv_search_opendir=no
22525 rm conftest.$ac_ext
22526 LIBS=$ac_func_search_save_LIBS
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22529 $as_echo "$ac_cv_search_opendir" >&6; }
22530 ac_res=$ac_cv_search_opendir
22531 if test "$ac_res" != no; then :
22532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22538 $as_echo_n "checking for library containing opendir... " >&6; }
22539 if ${ac_cv_search_opendir+:} false; then :
22540 $as_echo_n "(cached) " >&6
22542 ac_func_search_save_LIBS=$LIBS
22543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22544 /* end confdefs.h. */
22546 /* Override any GCC internal prototype to avoid an error.
22547 Use char because int might match the return type of a GCC
22548 builtin and then its argument prototype would still apply. */
22561 for ac_lib in '' x; do
22562 if test -z "$ac_lib"; then
22563 ac_res="none required"
22566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22568 if ac_fn_c_try_link "$LINENO"; then :
22569 ac_cv_search_opendir=$ac_res
22571 rm -f core conftest.err conftest.$ac_objext \
22573 if ${ac_cv_search_opendir+:} false; then :
22577 if ${ac_cv_search_opendir+:} false; then :
22580 ac_cv_search_opendir=no
22582 rm conftest.$ac_ext
22583 LIBS=$ac_func_search_save_LIBS
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22586 $as_echo "$ac_cv_search_opendir" >&6; }
22587 ac_res=$ac_cv_search_opendir
22588 if test "$ac_res" != no; then :
22589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22595 for ac_func in strcasecmp select setenv putenv tcgetattr
22597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22599 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22600 cat >>confdefs.h <<_ACEOF
22601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22607 for ac_func in lstat lchown lchmod futimes fchmod fchown
22609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22611 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22612 cat >>confdefs.h <<_ACEOF
22613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22619 for ac_func in nanosleep nl_langinfo
22621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22622 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22623 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22624 cat >>confdefs.h <<_ACEOF
22625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22631 for ac_header in varargs.h
22633 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22634 if test "x$ac_cv_header_varargs_h" = xyes; then :
22635 cat >>confdefs.h <<_ACEOF
22636 #define HAVE_VARARGS_H 1
22645 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22646 if test "x$ac_cv_func_socket" = xyes; then :
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22648 $as_echo "using libc's socket" >&6; }
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22651 $as_echo_n "checking for socket in -lxnet... " >&6; }
22652 if ${ac_cv_lib_xnet_socket+:} false; then :
22653 $as_echo_n "(cached) " >&6
22655 ac_check_lib_save_LIBS=$LIBS
22656 LIBS="-lxnet $LIBS"
22657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22658 /* end confdefs.h. */
22660 /* Override any GCC internal prototype to avoid an error.
22661 Use char because int might match the return type of a GCC
22662 builtin and then its argument prototype would still apply. */
22675 if ac_fn_c_try_link "$LINENO"; then :
22676 ac_cv_lib_xnet_socket=yes
22678 ac_cv_lib_xnet_socket=no
22680 rm -f core conftest.err conftest.$ac_objext \
22681 conftest$ac_exeext conftest.$ac_ext
22682 LIBS=$ac_check_lib_save_LIBS
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22685 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22686 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22687 cat >>confdefs.h <<_ACEOF
22688 #define HAVE_LIBXNET 1
22691 LIBS="-lxnet $LIBS"
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22696 $as_echo_n "checking for socket in -lsocket... " >&6; }
22697 if ${ac_cv_lib_socket_socket+:} false; then :
22698 $as_echo_n "(cached) " >&6
22700 ac_check_lib_save_LIBS=$LIBS
22701 LIBS="-lsocket $LIBS"
22702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22703 /* end confdefs.h. */
22705 /* Override any GCC internal prototype to avoid an error.
22706 Use char because int might match the return type of a GCC
22707 builtin and then its argument prototype would still apply. */
22720 if ac_fn_c_try_link "$LINENO"; then :
22721 ac_cv_lib_socket_socket=yes
22723 ac_cv_lib_socket_socket=no
22725 rm -f core conftest.err conftest.$ac_objext \
22726 conftest$ac_exeext conftest.$ac_ext
22727 LIBS=$ac_check_lib_save_LIBS
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22730 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22731 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22732 cat >>confdefs.h <<_ACEOF
22733 #define HAVE_LIBSOCKET 1
22736 LIBS="-lsocket $LIBS"
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22741 $as_echo_n "checking for socket in -linet... " >&6; }
22742 if ${ac_cv_lib_inet_socket+:} false; then :
22743 $as_echo_n "(cached) " >&6
22745 ac_check_lib_save_LIBS=$LIBS
22746 LIBS="-linet $LIBS"
22747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22748 /* end confdefs.h. */
22750 /* Override any GCC internal prototype to avoid an error.
22751 Use char because int might match the return type of a GCC
22752 builtin and then its argument prototype would still apply. */
22765 if ac_fn_c_try_link "$LINENO"; then :
22766 ac_cv_lib_inet_socket=yes
22768 ac_cv_lib_inet_socket=no
22770 rm -f core conftest.err conftest.$ac_objext \
22771 conftest$ac_exeext conftest.$ac_ext
22772 LIBS=$ac_check_lib_save_LIBS
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22775 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22776 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22777 cat >>confdefs.h <<_ACEOF
22778 #define HAVE_LIBINET 1
22781 LIBS="-linet $LIBS"
22791 # Check whether --with-tcp-wrappers was given.
22792 if test "${with_tcp_wrappers+set}" = set; then :
22793 withval=$with_tcp_wrappers;
22794 if test "x$withval" != "xno" ; then
22796 LIBS="$saved_LIBS -lwrap"
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22798 $as_echo_n "checking for library containing nanosleep... " >&6; }
22799 if ${ac_cv_search_nanosleep+:} false; then :
22800 $as_echo_n "(cached) " >&6
22802 ac_func_search_save_LIBS=$LIBS
22803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22804 /* end confdefs.h. */
22806 /* Override any GCC internal prototype to avoid an error.
22807 Use char because int might match the return type of a GCC
22808 builtin and then its argument prototype would still apply. */
22816 return nanosleep ();
22821 for ac_lib in '' rt; do
22822 if test -z "$ac_lib"; then
22823 ac_res="none required"
22826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22828 if ac_fn_c_try_link "$LINENO"; then :
22829 ac_cv_search_nanosleep=$ac_res
22831 rm -f core conftest.err conftest.$ac_objext \
22833 if ${ac_cv_search_nanosleep+:} false; then :
22837 if ${ac_cv_search_nanosleep+:} false; then :
22840 ac_cv_search_nanosleep=no
22842 rm conftest.$ac_ext
22843 LIBS=$ac_func_search_save_LIBS
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22846 $as_echo "$ac_cv_search_nanosleep" >&6; }
22847 ac_res=$ac_cv_search_nanosleep
22848 if test "$ac_res" != no; then :
22849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22854 $as_echo_n "checking for libwrap... " >&6; }
22855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22856 /* end confdefs.h. */
22858 #include <sys/types.h>
22860 int deny_severity = 0;
22861 int allow_severity = 0;
22862 struct request_info *req;
22874 if ac_fn_c_try_link "$LINENO"; then :
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22877 $as_echo "yes" >&6; }
22879 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22887 LIBS="$saved_LIBS -lwrap -lnsl"
22888 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22890 /* end confdefs.h. */
22892 #include <sys/types.h>
22894 int deny_severity = 0;
22895 int allow_severity = 0;
22896 struct request_info *req;
22908 if ac_fn_c_try_link "$LINENO"; then :
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22911 $as_echo "yes" >&6; }
22913 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22921 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22925 rm -f core conftest.err conftest.$ac_objext \
22926 conftest$ac_exeext conftest.$ac_ext
22930 rm -f core conftest.err conftest.$ac_objext \
22931 conftest$ac_exeext conftest.$ac_ext
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22940 $as_echo_n "checking for OpenSSL... " >&6; }
22942 # Check whether --with-openssl was given.
22943 if test "${with_openssl+set}" = set; then :
22944 withval=$with_openssl;
22945 with_openssl_directory=${withval}
22951 if test "x$with_openssl_directory" != "xno"; then
22952 OPENSSL_LIBS="-lssl -lcrypto"
22955 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22957 # Make sure the $with_openssl_directory also makes sense
22959 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22960 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22961 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22965 saved_LIBS="${LIBS}"
22966 saved_CFLAGS="${CFLAGS}"
22967 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22968 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22971 /* end confdefs.h. */
22973 #include <openssl/ssl.h>
22979 CRYPTO_set_id_callback(NULL);
22985 if ac_fn_c_try_link "$LINENO"; then :
22988 support_crypto="yes"
22993 support_crypto="no"
22997 rm -f core conftest.err conftest.$ac_objext \
22998 conftest$ac_exeext conftest.$ac_ext
23000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23001 /* end confdefs.h. */
23003 #include <openssl/evp.h>
23015 if ac_fn_c_try_link "$LINENO"; then :
23017 ac_cv_openssl_sha2="yes"
23021 ac_cv_openssl_sha2="no"
23025 rm -f core conftest.err conftest.$ac_objext \
23026 conftest$ac_exeext conftest.$ac_ext
23028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23029 /* end confdefs.h. */
23031 #include <openssl/evp.h>
23043 if ac_fn_c_try_link "$LINENO"; then :
23045 ac_cv_openssl_export="no"
23049 ac_cv_openssl_export="yes"
23053 rm -f core conftest.err conftest.$ac_objext \
23054 conftest$ac_exeext conftest.$ac_ext
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23057 $as_echo "$support_tls" >&6; }
23058 if test "$support_tls" = "yes"; then
23060 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23063 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23066 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23070 if test "$ac_cv_openssl_sha2" = "yes"; then
23072 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23076 if test "$ac_cv_openssl_export" = "yes"; then
23078 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23082 if test "$support_crypto" = "yes"; then
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23084 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23085 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23086 $as_echo_n "(cached) " >&6
23088 ac_check_lib_save_LIBS=$LIBS
23089 LIBS="-lcrypto $LIBS"
23090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23091 /* end confdefs.h. */
23093 /* Override any GCC internal prototype to avoid an error.
23094 Use char because int might match the return type of a GCC
23095 builtin and then its argument prototype would still apply. */
23099 char EVP_PKEY_encrypt_old ();
23103 return EVP_PKEY_encrypt_old ();
23108 if ac_fn_c_try_link "$LINENO"; then :
23109 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23111 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23113 rm -f core conftest.err conftest.$ac_objext \
23114 conftest$ac_exeext conftest.$ac_ext
23115 LIBS=$ac_check_lib_save_LIBS
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23118 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23119 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23121 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23127 LIBS="${saved_LIBS}"
23128 CFLAGS="${saved_CFLAGS}"
23131 support_crypto="no"
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23133 $as_echo "$support_tls" >&6; }
23136 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23145 $as_echo_n "checking for library containing dlopen... " >&6; }
23146 if ${ac_cv_search_dlopen+:} false; then :
23147 $as_echo_n "(cached) " >&6
23149 ac_func_search_save_LIBS=$LIBS
23150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23151 /* end confdefs.h. */
23153 /* Override any GCC internal prototype to avoid an error.
23154 Use char because int might match the return type of a GCC
23155 builtin and then its argument prototype would still apply. */
23168 for ac_lib in '' dl; do
23169 if test -z "$ac_lib"; then
23170 ac_res="none required"
23173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23175 if ac_fn_c_try_link "$LINENO"; then :
23176 ac_cv_search_dlopen=$ac_res
23178 rm -f core conftest.err conftest.$ac_objext \
23180 if ${ac_cv_search_dlopen+:} false; then :
23184 if ${ac_cv_search_dlopen+:} false; then :
23187 ac_cv_search_dlopen=no
23189 rm conftest.$ac_ext
23190 LIBS=$ac_func_search_save_LIBS
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23193 $as_echo "$ac_cv_search_dlopen" >&6; }
23194 ac_res=$ac_cv_search_dlopen
23195 if test "$ac_res" != no; then :
23196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23201 working_dir=`eval echo /opt/bacula/working`
23203 # Check whether --with-working-dir was given.
23204 if test "${with_working_dir+set}" = set; then :
23205 withval=$with_working_dir;
23206 if test "x$withval" != "xno" ; then
23207 working_dir=$withval
23218 # Check whether --with-archivedir was given.
23219 if test "${with_archivedir+set}" = set; then :
23220 withval=$with_archivedir;
23221 if test "x$withval" != "xno" ; then
23222 archivedir=$withval
23231 basename=`hostname`
23233 # Check whether --with-basename was given.
23234 if test "${with_basename+set}" = set; then :
23235 withval=$with_basename;
23236 if test "x$withval" != "xno" ; then
23246 hostname=`uname -n | cut -d '.' -f 1`
23247 if test x${hostname} = x ; then
23248 hostname="localhost"
23250 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23251 if test ! $? = 0; then
23252 hostname="localhost"
23255 # Check whether --with-hostname was given.
23256 if test "${with_hostname+set}" = set; then :
23257 withval=$with_hostname;
23258 if test "x$withval" != "xno" ; then
23269 scriptdir=`eval echo ${sysconfdir}`
23271 # Check whether --with-scriptdir was given.
23272 if test "${with_scriptdir+set}" = set; then :
23273 withval=$with_scriptdir;
23274 if test "x$withval" != "xno" ; then
23285 bsrdir=`eval echo /opt/bacula/bsr`
23287 # Check whether --with-bsrdir was given.
23288 if test "${with_bsrdir+set}" = set; then :
23289 withval=$with_bsrdir;
23290 if test "x$withval" != "xno" ; then
23300 logdir=`eval echo /opt/bacula/log`
23302 # Check whether --with-logdir was given.
23303 if test "${with_logdir+set}" = set; then :
23304 withval=$with_logdir;
23305 if test "x$withval" != "xno" ; then
23316 # ------------------------------------------
23317 # Where to place plugindir (plugin files)
23318 # ------------------------------------------
23319 plugindir=`eval echo ${libdir}`
23321 # Check whether --with-plugindir was given.
23322 if test "${with_plugindir+set}" = set; then :
23323 withval=$with_plugindir;
23324 if test "x$withval" != "xno" ; then
23334 dump_email=root@localhost
23336 # Check whether --with-dump-email was given.
23337 if test "${with_dump_email+set}" = set; then :
23338 withval=$with_dump_email;
23339 if test "x$withval" != "xno" ; then
23340 dump_email=$withval
23349 job_email=root@localhost
23351 # Check whether --with-job-email was given.
23352 if test "${with_job_email+set}" = set; then :
23353 withval=$with_job_email;
23354 if test "x$withval" != "xno" ; then
23364 smtp_host=localhost
23366 # Check whether --with-smtp_host was given.
23367 if test "${with_smtp_host+set}" = set; then :
23368 withval=$with_smtp_host;
23369 if test "x$withval" != "xno" ; then
23381 # Check whether --with-pid-dir was given.
23382 if test "${with_pid_dir+set}" = set; then :
23383 withval=$with_pid_dir;
23384 if test "x$withval" != "xno" ; then
23392 cat >>confdefs.h <<_ACEOF
23393 #define _PATH_BACULA_PIDDIR "$piddir"
23398 subsysdir=/var/run/subsys
23399 if test -d /var/run/subsys; then
23400 subsysdir=/var/run/subsys
23401 elif test -d /var/lock/subsys; then
23402 subsysdir=/var/lock/subsys
23404 subsysdir=/var/run/subsys
23407 # Check whether --with-subsys-dir was given.
23408 if test "${with_subsys_dir+set}" = set; then :
23409 withval=$with_subsys_dir;
23410 if test "x$withval" != "xno" ; then
23422 # Check whether --with-baseport was given.
23423 if test "${with_baseport+set}" = set; then :
23424 withval=$with_baseport;
23425 if test "x$withval" != "xno" ; then
23434 dir_port=`expr $baseport`
23435 fd_port=`expr $baseport + 1`
23436 sd_port=`expr $fd_port + 1`
23444 # Check whether --with-dir-password was given.
23445 if test "${with_dir_password+set}" = set; then :
23446 withval=$with_dir_password;
23447 if test "x$withval" != "xno" ; then
23448 dir_password=$withval
23455 if test "x$dir_password" = "x" ; then
23456 if test "x$OPENSSL" = "xnone" ; then
23457 key=`autoconf/randpass 33`
23459 key=`openssl rand -base64 33`
23466 # Check whether --with-fd-password was given.
23467 if test "${with_fd_password+set}" = set; then :
23468 withval=$with_fd_password;
23469 if test "x$withval" != "xno" ; then
23470 fd_password=$withval
23477 if test "x$fd_password" = "x" ; then
23478 if test "x$OPENSSL" = "xnone" ; then
23479 key=`autoconf/randpass 37`
23481 key=`openssl rand -base64 33`
23488 # Check whether --with-sd-password was given.
23489 if test "${with_sd_password+set}" = set; then :
23490 withval=$with_sd_password;
23491 if test "x$withval" != "xno" ; then
23492 sd_password=$withval
23499 if test "x$sd_password" = "x" ; then
23500 if test "x$OPENSSL" = "xnone" ; then
23501 key=`autoconf/randpass 41`
23503 key=`openssl rand -base64 33`
23510 # Check whether --with-mon-dir-password was given.
23511 if test "${with_mon_dir_password+set}" = set; then :
23512 withval=$with_mon_dir_password;
23513 if test "x$withval" != "xno" ; then
23514 mon_dir_password=$withval
23521 if test "x$mon_dir_password" = "x" ; then
23522 if test "x$OPENSSL" = "xnone" ; then
23523 key=`autoconf/randpass 33`
23525 key=`openssl rand -base64 33`
23527 mon_dir_password=$key
23532 # Check whether --with-mon-fd-password was given.
23533 if test "${with_mon_fd_password+set}" = set; then :
23534 withval=$with_mon_fd_password;
23535 if test "x$withval" != "xno" ; then
23536 mon_fd_password=$withval
23543 if test "x$mon_fd_password" = "x" ; then
23544 if test "x$OPENSSL" = "xnone" ; then
23545 key=`autoconf/randpass 37`
23547 key=`openssl rand -base64 33`
23549 mon_fd_password=$key
23554 # Check whether --with-mon-sd-password was given.
23555 if test "${with_mon_sd_password+set}" = set; then :
23556 withval=$with_mon_sd_password;
23557 if test "x$withval" != "xno" ; then
23558 mon_sd_password=$withval
23565 if test "x$mon_sd_password" = "x" ; then
23566 if test "x$OPENSSL" = "xnone" ; then
23567 key=`autoconf/randpass 41`
23569 key=`openssl rand -base64 33`
23571 mon_sd_password=$key
23583 # Check whether --with-db_name was given.
23584 if test "${with_db_name+set}" = set; then :
23585 withval=$with_db_name;
23586 if test "x$withval" != "x" ; then
23597 # Check whether --with-db_user was given.
23598 if test "${with_db_user+set}" = set; then :
23599 withval=$with_db_user;
23600 if test "x$withval" != "x" ; then
23611 # Check whether --with-db_password was given.
23612 if test "${with_db_password+set}" = set; then :
23613 withval=$with_db_password;
23614 if test "x$withval" != "x" ; then
23615 db_password=$withval
23625 # Check whether --with-db_port was given.
23626 if test "${with_db_port+set}" = set; then :
23627 withval=$with_db_port;
23628 if test "x$withval" != "x" ; then
23638 # Handle users and groups for each daemon
23642 # Check whether --with-dir_user was given.
23643 if test "${with_dir_user+set}" = set; then :
23644 withval=$with_dir_user;
23645 if test "x$withval" != "x" ; then
23655 # Check whether --with-dir_group was given.
23656 if test "${with_dir_group+set}" = set; then :
23657 withval=$with_dir_group;
23658 if test "x$withval" != "x" ; then
23668 # Check whether --with-sd_user was given.
23669 if test "${with_sd_user+set}" = set; then :
23670 withval=$with_sd_user;
23671 if test "x$withval" != "x" ; then
23681 # Check whether --with-sd_group was given.
23682 if test "${with_sd_group+set}" = set; then :
23683 withval=$with_sd_group;
23684 if test "x$withval" != "x" ; then
23694 # Check whether --with-fd_user was given.
23695 if test "${with_fd_user+set}" = set; then :
23696 withval=$with_fd_user;
23697 if test "x$withval" != "x" ; then
23707 # Check whether --with-fd_group was given.
23708 if test "${with_fd_group+set}" = set; then :
23709 withval=$with_fd_group;
23710 if test "x$withval" != "x" ; then
23727 # Check whether --with-sbin-perm was given.
23728 if test "${with_sbin_perm+set}" = set; then :
23729 withval=$with_sbin_perm;
23730 if test "x$withval" != "x" ; then
23740 support_batch_insert=yes
23741 # Check whether --enable-batch-insert was given.
23742 if test "${enable_batch_insert+set}" = set; then :
23743 enableval=$enable_batch_insert;
23744 if test x$enableval = xno; then
23745 support_batch_insert=no
23752 if test x$support_batch_insert = xyes; then
23754 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23763 $as_echo_n "checking for PostgreSQL support... " >&6; }
23765 # Check whether --with-postgresql was given.
23766 if test "${with_postgresql+set}" = set; then :
23767 withval=$with_postgresql;
23768 if test "$withval" != "no"; then
23769 if test "$withval" = "yes"; then
23770 PG_CONFIG=`which pg_config 2>/dev/null`
23771 if test -n "$PG_CONFIG"; then
23772 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23773 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23774 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23775 elif test -f /usr/local/include/libpq-fe.h; then
23776 POSTGRESQL_INCDIR=/usr/local/include
23777 if test -d /usr/local/lib64; then
23778 POSTGRESQL_LIBDIR=/usr/local/lib64
23780 POSTGRESQL_LIBDIR=/usr/local/lib
23782 POSTGRESQL_BINDIR=/usr/local/bin
23783 elif test -f /usr/include/libpq-fe.h; then
23784 POSTGRESQL_INCDIR=/usr/include
23785 if test -d /usr/lib64; then
23786 POSTGRESQL_LIBDIR=/usr/lib64
23788 POSTGRESQL_LIBDIR=/usr/lib
23790 POSTGRESQL_BINDIR=/usr/bin
23791 elif test -f /usr/include/pgsql/libpq-fe.h; then
23792 POSTGRESQL_INCDIR=/usr/include/pgsql
23793 if test -d /usr/lib64/pgsql; then
23794 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23796 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23798 POSTGRESQL_BINDIR=/usr/bin
23799 elif test -f /usr/include/postgresql/libpq-fe.h; then
23800 POSTGRESQL_INCDIR=/usr/include/postgresql
23801 if test -d /usr/lib64/postgresql; then
23802 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23804 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23806 POSTGRESQL_BINDIR=/usr/bin
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23809 $as_echo "no" >&6; }
23810 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23812 elif test -f $withval/include/libpq-fe.h; then
23813 POSTGRESQL_INCDIR=$withval/include
23814 POSTGRESQL_LIBDIR=$withval/lib
23815 POSTGRESQL_BINDIR=$withval/bin
23816 elif test -f $withval/include/postgresql/libpq-fe.h; then
23817 POSTGRESQL_INCDIR=$withval/include/postgresql
23818 if test -d $withval/lib64; then
23819 POSTGRESQL_LIBDIR=$withval/lib64
23821 POSTGRESQL_LIBDIR=$withval/lib
23823 POSTGRESQL_BINDIR=$withval/bin
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23826 $as_echo "no" >&6; }
23827 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23830 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23833 $as_echo "yes" >&6; }
23835 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23836 if test x$use_libtool != xno; then
23837 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23839 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23841 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23842 if test "x$ac_cv_func_crypt" = xyes; then :
23845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23846 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23847 if ${ac_cv_lib_crypt_crypt+:} false; then :
23848 $as_echo_n "(cached) " >&6
23850 ac_check_lib_save_LIBS=$LIBS
23851 LIBS="-lcrypt $LIBS"
23852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23853 /* end confdefs.h. */
23855 /* Override any GCC internal prototype to avoid an error.
23856 Use char because int might match the return type of a GCC
23857 builtin and then its argument prototype would still apply. */
23870 if ac_fn_c_try_link "$LINENO"; then :
23871 ac_cv_lib_crypt_crypt=yes
23873 ac_cv_lib_crypt_crypt=no
23875 rm -f core conftest.err conftest.$ac_objext \
23876 conftest$ac_exeext conftest.$ac_ext
23877 LIBS=$ac_check_lib_save_LIBS
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23880 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23881 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23882 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23887 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23888 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23890 if test -z "${db_backends}"; then
23891 db_backends="PostgreSQL"
23893 db_backends="${db_backends} PostgreSQL"
23895 if test -z "${DB_BACKENDS}"; then
23896 DB_BACKENDS="postgresql"
23898 DB_BACKENDS="${DB_BACKENDS} postgresql"
23901 if test "x$support_batch_insert" = "xyes"; then
23902 saved_LDFLAGS="${LDFLAGS}"
23903 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23904 saved_LIBS="${LIBS}"
23905 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23906 LIBS="${saved_LIBS} -lcrypt"
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23910 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23911 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23912 $as_echo_n "(cached) " >&6
23914 ac_check_lib_save_LIBS=$LIBS
23916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23917 /* end confdefs.h. */
23919 /* Override any GCC internal prototype to avoid an error.
23920 Use char because int might match the return type of a GCC
23921 builtin and then its argument prototype would still apply. */
23925 char PQisthreadsafe ();
23929 return PQisthreadsafe ();
23934 if ac_fn_c_try_link "$LINENO"; then :
23935 ac_cv_lib_pq_PQisthreadsafe=yes
23937 ac_cv_lib_pq_PQisthreadsafe=no
23939 rm -f core conftest.err conftest.$ac_objext \
23940 conftest$ac_exeext conftest.$ac_ext
23941 LIBS=$ac_check_lib_save_LIBS
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23944 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23945 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23947 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23952 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23953 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23954 $as_echo_n "(cached) " >&6
23956 ac_check_lib_save_LIBS=$LIBS
23958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23959 /* end confdefs.h. */
23961 /* Override any GCC internal prototype to avoid an error.
23962 Use char because int might match the return type of a GCC
23963 builtin and then its argument prototype would still apply. */
23967 char PQputCopyData ();
23971 return PQputCopyData ();
23976 if ac_fn_c_try_link "$LINENO"; then :
23977 ac_cv_lib_pq_PQputCopyData=yes
23979 ac_cv_lib_pq_PQputCopyData=no
23981 rm -f core conftest.err conftest.$ac_objext \
23982 conftest$ac_exeext conftest.$ac_ext
23983 LIBS=$ac_check_lib_save_LIBS
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23986 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23987 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23989 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23993 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23994 if test $support_batch_insert = yes ; then
23996 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23998 if test -z "${batch_insert_db_backends}"; then
23999 batch_insert_db_backends="PostgreSQL"
24001 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24006 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24008 echo "WARNING: Your PostgreSQL client library is too old to detect "
24009 echo "if it was compiled with --enable-thread-safety, consider to "
24010 echo "upgrade it in order to avoid problems with Batch insert mode"
24013 LDFLAGS="${saved_LDFLAGS}"
24014 LIBS="${saved_LIBS}"
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24018 $as_echo "no" >&6; }
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24024 $as_echo "no" >&6; }
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24036 $as_echo_n "checking for MySQL support... " >&6; }
24038 # Check whether --with-mysql was given.
24039 if test "${with_mysql+set}" = set; then :
24040 withval=$with_mysql;
24041 if test "$withval" != "no"; then
24042 if test "$withval" = "yes"; then
24044 # This code is very broken on older systems
24046 # MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24047 # if test "x${MYSQL_CONFIG}" != x; then
24048 # MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24049 # ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24050 # if test $? = 0 ; then
24051 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24052 # MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24054 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs | sed -e 's/.*-L//' -e 's/ .*//'`
24055 # MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24057 # elif test -f /usr/local/mysql/include/mysql/mysql.h; then
24058 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24059 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24060 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24061 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24062 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24064 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24066 MYSQL_BINDIR=/usr/local/mysql/bin
24067 elif test -f /usr/include/mysql/mysql.h; then
24068 MYSQL_INCDIR=/usr/include/mysql
24069 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24070 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24071 MYSQL_LIBDIR=/usr/lib64/mysql
24072 elif test -f /usr/lib64/libmysqlclient_r.a \
24073 -o -f /usr/lib64/libmysqlclient_r.so; then
24074 MYSQL_LIBDIR=/usr/lib64
24075 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24076 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24077 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24078 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24079 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24080 MYSQL_LIBDIR=/usr/lib/mysql
24082 MYSQL_LIBDIR=/usr/lib
24084 MYSQL_BINDIR=/usr/bin
24085 elif test -f /usr/include/mysql.h; then
24086 MYSQL_INCDIR=/usr/include
24087 if test -f /usr/lib64/libmysqlclient_r.a \
24088 -o -f /usr/lib64/libmysqlclient_r.so; then
24089 MYSQL_LIBDIR=/usr/lib64
24091 MYSQL_LIBDIR=/usr/lib
24093 MYSQL_BINDIR=/usr/bin
24094 elif test -f /usr/local/include/mysql/mysql.h; then
24095 MYSQL_INCDIR=/usr/local/include/mysql
24096 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24097 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24098 MYSQL_LIBDIR=/usr/local/lib64/mysql
24100 MYSQL_LIBDIR=/usr/local/lib/mysql
24102 MYSQL_BINDIR=/usr/local/bin
24103 elif test -f /usr/local/include/mysql.h; then
24104 MYSQL_INCDIR=/usr/local/include
24105 if test -f /usr/local/lib64/libmysqlclient_r.a \
24106 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24107 MYSQL_LIBDIR=/usr/local/lib64
24109 MYSQL_LIBDIR=/usr/local/lib
24111 MYSQL_BINDIR=/usr/local/bin
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24114 $as_echo "no" >&6; }
24115 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24118 if test -f $withval/include/mysql/mysql.h; then
24119 MYSQL_INCDIR=$withval/include/mysql
24120 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24121 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24122 MYSQL_LIBDIR=$withval/lib64/mysql
24123 elif test -f $withval/lib64/libmysqlclient_r.a \
24124 -o -f $withval/lib64/libmysqlclient_r.so; then
24125 MYSQL_LIBDIR=$withval/lib64
24126 elif test -f $withval/lib/libmysqlclient_r.a \
24127 -o -f $withval/lib/libmysqlclient_r.so; then
24128 MYSQL_LIBDIR=$withval/lib
24130 MYSQL_LIBDIR=$withval/lib/mysql
24132 MYSQL_BINDIR=$withval/bin
24133 elif test -f $withval/include/mysql.h; then
24134 MYSQL_INCDIR=$withval/include
24135 if test -f $withval/lib64/libmysqlclient_r.a \
24136 -o -f $withval/lib64/libmysqlclient_r.so; then
24137 MYSQL_LIBDIR=$withval/lib64
24139 MYSQL_LIBDIR=$withval/lib
24141 MYSQL_BINDIR=$withval/bin
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24144 $as_echo "no" >&6; }
24145 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24148 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24149 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24150 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24151 if test x$use_libtool != xno; then
24152 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24154 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24156 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24158 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24161 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24164 $as_echo "yes" >&6; }
24166 if test -z "${db_backends}" ; then
24167 db_backends="MySQL"
24169 db_backends="${db_backends} MySQL"
24171 if test -z "${DB_BACKENDS}" ; then
24172 DB_BACKENDS="mysql"
24174 DB_BACKENDS="${DB_BACKENDS} mysql"
24177 if test "x$support_batch_insert" = "xyes"; then
24178 saved_LDFLAGS="${LDFLAGS}"
24179 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24180 saved_LIBS="${LIBS}"
24181 LIBS="${saved_LIBS} -lz"
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24184 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24185 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24186 $as_echo_n "(cached) " >&6
24188 ac_check_lib_save_LIBS=$LIBS
24189 LIBS="-lmysqlclient_r $LIBS"
24190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24191 /* end confdefs.h. */
24193 /* Override any GCC internal prototype to avoid an error.
24194 Use char because int might match the return type of a GCC
24195 builtin and then its argument prototype would still apply. */
24199 char mysql_thread_safe ();
24203 return mysql_thread_safe ();
24208 if ac_fn_c_try_link "$LINENO"; then :
24209 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24211 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24213 rm -f core conftest.err conftest.$ac_objext \
24214 conftest$ac_exeext conftest.$ac_ext
24215 LIBS=$ac_check_lib_save_LIBS
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24218 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24219 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24221 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24225 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24226 if test -z "${batch_insert_db_backends}"; then
24227 batch_insert_db_backends="MySQL"
24229 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24233 LDFLAGS="${saved_LDFLAGS}"
24234 LIBS="${saved_LIBS}"
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24238 $as_echo "no" >&6; }
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24244 $as_echo "no" >&6; }
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24250 $as_echo_n "checking for MySQL embedded support... " >&6; }
24252 # Check whether --with-embedded-mysql was given.
24253 if test "${with_embedded_mysql+set}" = set; then :
24254 withval=$with_embedded_mysql;
24255 if test "$withval" != "no"; then
24256 if test "$withval" = "yes"; then
24257 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24258 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24259 if test -d /usr/local/mysql/lib64/mysql; then
24260 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24262 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24264 MYSQL_BINDIR=/usr/local/mysql/bin
24265 elif test -f /usr/include/mysql/mysql.h; then
24266 MYSQL_INCDIR=/usr/include/mysql
24267 if test -d /usr/lib64/mysql; then
24268 MYSQL_LIBDIR=/usr/lib64/mysql
24270 MYSQL_LIBDIR=/usr/lib/mysql
24272 MYSQL_BINDIR=/usr/bin
24273 elif test -f /usr/include/mysql.h; then
24274 MYSQL_INCDIR=/usr/include
24275 if test -d /usr/lib64; then
24276 MYSQL_LIBDIR=/usr/lib64
24278 MYSQL_LIBDIR=/usr/lib
24280 MYSQL_BINDIR=/usr/bin
24281 elif test -f /usr/local/include/mysql/mysql.h; then
24282 MYSQL_INCDIR=/usr/local/include/mysql
24283 if test -d /usr/local/lib64/mysql; then
24284 MYSQL_LIBDIR=/usr/local/lib64/mysql
24286 MYSQL_LIBDIR=/usr/local/lib/mysql
24288 MYSQL_BINDIR=/usr/local/bin
24289 elif test -f /usr/local/include/mysql.h; then
24290 MYSQL_INCDIR=/usr/local/include
24291 if test -d /usr/local/lib64; then
24292 MYSQL_LIBDIR=/usr/local/lib64
24294 MYSQL_LIBDIR=/usr/local/lib
24296 MYSQL_BINDIR=/usr/local/bin
24298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24299 $as_echo "no" >&6; }
24300 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24303 if test -f $withval/include/mysql/mysql.h; then
24304 MYSQL_INCDIR=$withval/include/mysql
24305 if test -d $withval/lib64/mysql; then
24306 MYSQL_LIBDIR=$withval/lib64/mysql
24308 MYSQL_LIBDIR=$withval/lib/mysql
24310 MYSQL_BINDIR=$withval/bin
24311 elif test -f $withval/include/mysql.h; then
24312 MYSQL_INCDIR=$withval/include
24313 if test -d $withval/lib64; then
24314 MYSQL_LIBDIR=$withval/lib64
24316 MYSQL_LIBDIR=$withval/lib
24318 MYSQL_BINDIR=$withval/bin
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24321 $as_echo "no" >&6; }
24322 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24325 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24326 if test x$use_libtool != xno; then
24327 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24329 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24331 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24332 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24335 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24338 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24341 $as_echo "yes" >&6; }
24343 if test -z "${db_backends}"; then
24344 db_backends="MySQL"
24346 db_backends="${db_backends} MySQL"
24348 if test -z "${DB_BACKENDS}"; then
24349 DB_BACKENDS="mysql"
24351 DB_BACKENDS="${DB_BACKENDS} mysql"
24354 if test "x$support_batch_insert" = "xyes"; then
24355 saved_LDFLAGS="${LDFLAGS}"
24356 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24357 saved_LIBS="${LIBS}"
24358 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24361 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24362 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24363 $as_echo_n "(cached) " >&6
24365 ac_check_lib_save_LIBS=$LIBS
24366 LIBS="-lmysqlclient_r $LIBS"
24367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24368 /* end confdefs.h. */
24370 /* Override any GCC internal prototype to avoid an error.
24371 Use char because int might match the return type of a GCC
24372 builtin and then its argument prototype would still apply. */
24376 char mysql_thread_safe ();
24380 return mysql_thread_safe ();
24385 if ac_fn_c_try_link "$LINENO"; then :
24386 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24388 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24390 rm -f core conftest.err conftest.$ac_objext \
24391 conftest$ac_exeext conftest.$ac_ext
24392 LIBS=$ac_check_lib_save_LIBS
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24395 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24396 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24398 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24402 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24403 if test -z "${batch_insert_db_backends}"; then
24404 batch_insert_db_backends="MySQL"
24406 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24410 LDFLAGS="${saved_LDFLAGS}"
24411 LIBS="${saved_LIBS}"
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24415 $as_echo "no" >&6; }
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24421 $as_echo "no" >&6; }
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24434 $as_echo_n "checking for SQLite3 support... " >&6; }
24436 # Check whether --with-sqlite3 was given.
24437 if test "${with_sqlite3+set}" = set; then :
24438 withval=$with_sqlite3;
24439 if test "$withval" != "no"; then
24440 if test "$withval" = "yes"; then
24441 if test -f /usr/local/include/sqlite3.h; then
24442 SQLITE_INCDIR=/usr/local/include
24443 if test -d /usr/local/lib64; then
24444 SQLITE_LIBDIR=/usr/local/lib64
24446 SQLITE_LIBDIR=/usr/local/lib
24448 SQLITE_BINDIR=/usr/local/bin
24449 elif test -f /usr/include/sqlite3.h; then
24450 SQLITE_INCDIR=/usr/include
24451 if test -d /usr/lib64; then
24452 SQLITE_LIBDIR=/usr/lib64
24454 SQLITE_LIBDIR=/usr/lib
24456 SQLITE_BINDIR=/usr/bin
24457 elif test -f $prefix/include/sqlite3.h; then
24458 SQLITE_INCDIR=$prefix/include
24459 if test -d $prefix/lib64; then
24460 SQLITE_LIBDIR=$prefix/lib64
24462 SQLITE_LIBDIR=$prefix/lib
24464 SQLITE_BINDIR=$prefix/bin
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24467 $as_echo "no" >&6; }
24468 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24471 if test -f $withval/sqlite3.h; then
24472 SQLITE_INCDIR=$withval
24473 SQLITE_LIBDIR=$withval
24474 SQLITE_BINDIR=$withval
24475 elif test -f $withval/include/sqlite3.h; then
24476 SQLITE_INCDIR=$withval/include
24477 if test -d $withval/lib64; then
24478 SQLITE_LIBDIR=$withval/lib64
24480 SQLITE_LIBDIR=$withval/lib
24482 SQLITE_BINDIR=$withval/bin
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24485 $as_echo "no" >&6; }
24486 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24489 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24490 if test x$use_libtool != xno; then
24491 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24493 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24495 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24496 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24499 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24502 $as_echo "yes" >&6; }
24504 if test -z "${db_backends}"; then
24505 db_backends="SQLite3"
24507 db_backends="${db_backends} SQLite3"
24509 if test -z "${DB_BACKENDS}"; then
24510 DB_BACKENDS="sqlite3"
24512 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24515 if test "x$support_batch_insert" = "xyes"; then
24516 saved_LDFLAGS="${LDFLAGS}"
24517 LDFLAGS="${saved_LDFLAGS} -L$SQLITE_LIBDIR"
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24520 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24521 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24522 $as_echo_n "(cached) " >&6
24524 ac_check_lib_save_LIBS=$LIBS
24525 LIBS="-lsqlite3 $LIBS"
24526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24527 /* end confdefs.h. */
24529 /* Override any GCC internal prototype to avoid an error.
24530 Use char because int might match the return type of a GCC
24531 builtin and then its argument prototype would still apply. */
24535 char sqlite3_threadsafe ();
24539 return sqlite3_threadsafe ();
24544 if ac_fn_c_try_link "$LINENO"; then :
24545 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24547 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24549 rm -f core conftest.err conftest.$ac_objext \
24550 conftest$ac_exeext conftest.$ac_ext
24551 LIBS=$ac_check_lib_save_LIBS
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24554 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24555 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24557 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24561 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24562 if test -z "${batch_insert_db_backends}"; then
24563 batch_insert_db_backends="SQLite3"
24565 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24569 LDFLAGS="${saved_LDFLAGS}"
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24573 $as_echo "no" >&6; }
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24579 $as_echo "no" >&6; }
24589 if test -z "${batch_insert_db_backends}"; then
24590 batch_insert_db_backends="None"
24593 if test "x${db_backends}" = "x" ; then
24596 echo "You have not specified either --enable-client-only or one of the"
24597 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24598 echo "This is not permitted. Please reconfigure."
24600 echo "Aborting the configuration ..."
24606 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24608 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24609 if test x$use_libtool = xno; then
24610 SHARED_CATALOG_TARGETS=""
24612 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24616 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24618 if test x$use_libtool = xno; then
24621 echo "You have specified two or more of the"
24622 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24623 echo "This is not permitted when not using libtool Please reconfigure."
24625 echo "Aborting the configuration ..."
24631 SHARED_CATALOG_TARGETS=""
24632 for db_type in ${DB_BACKENDS}
24634 if test -z "${SHARED_CATALOG_TARGETS}"; then
24635 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24637 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24643 if test x$use_libtool = xyes; then
24653 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24656 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24657 if test -z "$CCOPTS"; then
24658 CCOPTS='-g -O2 -Wall'
24665 largefile_support="no"
24667 # Check whether --enable-largefile was given.
24668 if test "${enable_largefile+set}" = set; then :
24669 enableval=$enable_largefile;
24672 if test "$enable_largefile" != no; then
24673 if test -n "$ac_tool_prefix"; then
24674 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24675 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24677 $as_echo_n "checking for $ac_word... " >&6; }
24678 if ${ac_cv_prog_GETCONF+:} false; then :
24679 $as_echo_n "(cached) " >&6
24681 if test -n "$GETCONF"; then
24682 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24685 for as_dir in $PATH
24688 test -z "$as_dir" && as_dir=.
24689 for ac_exec_ext in '' $ac_executable_extensions; do
24690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24691 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24701 GETCONF=$ac_cv_prog_GETCONF
24702 if test -n "$GETCONF"; then
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24704 $as_echo "$GETCONF" >&6; }
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24707 $as_echo "no" >&6; }
24712 if test -z "$ac_cv_prog_GETCONF"; then
24713 ac_ct_GETCONF=$GETCONF
24714 # Extract the first word of "getconf", so it can be a program name with args.
24715 set dummy getconf; ac_word=$2
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24717 $as_echo_n "checking for $ac_word... " >&6; }
24718 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24719 $as_echo_n "(cached) " >&6
24721 if test -n "$ac_ct_GETCONF"; then
24722 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24725 for as_dir in $PATH
24728 test -z "$as_dir" && as_dir=.
24729 for ac_exec_ext in '' $ac_executable_extensions; do
24730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24731 ac_cv_prog_ac_ct_GETCONF="getconf"
24732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24741 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24742 if test -n "$ac_ct_GETCONF"; then
24743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24744 $as_echo "$ac_ct_GETCONF" >&6; }
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24747 $as_echo "no" >&6; }
24750 if test "x$ac_ct_GETCONF" = x; then
24753 case $cross_compiling:$ac_tool_warned in
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24757 ac_tool_warned=yes ;;
24759 GETCONF=$ac_ct_GETCONF
24762 GETCONF="$ac_cv_prog_GETCONF"
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24766 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24767 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24768 $as_echo_n "(cached) " >&6
24770 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24771 ac_cv_sys_largefile_CFLAGS=no
24773 # IRIX 6.2 and later require cc -n32.
24774 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24775 if test "$GCC" != yes; then
24776 ac_cv_sys_largefile_CFLAGS=-n32
24779 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24781 /* end confdefs.h. */
24791 if ac_fn_c_try_link "$LINENO"; then :
24794 ac_cv_sys_largefile_CFLAGS=no
24796 rm -f core conftest.err conftest.$ac_objext \
24797 conftest$ac_exeext conftest.$ac_ext
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24803 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24805 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24806 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24807 $as_echo_n "(cached) " >&6
24809 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24810 ac_cv_sys_largefile_LDFLAGS=no
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24815 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24817 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24818 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24819 $as_echo_n "(cached) " >&6
24821 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24822 ac_cv_sys_largefile_LIBS=no
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24827 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24829 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24832 -D_FILE_OFFSET_BITS=*) ;;
24833 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24834 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24839 case "$CPPFLAGS" in
24840 '') CPPFLAGS="$ac_flag" ;;
24841 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24849 '') CFLAGS="$ac_flag" ;;
24850 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24855 case "$ac_cv_sys_largefile_LDFLAGS" in
24859 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24860 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24863 case "$ac_cv_sys_largefile_LIBS" in
24867 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24868 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24872 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24873 if ${ac_cv_sys_file_offset_bits+:} false; then :
24874 $as_echo_n "(cached) " >&6
24876 ac_cv_sys_file_offset_bits=no
24877 ac_cv_sys_file_offset_bits=64
24878 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24880 -D_FILE_OFFSET_BITS)
24881 ac_cv_sys_file_offset_bits=1 ;;
24882 -D_FILE_OFFSET_BITS=*)
24883 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24889 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24890 if test "$ac_cv_sys_file_offset_bits" != no; then
24892 cat >>confdefs.h <<_ACEOF
24893 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24898 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24899 if ${ac_cv_sys_largefile_source+:} false; then :
24900 $as_echo_n "(cached) " >&6
24902 ac_cv_sys_largefile_source=no
24903 ac_cv_sys_largefile_source=1
24904 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24906 -D_LARGEFILE_SOURCE)
24907 ac_cv_sys_largefile_source=1 ;;
24908 -D_LARGEFILE_SOURCE=*)
24909 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24915 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24916 if test "$ac_cv_sys_largefile_source" != no; then
24918 cat >>confdefs.h <<_ACEOF
24919 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24924 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24925 if ${ac_cv_sys_large_files+:} false; then :
24926 $as_echo_n "(cached) " >&6
24928 ac_cv_sys_large_files=no
24929 ac_cv_sys_large_files=1
24930 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24933 ac_cv_sys_large_files=1 ;;
24935 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24941 $as_echo "$ac_cv_sys_large_files" >&6; }
24942 if test "$ac_cv_sys_large_files" != no; then
24944 cat >>confdefs.h <<_ACEOF
24945 #define _LARGE_FILES $ac_cv_sys_large_files
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24953 $as_echo_n "checking for X... " >&6; }
24956 # Check whether --with-x was given.
24957 if test "${with_x+set}" = set; then :
24961 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24962 if test "x$with_x" = xno; then
24963 # The user explicitly disabled X.
24966 case $x_includes,$x_libraries in #(
24967 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24968 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24969 $as_echo_n "(cached) " >&6
24971 # One or both of the vars are not set, and there is no cached value.
24972 ac_x_includes=no ac_x_libraries=no
24973 rm -f -r conftest.dir
24974 if mkdir conftest.dir; then
24976 cat >Imakefile <<'_ACEOF'
24978 @echo incroot='${INCROOT}'
24980 @echo usrlibdir='${USRLIBDIR}'
24982 @echo libdir='${LIBDIR}'
24984 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24985 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24986 for ac_var in incroot usrlibdir libdir; do
24987 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24989 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24990 for ac_extension in a so sl dylib la dll; do
24991 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24992 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24993 ac_im_usrlibdir=$ac_im_libdir; break
24996 # Screen out bogus values from the imake configuration. They are
24997 # bogus both because they are the default anyway, and because
24998 # using them would break gcc on systems where it needs fixed includes.
24999 case $ac_im_incroot in
25000 /usr/include) ac_x_includes= ;;
25001 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25003 case $ac_im_usrlibdir in
25004 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25005 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25009 rm -f -r conftest.dir
25012 # Standard set of common directories for X headers.
25013 # Check X11 before X11Rn because it is often a symlink to the current release.
25027 /usr/local/X11/include
25028 /usr/local/X11R7/include
25029 /usr/local/X11R6/include
25030 /usr/local/X11R5/include
25031 /usr/local/X11R4/include
25033 /usr/local/include/X11
25034 /usr/local/include/X11R7
25035 /usr/local/include/X11R6
25036 /usr/local/include/X11R5
25037 /usr/local/include/X11R4
25041 /usr/XFree86/include/X11
25045 /usr/unsupported/include
25046 /usr/athena/include
25047 /usr/local/x11r5/include
25048 /usr/lpp/Xamples/include
25050 /usr/openwin/include
25051 /usr/openwin/share/include'
25053 if test "$ac_x_includes" = no; then
25054 # Guess where to find include files, by looking for Xlib.h.
25055 # First, try using that file with no special directory specified.
25056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25057 /* end confdefs.h. */
25058 #include <X11/Xlib.h>
25060 if ac_fn_c_try_cpp "$LINENO"; then :
25061 # We can compile using X headers with no special include directory.
25064 for ac_dir in $ac_x_header_dirs; do
25065 if test -r "$ac_dir/X11/Xlib.h"; then
25066 ac_x_includes=$ac_dir
25071 rm -f conftest.err conftest.i conftest.$ac_ext
25072 fi # $ac_x_includes = no
25074 if test "$ac_x_libraries" = no; then
25075 # Check for the libraries.
25076 # See if we find them without any special options.
25077 # Don't add to $LIBS permanently.
25080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25081 /* end confdefs.h. */
25082 #include <X11/Xlib.h>
25091 if ac_fn_c_try_link "$LINENO"; then :
25093 # We can link X programs with no special library path.
25097 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25099 # Don't even attempt the hair of trying to link an X program!
25100 for ac_extension in a so sl dylib la dll; do
25101 if test -r "$ac_dir/libX11.$ac_extension"; then
25102 ac_x_libraries=$ac_dir
25108 rm -f core conftest.err conftest.$ac_objext \
25109 conftest$ac_exeext conftest.$ac_ext
25110 fi # $ac_x_libraries = no
25112 case $ac_x_includes,$ac_x_libraries in #(
25113 no,* | *,no | *\'*)
25114 # Didn't find X, or a directory has "'" in its name.
25115 ac_cv_have_x="have_x=no";; #(
25117 # Record where we found X for the cache.
25118 ac_cv_have_x="have_x=yes\
25119 ac_x_includes='$ac_x_includes'\
25120 ac_x_libraries='$ac_x_libraries'"
25126 eval "$ac_cv_have_x"
25129 if test "$have_x" != yes; then
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25131 $as_echo "$have_x" >&6; }
25134 # If each of the values was on the command line, it overrides each guess.
25135 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25136 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25137 # Update the cache value to reflect the command line values.
25138 ac_cv_have_x="have_x=yes\
25139 ac_x_includes='$x_includes'\
25140 ac_x_libraries='$x_libraries'"
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25142 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25145 if test "$no_x" = yes; then
25146 # Not all programs may use this symbol, but it does not hurt to define it.
25148 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25150 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25152 if test -n "$x_includes"; then
25153 X_CFLAGS="$X_CFLAGS -I$x_includes"
25156 # It would also be nice to do this for all -L options, not just this one.
25157 if test -n "$x_libraries"; then
25158 X_LIBS="$X_LIBS -L$x_libraries"
25159 # For Solaris; some versions of Sun CC require a space after -R and
25160 # others require no space. Words are not sufficient . . . .
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25162 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25163 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25164 ac_xsave_c_werror_flag=$ac_c_werror_flag
25165 ac_c_werror_flag=yes
25166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25167 /* end confdefs.h. */
25177 if ac_fn_c_try_link "$LINENO"; then :
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25179 $as_echo "no" >&6; }
25180 X_LIBS="$X_LIBS -R$x_libraries"
25182 LIBS="$ac_xsave_LIBS -R $x_libraries"
25183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25184 /* end confdefs.h. */
25194 if ac_fn_c_try_link "$LINENO"; then :
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25196 $as_echo "yes" >&6; }
25197 X_LIBS="$X_LIBS -R $x_libraries"
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25200 $as_echo "neither works" >&6; }
25202 rm -f core conftest.err conftest.$ac_objext \
25203 conftest$ac_exeext conftest.$ac_ext
25205 rm -f core conftest.err conftest.$ac_objext \
25206 conftest$ac_exeext conftest.$ac_ext
25207 ac_c_werror_flag=$ac_xsave_c_werror_flag
25208 LIBS=$ac_xsave_LIBS
25211 # Check for system-dependent libraries X programs must link with.
25212 # Do this before checking for the system-independent R6 libraries
25213 # (-lICE), since we may need -lsocket or whatever for X linking.
25215 if test "$ISC" = yes; then
25216 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25218 # Martyn Johnson says this is needed for Ultrix, if the X
25219 # libraries were built with DECnet support. And Karl Berry says
25220 # the Alpha needs dnet_stub (dnet does not exist).
25221 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25223 /* end confdefs.h. */
25225 /* Override any GCC internal prototype to avoid an error.
25226 Use char because int might match the return type of a GCC
25227 builtin and then its argument prototype would still apply. */
25231 char XOpenDisplay ();
25235 return XOpenDisplay ();
25240 if ac_fn_c_try_link "$LINENO"; then :
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25244 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25245 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25246 $as_echo_n "(cached) " >&6
25248 ac_check_lib_save_LIBS=$LIBS
25249 LIBS="-ldnet $LIBS"
25250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25251 /* end confdefs.h. */
25253 /* Override any GCC internal prototype to avoid an error.
25254 Use char because int might match the return type of a GCC
25255 builtin and then its argument prototype would still apply. */
25263 return dnet_ntoa ();
25268 if ac_fn_c_try_link "$LINENO"; then :
25269 ac_cv_lib_dnet_dnet_ntoa=yes
25271 ac_cv_lib_dnet_dnet_ntoa=no
25273 rm -f core conftest.err conftest.$ac_objext \
25274 conftest$ac_exeext conftest.$ac_ext
25275 LIBS=$ac_check_lib_save_LIBS
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25278 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25279 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25280 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25283 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25285 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25286 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25287 $as_echo_n "(cached) " >&6
25289 ac_check_lib_save_LIBS=$LIBS
25290 LIBS="-ldnet_stub $LIBS"
25291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25292 /* end confdefs.h. */
25294 /* Override any GCC internal prototype to avoid an error.
25295 Use char because int might match the return type of a GCC
25296 builtin and then its argument prototype would still apply. */
25304 return dnet_ntoa ();
25309 if ac_fn_c_try_link "$LINENO"; then :
25310 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25312 ac_cv_lib_dnet_stub_dnet_ntoa=no
25314 rm -f core conftest.err conftest.$ac_objext \
25315 conftest$ac_exeext conftest.$ac_ext
25316 LIBS=$ac_check_lib_save_LIBS
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25319 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25320 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25321 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25326 rm -f core conftest.err conftest.$ac_objext \
25327 conftest$ac_exeext conftest.$ac_ext
25328 LIBS="$ac_xsave_LIBS"
25330 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25331 # to get the SysV transport functions.
25332 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25334 # The nsl library prevents programs from opening the X display
25335 # on Irix 5.2, according to T.E. Dickey.
25336 # The functions gethostbyname, getservbyname, and inet_addr are
25337 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25338 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25339 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25343 if test $ac_cv_func_gethostbyname = no; then
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25345 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25346 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25347 $as_echo_n "(cached) " >&6
25349 ac_check_lib_save_LIBS=$LIBS
25351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25352 /* end confdefs.h. */
25354 /* Override any GCC internal prototype to avoid an error.
25355 Use char because int might match the return type of a GCC
25356 builtin and then its argument prototype would still apply. */
25360 char gethostbyname ();
25364 return gethostbyname ();
25369 if ac_fn_c_try_link "$LINENO"; then :
25370 ac_cv_lib_nsl_gethostbyname=yes
25372 ac_cv_lib_nsl_gethostbyname=no
25374 rm -f core conftest.err conftest.$ac_objext \
25375 conftest$ac_exeext conftest.$ac_ext
25376 LIBS=$ac_check_lib_save_LIBS
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25379 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25380 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25381 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25384 if test $ac_cv_lib_nsl_gethostbyname = no; then
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25386 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25387 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25388 $as_echo_n "(cached) " >&6
25390 ac_check_lib_save_LIBS=$LIBS
25392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25393 /* end confdefs.h. */
25395 /* Override any GCC internal prototype to avoid an error.
25396 Use char because int might match the return type of a GCC
25397 builtin and then its argument prototype would still apply. */
25401 char gethostbyname ();
25405 return gethostbyname ();
25410 if ac_fn_c_try_link "$LINENO"; then :
25411 ac_cv_lib_bsd_gethostbyname=yes
25413 ac_cv_lib_bsd_gethostbyname=no
25415 rm -f core conftest.err conftest.$ac_objext \
25416 conftest$ac_exeext conftest.$ac_ext
25417 LIBS=$ac_check_lib_save_LIBS
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25420 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25421 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25422 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25428 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25429 # socket/setsockopt and other routines are undefined under SCO ODT
25430 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25431 # on later versions), says Simon Leinen: it contains gethostby*
25432 # variants that don't use the name server (or something). -lsocket
25433 # must be given before -lnsl if both are needed. We assume that
25434 # if connect needs -lnsl, so does gethostbyname.
25435 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25436 if test "x$ac_cv_func_connect" = xyes; then :
25440 if test $ac_cv_func_connect = no; then
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25442 $as_echo_n "checking for connect in -lsocket... " >&6; }
25443 if ${ac_cv_lib_socket_connect+:} false; then :
25444 $as_echo_n "(cached) " >&6
25446 ac_check_lib_save_LIBS=$LIBS
25447 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25449 /* end confdefs.h. */
25451 /* Override any GCC internal prototype to avoid an error.
25452 Use char because int might match the return type of a GCC
25453 builtin and then its argument prototype would still apply. */
25466 if ac_fn_c_try_link "$LINENO"; then :
25467 ac_cv_lib_socket_connect=yes
25469 ac_cv_lib_socket_connect=no
25471 rm -f core conftest.err conftest.$ac_objext \
25472 conftest$ac_exeext conftest.$ac_ext
25473 LIBS=$ac_check_lib_save_LIBS
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25476 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25477 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25478 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25483 # Guillermo Gomez says -lposix is necessary on A/UX.
25484 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25485 if test "x$ac_cv_func_remove" = xyes; then :
25489 if test $ac_cv_func_remove = no; then
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25491 $as_echo_n "checking for remove in -lposix... " >&6; }
25492 if ${ac_cv_lib_posix_remove+:} false; then :
25493 $as_echo_n "(cached) " >&6
25495 ac_check_lib_save_LIBS=$LIBS
25496 LIBS="-lposix $LIBS"
25497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25498 /* end confdefs.h. */
25500 /* Override any GCC internal prototype to avoid an error.
25501 Use char because int might match the return type of a GCC
25502 builtin and then its argument prototype would still apply. */
25515 if ac_fn_c_try_link "$LINENO"; then :
25516 ac_cv_lib_posix_remove=yes
25518 ac_cv_lib_posix_remove=no
25520 rm -f core conftest.err conftest.$ac_objext \
25521 conftest$ac_exeext conftest.$ac_ext
25522 LIBS=$ac_check_lib_save_LIBS
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25525 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25526 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25527 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25532 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25533 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25534 if test "x$ac_cv_func_shmat" = xyes; then :
25538 if test $ac_cv_func_shmat = no; then
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25540 $as_echo_n "checking for shmat in -lipc... " >&6; }
25541 if ${ac_cv_lib_ipc_shmat+:} false; then :
25542 $as_echo_n "(cached) " >&6
25544 ac_check_lib_save_LIBS=$LIBS
25546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25547 /* end confdefs.h. */
25549 /* Override any GCC internal prototype to avoid an error.
25550 Use char because int might match the return type of a GCC
25551 builtin and then its argument prototype would still apply. */
25564 if ac_fn_c_try_link "$LINENO"; then :
25565 ac_cv_lib_ipc_shmat=yes
25567 ac_cv_lib_ipc_shmat=no
25569 rm -f core conftest.err conftest.$ac_objext \
25570 conftest$ac_exeext conftest.$ac_ext
25571 LIBS=$ac_check_lib_save_LIBS
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25574 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25575 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25576 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25582 # Check for libraries that X11R6 Xt/Xaw programs need.
25583 ac_save_LDFLAGS=$LDFLAGS
25584 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25585 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25586 # check for ICE first), but we must link in the order -lSM -lICE or
25587 # we get undefined symbols. So assume we have SM if we have ICE.
25588 # These have to be linked with before -lX11, unlike the other
25589 # libraries we check for below, so use a different variable.
25590 # John Interrante, Karl Berry
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25592 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25593 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25594 $as_echo_n "(cached) " >&6
25596 ac_check_lib_save_LIBS=$LIBS
25597 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25599 /* end confdefs.h. */
25601 /* Override any GCC internal prototype to avoid an error.
25602 Use char because int might match the return type of a GCC
25603 builtin and then its argument prototype would still apply. */
25607 char IceConnectionNumber ();
25611 return IceConnectionNumber ();
25616 if ac_fn_c_try_link "$LINENO"; then :
25617 ac_cv_lib_ICE_IceConnectionNumber=yes
25619 ac_cv_lib_ICE_IceConnectionNumber=no
25621 rm -f core conftest.err conftest.$ac_objext \
25622 conftest$ac_exeext conftest.$ac_ext
25623 LIBS=$ac_check_lib_save_LIBS
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25626 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25627 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25628 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25631 LDFLAGS=$ac_save_LDFLAGS
25669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25670 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25671 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25672 cat >>confdefs.h <<_ACEOF
25673 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25681 $as_echo_n "checking for ANSI C header files... " >&6; }
25682 if ${ac_cv_header_stdc+:} false; then :
25683 $as_echo_n "(cached) " >&6
25685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25686 /* end confdefs.h. */
25687 #include <stdlib.h>
25688 #include <stdarg.h>
25689 #include <string.h>
25700 if ac_fn_c_try_compile "$LINENO"; then :
25701 ac_cv_header_stdc=yes
25703 ac_cv_header_stdc=no
25705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25707 if test $ac_cv_header_stdc = yes; then
25708 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25710 /* end confdefs.h. */
25711 #include <string.h>
25714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25715 $EGREP "memchr" >/dev/null 2>&1; then :
25718 ac_cv_header_stdc=no
25724 if test $ac_cv_header_stdc = yes; then
25725 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25727 /* end confdefs.h. */
25728 #include <stdlib.h>
25731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25732 $EGREP "free" >/dev/null 2>&1; then :
25735 ac_cv_header_stdc=no
25741 if test $ac_cv_header_stdc = yes; then
25742 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25743 if test "$cross_compiling" = yes; then :
25746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25747 /* end confdefs.h. */
25749 #include <stdlib.h>
25750 #if ((' ' & 0x0FF) == 0x020)
25751 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25752 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25754 # define ISLOWER(c) \
25755 (('a' <= (c) && (c) <= 'i') \
25756 || ('j' <= (c) && (c) <= 'r') \
25757 || ('s' <= (c) && (c) <= 'z'))
25758 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25761 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25766 for (i = 0; i < 256; i++)
25767 if (XOR (islower (i), ISLOWER (i))
25768 || toupper (i) != TOUPPER (i))
25773 if ac_fn_c_try_run "$LINENO"; then :
25776 ac_cv_header_stdc=no
25778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25779 conftest.$ac_objext conftest.beam conftest.$ac_ext
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25785 $as_echo "$ac_cv_header_stdc" >&6; }
25786 if test $ac_cv_header_stdc = yes; then
25788 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25793 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25794 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25795 $as_echo_n "(cached) " >&6
25797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25798 /* end confdefs.h. */
25799 #include <sys/types.h>
25803 return makedev(0, 0);
25808 if ac_fn_c_try_link "$LINENO"; then :
25809 ac_cv_header_sys_types_h_makedev=yes
25811 ac_cv_header_sys_types_h_makedev=no
25813 rm -f core conftest.err conftest.$ac_objext \
25814 conftest$ac_exeext conftest.$ac_ext
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25818 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25820 if test $ac_cv_header_sys_types_h_makedev = no; then
25821 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25822 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25824 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25830 if test $ac_cv_header_sys_mkdev_h = no; then
25831 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25832 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25834 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25842 ac_header_dirent=no
25843 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25844 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25846 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25847 if eval \${$as_ac_Header+:} false; then :
25848 $as_echo_n "(cached) " >&6
25850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25851 /* end confdefs.h. */
25852 #include <sys/types.h>
25864 if ac_fn_c_try_compile "$LINENO"; then :
25865 eval "$as_ac_Header=yes"
25867 eval "$as_ac_Header=no"
25869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25871 eval ac_res=\$$as_ac_Header
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25873 $as_echo "$ac_res" >&6; }
25874 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25875 cat >>confdefs.h <<_ACEOF
25876 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25879 ac_header_dirent=$ac_hdr; break
25883 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25884 if test $ac_header_dirent = dirent.h; then
25885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25886 $as_echo_n "checking for library containing opendir... " >&6; }
25887 if ${ac_cv_search_opendir+:} false; then :
25888 $as_echo_n "(cached) " >&6
25890 ac_func_search_save_LIBS=$LIBS
25891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25892 /* end confdefs.h. */
25894 /* Override any GCC internal prototype to avoid an error.
25895 Use char because int might match the return type of a GCC
25896 builtin and then its argument prototype would still apply. */
25909 for ac_lib in '' dir; do
25910 if test -z "$ac_lib"; then
25911 ac_res="none required"
25914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25916 if ac_fn_c_try_link "$LINENO"; then :
25917 ac_cv_search_opendir=$ac_res
25919 rm -f core conftest.err conftest.$ac_objext \
25921 if ${ac_cv_search_opendir+:} false; then :
25925 if ${ac_cv_search_opendir+:} false; then :
25928 ac_cv_search_opendir=no
25930 rm conftest.$ac_ext
25931 LIBS=$ac_func_search_save_LIBS
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25934 $as_echo "$ac_cv_search_opendir" >&6; }
25935 ac_res=$ac_cv_search_opendir
25936 if test "$ac_res" != no; then :
25937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25943 $as_echo_n "checking for library containing opendir... " >&6; }
25944 if ${ac_cv_search_opendir+:} false; then :
25945 $as_echo_n "(cached) " >&6
25947 ac_func_search_save_LIBS=$LIBS
25948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25949 /* end confdefs.h. */
25951 /* Override any GCC internal prototype to avoid an error.
25952 Use char because int might match the return type of a GCC
25953 builtin and then its argument prototype would still apply. */
25966 for ac_lib in '' x; do
25967 if test -z "$ac_lib"; then
25968 ac_res="none required"
25971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25973 if ac_fn_c_try_link "$LINENO"; then :
25974 ac_cv_search_opendir=$ac_res
25976 rm -f core conftest.err conftest.$ac_objext \
25978 if ${ac_cv_search_opendir+:} false; then :
25982 if ${ac_cv_search_opendir+:} false; then :
25985 ac_cv_search_opendir=no
25987 rm conftest.$ac_ext
25988 LIBS=$ac_func_search_save_LIBS
25990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25991 $as_echo "$ac_cv_search_opendir" >&6; }
25992 ac_res=$ac_cv_search_opendir
25993 if test "$ac_res" != no; then :
25994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26001 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26002 if ${ac_cv_header_stat_broken+:} false; then :
26003 $as_echo_n "(cached) " >&6
26005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26006 /* end confdefs.h. */
26007 #include <sys/types.h>
26008 #include <sys/stat.h>
26010 #if defined S_ISBLK && defined S_IFDIR
26011 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26014 #if defined S_ISBLK && defined S_IFCHR
26015 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26018 #if defined S_ISLNK && defined S_IFREG
26019 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26022 #if defined S_ISSOCK && defined S_IFREG
26023 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26027 if ac_fn_c_try_compile "$LINENO"; then :
26028 ac_cv_header_stat_broken=no
26030 ac_cv_header_stat_broken=yes
26032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26035 $as_echo "$ac_cv_header_stat_broken" >&6; }
26036 if test $ac_cv_header_stat_broken = yes; then
26038 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26043 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26044 if ${ac_cv_header_sys_wait_h+:} false; then :
26045 $as_echo_n "(cached) " >&6
26047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26048 /* end confdefs.h. */
26049 #include <sys/types.h>
26050 #include <sys/wait.h>
26051 #ifndef WEXITSTATUS
26052 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26055 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26063 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26068 if ac_fn_c_try_compile "$LINENO"; then :
26069 ac_cv_header_sys_wait_h=yes
26071 ac_cv_header_sys_wait_h=no
26073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26076 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26077 if test $ac_cv_header_sys_wait_h = yes; then
26079 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26084 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26085 if ${ac_cv_header_time+:} false; then :
26086 $as_echo_n "(cached) " >&6
26088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26089 /* end confdefs.h. */
26090 #include <sys/types.h>
26091 #include <sys/time.h>
26097 if ((struct tm *) 0)
26103 if ac_fn_c_try_compile "$LINENO"; then :
26104 ac_cv_header_time=yes
26106 ac_cv_header_time=no
26108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26111 $as_echo "$ac_cv_header_time" >&6; }
26112 if test $ac_cv_header_time = yes; then
26114 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26118 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26119 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26121 cat >>confdefs.h <<_ACEOF
26122 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26126 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26131 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26132 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26134 cat >>confdefs.h <<_ACEOF
26135 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26139 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26142 case " $LIBOBJS " in
26143 *" fileblocks.$ac_objext "* ) ;;
26144 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26152 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26153 if ${ac_cv_struct_tm+:} false; then :
26154 $as_echo_n "(cached) " >&6
26156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26157 /* end confdefs.h. */
26158 #include <sys/types.h>
26165 int *p = &tm.tm_sec;
26171 if ac_fn_c_try_compile "$LINENO"; then :
26172 ac_cv_struct_tm=time.h
26174 ac_cv_struct_tm=sys/time.h
26176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26179 $as_echo "$ac_cv_struct_tm" >&6; }
26180 if test $ac_cv_struct_tm = sys/time.h; then
26182 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26186 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26187 #include <$ac_cv_struct_tm>
26190 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26192 cat >>confdefs.h <<_ACEOF
26193 #define HAVE_STRUCT_TM_TM_ZONE 1
26199 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26201 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26204 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26206 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26212 cat >>confdefs.h <<_ACEOF
26213 #define HAVE_DECL_TZNAME $ac_have_decl
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26217 $as_echo_n "checking for tzname... " >&6; }
26218 if ${ac_cv_var_tzname+:} false; then :
26219 $as_echo_n "(cached) " >&6
26221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26222 /* end confdefs.h. */
26224 #if !HAVE_DECL_TZNAME
26225 extern char *tzname[];
26231 return tzname[0][0];
26236 if ac_fn_c_try_link "$LINENO"; then :
26237 ac_cv_var_tzname=yes
26239 ac_cv_var_tzname=no
26241 rm -f core conftest.err conftest.$ac_objext \
26242 conftest$ac_exeext conftest.$ac_ext
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26245 $as_echo "$ac_cv_var_tzname" >&6; }
26246 if test $ac_cv_var_tzname = yes; then
26248 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26255 $as_echo_n "checking for utime.h... " >&6; }
26256 if ${ba_cv_header_utime_h+:} false; then :
26257 $as_echo_n "(cached) " >&6
26260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26261 /* end confdefs.h. */
26263 #include <sys/types.h>
26276 if ac_fn_c_try_compile "$LINENO"; then :
26278 ba_cv_header_utime_h=yes
26282 ba_cv_header_utime_h=no
26286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26291 $as_echo "$ba_cv_header_utime_h" >&6; }
26292 test $ba_cv_header_utime_h = yes &&
26293 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26297 $as_echo_n "checking for socklen_t... " >&6; }
26298 if ${ba_cv_header_socklen_t+:} false; then :
26299 $as_echo_n "(cached) " >&6
26302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26303 /* end confdefs.h. */
26305 #include <sys/types.h>
26306 #include <sys/socket.h>
26318 if ac_fn_c_try_compile "$LINENO"; then :
26320 ba_cv_header_socklen_t=yes
26324 ba_cv_header_socklen_t=no
26328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26333 $as_echo "$ba_cv_header_socklen_t" >&6; }
26334 test $ba_cv_header_socklen_t = yes &&
26335 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26339 ac_cpp='$CXXCPP $CPPFLAGS'
26340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26345 $as_echo_n "checking for ioctl_req_t... " >&6; }
26346 if ${ba_cv_header_ioctl_req_t+:} false; then :
26347 $as_echo_n "(cached) " >&6
26350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26351 /* end confdefs.h. */
26353 #include <unistd.h>
26354 #include <sys/types.h>
26355 #include <sys/ioctl.h>
26361 int (*d_ioctl)(int fd, unsigned long int request, ...);
26368 if ac_fn_cxx_try_compile "$LINENO"; then :
26370 ba_cv_header_ioctl_req_t=yes
26374 ba_cv_header_ioctl_req_t=no
26378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26383 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26384 test $ba_cv_header_ioctl_req_t = yes &&
26385 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26389 ac_cpp='$CPP $CPPFLAGS'
26390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26396 ac_cpp='$CXXCPP $CPPFLAGS'
26397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26402 $as_echo_n "checking for typeof... " >&6; }
26403 if ${ba_cv_have_typeof+:} false; then :
26404 $as_echo_n "(cached) " >&6
26407 if test "$cross_compiling" = yes; then :
26409 ba_cv_have_typeof=no
26413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26414 /* end confdefs.h. */
26416 main(){char *a = 0; a = (typeof a)a;}
26419 if ac_fn_cxx_try_run "$LINENO"; then :
26421 ba_cv_have_typeof=yes
26425 ba_cv_have_typeof=no
26428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26429 conftest.$ac_objext conftest.beam conftest.$ac_ext
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26436 $as_echo "$ba_cv_have_typeof" >&6; }
26437 test $ba_cv_have_typeof = yes &&
26438 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26441 ac_cpp='$CPP $CPPFLAGS'
26442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26448 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26449 if ${ac_cv_c_const+:} false; then :
26450 $as_echo_n "(cached) " >&6
26452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26453 /* end confdefs.h. */
26458 /* FIXME: Include the comments suggested by Paul. */
26459 #ifndef __cplusplus
26460 /* Ultrix mips cc rejects this. */
26461 typedef int charset[2];
26463 /* SunOS 4.1.1 cc rejects this. */
26464 char const *const *pcpcc;
26466 /* NEC SVR4.0.2 mips cc rejects this. */
26467 struct point {int x, y;};
26468 static struct point const zero = {0,0};
26469 /* AIX XL C 1.02.0.0 rejects this.
26470 It does not let you subtract one const X* pointer from another in
26471 an arm of an if-expression whose if-part is not a constant
26473 const char *g = "string";
26474 pcpcc = &g + (g ? g-g : 0);
26475 /* HPUX 7.0 cc rejects these. */
26477 ppc = (char**) pcpcc;
26478 pcpcc = (char const *const *) ppc;
26479 { /* SCO 3.2v4 cc rejects this. */
26481 char const *s = 0 ? (char *) 0 : (char const *) 0;
26486 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26487 int x[] = {25, 17};
26488 const int *foo = &x[0];
26491 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26492 typedef const int *iptr;
26496 { /* AIX XL C 1.02.0.0 rejects this saying
26497 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26498 struct s { int j; const int *ap[3]; };
26499 struct s *b; b->j = 5;
26501 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26502 const int foo = 10;
26503 if (!foo) return 0;
26505 return !cs[0] && !zero.x;
26512 if ac_fn_c_try_compile "$LINENO"; then :
26517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26520 $as_echo "$ac_cv_c_const" >&6; }
26521 if test $ac_cv_c_const = no; then
26523 $as_echo "#define const /**/" >>confdefs.h
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26529 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26530 if ${ac_cv_c_bigendian+:} false; then :
26531 $as_echo_n "(cached) " >&6
26533 ac_cv_c_bigendian=unknown
26534 # See if we're dealing with a universal compiler.
26535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26536 /* end confdefs.h. */
26537 #ifndef __APPLE_CC__
26538 not a universal capable compiler
26543 if ac_fn_c_try_compile "$LINENO"; then :
26545 # Check for potential -arch flags. It is not universal unless
26546 # there are at least two -arch flags with different values.
26549 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26550 if test -n "$ac_prev"; then
26552 i?86 | x86_64 | ppc | ppc64)
26553 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26556 ac_cv_c_bigendian=universal
26562 elif test "x$ac_word" = "x-arch"; then
26567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26568 if test $ac_cv_c_bigendian = unknown; then
26569 # See if sys/param.h defines the BYTE_ORDER macro.
26570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26571 /* end confdefs.h. */
26572 #include <sys/types.h>
26573 #include <sys/param.h>
26578 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26579 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26581 bogus endian macros
26588 if ac_fn_c_try_compile "$LINENO"; then :
26589 # It does; now see whether it defined to BIG_ENDIAN or not.
26590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26591 /* end confdefs.h. */
26592 #include <sys/types.h>
26593 #include <sys/param.h>
26598 #if BYTE_ORDER != BIG_ENDIAN
26606 if ac_fn_c_try_compile "$LINENO"; then :
26607 ac_cv_c_bigendian=yes
26609 ac_cv_c_bigendian=no
26611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26615 if test $ac_cv_c_bigendian = unknown; then
26616 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26618 /* end confdefs.h. */
26619 #include <limits.h>
26624 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26625 bogus endian macros
26632 if ac_fn_c_try_compile "$LINENO"; then :
26633 # It does; now see whether it defined to _BIG_ENDIAN or not.
26634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26635 /* end confdefs.h. */
26636 #include <limits.h>
26641 #ifndef _BIG_ENDIAN
26649 if ac_fn_c_try_compile "$LINENO"; then :
26650 ac_cv_c_bigendian=yes
26652 ac_cv_c_bigendian=no
26654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26658 if test $ac_cv_c_bigendian = unknown; then
26659 # Compile a test program.
26660 if test "$cross_compiling" = yes; then :
26661 # Try to guess by grepping values from an object file.
26662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26663 /* end confdefs.h. */
26664 short int ascii_mm[] =
26665 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26666 short int ascii_ii[] =
26667 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26668 int use_ascii (int i) {
26669 return ascii_mm[i] + ascii_ii[i];
26671 short int ebcdic_ii[] =
26672 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26673 short int ebcdic_mm[] =
26674 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26675 int use_ebcdic (int i) {
26676 return ebcdic_mm[i] + ebcdic_ii[i];
26683 return use_ascii (foo) == use_ebcdic (foo);
26688 if ac_fn_c_try_compile "$LINENO"; then :
26689 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26690 ac_cv_c_bigendian=yes
26692 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26693 if test "$ac_cv_c_bigendian" = unknown; then
26694 ac_cv_c_bigendian=no
26696 # finding both strings is unlikely to happen, but who knows?
26697 ac_cv_c_bigendian=unknown
26701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26704 /* end confdefs.h. */
26705 $ac_includes_default
26710 /* Are we little or big endian? From Harbison&Steele. */
26714 char c[sizeof (long int)];
26717 return u.c[sizeof (long int) - 1] == 1;
26723 if ac_fn_c_try_run "$LINENO"; then :
26724 ac_cv_c_bigendian=no
26726 ac_cv_c_bigendian=yes
26728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26729 conftest.$ac_objext conftest.beam conftest.$ac_ext
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26735 $as_echo "$ac_cv_c_bigendian" >&6; }
26736 case $ac_cv_c_bigendian in #(
26739 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26743 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26747 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26751 as_fn_error $? "unknown endianness
26752 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26757 $as_echo_n "checking how to get filesystem type... " >&6; }
26759 # The order of these tests is important.
26760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26761 /* end confdefs.h. */
26763 #include <sys/statvfs.h>
26764 #include <sys/fstyp.h>
26767 if ac_fn_c_try_cpp "$LINENO"; then :
26768 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26772 rm -f conftest.err conftest.i conftest.$ac_ext
26773 if test $fstype = no; then
26774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26775 /* end confdefs.h. */
26777 #include <sys/statfs.h>
26778 #include <sys/fstyp.h>
26781 if ac_fn_c_try_cpp "$LINENO"; then :
26782 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26786 rm -f conftest.err conftest.i conftest.$ac_ext
26788 if test $fstype = no; then
26789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26790 /* end confdefs.h. */
26792 #include <sys/statfs.h>
26793 #include <sys/vmount.h>
26796 if ac_fn_c_try_cpp "$LINENO"; then :
26797 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26801 rm -f conftest.err conftest.i conftest.$ac_ext
26803 if test $fstype = no; then
26804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26805 /* end confdefs.h. */
26807 #include <mntent.h>
26810 if ac_fn_c_try_cpp "$LINENO"; then :
26811 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26815 rm -f conftest.err conftest.i conftest.$ac_ext
26817 if test $fstype = no; then
26818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26819 /* end confdefs.h. */
26820 #include <sys/mount.h>
26823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26824 $EGREP "f_type;" >/dev/null 2>&1; then :
26825 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26831 if test $fstype = no; then
26832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26833 /* end confdefs.h. */
26835 #include <sys/mount.h>
26836 #include <sys/fs_types.h>
26839 if ac_fn_c_try_cpp "$LINENO"; then :
26840 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26844 rm -f conftest.err conftest.i conftest.$ac_ext
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26847 $as_echo "$fstype" >&6; }
26849 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26850 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26852 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26859 ac_cpp='$CXXCPP $CPPFLAGS'
26860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26864 for ac_func in backtrace
26866 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26867 if test "x$ac_cv_func_backtrace" = xyes; then :
26868 cat >>confdefs.h <<_ACEOF
26869 #define HAVE_BACKTRACE 1
26876 ac_cpp='$CPP $CPPFLAGS'
26877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26883 $as_echo_n "checking return type of signal handlers... " >&6; }
26884 if ${ac_cv_type_signal+:} false; then :
26885 $as_echo_n "(cached) " >&6
26887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26888 /* end confdefs.h. */
26889 #include <sys/types.h>
26890 #include <signal.h>
26895 return *(signal (0, 0)) (0) == 1;
26900 if ac_fn_c_try_compile "$LINENO"; then :
26901 ac_cv_type_signal=int
26903 ac_cv_type_signal=void
26905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26908 $as_echo "$ac_cv_type_signal" >&6; }
26910 cat >>confdefs.h <<_ACEOF
26911 #define RETSIGTYPE $ac_cv_type_signal
26916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26917 $as_echo_n "checking for type of signal functions... " >&6; }
26918 if ${bash_cv_signal_vintage+:} false; then :
26919 $as_echo_n "(cached) " >&6
26922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26923 /* end confdefs.h. */
26924 #include <signal.h>
26930 struct sigaction sa;
26931 sigemptyset(&ss); sigsuspend(&ss);
26932 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26933 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26939 if ac_fn_c_try_link "$LINENO"; then :
26940 bash_cv_signal_vintage="posix"
26943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26944 /* end confdefs.h. */
26945 #include <signal.h>
26950 int mask = sigmask(SIGINT);
26951 sigsetmask(mask); sigblock(mask); sigpause(mask);
26957 if ac_fn_c_try_link "$LINENO"; then :
26958 bash_cv_signal_vintage="4.2bsd"
26961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962 /* end confdefs.h. */
26964 #include <signal.h>
26965 RETSIGTYPE foo() { }
26970 int mask = sigmask(SIGINT);
26971 sigset(SIGINT, foo); sigrelse(SIGINT);
26972 sighold(SIGINT); sigpause(SIGINT);
26978 if ac_fn_c_try_link "$LINENO"; then :
26979 bash_cv_signal_vintage="svr3"
26981 bash_cv_signal_vintage="v7"
26984 rm -f core conftest.err conftest.$ac_objext \
26985 conftest$ac_exeext conftest.$ac_ext
26988 rm -f core conftest.err conftest.$ac_objext \
26989 conftest$ac_exeext conftest.$ac_ext
26992 rm -f core conftest.err conftest.$ac_objext \
26993 conftest$ac_exeext conftest.$ac_ext
26997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26998 $as_echo "$bash_cv_signal_vintage" >&6; }
26999 if test "$bash_cv_signal_vintage" = "posix"; then
27000 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27002 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27003 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27005 elif test "$bash_cv_signal_vintage" = "svr3"; then
27006 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27010 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27011 if test "x$ac_cv_type_mode_t" = xyes; then :
27015 cat >>confdefs.h <<_ACEOF
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27022 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27023 if ${ac_cv_type_uid_t+:} false; then :
27024 $as_echo_n "(cached) " >&6
27026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27027 /* end confdefs.h. */
27028 #include <sys/types.h>
27031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27032 $EGREP "uid_t" >/dev/null 2>&1; then :
27033 ac_cv_type_uid_t=yes
27035 ac_cv_type_uid_t=no
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27041 $as_echo "$ac_cv_type_uid_t" >&6; }
27042 if test $ac_cv_type_uid_t = no; then
27044 $as_echo "#define uid_t int" >>confdefs.h
27047 $as_echo "#define gid_t int" >>confdefs.h
27051 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27052 if test "x$ac_cv_type_size_t" = xyes; then :
27056 cat >>confdefs.h <<_ACEOF
27057 #define size_t unsigned int
27062 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27063 if test "x$ac_cv_type_pid_t" = xyes; then :
27067 cat >>confdefs.h <<_ACEOF
27073 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27074 if test "x$ac_cv_type_off_t" = xyes; then :
27078 cat >>confdefs.h <<_ACEOF
27079 #define off_t long int
27085 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27086 if test "x$ac_cv_type_intptr_t" = xyes; then :
27088 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27091 for ac_type in 'int' 'long int' 'long long int'; do
27092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27093 /* end confdefs.h. */
27094 $ac_includes_default
27098 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27105 if ac_fn_c_try_compile "$LINENO"; then :
27107 cat >>confdefs.h <<_ACEOF
27108 #define intptr_t $ac_type
27113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27114 test -z "$ac_type" && break
27120 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27121 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27123 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27126 for ac_type in 'unsigned int' 'unsigned long int' \
27127 'unsigned long long int'; do
27128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27129 /* end confdefs.h. */
27130 $ac_includes_default
27134 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27141 if ac_fn_c_try_compile "$LINENO"; then :
27143 cat >>confdefs.h <<_ACEOF
27144 #define uintptr_t $ac_type
27149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27150 test -z "$ac_type" && break
27155 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27156 if test "x$ac_cv_type_ino_t" = xyes; then :
27160 cat >>confdefs.h <<_ACEOF
27161 #define ino_t unsigned long
27166 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27167 if test "x$ac_cv_type_dev_t" = xyes; then :
27171 cat >>confdefs.h <<_ACEOF
27172 #define dev_t unsigned long
27177 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27178 if test "x$ac_cv_type_daddr_t" = xyes; then :
27182 cat >>confdefs.h <<_ACEOF
27183 #define daddr_t long
27188 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27189 if test "x$ac_cv_type_major_t" = xyes; then :
27193 cat >>confdefs.h <<_ACEOF
27194 #define major_t int
27199 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27200 if test "x$ac_cv_type_minor_t" = xyes; then :
27204 cat >>confdefs.h <<_ACEOF
27205 #define minor_t int
27210 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27211 if test "x$ac_cv_type_ssize_t" = xyes; then :
27215 cat >>confdefs.h <<_ACEOF
27216 #define ssize_t int
27221 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27222 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27224 cat >>confdefs.h <<_ACEOF
27225 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27229 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27232 case " $LIBOBJS " in
27233 *" fileblocks.$ac_objext "* ) ;;
27234 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27241 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27242 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27244 cat >>confdefs.h <<_ACEOF
27245 #define HAVE_STRUCT_STAT_ST_RDEV 1
27249 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27255 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27256 if ${ac_cv_struct_tm+:} false; then :
27257 $as_echo_n "(cached) " >&6
27259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27260 /* end confdefs.h. */
27261 #include <sys/types.h>
27268 int *p = &tm.tm_sec;
27274 if ac_fn_c_try_compile "$LINENO"; then :
27275 ac_cv_struct_tm=time.h
27277 ac_cv_struct_tm=sys/time.h
27279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27282 $as_echo "$ac_cv_struct_tm" >&6; }
27283 if test $ac_cv_struct_tm = sys/time.h; then
27285 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27290 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27291 if ${ac_cv_c_const+:} false; then :
27292 $as_echo_n "(cached) " >&6
27294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27295 /* end confdefs.h. */
27300 /* FIXME: Include the comments suggested by Paul. */
27301 #ifndef __cplusplus
27302 /* Ultrix mips cc rejects this. */
27303 typedef int charset[2];
27305 /* SunOS 4.1.1 cc rejects this. */
27306 char const *const *pcpcc;
27308 /* NEC SVR4.0.2 mips cc rejects this. */
27309 struct point {int x, y;};
27310 static struct point const zero = {0,0};
27311 /* AIX XL C 1.02.0.0 rejects this.
27312 It does not let you subtract one const X* pointer from another in
27313 an arm of an if-expression whose if-part is not a constant
27315 const char *g = "string";
27316 pcpcc = &g + (g ? g-g : 0);
27317 /* HPUX 7.0 cc rejects these. */
27319 ppc = (char**) pcpcc;
27320 pcpcc = (char const *const *) ppc;
27321 { /* SCO 3.2v4 cc rejects this. */
27323 char const *s = 0 ? (char *) 0 : (char const *) 0;
27328 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27329 int x[] = {25, 17};
27330 const int *foo = &x[0];
27333 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27334 typedef const int *iptr;
27338 { /* AIX XL C 1.02.0.0 rejects this saying
27339 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27340 struct s { int j; const int *ap[3]; };
27341 struct s *b; b->j = 5;
27343 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27344 const int foo = 10;
27345 if (!foo) return 0;
27347 return !cs[0] && !zero.x;
27354 if ac_fn_c_try_compile "$LINENO"; then :
27359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27362 $as_echo "$ac_cv_c_const" >&6; }
27363 if test $ac_cv_c_const = no; then
27365 $as_echo "#define const /**/" >>confdefs.h
27370 # The cast to long int works around a bug in the HP C Compiler
27371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27373 # This bug is HP SR number 8606223364.
27374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27375 $as_echo_n "checking size of char... " >&6; }
27376 if ${ac_cv_sizeof_char+:} false; then :
27377 $as_echo_n "(cached) " >&6
27379 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27382 if test "$ac_cv_type_char" = yes; then
27383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27385 as_fn_error 77 "cannot compute sizeof (char)
27386 See \`config.log' for more details" "$LINENO" 5; }
27388 ac_cv_sizeof_char=0
27393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27394 $as_echo "$ac_cv_sizeof_char" >&6; }
27398 cat >>confdefs.h <<_ACEOF
27399 #define SIZEOF_CHAR $ac_cv_sizeof_char
27403 # The cast to long int works around a bug in the HP C Compiler
27404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27406 # This bug is HP SR number 8606223364.
27407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27408 $as_echo_n "checking size of short int... " >&6; }
27409 if ${ac_cv_sizeof_short_int+:} false; then :
27410 $as_echo_n "(cached) " >&6
27412 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27415 if test "$ac_cv_type_short_int" = yes; then
27416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27418 as_fn_error 77 "cannot compute sizeof (short int)
27419 See \`config.log' for more details" "$LINENO" 5; }
27421 ac_cv_sizeof_short_int=0
27426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27427 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27431 cat >>confdefs.h <<_ACEOF
27432 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27436 # The cast to long int works around a bug in the HP C Compiler
27437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27439 # This bug is HP SR number 8606223364.
27440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27441 $as_echo_n "checking size of int... " >&6; }
27442 if ${ac_cv_sizeof_int+:} false; then :
27443 $as_echo_n "(cached) " >&6
27445 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27448 if test "$ac_cv_type_int" = yes; then
27449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27451 as_fn_error 77 "cannot compute sizeof (int)
27452 See \`config.log' for more details" "$LINENO" 5; }
27459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27460 $as_echo "$ac_cv_sizeof_int" >&6; }
27464 cat >>confdefs.h <<_ACEOF
27465 #define SIZEOF_INT $ac_cv_sizeof_int
27469 # The cast to long int works around a bug in the HP C Compiler
27470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27472 # This bug is HP SR number 8606223364.
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27474 $as_echo_n "checking size of long int... " >&6; }
27475 if ${ac_cv_sizeof_long_int+:} false; then :
27476 $as_echo_n "(cached) " >&6
27478 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27481 if test "$ac_cv_type_long_int" = yes; then
27482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27484 as_fn_error 77 "cannot compute sizeof (long int)
27485 See \`config.log' for more details" "$LINENO" 5; }
27487 ac_cv_sizeof_long_int=0
27492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27493 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27497 cat >>confdefs.h <<_ACEOF
27498 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27502 # The cast to long int works around a bug in the HP C Compiler
27503 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27504 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27505 # This bug is HP SR number 8606223364.
27506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27507 $as_echo_n "checking size of long long int... " >&6; }
27508 if ${ac_cv_sizeof_long_long_int+:} false; then :
27509 $as_echo_n "(cached) " >&6
27511 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27514 if test "$ac_cv_type_long_long_int" = yes; then
27515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27517 as_fn_error 77 "cannot compute sizeof (long long int)
27518 See \`config.log' for more details" "$LINENO" 5; }
27520 ac_cv_sizeof_long_long_int=0
27525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27526 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27530 cat >>confdefs.h <<_ACEOF
27531 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27535 # The cast to long int works around a bug in the HP C Compiler
27536 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27537 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27538 # This bug is HP SR number 8606223364.
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27540 $as_echo_n "checking size of int *... " >&6; }
27541 if ${ac_cv_sizeof_int_p+:} false; then :
27542 $as_echo_n "(cached) " >&6
27544 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27547 if test "$ac_cv_type_int_p" = yes; then
27548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27550 as_fn_error 77 "cannot compute sizeof (int *)
27551 See \`config.log' for more details" "$LINENO" 5; }
27553 ac_cv_sizeof_int_p=0
27558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27559 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27563 cat >>confdefs.h <<_ACEOF
27564 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27570 $as_echo_n "checking for u_int type... " >&6; }
27571 if ${ac_cv_have_u_int+:} false; then :
27572 $as_echo_n "(cached) " >&6
27575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27576 /* end confdefs.h. */
27578 #include <sys/types.h>
27590 if ac_fn_c_try_compile "$LINENO"; then :
27592 ac_cv_have_u_int="yes"
27596 ac_cv_have_u_int="no"
27600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27605 $as_echo "$ac_cv_have_u_int" >&6; }
27606 if test "x$ac_cv_have_u_int" = "xyes" ; then
27607 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27613 $as_echo_n "checking for intmax_t type... " >&6; }
27614 if ${ac_cv_have_intmax_t+:} false; then :
27615 $as_echo_n "(cached) " >&6
27618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27619 /* end confdefs.h. */
27621 #include <sys/types.h>
27633 if ac_fn_c_try_compile "$LINENO"; then :
27635 ac_cv_have_intmax_t="yes"
27639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27640 /* end confdefs.h. */
27642 #include <stdint.h>
27654 if ac_fn_c_try_compile "$LINENO"; then :
27656 ac_cv_have_intmax_t="yes"
27660 ac_cv_have_intmax_t="no"
27664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27673 $as_echo "$ac_cv_have_intmax_t" >&6; }
27674 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27675 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27681 $as_echo_n "checking for u_intmax_t type... " >&6; }
27682 if ${ac_cv_have_u_intmax_t+:} false; then :
27683 $as_echo_n "(cached) " >&6
27686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27687 /* end confdefs.h. */
27689 #include <sys/types.h>
27695 u_intmax_t a; a = 1;
27701 if ac_fn_c_try_compile "$LINENO"; then :
27703 ac_cv_have_u_intmax_t="yes"
27707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27708 /* end confdefs.h. */
27710 #include <stdint.h>
27716 u_intmax_t a; a = 1;
27722 if ac_fn_c_try_compile "$LINENO"; then :
27724 ac_cv_have_u_intmax_t="yes"
27728 ac_cv_have_u_intmax_t="no"
27732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27741 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27742 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27743 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27749 $as_echo_n "checking for intXX_t types... " >&6; }
27750 if ${ac_cv_have_intxx_t+:} false; then :
27751 $as_echo_n "(cached) " >&6
27754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27755 /* end confdefs.h. */
27757 #include <sys/types.h>
27763 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27769 if ac_fn_c_try_compile "$LINENO"; then :
27771 ac_cv_have_intxx_t="yes"
27775 ac_cv_have_intxx_t="no"
27779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27784 $as_echo "$ac_cv_have_intxx_t" >&6; }
27785 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27786 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27792 $as_echo_n "checking for int64_t type... " >&6; }
27793 if ${ac_cv_have_int64_t+:} false; then :
27794 $as_echo_n "(cached) " >&6
27797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27798 /* end confdefs.h. */
27800 #include <sys/types.h>
27812 if ac_fn_c_try_compile "$LINENO"; then :
27814 ac_cv_have_int64_t="yes"
27818 ac_cv_have_int64_t="no"
27822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27827 $as_echo "$ac_cv_have_int64_t" >&6; }
27828 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27829 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27835 $as_echo_n "checking for u_intXX_t types... " >&6; }
27836 if ${ac_cv_have_u_intxx_t+:} false; then :
27837 $as_echo_n "(cached) " >&6
27840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27841 /* end confdefs.h. */
27843 #include <sys/types.h>
27849 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27855 if ac_fn_c_try_compile "$LINENO"; then :
27857 ac_cv_have_u_intxx_t="yes"
27861 ac_cv_have_u_intxx_t="no"
27865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27870 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27871 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27872 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27878 $as_echo_n "checking for u_int64_t types... " >&6; }
27879 if ${ac_cv_have_u_int64_t+:} false; then :
27880 $as_echo_n "(cached) " >&6
27883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27884 /* end confdefs.h. */
27886 #include <sys/types.h>
27892 u_int64_t a; a = 1;
27898 if ac_fn_c_try_compile "$LINENO"; then :
27900 ac_cv_have_u_int64_t="yes"
27904 ac_cv_have_u_int64_t="no"
27908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27913 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27914 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27915 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27920 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27921 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27924 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27926 /* end confdefs.h. */
27928 #include <sys/bitypes.h>
27934 int8_t a; int16_t b; int32_t c;
27935 u_int8_t e; u_int16_t f; u_int32_t g;
27936 a = b = c = e = f = g = 1;
27942 if ac_fn_c_try_compile "$LINENO"; then :
27944 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27946 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27948 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27951 $as_echo "yes" >&6; }
27955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27956 $as_echo "no" >&6; }
27960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27963 if test -z "$have_u_intxx_t" ; then
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27965 $as_echo_n "checking for uintXX_t types... " >&6; }
27966 if ${ac_cv_have_uintxx_t+:} false; then :
27967 $as_echo_n "(cached) " >&6
27970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27971 /* end confdefs.h. */
27973 #include <sys/types.h>
27979 uint8_t a; uint16_t b;
27980 uint32_t c; a = b = c = 1;
27986 if ac_fn_c_try_compile "$LINENO"; then :
27988 ac_cv_have_uintxx_t="yes"
27992 ac_cv_have_uintxx_t="no"
27996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28001 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28002 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28003 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28008 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28009 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28012 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28014 /* end confdefs.h. */
28016 #include <sys/bitypes.h>
28022 int64_t a; u_int64_t b;
28029 if ac_fn_c_try_compile "$LINENO"; then :
28031 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28033 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28036 $as_echo "yes" >&6; }
28040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28041 $as_echo "no" >&6; }
28045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28048 if (test -z "$have_uintxx_t" && \
28049 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28052 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28054 /* end confdefs.h. */
28056 #include <sys/bitypes.h>
28062 uint8_t a; uint16_t b;
28063 uint32_t c; a = b = c = 1;
28069 if ac_fn_c_try_compile "$LINENO"; then :
28071 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28074 $as_echo "yes" >&6; }
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28079 $as_echo "no" >&6; }
28083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28102 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28103 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28104 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28105 cat >>confdefs.h <<_ACEOF
28106 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28110 echo 'configure: cannot find needed function.'; exit 1
28116 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28119 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28121 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28126 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28127 if test "x$ac_cv_func_closefrom" = xyes; then :
28129 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28133 for ac_func in getpagesize
28135 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28136 if test "x$ac_cv_func_getpagesize" = xyes; then :
28137 cat >>confdefs.h <<_ACEOF
28138 #define HAVE_GETPAGESIZE 1
28141 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28146 for ac_func in malloc_trim
28148 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28149 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28150 cat >>confdefs.h <<_ACEOF
28151 #define HAVE_MALLOC_TRIM 1
28154 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28160 for ac_func in fchdir
28162 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28163 if test "x$ac_cv_func_fchdir" = xyes; then :
28164 cat >>confdefs.h <<_ACEOF
28165 #define HAVE_FCHDIR 1
28167 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28172 for ac_func in strtoll
28174 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28175 if test "x$ac_cv_func_strtoll" = xyes; then :
28176 cat >>confdefs.h <<_ACEOF
28177 #define HAVE_STRTOLL 1
28179 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28184 for ac_func in posix_fadvise
28186 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28187 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28188 cat >>confdefs.h <<_ACEOF
28189 #define HAVE_POSIX_FADVISE 1
28195 for ac_func in fdatasync
28197 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28198 if test "x$ac_cv_func_fdatasync" = xyes; then :
28199 cat >>confdefs.h <<_ACEOF
28200 #define HAVE_FDATASYNC 1
28207 for ac_func in chflags
28209 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28210 if test "x$ac_cv_func_chflags" = xyes; then :
28211 cat >>confdefs.h <<_ACEOF
28212 #define HAVE_CHFLAGS 1
28219 for ac_func in snprintf vsnprintf gethostid fseeko
28221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28222 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28223 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28224 cat >>confdefs.h <<_ACEOF
28225 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28233 $as_echo_n "checking for va_copy... " >&6; }
28234 if ${ba_cv_va_copy+:} false; then :
28235 $as_echo_n "(cached) " >&6
28238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28239 /* end confdefs.h. */
28241 #include <stdarg.h>
28242 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28243 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28249 call_use_va_copy(1,2,3)
28255 if ac_fn_c_try_link "$LINENO"; then :
28265 rm -f core conftest.err conftest.$ac_objext \
28266 conftest$ac_exeext conftest.$ac_ext
28270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28271 $as_echo "$ba_cv_va_copy" >&6; }
28272 test $ba_cv_va_copy = yes &&
28273 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28276 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28279 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28280 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28281 cat >>confdefs.h <<_ACEOF
28282 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28289 # If resolver functions are not in libc check for -lnsl or -lresolv.
28290 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28291 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28293 $as_echo "using libc's resolver" >&6; }
28295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28296 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28297 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28298 $as_echo_n "(cached) " >&6
28300 ac_check_lib_save_LIBS=$LIBS
28302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28303 /* end confdefs.h. */
28305 /* Override any GCC internal prototype to avoid an error.
28306 Use char because int might match the return type of a GCC
28307 builtin and then its argument prototype would still apply. */
28311 char gethostbyname_r ();
28315 return gethostbyname_r ();
28320 if ac_fn_c_try_link "$LINENO"; then :
28321 ac_cv_lib_nsl_gethostbyname_r=yes
28323 ac_cv_lib_nsl_gethostbyname_r=no
28325 rm -f core conftest.err conftest.$ac_objext \
28326 conftest$ac_exeext conftest.$ac_ext
28327 LIBS=$ac_check_lib_save_LIBS
28329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28330 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28331 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28332 cat >>confdefs.h <<_ACEOF
28333 #define HAVE_LIBNSL 1
28340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28341 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28342 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28343 $as_echo_n "(cached) " >&6
28345 ac_check_lib_save_LIBS=$LIBS
28346 LIBS="-lresolv $LIBS"
28347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28348 /* end confdefs.h. */
28350 /* Override any GCC internal prototype to avoid an error.
28351 Use char because int might match the return type of a GCC
28352 builtin and then its argument prototype would still apply. */
28356 char gethostbyname_r ();
28360 return gethostbyname_r ();
28365 if ac_fn_c_try_link "$LINENO"; then :
28366 ac_cv_lib_resolv_gethostbyname_r=yes
28368 ac_cv_lib_resolv_gethostbyname_r=no
28370 rm -f core conftest.err conftest.$ac_objext \
28371 conftest$ac_exeext conftest.$ac_ext
28372 LIBS=$ac_check_lib_save_LIBS
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28375 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28376 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28377 cat >>confdefs.h <<_ACEOF
28378 #define HAVE_LIBRESOLV 1
28381 LIBS="-lresolv $LIBS"
28388 for ac_func in inet_pton
28390 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28391 if test "x$ac_cv_func_inet_pton" = xyes; then :
28392 cat >>confdefs.h <<_ACEOF
28393 #define HAVE_INET_PTON 1
28395 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28400 for ac_func in inet_ntop
28402 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28403 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28404 cat >>confdefs.h <<_ACEOF
28405 #define HAVE_INET_NTOP 1
28407 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28412 for ac_func in gethostbyname2
28414 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28415 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28416 cat >>confdefs.h <<_ACEOF
28417 #define HAVE_GETHOSTBYNAME2 1
28419 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28424 for ac_func in getnameinfo
28426 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28427 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28428 cat >>confdefs.h <<_ACEOF
28429 #define HAVE_GETNAMEINFO 1
28431 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28439 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28440 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28441 $as_echo_n "(cached) " >&6
28444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28445 /* end confdefs.h. */
28447 #include <sys/socket.h>
28453 struct sockaddr s; s.sa_len;
28459 if ac_fn_c_try_compile "$LINENO"; then :
28461 ac_cv_struct_sockaddr_sa_len=yes
28464 ac_cv_struct_sockaddr_sa_len=no
28468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28473 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28475 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28477 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28482 $as_echo_n "checking for working getaddrinfo... " >&6; }
28483 if ${ac_cv_working_getaddrinfo+:} false; then :
28484 $as_echo_n "(cached) " >&6
28487 if test "$cross_compiling" = yes; then :
28489 ac_cv_working_getaddrinfo="yes"
28493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28494 /* end confdefs.h. */
28497 #include <string.h>
28498 #include <sys/types.h>
28499 #include <sys/socket.h>
28502 struct addrinfo hints, *ai;
28505 memset(&hints, 0, sizeof(hints));
28506 hints.ai_family = AF_UNSPEC;
28507 hints.ai_socktype = SOCK_STREAM;
28508 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28512 if (ai->ai_addr->sa_family != AF_INET) {
28519 if ac_fn_c_try_run "$LINENO"; then :
28521 ac_cv_working_getaddrinfo="yes"
28525 ac_cv_working_getaddrinfo="no"
28528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28529 conftest.$ac_objext conftest.beam conftest.$ac_ext
28535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28536 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28537 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28538 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28540 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28545 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28546 if test "$ac_cv_func_gai_strerror" != "yes"; then
28547 ac_cv_working_getaddrinfo="no"
28550 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28555 for ac_func in strftime
28557 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28558 if test "x$ac_cv_func_strftime" = xyes; then :
28559 cat >>confdefs.h <<_ACEOF
28560 #define HAVE_STRFTIME 1
28564 # strftime is in -lintl on SCO UNIX.
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28566 $as_echo_n "checking for strftime in -lintl... " >&6; }
28567 if ${ac_cv_lib_intl_strftime+:} false; then :
28568 $as_echo_n "(cached) " >&6
28570 ac_check_lib_save_LIBS=$LIBS
28571 LIBS="-lintl $LIBS"
28572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28573 /* end confdefs.h. */
28575 /* Override any GCC internal prototype to avoid an error.
28576 Use char because int might match the return type of a GCC
28577 builtin and then its argument prototype would still apply. */
28585 return strftime ();
28590 if ac_fn_c_try_link "$LINENO"; then :
28591 ac_cv_lib_intl_strftime=yes
28593 ac_cv_lib_intl_strftime=no
28595 rm -f core conftest.err conftest.$ac_objext \
28596 conftest$ac_exeext conftest.$ac_ext
28597 LIBS=$ac_check_lib_save_LIBS
28599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28600 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28601 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28602 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28604 LIBS="-lintl $LIBS"
28610 for ac_func in vprintf
28612 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28613 if test "x$ac_cv_func_vprintf" = xyes; then :
28614 cat >>confdefs.h <<_ACEOF
28615 #define HAVE_VPRINTF 1
28618 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28619 if test "x$ac_cv_func__doprnt" = xyes; then :
28621 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28629 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28630 # for constant arguments. Useless!
28631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28632 $as_echo_n "checking for working alloca.h... " >&6; }
28633 if ${ac_cv_working_alloca_h+:} false; then :
28634 $as_echo_n "(cached) " >&6
28636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28637 /* end confdefs.h. */
28638 #include <alloca.h>
28642 char *p = (char *) alloca (2 * sizeof (int));
28648 if ac_fn_c_try_link "$LINENO"; then :
28649 ac_cv_working_alloca_h=yes
28651 ac_cv_working_alloca_h=no
28653 rm -f core conftest.err conftest.$ac_objext \
28654 conftest$ac_exeext conftest.$ac_ext
28656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28657 $as_echo "$ac_cv_working_alloca_h" >&6; }
28658 if test $ac_cv_working_alloca_h = yes; then
28660 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28665 $as_echo_n "checking for alloca... " >&6; }
28666 if ${ac_cv_func_alloca_works+:} false; then :
28667 $as_echo_n "(cached) " >&6
28669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28670 /* end confdefs.h. */
28672 # define alloca __builtin_alloca
28675 # include <malloc.h>
28676 # define alloca _alloca
28678 # ifdef HAVE_ALLOCA_H
28679 # include <alloca.h>
28684 # ifndef alloca /* predefined by HP cc +Olibcalls */
28685 void *alloca (size_t);
28695 char *p = (char *) alloca (1);
28701 if ac_fn_c_try_link "$LINENO"; then :
28702 ac_cv_func_alloca_works=yes
28704 ac_cv_func_alloca_works=no
28706 rm -f core conftest.err conftest.$ac_objext \
28707 conftest$ac_exeext conftest.$ac_ext
28709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28710 $as_echo "$ac_cv_func_alloca_works" >&6; }
28712 if test $ac_cv_func_alloca_works = yes; then
28714 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28717 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28718 # that cause trouble. Some versions do not even contain alloca or
28719 # contain a buggy version. If you still want to use their alloca,
28720 # use ar to extract alloca.o from them instead of compiling alloca.c.
28722 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28724 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28728 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28729 if ${ac_cv_os_cray+:} false; then :
28730 $as_echo_n "(cached) " >&6
28732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28733 /* end confdefs.h. */
28734 #if defined CRAY && ! defined CRAY2
28741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28742 $EGREP "webecray" >/dev/null 2>&1; then :
28750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28751 $as_echo "$ac_cv_os_cray" >&6; }
28752 if test $ac_cv_os_cray = yes; then
28753 for ac_func in _getb67 GETB67 getb67; do
28754 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28755 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28756 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28758 cat >>confdefs.h <<_ACEOF
28759 #define CRAY_STACKSEG_END $ac_func
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28769 $as_echo_n "checking stack direction for C alloca... " >&6; }
28770 if ${ac_cv_c_stack_direction+:} false; then :
28771 $as_echo_n "(cached) " >&6
28773 if test "$cross_compiling" = yes; then :
28774 ac_cv_c_stack_direction=0
28776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28777 /* end confdefs.h. */
28778 $ac_includes_default
28780 find_stack_direction ()
28782 static char *addr = 0;
28787 return find_stack_direction ();
28790 return (&dummy > addr) ? 1 : -1;
28796 return find_stack_direction () < 0;
28799 if ac_fn_c_try_run "$LINENO"; then :
28800 ac_cv_c_stack_direction=1
28802 ac_cv_c_stack_direction=-1
28804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28805 conftest.$ac_objext conftest.beam conftest.$ac_ext
28809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28810 $as_echo "$ac_cv_c_stack_direction" >&6; }
28811 cat >>confdefs.h <<_ACEOF
28812 #define STACK_DIRECTION $ac_cv_c_stack_direction
28818 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28819 # -lseq on Dynix/PTX, -lgen on Unixware.
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28821 $as_echo_n "checking for library containing getmntent... " >&6; }
28822 if ${ac_cv_search_getmntent+:} false; then :
28823 $as_echo_n "(cached) " >&6
28825 ac_func_search_save_LIBS=$LIBS
28826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28827 /* end confdefs.h. */
28829 /* Override any GCC internal prototype to avoid an error.
28830 Use char because int might match the return type of a GCC
28831 builtin and then its argument prototype would still apply. */
28839 return getmntent ();
28844 for ac_lib in '' sun seq gen; do
28845 if test -z "$ac_lib"; then
28846 ac_res="none required"
28849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28851 if ac_fn_c_try_link "$LINENO"; then :
28852 ac_cv_search_getmntent=$ac_res
28854 rm -f core conftest.err conftest.$ac_objext \
28856 if ${ac_cv_search_getmntent+:} false; then :
28860 if ${ac_cv_search_getmntent+:} false; then :
28863 ac_cv_search_getmntent=no
28865 rm conftest.$ac_ext
28866 LIBS=$ac_func_search_save_LIBS
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28869 $as_echo "$ac_cv_search_getmntent" >&6; }
28870 ac_res=$ac_cv_search_getmntent
28871 if test "$ac_res" != no; then :
28872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28873 ac_cv_func_getmntent=yes
28875 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28878 ac_cv_func_getmntent=no
28882 for ac_func in getmntinfo
28884 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28885 if test "x$ac_cv_func_getmntinfo" = xyes; then :
28886 cat >>confdefs.h <<_ACEOF
28887 #define HAVE_GETMNTINFO 1
28889 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28895 $as_echo_n "checking whether closedir returns void... " >&6; }
28896 if ${ac_cv_func_closedir_void+:} false; then :
28897 $as_echo_n "(cached) " >&6
28899 if test "$cross_compiling" = yes; then :
28900 ac_cv_func_closedir_void=yes
28902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28903 /* end confdefs.h. */
28904 $ac_includes_default
28905 #include <$ac_header_dirent>
28906 #ifndef __cplusplus
28913 return closedir (opendir (".")) != 0;
28918 if ac_fn_c_try_run "$LINENO"; then :
28919 ac_cv_func_closedir_void=no
28921 ac_cv_func_closedir_void=yes
28923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28924 conftest.$ac_objext conftest.beam conftest.$ac_ext
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28929 $as_echo "$ac_cv_func_closedir_void" >&6; }
28930 if test $ac_cv_func_closedir_void = yes; then
28932 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28937 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28938 if ${ac_cv_func_setpgrp_void+:} false; then :
28939 $as_echo_n "(cached) " >&6
28941 if test "$cross_compiling" = yes; then :
28942 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28945 /* end confdefs.h. */
28946 $ac_includes_default
28950 /* If this system has a BSD-style setpgrp which takes arguments,
28951 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28952 exit successfully. */
28953 return setpgrp (1,1) != -1;
28958 if ac_fn_c_try_run "$LINENO"; then :
28959 ac_cv_func_setpgrp_void=no
28961 ac_cv_func_setpgrp_void=yes
28963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28964 conftest.$ac_objext conftest.beam conftest.$ac_ext
28968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28969 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28970 if test $ac_cv_func_setpgrp_void = yes; then
28972 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28975 # AC_FUNC_FNMATCH dnl use local version
28977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28978 $as_echo_n "checking for gettext in -lintl... " >&6; }
28979 if ${ac_cv_lib_intl_gettext+:} false; then :
28980 $as_echo_n "(cached) " >&6
28982 ac_check_lib_save_LIBS=$LIBS
28983 LIBS="-lintl $LIBS"
28984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28985 /* end confdefs.h. */
28987 /* Override any GCC internal prototype to avoid an error.
28988 Use char because int might match the return type of a GCC
28989 builtin and then its argument prototype would still apply. */
29002 if ac_fn_c_try_link "$LINENO"; then :
29003 ac_cv_lib_intl_gettext=yes
29005 ac_cv_lib_intl_gettext=no
29007 rm -f core conftest.err conftest.$ac_objext \
29008 conftest$ac_exeext conftest.$ac_ext
29009 LIBS=$ac_check_lib_save_LIBS
29011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29012 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29013 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29014 LIBS="$LIBS -lintl"
29018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29019 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29020 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29021 $as_echo_n "(cached) " >&6
29023 ac_check_lib_save_LIBS=$LIBS
29025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29026 /* end confdefs.h. */
29028 /* Override any GCC internal prototype to avoid an error.
29029 Use char because int might match the return type of a GCC
29030 builtin and then its argument prototype would still apply. */
29038 return getpwnam ();
29043 if ac_fn_c_try_link "$LINENO"; then :
29044 ac_cv_lib_sun_getpwnam=yes
29046 ac_cv_lib_sun_getpwnam=no
29048 rm -f core conftest.err conftest.$ac_objext \
29049 conftest$ac_exeext conftest.$ac_ext
29050 LIBS=$ac_check_lib_save_LIBS
29052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29053 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29054 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29055 cat >>confdefs.h <<_ACEOF
29056 #define HAVE_LIBSUN 1
29064 for ac_header in zlib.h
29066 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29067 if test "x$ac_cv_header_zlib_h" = xyes; then :
29068 cat >>confdefs.h <<_ACEOF
29069 #define HAVE_ZLIB_H 1
29076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29077 $as_echo_n "checking for deflate in -lz... " >&6; }
29078 if ${ac_cv_lib_z_deflate+:} false; then :
29079 $as_echo_n "(cached) " >&6
29081 ac_check_lib_save_LIBS=$LIBS
29083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29084 /* end confdefs.h. */
29086 /* Override any GCC internal prototype to avoid an error.
29087 Use char because int might match the return type of a GCC
29088 builtin and then its argument prototype would still apply. */
29101 if ac_fn_c_try_link "$LINENO"; then :
29102 ac_cv_lib_z_deflate=yes
29104 ac_cv_lib_z_deflate=no
29106 rm -f core conftest.err conftest.$ac_objext \
29107 conftest$ac_exeext conftest.$ac_ext
29108 LIBS=$ac_check_lib_save_LIBS
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29111 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29112 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29117 if test x$ZLIBS = x-lz; then
29118 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29127 # Check whether --enable-afs was given.
29128 if test "${enable_afs+set}" = set; then :
29129 enableval=$enable_afs;
29130 if test x$enableval = xyes; then
29132 elif test x$enableval = xno; then
29141 if test x$support_afs = xyes -o x$support_afs = xauto; then
29143 # Check whether --with-afsdir was given.
29144 if test "${with_afsdir+set}" = set; then :
29145 withval=$with_afsdir; with_afsdir=$withval
29150 if test x$with_afsdir = x; then
29151 for root in /usr /usr/local; do
29152 if test -d ${root}/include/afs/ ; then
29153 with_afsdir=${root}
29156 if test -d ${root}/include/openafs/afs/ ; then
29157 with_afsdir=${root}
29163 if test -d ${with_afsdir}/include/afs/ ; then
29164 AFS_CFLAGS="-I${with_afsdir}/include"
29166 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29167 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29171 saved_CFLAGS="${CFLAGS}"
29172 saved_CPPFLAGS="${CPPFLAGS}"
29173 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29174 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29176 for ac_header in afs/afsint.h
29178 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29179 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29180 cat >>confdefs.h <<_ACEOF
29181 #define HAVE_AFS_AFSINT_H 1
29188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29189 /* end confdefs.h. */
29191 #include <afs/afsint.h>
29192 #include <afs/venus.h>
29195 if ac_fn_c_try_cpp "$LINENO"; then :
29197 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29201 rm -f conftest.err conftest.i conftest.$ac_ext
29203 CFLAGS="${saved_CFLAGS}"
29204 CPPFLAGS="${saved_CPPFLAGS}"
29206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29207 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29208 for dir in ${with_afsdir}/lib \
29209 ${with_afsdir}/lib/afs \
29210 ${with_afsdir}/lib/openafs \
29211 ${with_afsdir}/lib64 \
29212 ${with_afsdir}/lib64/afs \
29213 ${with_afsdir}/lib64/openafs
29215 for arch_type in .a .so
29217 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29219 if test $pkg = 0; then
29221 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29227 if test $have_afs = yes; then
29228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29229 $as_echo "yes" >&6; }
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29232 $as_echo "no" >&6; }
29235 if test x$support_afs = xyes -a $have_afs != yes; then
29236 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29237 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29239 if test $have_afs = yes; then
29241 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29244 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29253 # Check whether --enable-lzo was given.
29254 if test "${enable_lzo+set}" = set; then :
29255 enableval=$enable_lzo;
29256 if test x$enableval = xno; then
29269 if test x$support_lzo = xyes; then
29271 # Check whether --with-lzo was given.
29272 if test "${with_lzo+set}" = set; then :
29274 case "$with_lzo" in
29279 if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29280 LZO_INC="-I${with_lzo}/include"
29281 LZO_LDFLAGS="-L${with_lzo}/lib"
29282 with_lzo="${with_lzo}/include"
29284 with_lzo="/usr/include"
29287 as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29288 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29289 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29292 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29294 LZO_LIBS="${LZO_LDFLAGS} -lzo2"
29300 echo "lzoconf.h not found. lzo turned off ..."
29312 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29313 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29315 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29316 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29319 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29320 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29321 $as_echo_n "(cached) " >&6
29323 ac_check_lib_save_LIBS=$LIBS
29324 LIBS="-llzo2 $LIBS"
29325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29326 /* end confdefs.h. */
29328 /* Override any GCC internal prototype to avoid an error.
29329 Use char because int might match the return type of a GCC
29330 builtin and then its argument prototype would still apply. */
29334 char lzo1x_1_compress ();
29338 return lzo1x_1_compress ();
29343 if ac_fn_c_try_link "$LINENO"; then :
29344 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29346 ac_cv_lib_lzo2_lzo1x_1_compress=no
29348 rm -f core conftest.err conftest.$ac_objext \
29349 conftest$ac_exeext conftest.$ac_ext
29350 LIBS=$ac_check_lib_save_LIBS
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29353 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29354 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29358 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29382 # Check whether --enable-acl was given.
29383 if test "${enable_acl+set}" = set; then :
29384 enableval=$enable_acl;
29385 if test x$enableval = xyes; then
29387 elif test x$enableval = xno; then
29396 have_extended_acl=no
29397 if test x$support_acl = xyes -o x$support_acl = xauto; then
29398 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29399 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29401 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29407 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29408 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29416 if test $have_acl = no; then
29417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29418 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29419 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29420 $as_echo_n "(cached) " >&6
29422 ac_check_lib_save_LIBS=$LIBS
29424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29425 /* end confdefs.h. */
29427 /* Override any GCC internal prototype to avoid an error.
29428 Use char because int might match the return type of a GCC
29429 builtin and then its argument prototype would still apply. */
29433 char acl_get_file ();
29437 return acl_get_file ();
29442 if ac_fn_c_try_link "$LINENO"; then :
29443 ac_cv_lib_acl_acl_get_file=yes
29445 ac_cv_lib_acl_acl_get_file=no
29447 rm -f core conftest.err conftest.$ac_objext \
29448 conftest$ac_exeext conftest.$ac_ext
29449 LIBS=$ac_check_lib_save_LIBS
29451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29452 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29453 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29456 if test $have_afs = yes; then
29457 if test -d /usr/lib64/; then
29458 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29460 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29463 FDLIBS="-lacl $FDLIBS"
29471 if test $have_acl = no -a \
29472 x${HAVE_OSF1_OS_TRUE} = x; then
29473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29474 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29475 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29476 $as_echo_n "(cached) " >&6
29478 ac_check_lib_save_LIBS=$LIBS
29479 LIBS="-lpacl $LIBS"
29480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29481 /* end confdefs.h. */
29483 /* Override any GCC internal prototype to avoid an error.
29484 Use char because int might match the return type of a GCC
29485 builtin and then its argument prototype would still apply. */
29489 char acl_get_file ();
29493 return acl_get_file ();
29498 if ac_fn_c_try_link "$LINENO"; then :
29499 ac_cv_lib_pacl_acl_get_file=yes
29501 ac_cv_lib_pacl_acl_get_file=no
29503 rm -f core conftest.err conftest.$ac_objext \
29504 conftest$ac_exeext conftest.$ac_ext
29505 LIBS=$ac_check_lib_save_LIBS
29507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29508 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29509 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29512 FDLIBS="-lpacl $FDLIBS"
29518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29519 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29520 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29521 if test $? = 0; then
29523 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29526 $as_echo "yes" >&6; }
29528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29529 $as_echo "no" >&6; }
29533 if test $have_acl = yes -a \
29534 x${HAVE_DARWIN_OS_TRUE} = x; then
29535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29536 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29537 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29538 if test $? = 0; then
29540 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29543 $as_echo "yes" >&6; }
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29546 $as_echo "no" >&6; }
29550 if test $have_acl = yes -a \
29551 x${HAVE_FREEBSD_OS_TRUE} = x; then
29552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29553 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29554 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29555 if test $? = 0; then
29557 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29560 $as_echo "yes" >&6; }
29562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29563 $as_echo "no" >&6; }
29567 if test $have_acl = no -a \
29568 x${HAVE_SUN_OS_TRUE} = x; then
29569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29570 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29571 if ${ac_cv_lib_sec_acltotext+:} false; then :
29572 $as_echo_n "(cached) " >&6
29574 ac_check_lib_save_LIBS=$LIBS
29576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29577 /* end confdefs.h. */
29579 /* Override any GCC internal prototype to avoid an error.
29580 Use char because int might match the return type of a GCC
29581 builtin and then its argument prototype would still apply. */
29589 return acltotext ();
29594 if ac_fn_c_try_link "$LINENO"; then :
29595 ac_cv_lib_sec_acltotext=yes
29597 ac_cv_lib_sec_acltotext=no
29599 rm -f core conftest.err conftest.$ac_objext \
29600 conftest$ac_exeext conftest.$ac_ext
29601 LIBS=$ac_check_lib_save_LIBS
29603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29604 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29605 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29608 FDLIBS="-lsec $FDLIBS"
29610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29611 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29612 if ${ac_cv_lib_sec_acl_totext+:} 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_totext ();
29630 return acl_totext ();
29635 if ac_fn_c_try_link "$LINENO"; then :
29636 ac_cv_lib_sec_acl_totext=yes
29638 ac_cv_lib_sec_acl_totext=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_sec_acl_totext" >&5
29645 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29646 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29648 have_extended_acl=yes
29659 if test $have_acl = no -a \
29660 x${HAVE_AIX_OS_TRUE} = x; then
29661 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29662 if test "x$ac_cv_func_acl_get" = xyes; then :
29666 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29667 if test "x$ac_cv_func_aclx_get" = xyes; then :
29669 have_extended_acl=yes
29680 if test x$support_acl = xyes -a $have_acl != yes; then
29681 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29682 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29684 if test $have_acl = yes; then
29686 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29690 if test $have_extended_acl = yes; then
29692 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29699 # Check whether --enable-xattr was given.
29700 if test "${enable_xattr+set}" = set; then :
29701 enableval=$enable_xattr;
29702 if test x$enableval = xyes; then
29704 elif test x$enableval = xno; then
29713 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29714 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29715 x${HAVE_NETBSD_OS_TRUE} = x -o \
29716 x${HAVE_OPENBSD_OS_TRUE} = x; then
29717 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29718 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29720 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29725 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29726 if test "x$ac_cv_header_libutil_h" = xyes; then :
29728 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29733 for ac_func in extattr_get_link extattr_set_link extattr_list_link
29735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29736 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29737 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29738 cat >>confdefs.h <<_ACEOF
29739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29744 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29747 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29750 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29758 if test $have_xattr = no; then
29759 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29761 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29762 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29763 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29764 cat >>confdefs.h <<_ACEOF
29765 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29770 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29773 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29776 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29785 if test $have_xattr = yes; then
29786 have_extattr_string_in_libc=no
29787 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29790 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29791 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29792 cat >>confdefs.h <<_ACEOF
29793 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29796 have_extattr_string_in_libc=yes
29798 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29801 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29809 if test $have_extattr_string_in_libc = no; then
29810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29811 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29812 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29813 $as_echo_n "(cached) " >&6
29815 ac_check_lib_save_LIBS=$LIBS
29816 LIBS="-lutil $LIBS"
29817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29818 /* end confdefs.h. */
29820 /* Override any GCC internal prototype to avoid an error.
29821 Use char because int might match the return type of a GCC
29822 builtin and then its argument prototype would still apply. */
29826 char extattr_namespace_to_string extattr_string_to_namespace ();
29830 return extattr_namespace_to_string extattr_string_to_namespace ();
29835 if ac_fn_c_try_link "$LINENO"; then :
29836 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29838 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29840 rm -f core conftest.err conftest.$ac_objext \
29841 conftest$ac_exeext conftest.$ac_ext
29842 LIBS=$ac_check_lib_save_LIBS
29844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29845 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29846 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29849 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29852 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29854 FDLIBS="-lutil $FDLIBS"
29863 if test $have_xattr = no -a \
29864 x${HAVE_AIX_OS_TRUE} = x; then
29865 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29866 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
29868 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29873 for ac_func in llistea lgetea lsetea
29875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29876 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29877 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29878 cat >>confdefs.h <<_ACEOF
29879 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29884 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29887 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29890 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29898 if test $have_xattr = no; then
29899 for ac_func in listea getea setea
29901 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29902 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29903 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29904 cat >>confdefs.h <<_ACEOF
29905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29910 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29913 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29916 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29926 if test $have_xattr = no -a \
29927 x${HAVE_OSF1_OS_TRUE} = x; then
29928 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29929 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
29931 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29936 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29938 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29939 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29940 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29941 cat >>confdefs.h <<_ACEOF
29942 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29947 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29950 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29953 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29956 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29959 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29968 if test $have_xattr = no -a \
29969 x${HAVE_SUN_OS_TRUE} = x; then
29970 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29971 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
29973 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29978 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29979 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
29981 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29986 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29987 if test "x$ac_cv_header_attr_h" = xyes; then :
29989 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29995 for ac_func in openat fstatat unlinkat fchownat futimesat
29997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29998 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29999 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30000 cat >>confdefs.h <<_ACEOF
30001 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30006 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30009 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30012 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30015 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30018 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30026 if test $have_xattr = yes; then
30027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30028 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30029 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30030 $as_echo_n "(cached) " >&6
30032 ac_check_lib_save_LIBS=$LIBS
30033 LIBS="-lnvpair $LIBS"
30034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30035 /* end confdefs.h. */
30037 /* Override any GCC internal prototype to avoid an error.
30038 Use char because int might match the return type of a GCC
30039 builtin and then its argument prototype would still apply. */
30043 char nvlist_next_nvpair ();
30047 return nvlist_next_nvpair ();
30052 if ac_fn_c_try_link "$LINENO"; then :
30053 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30055 ac_cv_lib_nvpair_nvlist_next_nvpair=no
30057 rm -f core conftest.err conftest.$ac_objext \
30058 conftest$ac_exeext conftest.$ac_ext
30059 LIBS=$ac_check_lib_save_LIBS
30061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30062 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30063 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30066 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30068 FDLIBS="-lnvpair $FDLIBS"
30076 if test $have_xattr = no; then
30077 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30078 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30080 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30085 for ac_func in llistxattr lgetxattr lsetxattr
30087 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30088 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30089 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30090 cat >>confdefs.h <<_ACEOF
30091 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30096 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30099 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30102 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30110 if test $have_xattr = no; then
30111 for ac_func in listxattr getxattr setxattr
30113 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30114 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30115 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30116 cat >>confdefs.h <<_ACEOF
30117 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30122 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30125 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30128 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30138 if test x$support_xattr = xyes -a $have_xattr != yes; then
30139 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30140 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30142 if test $have_xattr = yes; then
30144 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30152 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30153 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30154 $as_echo_n "(cached) " >&6
30156 ac_check_lib_save_LIBS=$LIBS
30157 LIBS="-lpthread $LIBS"
30158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30159 /* end confdefs.h. */
30161 /* Override any GCC internal prototype to avoid an error.
30162 Use char because int might match the return type of a GCC
30163 builtin and then its argument prototype would still apply. */
30167 char pthread_create ();
30171 return pthread_create ();
30176 if ac_fn_c_try_link "$LINENO"; then :
30177 ac_cv_lib_pthread_pthread_create=yes
30179 ac_cv_lib_pthread_pthread_create=no
30181 rm -f core conftest.err conftest.$ac_objext \
30182 conftest$ac_exeext conftest.$ac_ext
30183 LIBS=$ac_check_lib_save_LIBS
30185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30186 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30187 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30188 PTHREAD_LIB="-lpthread"
30191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30192 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30193 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30194 $as_echo_n "(cached) " >&6
30196 ac_check_lib_save_LIBS=$LIBS
30197 LIBS="-lpthreads $LIBS"
30198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30199 /* end confdefs.h. */
30201 /* Override any GCC internal prototype to avoid an error.
30202 Use char because int might match the return type of a GCC
30203 builtin and then its argument prototype would still apply. */
30207 char pthread_create ();
30211 return pthread_create ();
30216 if ac_fn_c_try_link "$LINENO"; then :
30217 ac_cv_lib_pthreads_pthread_create=yes
30219 ac_cv_lib_pthreads_pthread_create=no
30221 rm -f core conftest.err conftest.$ac_objext \
30222 conftest$ac_exeext conftest.$ac_ext
30223 LIBS=$ac_check_lib_save_LIBS
30225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30226 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30227 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30228 PTHREAD_LIB="-lpthreads"
30231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30232 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30233 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30234 $as_echo_n "(cached) " >&6
30236 ac_check_lib_save_LIBS=$LIBS
30238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30239 /* end confdefs.h. */
30241 /* Override any GCC internal prototype to avoid an error.
30242 Use char because int might match the return type of a GCC
30243 builtin and then its argument prototype would still apply. */
30247 char pthread_create ();
30251 return pthread_create ();
30256 if ac_fn_c_try_link "$LINENO"; then :
30257 ac_cv_lib_c_r_pthread_create=yes
30259 ac_cv_lib_c_r_pthread_create=no
30261 rm -f core conftest.err conftest.$ac_objext \
30262 conftest$ac_exeext conftest.$ac_ext
30263 LIBS=$ac_check_lib_save_LIBS
30265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30266 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30267 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30268 PTHREAD_LIB="-lc_r"
30271 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30272 if test "x$ac_cv_func_pthread_create" = xyes; then :
30289 for ac_header in sys/prctl.h sys/capability.h
30291 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30292 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30293 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30294 cat >>confdefs.h <<_ACEOF
30295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30302 for ac_func in prctl setreuid
30304 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30305 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30306 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30307 cat >>confdefs.h <<_ACEOF
30308 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30315 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30316 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30317 $as_echo_n "(cached) " >&6
30319 ac_check_lib_save_LIBS=$LIBS
30321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30322 /* end confdefs.h. */
30324 /* Override any GCC internal prototype to avoid an error.
30325 Use char because int might match the return type of a GCC
30326 builtin and then its argument prototype would still apply. */
30330 char cap_set_proc ();
30334 return cap_set_proc ();
30339 if ac_fn_c_try_link "$LINENO"; then :
30340 ac_cv_lib_cap_cap_set_proc=yes
30342 ac_cv_lib_cap_cap_set_proc=no
30344 rm -f core conftest.err conftest.$ac_objext \
30345 conftest$ac_exeext conftest.$ac_ext
30346 LIBS=$ac_check_lib_save_LIBS
30348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30349 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30350 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30356 if test x$CAP_LIBS = x-lcap; then
30358 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30364 $as_echo "#define FDLIBS 1" >>confdefs.h
30367 CFLAGS=${CFLAGS--O}
30369 if test x$have_gcc = xyes ; then
30370 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30371 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30373 LDFLAGS=${LDFLAGS--O}
30374 CPPFLAGS="$CPPFLAGS"
30400 PFILES="platforms/Makefile"
30403 COMPRESS_MANPAGES=yes
30405 case "$DISTNAME" in
30408 PSCMD="ps -e -o pid,comm"
30409 PFILES="${PFILES} \
30410 platforms/aix/Makefile"
30411 TAPEDRIVE="/dev/rmt0.1"
30415 PTHREAD_LIB="-lpthread -lexc"
30416 if test "${CC}" = "gcc" ; then
30423 TAPEDRIVE="/dev/nrmt0"
30426 DISTVER=`uname -a |awk '{print $3}'`
30427 TAPEDRIVE="/dev/nrmt0"
30428 PTHREAD_LIB="-pthread"
30429 CFLAGS="${CFLAGS} -pthread"
30430 PSCMD="ps -ax -o pid,command"
30433 PFILES="${PFILES} \
30434 platforms/bsdi/Makefile \
30435 platforms/bsdi/bacula-fd \
30436 platforms/bsdi/bacula-sd \
30437 platforms/bsdi/bacula-dir"
30438 largefile_support="yes"
30442 TAPEDRIVE="/dev/nst0"
30443 PSCMD="ps -e -o pid,command"
30445 PFILES="${PFILES} \
30446 platforms/darwin/Makefile"
30450 TAPEDRIVE="/dev/nst0"
30451 PSCMD="ps -e -o pid,command"
30453 PFILES="${PFILES} \
30454 platforms/osx/Makefile"
30457 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30460 DISTVER=`cat /etc/debian_version`
30461 if test -f /etc/lsb-release ; then
30463 if test "x$DISTRIB_ID" != "x" ; then
30464 DISTNAME=$DISTRIB_ID
30466 if test "x$DISTRIB_RELEASE" != "x" ; then
30467 DISTVER=$DISTRIB_RELEASE
30470 if test "$DISTNAME" = "Ubuntu" ; then
30473 TAPEDRIVE="/dev/nst0"
30474 PSCMD="ps -e -o pid,command"
30475 if test "$DISTNAME" = "ubuntu" ; then
30476 PFILES="${PFILES} \
30477 platforms/ubuntu/Makefile \
30478 platforms/ubuntu/bacula-fd \
30479 platforms/ubuntu/bacula-sd \
30480 platforms/ubuntu/bacula-dir"
30482 PFILES="${PFILES} \
30483 platforms/debian/Makefile \
30484 platforms/debian/bacula-fd \
30485 platforms/debian/bacula-sd \
30486 platforms/debian/bacula-dir"
30490 DISTVER=`uname -a |awk '{print $3}'`
30491 VER=`echo $DISTVER | cut -c 1`
30492 if test x$VER = x4 ; then
30493 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30494 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30498 TAPEDRIVE="/dev/nrsa0"
30499 PSCMD="ps -ax -o pid,command"
30500 PFILES="${PFILES} \
30501 platforms/freebsd/Makefile \
30502 platforms/freebsd/bacula-fd \
30503 platforms/freebsd/bacula-sd \
30504 platforms/freebsd/bacula-dir"
30505 largefile_support="yes"
30509 TAPEDRIVE="/dev/nst0"
30510 PSCMD="ps -e -o pid,command"
30511 PFILES="${PFILES} \
30512 platforms/hurd/Makefile \
30513 platforms/hurd/bacula-fd \
30514 platforms/hurd/bacula-sd \
30515 platforms/hurd/bacula-dir"
30518 PSCMD="UNIX95=1; ps -e -o pid,comm"
30519 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30521 TAPEDRIVE="/dev/rmt/0hnb"
30522 PTHREAD_LIB="-lpthread"
30523 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30528 TAPEDRIVE="/dev/rmt/0cbn"
30529 PSCMD="ps -e -o pid,comm"
30530 PFILES="${PFILES} \
30531 platforms/irix/Makefile \
30532 platforms/irix/bacula-fd \
30533 platforms/irix/bacula-sd \
30534 platforms/irix/bacula-dir"
30537 DISTVER=`uname -a |awk '{print $3}'`
30540 TAPEDRIVE="/dev/nrst0"
30541 PSCMD="ps -ax -o pid,command"
30542 PTHREAD_LIB="-pthread"
30543 CFLAGS="${CFLAGS} -pthread"
30546 DISTVER=`uname -a |awk '{print $3}'`
30549 TAPEDRIVE="/dev/nrst0"
30550 PSCMD="ps -ax -o pid,command"
30551 PTHREAD_LIB="-pthread"
30552 CFLAGS="${CFLAGS} -pthread"
30553 PFILES="${PFILES} \
30554 platforms/openbsd/Makefile \
30555 platforms/openbsd/bacula-fd \
30556 platforms/openbsd/bacula-sd \
30557 platforms/openbsd/bacula-dir"
30560 if test -f /etc/whitebox-release ; then
30561 f=/etc/whitebox-release
30563 f=/etc/redhat-release
30565 if test `cat $f | grep release |\
30566 cut -f 3 -d ' '`x = "Enterprise"x ; then
30567 DISTVER="Enterprise "`cat $f | grep release |\
30570 DISTVER=`cat /etc/redhat-release | grep release |\
30573 TAPEDRIVE="/dev/nst0"
30574 PSCMD="ps -e -o pid,command"
30575 PFILES="${PFILES} \
30576 platforms/redhat/Makefile \
30577 platforms/redhat/bacula-fd \
30578 platforms/redhat/bacula-sd \
30579 platforms/redhat/bacula-dir
30583 DISTVER=`cat /etc/mandrake-release | grep release |\
30585 TAPEDRIVE="/dev/nst0"
30586 PSCMD="ps -e -o pid,command"
30587 PFILES="${PFILES} \
30588 platforms/mandrake/Makefile \
30589 platforms/mandrake/bacula-fd \
30590 platforms/mandrake/bacula-sd \
30591 platforms/mandrake/bacula-dir \
30595 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30596 TAPEDRIVE="/dev/nst0"
30597 PSCMD="ps -e -o pid,command"
30598 PFILES="${PFILES} \
30599 platforms/gentoo/Makefile \
30600 platforms/gentoo/bacula-init \
30601 platforms/gentoo/bacula-fd \
30602 platforms/gentoo/bacula-sd \
30603 platforms/gentoo/bacula-dir"
30606 DISTVER=`cat /etc/slackware-version`
30607 TAPEDRIVE="/dev/nst0"
30608 PSCMD="ps -e -o pid,command"
30609 PFILES="${PFILES} \
30610 platforms/slackware/Makefile \
30611 platforms/slackware/rc.bacula-fd \
30612 platforms/slackware/rc.bacula-sd \
30613 platforms/slackware/rc.bacula-dir\
30614 platforms/slackware/functions.bacula"
30618 TAPEDRIVE="/dev/rmt/0cbn"
30619 PSCMD="ps -e -o pid,comm"
30620 PFILES="${PFILES} \
30621 platforms/solaris/Makefile \
30622 platforms/solaris/bacula-fd \
30623 platforms/solaris/bacula-sd \
30624 platforms/solaris/bacula-dir"
30628 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30630 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30634 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30640 LIBS="$LIBS -lresolv -lrt"
30643 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30645 TAPEDRIVE="/dev/nst0"
30646 PSCMD="ps -e -o pid,command"
30647 PFILES="${PFILES} \
30648 platforms/suse/Makefile \
30649 platforms/suse/bacula-fd \
30650 platforms/suse/bacula-sd \
30651 platforms/suse/bacula-dir \
30652 platforms/suse/bacula"
30657 TAPEDRIVE="/dev/nst0"
30658 PSCMD="ps -e -o pid,command"
30659 PFILES="${PFILES} \
30660 platforms/suse/Makefile \
30661 platforms/suse/bacula-fd \
30662 platforms/suse/bacula-sd \
30663 platforms/suse/bacula-dir"
30667 TAPEDRIVE="/dev/nst0"
30670 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30675 $as_echo_n "checking for systemd support... " >&6; }
30677 # Check whether --with-systemd was given.
30678 if test "${with_systemd+set}" = set; then :
30679 withval=$with_systemd;
30680 if test "$withval" != "no"; then
30681 if test "$withval" = "yes"; then
30682 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30684 SYSTEMD_UNITDIR="${withval}"
30687 PFILES="${PFILES} \
30688 platforms/systemd/Makefile \
30689 platforms/systemd/bacula.conf \
30690 platforms/systemd/bacula-dir.service \
30691 platforms/systemd/bacula-fd.service \
30692 platforms/systemd/bacula-sd.service"
30694 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30697 $as_echo "yes" >&6; }
30698 support_systemd="yes"
30700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30701 $as_echo "no" >&6; }
30702 support_systemd="no"
30707 support_systemd="no"
30708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30709 $as_echo "no" >&6; }
30718 LIBS="$PTHREAD_LIB $LIBS"
30720 cat >>confdefs.h <<_ACEOF
30724 cat >>confdefs.h <<_ACEOF
30735 MCOMMON=./autoconf/Make.common
30738 if test "x${subsysdir}" = "x${sbindir}" ; then
30741 echo "You have set both --sbindir and --with-subsys-dir"
30742 echo " equal to: ${subsysdir} "
30743 echo "This is not permitted. Please reconfigure."
30745 echo "Aborting configuration ..."
30751 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/install_conf_file 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_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 updatedb/update_mysql_tables_12_to_14 updatedb/update_sqlite3_tables_12_to_14 updatedb/update_postgresql_tables_12_to_14 examples/nagios/check_bacula/Makefile platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec platforms/rpms/suse/bacula.spec platforms/rpms/suse/bacula-bat.spec platforms/rpms/suse/bacula-docs.spec platforms/rpms/suse/bacula-mtx.spec $PFILES"
30753 ac_config_commands="$ac_config_commands default"
30755 cat >confcache <<\_ACEOF
30756 # This file is a shell script that caches the results of configure
30757 # tests run on this system so they can be shared between configure
30758 # scripts and configure runs, see configure's option --config-cache.
30759 # It is not useful on other systems. If it contains results you don't
30760 # want to keep, you may remove or edit it.
30762 # config.status only pays attention to the cache file if you give it
30763 # the --recheck option to rerun configure.
30765 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30766 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30767 # following values.
30771 # The following way of writing the cache mishandles newlines in values,
30772 # but we know of no workaround that is simple, portable, and efficient.
30773 # So, we kill variables containing newlines.
30774 # Ultrix sh set writes to stderr and can't be redirected directly,
30775 # and sets the high bit in the cache file unless we assign to the vars.
30777 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30778 eval ac_val=\$$ac_var
30782 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30783 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30786 _ | IFS | as_nl) ;; #(
30787 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30788 *) { eval $ac_var=; unset $ac_var;} ;;
30794 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30795 *${as_nl}ac_space=\ *)
30796 # `set' does not quote correctly, so add quotes: double-quote
30797 # substitution turns \\\\ into \\, and sed turns \\ into \.
30800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30803 # `set' quotes correctly as required by POSIX, so do not add quotes.
30804 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30813 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30815 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30817 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30818 if test -w "$cache_file"; then
30819 if test "x$cache_file" != "x/dev/null"; then
30820 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30821 $as_echo "$as_me: updating cache $cache_file" >&6;}
30822 if test ! -f "$cache_file" || test -h "$cache_file"; then
30823 cat confcache >"$cache_file"
30825 case $cache_file in #(
30827 mv -f confcache "$cache_file"$$ &&
30828 mv -f "$cache_file"$$ "$cache_file" ;; #(
30830 mv -f confcache "$cache_file" ;;
30835 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30836 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30841 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30842 # Let make expand exec_prefix.
30843 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30845 DEFS=-DHAVE_CONFIG_H
30850 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30851 # 1. Remove the extension, and $U if already installed.
30852 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30853 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30854 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30855 # will be set to the directory where LIBOBJS objects are built.
30856 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30857 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30859 LIBOBJS=$ac_libobjs
30861 LTLIBOBJS=$ac_ltlibobjs
30866 : "${CONFIG_STATUS=./config.status}"
30868 ac_clean_files_save=$ac_clean_files
30869 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30871 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30873 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30875 # Generated by $as_me.
30876 # Run this file to recreate the current configuration.
30877 # Compiler output produced by configure, useful for debugging
30878 # configure, is in config.log if it exists.
30881 ac_cs_recheck=false
30884 SHELL=\${CONFIG_SHELL-$SHELL}
30887 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30888 ## -------------------- ##
30889 ## M4sh Initialization. ##
30890 ## -------------------- ##
30892 # Be more Bourne compatible
30893 DUALCASE=1; export DUALCASE # for MKS sh
30894 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30897 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30898 # is contrary to our usage. Disable this feature.
30899 alias -g '${1+"$@"}'='"$@"'
30900 setopt NO_GLOB_SUBST
30902 case `(set -o) 2>/dev/null` in #(
30914 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30915 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30916 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30917 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30918 # Prefer a ksh shell builtin over an external printf program on Solaris,
30919 # but without wasting forks for bash or zsh.
30920 if test -z "$BASH_VERSION$ZSH_VERSION" \
30921 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30922 as_echo='print -r --'
30923 as_echo_n='print -rn --'
30924 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30925 as_echo='printf %s\n'
30926 as_echo_n='printf %s'
30928 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30929 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30930 as_echo_n='/usr/ucb/echo -n'
30932 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30933 as_echo_n_body='eval
30937 expr "X$arg" : "X\\(.*\\)$as_nl";
30938 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30940 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30942 export as_echo_n_body
30943 as_echo_n='sh -c $as_echo_n_body as_echo'
30945 export as_echo_body
30946 as_echo='sh -c $as_echo_body as_echo'
30949 # The user is always right.
30950 if test "${PATH_SEPARATOR+set}" != set; then
30952 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30953 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30960 # We need space, tab and new line, in precisely that order. Quoting is
30961 # there to prevent editors from complaining about space-tab.
30962 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30963 # splitting by setting IFS to empty value.)
30966 # Find who we are. Look in the path if we contain no directory separator.
30969 *[\\/]* ) as_myself=$0 ;;
30970 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30971 for as_dir in $PATH
30974 test -z "$as_dir" && as_dir=.
30975 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30981 # We did not find ourselves, most probably we were run as `sh COMMAND'
30982 # in which case we are not to be found in the path.
30983 if test "x$as_myself" = x; then
30986 if test ! -f "$as_myself"; then
30987 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30991 # Unset variables that we do not need and which cause bugs (e.g. in
30992 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30993 # suppresses any "Segmentation fault" message there. '((' could
30994 # trigger a bug in pdksh 5.2.14.
30995 for as_var in BASH_ENV ENV MAIL MAILPATH
30996 do eval test x\${$as_var+set} = xset \
30997 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31010 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31013 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31014 # ----------------------------------------
31015 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31016 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31017 # script with STATUS, using 1 if that was 0.
31020 as_status=$1; test $as_status -eq 0 && as_status=1
31022 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31023 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31025 $as_echo "$as_me: error: $2" >&2
31026 as_fn_exit $as_status
31030 # as_fn_set_status STATUS
31031 # -----------------------
31032 # Set $? to STATUS, without forking.
31033 as_fn_set_status ()
31036 } # as_fn_set_status
31038 # as_fn_exit STATUS
31039 # -----------------
31040 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31044 as_fn_set_status $1
31050 # Portably unset VAR.
31053 { eval $1=; unset $1;}
31055 as_unset=as_fn_unset
31056 # as_fn_append VAR VALUE
31057 # ----------------------
31058 # Append the text in VALUE to the end of the definition contained in VAR. Take
31059 # advantage of any shell optimizations that allow amortized linear growth over
31060 # repeated appends, instead of the typical quadratic growth present in naive
31062 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31063 eval 'as_fn_append ()
31074 # as_fn_arith ARG...
31075 # ------------------
31076 # Perform arithmetic evaluation on the ARGs, and store the result in the
31077 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31078 # must be portable across $(()) and expr.
31079 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31080 eval 'as_fn_arith ()
31087 as_val=`expr "$@" || test $? -eq 1`
31092 if expr a : '\(a\)' >/dev/null 2>&1 &&
31093 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31099 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31100 as_basename=basename
31105 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31111 as_me=`$as_basename -- "$0" ||
31112 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31113 X"$0" : 'X\(//\)$' \| \
31114 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31116 sed '/^.*\/\([^/][^/]*\)\/*$/{
31130 # Avoid depending upon Character Ranges.
31131 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31132 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31133 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31134 as_cr_digits='0123456789'
31135 as_cr_alnum=$as_cr_Letters$as_cr_digits
31137 ECHO_C= ECHO_N= ECHO_T=
31138 case `echo -n x` in #(((((
31140 case `echo 'xy\c'` in
31141 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31143 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31150 rm -f conf$$ conf$$.exe conf$$.file
31151 if test -d conf$$.dir; then
31152 rm -f conf$$.dir/conf$$.file
31155 mkdir conf$$.dir 2>/dev/null
31157 if (echo >conf$$.file) 2>/dev/null; then
31158 if ln -s conf$$.file conf$$ 2>/dev/null; then
31160 # ... but there are two gotchas:
31161 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31162 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31163 # In both cases, we have to default to `cp -p'.
31164 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31166 elif ln conf$$.file conf$$ 2>/dev/null; then
31174 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31175 rmdir conf$$.dir 2>/dev/null
31180 # Create "$as_dir" as a directory, including parents if necessary.
31185 -*) as_dir=./$as_dir;;
31187 test -d "$as_dir" || eval $as_mkdir_p || {
31191 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31192 *) as_qdir=$as_dir;;
31194 as_dirs="'$as_qdir' $as_dirs"
31195 as_dir=`$as_dirname -- "$as_dir" ||
31196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31197 X"$as_dir" : 'X\(//\)[^/]' \| \
31198 X"$as_dir" : 'X\(//\)$' \| \
31199 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31200 $as_echo X"$as_dir" |
31201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31205 /^X\(\/\/\)[^/].*/{
31218 test -d "$as_dir" && break
31220 test -z "$as_dirs" || eval "mkdir $as_dirs"
31221 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31225 if mkdir -p . 2>/dev/null; then
31226 as_mkdir_p='mkdir -p "$as_dir"'
31228 test -d ./-p && rmdir ./-p
31232 if test -x / >/dev/null 2>&1; then
31233 as_test_x='test -x'
31235 if ls -dL / >/dev/null 2>&1; then
31242 if test -d "$1"; then
31248 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31249 ???[sx]*):;;*)false;;esac;fi
31253 as_executable_p=$as_test_x
31255 # Sed expression to map a string onto a valid CPP name.
31256 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31258 # Sed expression to map a string onto a valid variable name.
31259 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31263 ## ----------------------------------- ##
31264 ## Main body of $CONFIG_STATUS script. ##
31265 ## ----------------------------------- ##
31267 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31270 # Save the log message, to keep $0 and so on meaningful, and to
31271 # report actual input values of CONFIG_FILES etc. instead of their
31272 # values after options handling.
31274 This file was extended by bacula $as_me 7.0.2, which was
31275 generated by GNU Autoconf 2.68. Invocation command line was
31277 CONFIG_FILES = $CONFIG_FILES
31278 CONFIG_HEADERS = $CONFIG_HEADERS
31279 CONFIG_LINKS = $CONFIG_LINKS
31280 CONFIG_COMMANDS = $CONFIG_COMMANDS
31283 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31288 case $ac_config_files in *"
31289 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31292 case $ac_config_headers in *"
31293 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31298 # Files that config.status was made for.
31299 config_files="$ac_config_files"
31300 config_headers="$ac_config_headers"
31301 config_commands="$ac_config_commands"
31305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31307 \`$as_me' instantiates files and other configuration actions
31308 from templates according to the current configuration. Unless the files
31309 and actions are specified as TAGs, all are instantiated by default.
31311 Usage: $0 [OPTION]... [TAG]...
31313 -h, --help print this help, then exit
31314 -V, --version print version number and configuration settings, then exit
31315 --config print configuration, then exit
31316 -q, --quiet, --silent
31317 do not print progress messages
31318 -d, --debug don't remove temporary files
31319 --recheck update $as_me by reconfiguring in the same conditions
31320 --file=FILE[:TEMPLATE]
31321 instantiate the configuration file FILE
31322 --header=FILE[:TEMPLATE]
31323 instantiate the configuration header FILE
31325 Configuration files:
31328 Configuration headers:
31331 Configuration commands:
31334 Report bugs to the package provider."
31337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31338 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31340 bacula config.status 7.0.2
31341 configured by $0, generated by GNU Autoconf 2.68,
31342 with options \\"\$ac_cs_config\\"
31344 Copyright (C) 2010 Free Software Foundation, Inc.
31345 This config.status script is free software; the Free Software Foundation
31346 gives unlimited permission to copy, distribute and modify it."
31352 test -n "\$AWK" || AWK=awk
31355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31356 # The default lists apply if the user does not specify any file.
31362 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31363 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31367 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31379 # Handling of the options.
31380 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31382 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31383 $as_echo "$ac_cs_version"; exit ;;
31384 --config | --confi | --conf | --con | --co | --c )
31385 $as_echo "$ac_cs_config"; exit ;;
31386 --debug | --debu | --deb | --de | --d | -d )
31388 --file | --fil | --fi | --f )
31391 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31392 '') as_fn_error $? "missing file argument" ;;
31394 as_fn_append CONFIG_FILES " '$ac_optarg'"
31395 ac_need_defaults=false;;
31396 --header | --heade | --head | --hea )
31399 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31401 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31402 ac_need_defaults=false;;
31404 # Conflict between --help and --header
31405 as_fn_error $? "ambiguous option: \`$1'
31406 Try \`$0 --help' for more information.";;
31407 --help | --hel | -h )
31408 $as_echo "$ac_cs_usage"; exit ;;
31409 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31410 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31413 # This is an error.
31414 -*) as_fn_error $? "unrecognized option: \`$1'
31415 Try \`$0 --help' for more information." ;;
31417 *) as_fn_append ac_config_targets " $1"
31418 ac_need_defaults=false ;;
31424 ac_configure_extra_args=
31426 if $ac_cs_silent; then
31428 ac_configure_extra_args="$ac_configure_extra_args --silent"
31432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31433 if \$ac_cs_recheck; then
31434 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31436 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31437 CONFIG_SHELL='$SHELL'
31438 export CONFIG_SHELL
31443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31447 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31448 ## Running $as_me. ##
31454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31460 # The HP-UX ksh and POSIX shell print the target directory to stdout
31461 # if CDPATH is set.
31462 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31464 sed_quote_subst='$sed_quote_subst'
31465 double_quote_subst='$double_quote_subst'
31466 delay_variable_subst='$delay_variable_subst'
31467 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31468 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31469 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31470 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31471 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31472 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31473 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31474 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31475 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31476 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31477 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31478 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31479 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31480 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31481 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31482 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31483 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31484 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31485 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31486 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31487 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31488 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31489 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31490 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31491 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31492 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31493 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31494 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31495 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31496 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31497 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31498 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31499 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31500 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31501 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31502 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31503 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31504 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31505 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31506 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31507 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31508 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31509 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31510 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31511 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31512 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31513 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31514 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31515 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31516 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31517 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31518 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31519 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31520 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31521 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31522 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31523 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"`'
31524 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31525 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31526 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31527 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31528 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31529 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31530 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31531 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31532 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31533 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31534 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31535 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31536 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31537 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31538 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31539 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31540 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31541 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31542 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31543 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31544 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31545 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31546 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31547 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31548 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31549 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31550 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31551 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31552 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31553 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31554 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31555 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31556 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31557 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31558 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31559 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31560 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31561 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31562 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31563 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31564 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31565 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31566 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31567 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31568 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31569 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31570 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31571 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31572 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31573 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31574 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31575 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31576 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31577 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31578 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31579 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31580 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31581 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31582 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31583 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31584 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31585 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31586 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31587 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31588 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31589 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31590 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31591 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31592 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31593 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31594 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31595 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31596 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31597 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31598 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31599 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31600 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31601 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31602 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31603 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31604 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31605 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31606 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31607 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31608 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31609 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31610 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31611 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31612 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31613 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31614 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31615 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31616 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31617 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31618 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31619 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31620 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31621 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31622 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31623 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31624 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31625 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31626 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31627 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31628 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31629 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31630 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31631 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31632 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31633 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31634 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31635 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31636 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31637 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31638 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31639 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31640 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31641 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31642 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31643 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31644 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31645 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31646 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31647 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31648 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31649 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31650 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31653 LTCFLAGS='$LTCFLAGS'
31654 compiler='$compiler_DEFAULT'
31656 # A function that is used when there is no print builtin or printf.
31657 func_fallback_echo ()
31659 eval 'cat <<_LTECHO_EOF
31664 # Quote evaled strings.
31679 deplibs_check_method \
31684 sharedlib_from_linklib_cmd \
31687 archiver_list_spec \
31693 lt_cv_sys_global_symbol_pipe \
31694 lt_cv_sys_global_symbol_to_cdecl \
31695 lt_cv_sys_global_symbol_to_c_name_address \
31696 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31697 nm_file_list_spec \
31698 lt_prog_compiler_no_builtin_flag \
31699 lt_prog_compiler_pic \
31700 lt_prog_compiler_wl \
31701 lt_prog_compiler_static \
31702 lt_cv_prog_compiler_c_o \
31711 export_dynamic_flag_spec \
31712 whole_archive_flag_spec \
31713 compiler_needs_object \
31715 allow_undefined_flag \
31716 no_undefined_flag \
31717 hardcode_libdir_flag_spec \
31718 hardcode_libdir_separator \
31722 variables_saved_for_relink \
31724 library_names_spec \
31726 install_override_mode \
31730 compiler_lib_search_dirs \
31735 compiler_lib_search_path \
31739 lt_prog_compiler_no_builtin_flag_CXX \
31740 lt_prog_compiler_pic_CXX \
31741 lt_prog_compiler_wl_CXX \
31742 lt_prog_compiler_static_CXX \
31743 lt_cv_prog_compiler_c_o_CXX \
31744 export_dynamic_flag_spec_CXX \
31745 whole_archive_flag_spec_CXX \
31746 compiler_needs_object_CXX \
31748 allow_undefined_flag_CXX \
31749 no_undefined_flag_CXX \
31750 hardcode_libdir_flag_spec_CXX \
31751 hardcode_libdir_separator_CXX \
31752 exclude_expsyms_CXX \
31753 include_expsyms_CXX \
31754 file_list_spec_CXX \
31755 compiler_lib_search_dirs_CXX \
31756 predep_objects_CXX \
31757 postdep_objects_CXX \
31760 compiler_lib_search_path_CXX; do
31761 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31762 *[\\\\\\\`\\"\\\$]*)
31763 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31766 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31771 # Double-quote double-evaled strings.
31772 for var in reload_cmds \
31773 old_postinstall_cmds \
31774 old_postuninstall_cmds \
31776 extract_expsyms_cmds \
31777 old_archive_from_new_cmds \
31778 old_archive_from_expsyms_cmds \
31780 archive_expsym_cmds \
31782 module_expsym_cmds \
31783 export_symbols_cmds \
31787 postuninstall_cmds \
31789 sys_lib_search_path_spec \
31790 sys_lib_dlsearch_path_spec \
31792 old_archive_cmds_CXX \
31793 old_archive_from_new_cmds_CXX \
31794 old_archive_from_expsyms_cmds_CXX \
31796 archive_expsym_cmds_CXX \
31798 module_expsym_cmds_CXX \
31799 export_symbols_cmds_CXX \
31801 postlink_cmds_CXX; do
31802 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31803 *[\\\\\\\`\\"\\\$]*)
31804 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31807 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31812 ac_aux_dir='$ac_aux_dir'
31813 xsi_shell='$xsi_shell'
31814 lt_shell_append='$lt_shell_append'
31816 # See if we are running on zsh, and set the options which allow our
31817 # commands through without removal of \ escapes INIT.
31818 if test -n "\${ZSH_VERSION+set}" ; then
31819 setopt NO_GLOB_SUBST
31825 TIMESTAMP='$TIMESTAMP'
31833 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31834 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31836 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31837 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31838 LINGUAS="${LINGUAS-%UNSET%}"
31843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31845 # Handling of arguments.
31846 for ac_config_target in $ac_config_targets
31848 case $ac_config_target in
31849 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31850 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31851 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31852 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31853 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31854 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31855 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31856 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31857 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31858 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31859 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31860 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31861 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31862 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31863 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31864 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31865 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31866 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31867 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31868 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31869 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31870 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31871 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31872 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31873 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31874 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31875 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31876 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31877 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31878 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31879 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31880 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31881 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31882 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31883 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31884 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31885 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31886 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31887 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31888 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31889 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31890 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31891 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31892 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31893 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31894 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31895 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31896 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31897 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31898 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31899 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31900 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31901 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31902 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31903 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31904 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31905 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31906 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31907 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31908 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31909 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31910 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31911 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31912 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31913 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31914 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31915 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31916 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31917 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31918 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31919 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31920 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31921 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31922 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31923 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31924 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31925 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31926 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31927 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31928 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31929 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31930 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31931 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31932 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31933 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31934 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31935 "updatedb/update_mysql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_14" ;;
31936 "updatedb/update_sqlite3_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_12_to_14" ;;
31937 "updatedb/update_postgresql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_14" ;;
31938 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31939 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
31940 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
31941 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
31942 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
31943 "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
31944 "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
31945 "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
31946 "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
31947 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31948 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31950 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31955 # If the user did not use the arguments to specify the items to instantiate,
31956 # then the envvar interface is used. Set only those that are not.
31957 # We use the long form for the default assignment because of an extremely
31958 # bizarre bug on SunOS 4.1.3.
31959 if $ac_need_defaults; then
31960 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31961 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31962 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31965 # Have a temporary directory for convenience. Make it in the build tree
31966 # simply because there is no reason against having it here, and in addition,
31967 # creating and moving files from /tmp can sometimes cause problems.
31968 # Hook for its removal unless debugging.
31969 # Note that there is a small window in which the directory will not be cleaned:
31970 # after its creation but before its name has been assigned to `$tmp'.
31974 trap 'exit_status=$?
31975 : "${ac_tmp:=$tmp}"
31976 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31978 trap 'as_fn_exit 1' 1 2 13 15
31980 # Create a (secure) tmp directory for tmp files.
31983 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31987 tmp=./conf$$-$RANDOM
31988 (umask 077 && mkdir "$tmp")
31989 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31992 # Set up the scripts for CONFIG_FILES section.
31993 # No need to generate them if there are no CONFIG_FILES.
31994 # This happens for instance with `./config.status config.h'.
31995 if test -n "$CONFIG_FILES"; then
31997 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31998 ac_cs_awk_getline=:
31999 ac_cs_awk_pipe_init=
32000 ac_cs_awk_read_file='
32001 while ((getline aline < (F[key])) > 0)
32004 ac_cs_awk_pipe_fini=
32006 ac_cs_awk_getline=false
32007 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32008 ac_cs_awk_read_file='
32010 print "cat " F[key] " &&"
32011 '$ac_cs_awk_pipe_init
32012 # The final `:' finishes the AND list.
32013 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32015 ac_cr=`echo X | tr X '\015'`
32016 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32017 # But we know of no other shell where ac_cr would be empty at this
32018 # point, so we can use a bashism as a fallback.
32019 if test "x$ac_cr" = x; then
32020 eval ac_cr=\$\'\\r\'
32022 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32023 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32026 ac_cs_awk_cr=$ac_cr
32029 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32032 # Create commands to substitute file output variables.
32034 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32035 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32036 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32039 } >conf$$files.sh &&
32040 . ./conf$$files.sh ||
32041 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32042 rm -f conf$$files.sh
32045 echo "cat >conf$$subs.awk <<_ACEOF" &&
32046 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32048 } >conf$$subs.sh ||
32049 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32050 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32052 for ac_last_try in false false false false false :; do
32053 . ./conf$$subs.sh ||
32054 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32056 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32057 if test $ac_delim_n = $ac_delim_num; then
32059 elif $ac_last_try; then
32060 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32062 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32065 rm -f conf$$subs.sh
32067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32068 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32072 s/^/S["/; s/!.*/"]=/
32082 s/\(.\{148\}\)..*/\1/
32084 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32089 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32096 s/\(.\{148\}\)..*/\1/
32098 s/["\\]/\\&/g; s/^/"/; s/$/"/
32102 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32107 ' <conf$$subs.awk | sed '
32112 ' >>$CONFIG_STATUS || ac_write_fail=1
32113 rm -f conf$$subs.awk
32114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32116 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32117 for (key in S) S_is_set[key] = 1
32119 \$ac_cs_awk_pipe_init
32123 nfields = split(line, field, "@")
32125 len = length(field[1])
32126 for (i = 2; i < nfields; i++) {
32128 keylen = length(key)
32129 if (S_is_set[key]) {
32131 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32132 len += length(value) + length(field[++i])
32137 if (nfields == 3 && !substed) {
32139 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32140 \$ac_cs_awk_read_file
32146 \$ac_cs_awk_pipe_fini
32149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32150 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32151 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32154 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32155 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32158 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32159 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32160 # trailing colons and then remove the whole line if VPATH becomes empty
32161 # (actually we leave an empty line to preserve line numbers).
32162 if test "x$srcdir" = x.; then
32163 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32182 fi # test -n "$CONFIG_FILES"
32184 # Set up the scripts for CONFIG_HEADERS section.
32185 # No need to generate them if there are no CONFIG_HEADERS.
32186 # This happens for instance with `./config.status Makefile'.
32187 if test -n "$CONFIG_HEADERS"; then
32188 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32192 # Transform confdefs.h into an awk script `defines.awk', embedded as
32193 # here-document in config.status, that substitutes the proper values into
32194 # config.h.in to produce config.h.
32196 # Create a delimiter string that does not exist in confdefs.h, to ease
32197 # handling of long lines.
32199 for ac_last_try in false false :; do
32200 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32201 if test -z "$ac_tt"; then
32203 elif $ac_last_try; then
32204 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32206 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32210 # For the awk script, D is an array of macro values keyed by name,
32211 # likewise P contains macro parameters if any. Preserve backslash
32212 # newline sequences.
32214 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32216 s/.\{148\}/&'"$ac_delim"'/g
32219 s/^[ ]*#[ ]*define[ ][ ]*/ /
32226 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32228 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32232 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32233 D["\1"]=" \3\\\\\\n"\\/p
32235 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32240 s/.\{148\}/&'"$ac_delim"'/g
32245 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32248 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32250 ' <confdefs.h | sed '
32251 s/'"$ac_delim"'/"\\\
32252 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32255 for (key in D) D_is_set[key] = 1
32258 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32260 split(line, arg, " ")
32261 if (arg[1] == "#") {
32265 defundef = substr(arg[1], 2)
32268 split(mac1, mac2, "(") #)
32270 prefix = substr(line, 1, index(line, defundef) - 1)
32271 if (D_is_set[macro]) {
32272 # Preserve the white space surrounding the "#".
32273 print prefix "define", macro P[macro] D[macro]
32276 # Replace #undef with comments. This is necessary, for example,
32277 # in the case of _POSIX_SOURCE, which is predefined and required
32278 # on some systems where configure will not decide to define it.
32279 if (defundef == "undef") {
32280 print "/*", prefix defundef, macro, "*/"
32288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32289 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32290 fi # test -n "$CONFIG_HEADERS"
32293 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32298 :[FHLC]) ac_mode=$ac_tag; continue;;
32300 case $ac_mode$ac_tag in
32302 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32303 :[FH]-) ac_tag=-:-;;
32304 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32321 -) ac_f="$ac_tmp/stdin";;
32322 *) # Look for the file first in the build tree, then in the source tree
32323 # (if the path is not absolute). The absolute path cannot be DOS-style,
32324 # because $ac_f cannot contain `:'.
32328 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32330 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32332 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32333 as_fn_append ac_file_inputs " '$ac_f'"
32336 # Let's still pretend it is `configure' which instantiates (i.e., don't
32337 # use $as_me), people would be surprised to read:
32338 # /* config.h. Generated by config.status. */
32339 configure_input='Generated from '`
32340 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32342 if test x"$ac_file" != x-; then
32343 configure_input="$ac_file. $configure_input"
32344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32345 $as_echo "$as_me: creating $ac_file" >&6;}
32347 # Neutralize special characters interpreted by sed in replacement strings.
32348 case $configure_input in #(
32349 *\&* | *\|* | *\\* )
32350 ac_sed_conf_input=`$as_echo "$configure_input" |
32351 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32352 *) ac_sed_conf_input=$configure_input;;
32356 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32362 ac_dir=`$as_dirname -- "$ac_file" ||
32363 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32364 X"$ac_file" : 'X\(//\)[^/]' \| \
32365 X"$ac_file" : 'X\(//\)$' \| \
32366 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32367 $as_echo X"$ac_file" |
32368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32372 /^X\(\/\/\)[^/].*/{
32385 as_dir="$ac_dir"; as_fn_mkdir_p
32389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32391 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32392 # A ".." for each directory in $ac_dir_suffix.
32393 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32394 case $ac_top_builddir_sub in
32395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32399 ac_abs_top_builddir=$ac_pwd
32400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32401 # for backward compatibility:
32402 ac_top_builddir=$ac_top_build_prefix
32405 .) # We are building in place.
32407 ac_top_srcdir=$ac_top_builddir_sub
32408 ac_abs_top_srcdir=$ac_pwd ;;
32409 [\\/]* | ?:[\\/]* ) # Absolute name.
32410 ac_srcdir=$srcdir$ac_dir_suffix;
32411 ac_top_srcdir=$srcdir
32412 ac_abs_top_srcdir=$srcdir ;;
32413 *) # Relative name.
32414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32415 ac_top_srcdir=$ac_top_build_prefix$srcdir
32416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32428 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32429 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32434 # If the template does not know about datarootdir, expand it.
32435 # FIXME: This hack should be removed a few years after 2.60.
32436 ac_datarootdir_hack=; ac_datarootdir_seen=
32447 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32448 *datarootdir*) ac_datarootdir_seen=yes;;
32449 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32451 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32454 ac_datarootdir_hack='
32455 s&@datadir@&$datadir&g
32456 s&@docdir@&$docdir&g
32457 s&@infodir@&$infodir&g
32458 s&@localedir@&$localedir&g
32459 s&@mandir@&$mandir&g
32460 s&\\\${datarootdir}&$datarootdir&g' ;;
32464 # Neutralize VPATH when `$srcdir' = `.'.
32465 # Shell code in configure.ac might set extrasub.
32466 # FIXME: do we really want to maintain this feature?
32467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32468 ac_sed_extra="$ac_vpsub
32471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32474 s|@configure_input@|$ac_sed_conf_input|;t t
32475 s&@top_builddir@&$ac_top_builddir_sub&;t t
32476 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32477 s&@srcdir@&$ac_srcdir&;t t
32478 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32479 s&@top_srcdir@&$ac_top_srcdir&;t t
32480 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32481 s&@builddir@&$ac_builddir&;t t
32482 s&@abs_builddir@&$ac_abs_builddir&;t t
32483 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32484 s&@INSTALL@&$ac_INSTALL&;t t
32485 $ac_datarootdir_hack
32487 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32488 if $ac_cs_awk_getline; then
32489 $AWK -f "$ac_tmp/subs.awk"
32491 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32493 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32495 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32496 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32497 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32498 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32500 which seems to be undefined. Please make sure it is defined" >&5
32501 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32502 which seems to be undefined. Please make sure it is defined" >&2;}
32504 rm -f "$ac_tmp/stdin"
32506 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32507 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32509 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32515 if test x"$ac_file" != x-; then
32517 $as_echo "/* $configure_input */" \
32518 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32519 } >"$ac_tmp/config.h" \
32520 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32521 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32522 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32523 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32526 mv "$ac_tmp/config.h" "$ac_file" \
32527 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32530 $as_echo "/* $configure_input */" \
32531 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32532 || as_fn_error $? "could not create -" "$LINENO" 5
32536 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32537 $as_echo "$as_me: executing $ac_file commands" >&6;}
32542 case $ac_file$ac_mode in
32545 # See if we are running on zsh, and set the options which allow our
32546 # commands through without removal of \ escapes.
32547 if test -n "${ZSH_VERSION+set}" ; then
32548 setopt NO_GLOB_SUBST
32551 cfgfile="${ofile}T"
32552 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32555 cat <<_LT_EOF >> "$cfgfile"
32558 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32559 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32560 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32561 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32563 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32564 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32566 # Written by Gordon Matzigkeit, 1996
32568 # This file is part of GNU Libtool.
32570 # GNU Libtool is free software; you can redistribute it and/or
32571 # modify it under the terms of the GNU General Public License as
32572 # published by the Free Software Foundation; either version 2 of
32573 # the License, or (at your option) any later version.
32575 # As a special exception to the GNU General Public License,
32576 # if you distribute this file as part of a program or library that
32577 # is built using GNU Libtool, you may include this file under the
32578 # same distribution terms that you use for the rest of that program.
32580 # GNU Libtool is distributed in the hope that it will be useful,
32581 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32582 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32583 # GNU General Public License for more details.
32585 # You should have received a copy of the GNU General Public License
32586 # along with GNU Libtool; see the file COPYING. If not, a copy
32587 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32588 # obtained by writing to the Free Software Foundation, Inc.,
32589 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32592 # The names of the tagged configurations supported by this script.
32593 available_tags="CXX "
32595 # ### BEGIN LIBTOOL CONFIG
32597 # Which release of libtool.m4 was used?
32598 macro_version=$macro_version
32599 macro_revision=$macro_revision
32601 # Whether or not to build shared libraries.
32602 build_libtool_libs=$enable_shared
32604 # Whether or not to build static libraries.
32605 build_old_libs=$enable_static
32607 # What type of objects to build.
32610 # Whether or not to optimize for fast installation.
32611 fast_install=$enable_fast_install
32613 # Shell to use when invoking shell scripts.
32616 # An echo program that protects backslashes.
32619 # The PATH separator for the build system.
32620 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32623 host_alias=$host_alias
32627 # The build system.
32628 build_alias=$build_alias
32632 # A sed program that does not truncate output.
32635 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32636 Xsed="\$SED -e 1s/^X//"
32638 # A grep program that handles long lines.
32644 # A literal string matcher.
32647 # A BSD- or MS-compatible name lister.
32650 # Whether we need soft or hard links.
32653 # What is the maximum length of a command?
32654 max_cmd_len=$max_cmd_len
32656 # Object file suffix (normally "o").
32659 # Executable file suffix (normally "").
32662 # whether the shell understands "unset".
32665 # turn spaces into newlines.
32668 # turn newlines into spaces.
32671 # convert \$build file names to \$host format.
32672 to_host_file_cmd=$lt_cv_to_host_file_cmd
32674 # convert \$build files to toolchain format.
32675 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32677 # An object symbol dumper.
32678 OBJDUMP=$lt_OBJDUMP
32680 # Method to check whether dependent libraries are shared objects.
32681 deplibs_check_method=$lt_deplibs_check_method
32683 # Command to use when deplibs_check_method = "file_magic".
32684 file_magic_cmd=$lt_file_magic_cmd
32686 # How to find potential files when deplibs_check_method = "file_magic".
32687 file_magic_glob=$lt_file_magic_glob
32689 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32690 want_nocaseglob=$lt_want_nocaseglob
32692 # DLL creation program.
32693 DLLTOOL=$lt_DLLTOOL
32695 # Command to associate shared and link libraries.
32696 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32701 # Flags to create an archive.
32702 AR_FLAGS=$lt_AR_FLAGS
32704 # How to feed a file listing to the archiver.
32705 archiver_list_spec=$lt_archiver_list_spec
32707 # A symbol stripping program.
32710 # Commands used to install an old-style archive.
32712 old_postinstall_cmds=$lt_old_postinstall_cmds
32713 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32715 # Whether to use a lock for old archive extraction.
32716 lock_old_archive_extraction=$lock_old_archive_extraction
32721 # LTCC compiler flags.
32722 LTCFLAGS=$lt_CFLAGS
32724 # Take the output of nm and produce a listing of raw symbols and C names.
32725 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32727 # Transform the output of nm in a proper C declaration.
32728 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32730 # Transform the output of nm in a C name address pair.
32731 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32733 # Transform the output of nm in a C name address pair when lib prefix is needed.
32734 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32736 # Specify filename containing input files for \$NM.
32737 nm_file_list_spec=$lt_nm_file_list_spec
32739 # The root where to search for dependent libraries,and in which our libraries should be installed.
32740 lt_sysroot=$lt_sysroot
32742 # The name of the directory that contains temporary libtool files.
32745 # Used to examine libraries when file_magic_cmd begins with "file".
32746 MAGIC_CMD=$MAGIC_CMD
32748 # Must we lock files when doing compilation?
32749 need_locks=$lt_need_locks
32752 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32754 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32755 DSYMUTIL=$lt_DSYMUTIL
32757 # Tool to change global to local symbols on Mac OS X.
32760 # Tool to manipulate fat objects and archives on Mac OS X.
32763 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32766 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32767 OTOOL64=$lt_OTOOL64
32769 # Old archive suffix (normally "a").
32772 # Shared library suffix (normally ".so").
32773 shrext_cmds=$lt_shrext_cmds
32775 # The commands to extract the exported symbol list from a shared archive.
32776 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32778 # Variables whose values should be saved in libtool wrapper scripts and
32779 # restored at link time.
32780 variables_saved_for_relink=$lt_variables_saved_for_relink
32782 # Do we need the "lib" prefix for modules?
32783 need_lib_prefix=$need_lib_prefix
32785 # Do we need a version for libraries?
32786 need_version=$need_version
32788 # Library versioning type.
32789 version_type=$version_type
32791 # Shared library runtime path variable.
32792 runpath_var=$runpath_var
32794 # Shared library path variable.
32795 shlibpath_var=$shlibpath_var
32797 # Is shlibpath searched before the hard-coded library search path?
32798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32800 # Format of library name prefix.
32801 libname_spec=$lt_libname_spec
32803 # List of archive names. First name is the real one, the rest are links.
32804 # The last name is the one that the linker finds with -lNAME
32805 library_names_spec=$lt_library_names_spec
32807 # The coded name of the library, if different from the real name.
32808 soname_spec=$lt_soname_spec
32810 # Permission mode override for installation of shared libraries.
32811 install_override_mode=$lt_install_override_mode
32813 # Command to use after installation of a shared archive.
32814 postinstall_cmds=$lt_postinstall_cmds
32816 # Command to use after uninstallation of a shared archive.
32817 postuninstall_cmds=$lt_postuninstall_cmds
32819 # Commands used to finish a libtool library installation in a directory.
32820 finish_cmds=$lt_finish_cmds
32822 # As "finish_cmds", except a single script fragment to be evaled but
32824 finish_eval=$lt_finish_eval
32826 # Whether we should hardcode library paths into libraries.
32827 hardcode_into_libs=$hardcode_into_libs
32829 # Compile-time system search path for libraries.
32830 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32832 # Run-time system search path for libraries.
32833 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32835 # Whether dlopen is supported.
32836 dlopen_support=$enable_dlopen
32838 # Whether dlopen of programs is supported.
32839 dlopen_self=$enable_dlopen_self
32841 # Whether dlopen of statically linked programs is supported.
32842 dlopen_self_static=$enable_dlopen_self_static
32844 # Commands to strip libraries.
32845 old_striplib=$lt_old_striplib
32846 striplib=$lt_striplib
32849 # The linker used to build libraries.
32852 # How to create reloadable object files.
32853 reload_flag=$lt_reload_flag
32854 reload_cmds=$lt_reload_cmds
32856 # Commands used to build an old-style archive.
32857 old_archive_cmds=$lt_old_archive_cmds
32859 # A language specific compiler.
32862 # Is the compiler the GNU compiler?
32865 # Compiler flag to turn off builtin functions.
32866 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32868 # Additional compiler flags for building library objects.
32869 pic_flag=$lt_lt_prog_compiler_pic
32871 # How to pass a linker flag through the compiler.
32872 wl=$lt_lt_prog_compiler_wl
32874 # Compiler flag to prevent dynamic linking.
32875 link_static_flag=$lt_lt_prog_compiler_static
32877 # Does compiler simultaneously support -c and -o options?
32878 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32880 # Whether or not to add -lc for building shared libraries.
32881 build_libtool_need_lc=$archive_cmds_need_lc
32883 # Whether or not to disallow shared libs when runtime libs are static.
32884 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32886 # Compiler flag to allow reflexive dlopens.
32887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32889 # Compiler flag to generate shared objects directly from archives.
32890 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32892 # Whether the compiler copes with passing no objects directly.
32893 compiler_needs_object=$lt_compiler_needs_object
32895 # Create an old-style archive from a shared archive.
32896 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32898 # Create a temporary old-style archive to link instead of a shared archive.
32899 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32901 # Commands used to build a shared archive.
32902 archive_cmds=$lt_archive_cmds
32903 archive_expsym_cmds=$lt_archive_expsym_cmds
32905 # Commands used to build a loadable module if different from building
32906 # a shared archive.
32907 module_cmds=$lt_module_cmds
32908 module_expsym_cmds=$lt_module_expsym_cmds
32910 # Whether we are building with GNU ld or not.
32911 with_gnu_ld=$lt_with_gnu_ld
32913 # Flag that allows shared libraries with undefined symbols to be built.
32914 allow_undefined_flag=$lt_allow_undefined_flag
32916 # Flag that enforces no undefined symbols.
32917 no_undefined_flag=$lt_no_undefined_flag
32919 # Flag to hardcode \$libdir into a binary during linking.
32920 # This must work even if \$libdir does not exist
32921 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32923 # Whether we need a single "-rpath" flag with a separated argument.
32924 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32926 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32927 # DIR into the resulting binary.
32928 hardcode_direct=$hardcode_direct
32930 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32931 # DIR into the resulting binary and the resulting library dependency is
32932 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32933 # library is relocated.
32934 hardcode_direct_absolute=$hardcode_direct_absolute
32936 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32937 # into the resulting binary.
32938 hardcode_minus_L=$hardcode_minus_L
32940 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32941 # into the resulting binary.
32942 hardcode_shlibpath_var=$hardcode_shlibpath_var
32944 # Set to "yes" if building a shared library automatically hardcodes DIR
32945 # into the library and all subsequent libraries and executables linked
32947 hardcode_automatic=$hardcode_automatic
32949 # Set to yes if linker adds runtime paths of dependent libraries
32950 # to runtime path list.
32951 inherit_rpath=$inherit_rpath
32953 # Whether libtool must link a program against all its dependency libraries.
32954 link_all_deplibs=$link_all_deplibs
32956 # Set to "yes" if exported symbols are required.
32957 always_export_symbols=$always_export_symbols
32959 # The commands to list exported symbols.
32960 export_symbols_cmds=$lt_export_symbols_cmds
32962 # Symbols that should not be listed in the preloaded symbols.
32963 exclude_expsyms=$lt_exclude_expsyms
32965 # Symbols that must always be exported.
32966 include_expsyms=$lt_include_expsyms
32968 # Commands necessary for linking programs (against libraries) with templates.
32969 prelink_cmds=$lt_prelink_cmds
32971 # Commands necessary for finishing linking programs.
32972 postlink_cmds=$lt_postlink_cmds
32974 # Specify filename containing input files.
32975 file_list_spec=$lt_file_list_spec
32977 # How to hardcode a shared library path into an executable.
32978 hardcode_action=$hardcode_action
32980 # The directories searched by this compiler when creating a shared library.
32981 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32983 # Dependencies to place before and after the objects being linked to
32984 # create a shared library.
32985 predep_objects=$lt_predep_objects
32986 postdep_objects=$lt_postdep_objects
32987 predeps=$lt_predeps
32988 postdeps=$lt_postdeps
32990 # The library search path used internally by the compiler when linking
32991 # a shared library.
32992 compiler_lib_search_path=$lt_compiler_lib_search_path
32994 # ### END LIBTOOL CONFIG
33000 cat <<\_LT_EOF >> "$cfgfile"
33001 # AIX sometimes has problems with the GCC collect2 program. For some
33002 # reason, if we set the COLLECT_NAMES environment variable, the problems
33003 # vanish in a puff of smoke.
33004 if test "X${COLLECT_NAMES+set}" != Xset; then
33006 export COLLECT_NAMES
33013 ltmain="$ac_aux_dir/ltmain.sh"
33016 # We use sed instead of cat because bash on DJGPP gets confused if
33017 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33018 # text mode, it properly converts lines to CR/LF. This bash problem
33019 # is reportedly fixed, but why not run on old versions too?
33020 sed '$q' "$ltmain" >> "$cfgfile" \
33021 || (rm -f "$cfgfile"; exit 1)
33023 if test x"$xsi_shell" = xyes; then
33024 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33028 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33029 \ * ) func_dirname_result="${3}" ;;\
33031 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33032 && mv -f "$cfgfile.tmp" "$cfgfile" \
33033 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33034 test 0 -eq $? || _lt_function_replace_fail=:
33037 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33040 \ func_basename_result="${1##*/}"\
33041 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33042 && mv -f "$cfgfile.tmp" "$cfgfile" \
33043 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33044 test 0 -eq $? || _lt_function_replace_fail=:
33047 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33048 func_dirname_and_basename ()\
33051 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33052 \ * ) func_dirname_result="${3}" ;;\
33054 \ func_basename_result="${1##*/}"\
33055 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33056 && mv -f "$cfgfile.tmp" "$cfgfile" \
33057 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33058 test 0 -eq $? || _lt_function_replace_fail=:
33061 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33064 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33065 \ # positional parameters, so assign one to ordinary parameter first.\
33066 \ func_stripname_result=${3}\
33067 \ func_stripname_result=${func_stripname_result#"${1}"}\
33068 \ func_stripname_result=${func_stripname_result%"${2}"}\
33069 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33070 && mv -f "$cfgfile.tmp" "$cfgfile" \
33071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33072 test 0 -eq $? || _lt_function_replace_fail=:
33075 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33076 func_split_long_opt ()\
33078 \ func_split_long_opt_name=${1%%=*}\
33079 \ func_split_long_opt_arg=${1#*=}\
33080 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33081 && mv -f "$cfgfile.tmp" "$cfgfile" \
33082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33083 test 0 -eq $? || _lt_function_replace_fail=:
33086 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33087 func_split_short_opt ()\
33089 \ func_split_short_opt_arg=${1#??}\
33090 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33091 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33092 && mv -f "$cfgfile.tmp" "$cfgfile" \
33093 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33094 test 0 -eq $? || _lt_function_replace_fail=:
33097 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33101 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33102 \ *) func_lo2o_result=${1} ;;\
33104 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33105 && mv -f "$cfgfile.tmp" "$cfgfile" \
33106 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33107 test 0 -eq $? || _lt_function_replace_fail=:
33110 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33113 func_xform_result=${1%.*}.lo\
33114 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33115 && mv -f "$cfgfile.tmp" "$cfgfile" \
33116 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33117 test 0 -eq $? || _lt_function_replace_fail=:
33120 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33123 func_arith_result=$(( $* ))\
33124 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33125 && mv -f "$cfgfile.tmp" "$cfgfile" \
33126 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33127 test 0 -eq $? || _lt_function_replace_fail=:
33130 sed -e '/^func_len ()$/,/^} # func_len /c\
33133 func_len_result=${#1}\
33134 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33135 && mv -f "$cfgfile.tmp" "$cfgfile" \
33136 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33137 test 0 -eq $? || _lt_function_replace_fail=:
33141 if test x"$lt_shell_append" = xyes; then
33142 sed -e '/^func_append ()$/,/^} # func_append /c\
33145 eval "${1}+=\\${2}"\
33146 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33147 && mv -f "$cfgfile.tmp" "$cfgfile" \
33148 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33149 test 0 -eq $? || _lt_function_replace_fail=:
33152 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33153 func_append_quoted ()\
33155 \ func_quote_for_eval "${2}"\
33156 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33157 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33158 && mv -f "$cfgfile.tmp" "$cfgfile" \
33159 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33160 test 0 -eq $? || _lt_function_replace_fail=:
33163 # Save a `func_append' function call where possible by direct use of '+='
33164 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33165 && mv -f "$cfgfile.tmp" "$cfgfile" \
33166 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33167 test 0 -eq $? || _lt_function_replace_fail=:
33169 # Save a `func_append' function call even when '+=' is not available
33170 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33171 && mv -f "$cfgfile.tmp" "$cfgfile" \
33172 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33173 test 0 -eq $? || _lt_function_replace_fail=:
33176 if test x"$_lt_function_replace_fail" = x":"; then
33177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33178 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33182 mv -f "$cfgfile" "$ofile" ||
33183 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33187 cat <<_LT_EOF >> "$ofile"
33189 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33191 # The linker used to build libraries.
33194 # How to create reloadable object files.
33195 reload_flag=$lt_reload_flag_CXX
33196 reload_cmds=$lt_reload_cmds_CXX
33198 # Commands used to build an old-style archive.
33199 old_archive_cmds=$lt_old_archive_cmds_CXX
33201 # A language specific compiler.
33202 CC=$lt_compiler_CXX
33204 # Is the compiler the GNU compiler?
33207 # Compiler flag to turn off builtin functions.
33208 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33210 # Additional compiler flags for building library objects.
33211 pic_flag=$lt_lt_prog_compiler_pic_CXX
33213 # How to pass a linker flag through the compiler.
33214 wl=$lt_lt_prog_compiler_wl_CXX
33216 # Compiler flag to prevent dynamic linking.
33217 link_static_flag=$lt_lt_prog_compiler_static_CXX
33219 # Does compiler simultaneously support -c and -o options?
33220 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33222 # Whether or not to add -lc for building shared libraries.
33223 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33225 # Whether or not to disallow shared libs when runtime libs are static.
33226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33228 # Compiler flag to allow reflexive dlopens.
33229 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33231 # Compiler flag to generate shared objects directly from archives.
33232 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33234 # Whether the compiler copes with passing no objects directly.
33235 compiler_needs_object=$lt_compiler_needs_object_CXX
33237 # Create an old-style archive from a shared archive.
33238 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33240 # Create a temporary old-style archive to link instead of a shared archive.
33241 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33243 # Commands used to build a shared archive.
33244 archive_cmds=$lt_archive_cmds_CXX
33245 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33247 # Commands used to build a loadable module if different from building
33248 # a shared archive.
33249 module_cmds=$lt_module_cmds_CXX
33250 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33252 # Whether we are building with GNU ld or not.
33253 with_gnu_ld=$lt_with_gnu_ld_CXX
33255 # Flag that allows shared libraries with undefined symbols to be built.
33256 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33258 # Flag that enforces no undefined symbols.
33259 no_undefined_flag=$lt_no_undefined_flag_CXX
33261 # Flag to hardcode \$libdir into a binary during linking.
33262 # This must work even if \$libdir does not exist
33263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33265 # Whether we need a single "-rpath" flag with a separated argument.
33266 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33268 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33269 # DIR into the resulting binary.
33270 hardcode_direct=$hardcode_direct_CXX
33272 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33273 # DIR into the resulting binary and the resulting library dependency is
33274 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33275 # library is relocated.
33276 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33278 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33279 # into the resulting binary.
33280 hardcode_minus_L=$hardcode_minus_L_CXX
33282 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33283 # into the resulting binary.
33284 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33286 # Set to "yes" if building a shared library automatically hardcodes DIR
33287 # into the library and all subsequent libraries and executables linked
33289 hardcode_automatic=$hardcode_automatic_CXX
33291 # Set to yes if linker adds runtime paths of dependent libraries
33292 # to runtime path list.
33293 inherit_rpath=$inherit_rpath_CXX
33295 # Whether libtool must link a program against all its dependency libraries.
33296 link_all_deplibs=$link_all_deplibs_CXX
33298 # Set to "yes" if exported symbols are required.
33299 always_export_symbols=$always_export_symbols_CXX
33301 # The commands to list exported symbols.
33302 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33304 # Symbols that should not be listed in the preloaded symbols.
33305 exclude_expsyms=$lt_exclude_expsyms_CXX
33307 # Symbols that must always be exported.
33308 include_expsyms=$lt_include_expsyms_CXX
33310 # Commands necessary for linking programs (against libraries) with templates.
33311 prelink_cmds=$lt_prelink_cmds_CXX
33313 # Commands necessary for finishing linking programs.
33314 postlink_cmds=$lt_postlink_cmds_CXX
33316 # Specify filename containing input files.
33317 file_list_spec=$lt_file_list_spec_CXX
33319 # How to hardcode a shared library path into an executable.
33320 hardcode_action=$hardcode_action_CXX
33322 # The directories searched by this compiler when creating a shared library.
33323 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33325 # Dependencies to place before and after the objects being linked to
33326 # create a shared library.
33327 predep_objects=$lt_predep_objects_CXX
33328 postdep_objects=$lt_postdep_objects_CXX
33329 predeps=$lt_predeps_CXX
33330 postdeps=$lt_postdeps_CXX
33332 # The library search path used internally by the compiler when linking
33333 # a shared library.
33334 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33336 # ### END LIBTOOL TAG CONFIG: CXX
33341 for ac_file in $CONFIG_FILES; do
33342 # Support "outfile[:infile[:infile...]]"
33344 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33346 # PO directories have a Makefile.in generated from Makefile.in.in.
33347 case "$ac_file" in */Makefile.in)
33348 # Adjust a relative srcdir.
33349 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33350 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33351 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33352 # In autoconf-2.13 it is called $ac_given_srcdir.
33353 # In autoconf-2.50 it is called $srcdir.
33354 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33355 case "$ac_given_srcdir" in
33356 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33357 /*) top_srcdir="$ac_given_srcdir" ;;
33358 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33360 # Treat a directory as a PO directory if and only if it has a
33361 # POTFILES.in file. This allows packages to have multiple PO
33362 # directories under different names or in different locations.
33363 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33364 rm -f "$ac_dir/POTFILES"
33365 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33366 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33367 POMAKEFILEDEPS="POTFILES.in"
33368 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33369 # on $ac_dir but don't depend on user-specified configuration
33371 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33372 # The LINGUAS file contains the set of available languages.
33373 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33374 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33376 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33377 # Hide the ALL_LINGUAS assigment from automake.
33378 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33379 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33381 # The set of available languages was given in configure.in.
33382 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33385 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33386 # Compute UPDATEPOFILES
33387 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33388 # Compute DUMMYPOFILES
33389 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33391 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33392 case "$ac_given_srcdir" in
33394 *) srcdirpre='$(srcdir)/' ;;
33400 for lang in $ALL_LINGUAS; do
33401 POFILES="$POFILES $srcdirpre$lang.po"
33402 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33403 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33404 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33406 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33407 # environment variable.
33409 if test -n "$ALL_LINGUAS"; then
33410 for presentlang in $ALL_LINGUAS; do
33412 if test "%UNSET%" != "$LINGUAS"; then
33413 desiredlanguages="$LINGUAS"
33415 desiredlanguages="$ALL_LINGUAS"
33417 for desiredlang in $desiredlanguages; do
33418 # Use the presentlang catalog if desiredlang is
33419 # a. equal to presentlang, or
33420 # b. a variant of presentlang (because in this case,
33421 # presentlang can be used as a fallback for messages
33422 # which are not translated in the desiredlang catalog).
33423 case "$desiredlang" in
33424 "$presentlang"*) useit=yes;;
33427 if test $useit = yes; then
33428 INST_LINGUAS="$INST_LINGUAS $presentlang"
33433 if test -n "$INST_LINGUAS"; then
33434 for lang in $INST_LINGUAS; do
33435 CATALOGS="$CATALOGS $lang.gmo"
33438 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33439 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"
33440 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33441 if test -f "$f"; then
33443 *.orig | *.bak | *~) ;;
33444 *) cat "$f" >> "$ac_dir/Makefile" ;;
33461 ac_clean_files=$ac_clean_files_save
33463 test $ac_write_fail = 0 ||
33464 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33467 # configure is writing to config.log, and then calls config.status.
33468 # config.status does its own redirection, appending to config.log.
33469 # Unfortunately, on DOS this fails, as config.log is still kept open
33470 # by configure, so config.status won't be able to write to it; its
33471 # output is simply discarded. So we exec the FD to /dev/null,
33472 # effectively closing config.log, so it can be properly (re)opened and
33473 # appended to by config.status. When coming back to configure, we
33474 # need to make the FD available again.
33475 if test "$no_create" != yes; then
33477 ac_config_status_args=
33478 test "$silent" = yes &&
33479 ac_config_status_args="$ac_config_status_args --quiet"
33481 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33483 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33484 # would make configure fail if this is the last instruction.
33485 $ac_cs_success || as_fn_exit 1
33487 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33489 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33493 if test "${support_bat}" = "yes" ; then
33494 if test "x$QMAKE" = "xnone"; then
33495 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33499 echo "Creating bat Makefile"
33505 ${MAKE:-make} clean
33509 if test X"$GCC" = "Xyes" ; then
33510 echo "Doing make of dependencies"
33511 ${MAKE:-make} depend
33515 chmod 755 install_conf_file build-depkgs-qt-console
33519 chmod 755 bacula btraceback mtx-changer storage-ctl bsg_persist
33520 chmod 755 dvd-handler dvd-simulator
33521 chmod 755 bconsole disk-changer devel_bacula logrotate
33525 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33526 chmod 755 $c/update_postgresql_tables_10_to_11
33527 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33528 chmod 755 $c/update_postgresql_tables_11_to_12
33533 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33534 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33536 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33537 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33539 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33540 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33542 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33543 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33545 #chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
33546 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
33549 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33550 chmod 755 $c/sqlite
33553 chmod 755 $c/install-default-backend
33555 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33556 largefile_support="yes"
33559 if test X"$GCC" = "Xyes" ; then
33560 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33561 if test "x${CCVERSION}" = "x" ; then
33562 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33564 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33565 if test x"${CXXVERSION}" = x ; then
33566 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33570 # clean up any old junk
33574 ${MAKE:-make} clean
33577 Configuration on `date`:
33579 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33580 Bacula version: ${BACULA} ${VERSION} (${DATE})
33581 Source code location: ${srcdir}
33582 Install binaries: ${sbindir}
33583 Install libraries: ${libdir}
33584 Install config files: ${sysconfdir}
33585 Scripts directory: ${scriptdir}
33586 Archive directory: ${archivedir}
33587 Working directory: ${working_dir}
33588 PID directory: ${piddir}
33589 Subsys directory: ${subsysdir}
33590 Man directory: ${mandir}
33591 Data directory: ${datarootdir}
33592 Plugin directory: ${plugindir}
33593 C Compiler: ${CC} ${CCVERSION}
33594 C++ Compiler: ${CXX} ${CXXVERSION}
33595 Compiler flags: ${WCFLAGS} ${CFLAGS}
33596 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33598 Statically Linked Tools: ${support_static_tools}
33599 Statically Linked FD: ${support_static_fd}
33600 Statically Linked SD: ${support_static_sd}
33601 Statically Linked DIR: ${support_static_dir}
33602 Statically Linked CONS: ${support_static_cons}
33603 Database backends: ${db_backends}
33604 Database port: ${db_port}
33605 Database name: ${db_name}
33606 Database user: ${db_user}
33608 Job Output Email: ${job_email}
33609 Traceback Email: ${dump_email}
33610 SMTP Host Address: ${smtp_host}
33612 Director Port: ${dir_port}
33613 File daemon Port: ${fd_port}
33614 Storage daemon Port: ${sd_port}
33616 Director User: ${dir_user}
33617 Director Group: ${dir_group}
33618 Storage Daemon User: ${sd_user}
33619 Storage DaemonGroup: ${sd_group}
33620 File Daemon User: ${fd_user}
33621 File Daemon Group: ${fd_group}
33623 Large file support: $largefile_support
33624 Bacula conio support: ${got_conio} ${CONS_LIBS}
33625 readline support: ${got_readline} ${PRTREADLINE_SRC}
33626 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33627 TLS support: ${support_tls}
33628 Encryption support: ${support_crypto}
33629 ZLIB support: ${have_zlib}
33630 LZO support: ${have_lzo}
33631 enable-smartalloc: ${support_smartalloc}
33632 enable-lockmgr: ${support_lockmgr}
33633 bat support: ${support_bat}
33634 client-only: ${build_client_only}
33635 build-dird: ${build_dird}
33636 build-stored: ${build_stored}
33637 Plugin support: ${have_plugins}
33638 AFS support: ${have_afs}
33639 ACL support: ${have_acl}
33640 XATTR support: ${have_xattr}
33641 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
33642 Batch insert enabled: ${batch_insert_db_backends}
33646 # create a small shell script useful for support with
33647 # configure options and config.out info
33648 cat > scripts/bacula_config << EOF
33651 $ $0 $ac_configure_args
33653 cat config.out >> scripts/bacula_config
33654 echo __EOC__ >> scripts/bacula_config
33655 chmod 755 scripts/bacula_config