2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 7.0.0.
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.0'
571 PACKAGE_STRING='bacula 7.0.0'
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
714 INTL_LIBTOOL_SUFFIX_PREFIX
721 BUILD_INCLUDED_LIBINTL
752 HAVE_OPENBSD_OS_FALSE
756 HAVE_FREEBSD_OS_FALSE
770 INCLUDE_UNINSTALL_TARGET
771 INCLUDE_INSTALL_TARGET
775 LIBTOOL_UNINSTALL_TARGET
776 LIBTOOL_INSTALL_TARGET
777 DEFAULT_SHARED_OBJECT_TYPE
857 LIBBACFIND_LT_RELEASE
858 LIBBACCATS_LT_RELEASE
903 program_transform_name
914 ac_subst_files='MCOMMON'
916 enable_option_checking
930 with_included_gettext
966 with_mon_dir_password
995 ac_precious_vars='build_alias
1011 # Initialize some variables set by options.
1013 ac_init_version=false
1014 ac_unrecognized_opts=
1015 ac_unrecognized_sep=
1016 # The variables have the same names as the options, with
1017 # dashes changed to underlines.
1018 cache_file=/dev/null
1025 program_transform_name=s,x,x,
1033 # Installation directory options.
1034 # These are left unexpanded so users can "make install exec_prefix=/foo"
1035 # and all the variables that are supposed to be based on exec_prefix
1036 # by default will actually change.
1037 # Use braces instead of parens because sh, perl, etc. also accept them.
1038 # (The list follows the same order as the GNU Coding Standards.)
1039 bindir='${exec_prefix}/bin'
1040 sbindir='${exec_prefix}/sbin'
1041 libexecdir='${exec_prefix}/libexec'
1042 datarootdir='${prefix}/share'
1043 datadir='${datarootdir}'
1044 sysconfdir='${prefix}/etc'
1045 sharedstatedir='${prefix}/com'
1046 localstatedir='${prefix}/var'
1047 includedir='${prefix}/include'
1048 oldincludedir='/usr/include'
1049 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1050 infodir='${datarootdir}/info'
1055 libdir='${exec_prefix}/lib'
1056 localedir='${datarootdir}/locale'
1057 mandir='${datarootdir}/man'
1063 # If the previous option needs an argument, assign it.
1064 if test -n "$ac_prev"; then
1065 eval $ac_prev=\$ac_option
1071 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1076 # Accept the important Cygnus configure options, so we can diagnose typos.
1078 case $ac_dashdash$ac_option in
1082 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1084 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1085 bindir=$ac_optarg ;;
1087 -build | --build | --buil | --bui | --bu)
1088 ac_prev=build_alias ;;
1089 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1090 build_alias=$ac_optarg ;;
1092 -cache-file | --cache-file | --cache-fil | --cache-fi \
1093 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1094 ac_prev=cache_file ;;
1095 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1096 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1097 cache_file=$ac_optarg ;;
1099 --config-cache | -C)
1100 cache_file=config.cache ;;
1102 -datadir | --datadir | --datadi | --datad)
1104 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1105 datadir=$ac_optarg ;;
1107 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1108 | --dataroo | --dataro | --datar)
1109 ac_prev=datarootdir ;;
1110 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1111 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1112 datarootdir=$ac_optarg ;;
1114 -disable-* | --disable-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error $? "invalid feature name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1123 "enable_$ac_useropt"
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1128 eval enable_$ac_useropt=no ;;
1130 -docdir | --docdir | --docdi | --doc | --do)
1132 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1133 docdir=$ac_optarg ;;
1135 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1137 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1138 dvidir=$ac_optarg ;;
1140 -enable-* | --enable-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid feature name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1149 "enable_$ac_useropt"
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1154 eval enable_$ac_useropt=\$ac_optarg ;;
1156 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1157 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1158 | --exec | --exe | --ex)
1159 ac_prev=exec_prefix ;;
1160 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1161 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1162 | --exec=* | --exe=* | --ex=*)
1163 exec_prefix=$ac_optarg ;;
1165 -gas | --gas | --ga | --g)
1166 # Obsolete; use --with-gas.
1169 -help | --help | --hel | --he | -h)
1170 ac_init_help=long ;;
1171 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1172 ac_init_help=recursive ;;
1173 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1174 ac_init_help=short ;;
1176 -host | --host | --hos | --ho)
1177 ac_prev=host_alias ;;
1178 -host=* | --host=* | --hos=* | --ho=*)
1179 host_alias=$ac_optarg ;;
1181 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1183 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1185 htmldir=$ac_optarg ;;
1187 -includedir | --includedir | --includedi | --included | --include \
1188 | --includ | --inclu | --incl | --inc)
1189 ac_prev=includedir ;;
1190 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1191 | --includ=* | --inclu=* | --incl=* | --inc=*)
1192 includedir=$ac_optarg ;;
1194 -infodir | --infodir | --infodi | --infod | --info | --inf)
1196 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1197 infodir=$ac_optarg ;;
1199 -libdir | --libdir | --libdi | --libd)
1201 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1202 libdir=$ac_optarg ;;
1204 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1205 | --libexe | --libex | --libe)
1206 ac_prev=libexecdir ;;
1207 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1208 | --libexe=* | --libex=* | --libe=*)
1209 libexecdir=$ac_optarg ;;
1211 -localedir | --localedir | --localedi | --localed | --locale)
1212 ac_prev=localedir ;;
1213 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1214 localedir=$ac_optarg ;;
1216 -localstatedir | --localstatedir | --localstatedi | --localstated \
1217 | --localstate | --localstat | --localsta | --localst | --locals)
1218 ac_prev=localstatedir ;;
1219 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1220 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1221 localstatedir=$ac_optarg ;;
1223 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1225 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1226 mandir=$ac_optarg ;;
1228 -nfp | --nfp | --nf)
1229 # Obsolete; use --without-fp.
1232 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1233 | --no-cr | --no-c | -n)
1236 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1237 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1240 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1241 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1242 | --oldin | --oldi | --old | --ol | --o)
1243 ac_prev=oldincludedir ;;
1244 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1245 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1246 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1247 oldincludedir=$ac_optarg ;;
1249 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1251 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1252 prefix=$ac_optarg ;;
1254 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1255 | --program-pre | --program-pr | --program-p)
1256 ac_prev=program_prefix ;;
1257 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1258 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1259 program_prefix=$ac_optarg ;;
1261 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1262 | --program-suf | --program-su | --program-s)
1263 ac_prev=program_suffix ;;
1264 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1265 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1266 program_suffix=$ac_optarg ;;
1268 -program-transform-name | --program-transform-name \
1269 | --program-transform-nam | --program-transform-na \
1270 | --program-transform-n | --program-transform- \
1271 | --program-transform | --program-transfor \
1272 | --program-transfo | --program-transf \
1273 | --program-trans | --program-tran \
1274 | --progr-tra | --program-tr | --program-t)
1275 ac_prev=program_transform_name ;;
1276 -program-transform-name=* | --program-transform-name=* \
1277 | --program-transform-nam=* | --program-transform-na=* \
1278 | --program-transform-n=* | --program-transform-=* \
1279 | --program-transform=* | --program-transfor=* \
1280 | --program-transfo=* | --program-transf=* \
1281 | --program-trans=* | --program-tran=* \
1282 | --progr-tra=* | --program-tr=* | --program-t=*)
1283 program_transform_name=$ac_optarg ;;
1285 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1287 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1288 pdfdir=$ac_optarg ;;
1290 -psdir | --psdir | --psdi | --psd | --ps)
1292 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1296 | -silent | --silent | --silen | --sile | --sil)
1299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1303 sbindir=$ac_optarg ;;
1305 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1307 | --sharedst | --shareds | --shared | --share | --shar \
1309 ac_prev=sharedstatedir ;;
1310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1314 sharedstatedir=$ac_optarg ;;
1316 -site | --site | --sit)
1318 -site=* | --site=* | --sit=*)
1321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1324 srcdir=$ac_optarg ;;
1326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1327 | --syscon | --sysco | --sysc | --sys | --sy)
1328 ac_prev=sysconfdir ;;
1329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1331 sysconfdir=$ac_optarg ;;
1333 -target | --target | --targe | --targ | --tar | --ta | --t)
1334 ac_prev=target_alias ;;
1335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1336 target_alias=$ac_optarg ;;
1338 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1341 -version | --version | --versio | --versi | --vers | -V)
1342 ac_init_version=: ;;
1345 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1346 # Reject names that are not valid shell variable names.
1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1348 as_fn_error $? "invalid package name: $ac_useropt"
1349 ac_useropt_orig=$ac_useropt
1350 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351 case $ac_user_opts in
1355 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1356 ac_unrecognized_sep=', ';;
1358 eval with_$ac_useropt=\$ac_optarg ;;
1360 -without-* | --without-*)
1361 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1362 # Reject names that are not valid shell variable names.
1363 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1364 as_fn_error $? "invalid package name: $ac_useropt"
1365 ac_useropt_orig=$ac_useropt
1366 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367 case $ac_user_opts in
1371 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1372 ac_unrecognized_sep=', ';;
1374 eval with_$ac_useropt=no ;;
1377 # Obsolete; use --with-x.
1380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1381 | --x-incl | --x-inc | --x-in | --x-i)
1382 ac_prev=x_includes ;;
1383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1385 x_includes=$ac_optarg ;;
1387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1389 ac_prev=x_libraries ;;
1390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1392 x_libraries=$ac_optarg ;;
1394 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1395 Try \`$0 --help' for more information"
1399 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1400 # Reject names that are not valid shell variable names.
1401 case $ac_envvar in #(
1402 '' | [0-9]* | *[!_$as_cr_alnum]* )
1403 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1405 eval $ac_envvar=\$ac_optarg
1406 export $ac_envvar ;;
1409 # FIXME: should be removed in autoconf 3.0.
1410 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1411 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1412 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1413 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1419 if test -n "$ac_prev"; then
1420 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1421 as_fn_error $? "missing argument to $ac_option"
1424 if test -n "$ac_unrecognized_opts"; then
1425 case $enable_option_checking in
1427 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1428 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1432 # Check all directory arguments for consistency.
1433 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1434 datadir sysconfdir sharedstatedir localstatedir includedir \
1435 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1436 libdir localedir mandir
1438 eval ac_val=\$$ac_var
1439 # Remove trailing slashes.
1442 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1443 eval $ac_var=\$ac_val;;
1445 # Be sure to have absolute directory names.
1447 [\\/$]* | ?:[\\/]* ) continue;;
1448 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1450 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1453 # There might be people who depend on the old broken behavior: `$host'
1454 # used to hold the argument of --host etc.
1455 # FIXME: To remove some day.
1458 target=$target_alias
1460 # FIXME: To remove some day.
1461 if test "x$host_alias" != x; then
1462 if test "x$build_alias" = x; then
1463 cross_compiling=maybe
1464 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1465 If a cross compiler is detected then cross compile mode will be used" >&2
1466 elif test "x$build_alias" != "x$host_alias"; then
1472 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1474 test "$silent" = yes && exec 6>/dev/null
1477 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1478 ac_ls_di=`ls -di .` &&
1479 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1480 as_fn_error $? "working directory cannot be determined"
1481 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1482 as_fn_error $? "pwd does not report name of working directory"
1485 # Find the source files, if location was not specified.
1486 if test -z "$srcdir"; then
1487 ac_srcdir_defaulted=yes
1488 # Try the directory containing this script, then the parent directory.
1489 ac_confdir=`$as_dirname -- "$as_myself" ||
1490 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1491 X"$as_myself" : 'X\(//\)[^/]' \| \
1492 X"$as_myself" : 'X\(//\)$' \| \
1493 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1494 $as_echo X"$as_myself" |
1495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1513 if test ! -r "$srcdir/$ac_unique_file"; then
1517 ac_srcdir_defaulted=no
1519 if test ! -r "$srcdir/$ac_unique_file"; then
1520 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1521 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1523 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1525 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1527 # When building in place, set srcdir=.
1528 if test "$ac_abs_confdir" = "$ac_pwd"; then
1531 # Remove unnecessary trailing slashes from srcdir.
1532 # Double slashes in file names in object file debugging info
1533 # mess up M-x gdb in Emacs.
1535 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1537 for ac_var in $ac_precious_vars; do
1538 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1539 eval ac_env_${ac_var}_value=\$${ac_var}
1540 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1541 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1545 # Report the --help message.
1547 if test "$ac_init_help" = "long"; then
1548 # Omit some internal or obsolete options to make the list less imposing.
1549 # This message is too long to be a string in the A/UX 3.1 sh.
1551 \`configure' configures bacula 7.0.0 to adapt to many kinds of systems.
1553 Usage: $0 [OPTION]... [VAR=VALUE]...
1555 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1556 VAR=VALUE. See below for descriptions of some of the useful variables.
1558 Defaults for the options are specified in brackets.
1561 -h, --help display this help and exit
1562 --help=short display options specific to this package
1563 --help=recursive display the short help of all the included packages
1564 -V, --version display version information and exit
1565 -q, --quiet, --silent do not print \`checking ...' messages
1566 --cache-file=FILE cache test results in FILE [disabled]
1567 -C, --config-cache alias for \`--cache-file=config.cache'
1568 -n, --no-create do not create output files
1569 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1571 Installation directories:
1572 --prefix=PREFIX install architecture-independent files in PREFIX
1573 [$ac_default_prefix]
1574 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1577 By default, \`make install' will install all the files in
1578 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1579 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1580 for instance \`--prefix=\$HOME'.
1582 For better control, use the options below.
1584 Fine tuning of the installation directories:
1585 --bindir=DIR user executables [EPREFIX/bin]
1586 --sbindir=DIR system admin executables [EPREFIX/sbin]
1587 --libexecdir=DIR program executables [EPREFIX/libexec]
1588 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1589 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1590 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1591 --libdir=DIR object code libraries [EPREFIX/lib]
1592 --includedir=DIR C header files [PREFIX/include]
1593 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1594 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1595 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1596 --infodir=DIR info documentation [DATAROOTDIR/info]
1597 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1598 --mandir=DIR man documentation [DATAROOTDIR/man]
1599 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1600 --htmldir=DIR html documentation [DOCDIR]
1601 --dvidir=DIR dvi documentation [DOCDIR]
1602 --pdfdir=DIR pdf documentation [DOCDIR]
1603 --psdir=DIR ps documentation [DOCDIR]
1609 --x-includes=DIR X include files are in DIR
1610 --x-libraries=DIR X library files are in DIR
1613 --build=BUILD configure for building on BUILD [guessed]
1614 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1618 if test -n "$ac_init_help"; then
1619 case $ac_init_help in
1620 short | recursive ) echo "Configuration of bacula 7.0.0:";;
1625 --disable-option-checking ignore unrecognized --enable/--with options
1626 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1627 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1628 --enable-libtool enable building using GNU libtool [default=yes]
1629 --enable-shared[=PKGS] build shared libraries [default=yes]
1630 --enable-static[=PKGS] build static libraries [default=no]
1631 --enable-fast-install[=PKGS]
1632 optimize for fast installation [default=yes]
1633 --disable-libtool-lock avoid locking (might break parallel builds)
1634 --enable-includes enable installing of include files [default=no]
1635 --disable-nls do not use Native Language Support
1636 --disable-rpath do not hardcode runtime library paths
1637 --enable-bat enable build of bat Qt4 GUI [default=no]
1638 --enable-smartalloc enable smartalloc debugging support [default=no]
1639 --enable-lockmgr enable lock manager support [default=no]
1640 --enable-static-tools enable static tape tools [default=no]
1641 --enable-static-fd enable static File daemon [default=no]
1642 --enable-static-sd enable static Storage daemon [default=no]
1643 --enable-static-dir enable static Director [default=no]
1644 --enable-static-cons enable static Console [default=no]
1645 --enable-client-only build client (File daemon) only [default=no]
1646 --enable-build-dird enable building of dird (Director) [default=yes]
1647 --enable-build-stored enable building of stored (Storage daemon)
1649 --disable-conio disable conio support [default=no]
1650 --enable-ipv6 enable ipv6 support [default=yes]
1651 --disable-readline disable readline support [default=yes]
1652 --enable-batch-insert enable the DB batch insert code [default=yes]
1653 --disable-largefile omit support for large files
1654 --disable-afs disable afs support [default=auto]
1655 --disable-lzo disable lzo support [default=yes]
1656 --disable-acl disable acl support [default=auto]
1657 --disable-xattr disable xattr support [default=auto]
1660 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1661 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1662 --with-pic try to use only PIC/non-PIC objects [default=use
1664 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1665 --with-sysroot=DIR Search for dependent libraries within DIR
1666 (or the compiler's sysroot if not specified).
1667 --with-gnu-ld assume the C compiler uses GNU ld default=no
1668 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1669 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1670 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1671 --without-libintl-prefix don't search for libintl in includedir and libdir
1672 --with-included-gettext use the GNU gettext library included here
1673 --with-readline[=DIR] specify readline library directory
1674 --with-python[=DIR] Include Python support. DIR is the Python base
1675 install directory, default is to search through a
1676 number of common places for the Python files.
1677 --with-tcp-wrappers[=DIR]
1678 enable tcpwrappers support
1679 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1680 --with-working-dir=PATH specify path of Bacula working directory
1681 --with-archivedir=PATH specify path of SD archive directory
1682 --with-basename=RESNAME specify base resource name for daemons
1683 --with-hostname=RESNAME specify host name for daemons
1684 --with-scriptdir=PATH specify path of Bacula scripts directory
1685 --with-bsrdir=PATH specify path of Bacula bsrs directory
1686 --with-logdir=PATH specify path of Bacula logs directory
1687 --with-plugindir=PATH specify path of Bacula plugins directory
1688 --with-dump-email=EMAIL dump email address
1689 --with-job-email=EMAIL job output email address
1690 --with-smtp-host=HOST SMTP mail host address
1691 --with-pid-dir=PATH specify location of Bacula pid files
1692 --with-subsys-dir=PATH specify location of Bacula subsys file
1693 --with-baseport=PORT specify base port address for daemons
1694 --with-dir-password=PASSWORD
1695 specify Director's password
1696 --with-fd-password=PASSWORD
1697 specify Client's password
1698 --with-sd-password=PASSWORD
1699 specify Storage daemon's password
1700 --with-mon-dir-password=PASSWORD
1701 specify Director's password used by the monitor
1702 --with-mon-fd-password=PASSWORD
1703 specify Client's password used by the monitor
1704 --with-mon-sd-password=PASSWORD
1705 specify Storage daemon's password used by the
1707 --with-db-name=DBNAME specify database name [default=bacula]
1708 --with-db-user=UNAME specify database user [default=bacula]
1709 --with-db-password=PWD specify database password [default=*none*]
1710 --with-db-port=DBPORT specify a database port [default=null]
1711 --with-dir-user=USER specify user for Director daemon
1712 --with-dir-group=GROUP specify group for Director daemon
1713 --with-sd-user=USER specify user for Storage daemon
1714 --with-sd-group=GROUP specify group for Storage daemon
1715 --with-fd-user=USER specify user for File daemon
1716 --with-fd-group=GROUP specify group for File daemon
1717 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1718 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1719 base install directory, [default=/usr/local/pgsql]
1720 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1721 directory, default is to search through a number of
1722 common places for the MySQL files.
1723 --with-embedded-mysql[=DIR]
1724 Include MySQL support. DIR is the MySQL base install
1725 directory, default is to search through a number of
1726 common places for the MySQL files.
1727 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1728 install directory, default is to search through a
1729 number of common places for the SQLite3 files.
1730 --with-x use the X Window System
1731 --with-afsdir[=DIR] Directory holding AFS includes/libs
1732 --with-lzo[=DIR] specify lzo library directory
1733 --with-systemd[=UNITDIR]
1734 Include systemd support. UNITDIR is where systemd
1735 system .service files are located, default is to ask
1738 Some influential environment variables:
1739 CC C compiler command
1740 CFLAGS C compiler flags
1741 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1742 nonstandard directory <lib dir>
1743 LIBS libraries to pass to the linker, e.g. -l<library>
1744 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1745 you have headers in a nonstandard directory <include dir>
1746 CXX C++ compiler command
1747 CXXFLAGS C++ compiler flags
1749 CXXCPP C++ preprocessor
1750 XMKMF Path to xmkmf, Makefile generator for X Window System
1752 Use these variables to override the choices made by `configure' or to help
1753 it to find libraries and programs with nonstandard names/locations.
1755 Report bugs to the package provider.
1760 if test "$ac_init_help" = "recursive"; then
1761 # If there are subdirs, report their specific --help.
1762 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1763 test -d "$ac_dir" ||
1764 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1771 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1772 # A ".." for each directory in $ac_dir_suffix.
1773 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1774 case $ac_top_builddir_sub in
1775 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1779 ac_abs_top_builddir=$ac_pwd
1780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1781 # for backward compatibility:
1782 ac_top_builddir=$ac_top_build_prefix
1785 .) # We are building in place.
1787 ac_top_srcdir=$ac_top_builddir_sub
1788 ac_abs_top_srcdir=$ac_pwd ;;
1789 [\\/]* | ?:[\\/]* ) # Absolute name.
1790 ac_srcdir=$srcdir$ac_dir_suffix;
1791 ac_top_srcdir=$srcdir
1792 ac_abs_top_srcdir=$srcdir ;;
1794 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1795 ac_top_srcdir=$ac_top_build_prefix$srcdir
1796 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1800 cd "$ac_dir" || { ac_status=$?; continue; }
1801 # Check for guested configure.
1802 if test -f "$ac_srcdir/configure.gnu"; then
1804 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1805 elif test -f "$ac_srcdir/configure"; then
1807 $SHELL "$ac_srcdir/configure" --help=recursive
1809 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1811 cd "$ac_pwd" || { ac_status=$?; break; }
1815 test -n "$ac_init_help" && exit $ac_status
1816 if $ac_init_version; then
1818 bacula configure 7.0.0
1819 generated by GNU Autoconf 2.68
1821 Copyright (C) 2010 Free Software Foundation, Inc.
1822 This configure script is free software; the Free Software Foundation
1823 gives unlimited permission to copy, distribute and modify it.
1828 ## ------------------------ ##
1829 ## Autoconf initialization. ##
1830 ## ------------------------ ##
1832 # ac_fn_c_try_compile LINENO
1833 # --------------------------
1834 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_compile ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext
1839 if { { ac_try="$ac_compile"
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_compile") 2>conftest.err
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest.$ac_objext; then :
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
1868 } # ac_fn_c_try_compile
1870 # ac_fn_cxx_try_compile LINENO
1871 # ----------------------------
1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_cxx_try_compile ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext
1877 if { { ac_try="$ac_compile"
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_compile") 2>conftest.err
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_cxx_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest.$ac_objext; then :
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 as_fn_set_status $ac_retval
1906 } # ac_fn_cxx_try_compile
1908 # ac_fn_c_try_cpp LINENO
1909 # ----------------------
1910 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if { { ac_try="$ac_cpp conftest.$ac_ext"
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1923 if test -s conftest.err; then
1924 grep -v '^ *+' conftest.err >conftest.er1
1925 cat conftest.er1 >&5
1926 mv -f conftest.er1 conftest.err
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } > conftest.i && {
1930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1931 test ! -s conftest.err
1935 $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1945 # ac_fn_c_try_link LINENO
1946 # -----------------------
1947 # Try to link conftest.$ac_ext, and return whether this succeeded.
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 rm -f conftest.$ac_objext conftest$ac_exeext
1952 if { { ac_try="$ac_link"
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_link") 2>conftest.err
1961 if test -s conftest.err; then
1962 grep -v '^ *+' conftest.err >conftest.er1
1963 cat conftest.er1 >&5
1964 mv -f conftest.er1 conftest.err
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } && {
1968 test -z "$ac_c_werror_flag" ||
1969 test ! -s conftest.err
1970 } && test -s conftest$ac_exeext && {
1971 test "$cross_compiling" = yes ||
1972 $as_test_x conftest$ac_exeext
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1981 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1982 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1983 # interfere with the next link command; also delete a directory that is
1984 # left behind by Apple's compiler. We do this before executing the actions.
1985 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987 as_fn_set_status $ac_retval
1989 } # ac_fn_c_try_link
1991 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1992 # -------------------------------------------------------
1993 # Tests whether HEADER exists and can be compiled using the include files in
1994 # INCLUDES, setting the cache variable VAR accordingly.
1995 ac_fn_c_check_header_compile ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if eval \${$3+:} false; then :
2001 $as_echo_n "(cached) " >&6
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2008 if ac_fn_c_try_compile "$LINENO"; then :
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020 } # ac_fn_c_check_header_compile
2022 # ac_fn_c_try_run LINENO
2023 # ----------------------
2024 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2025 # that executables *can* be run.
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 if { { ac_try="$ac_link"
2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 $as_echo "$ac_try_echo"; } >&5
2036 (eval "$ac_link") 2>&5
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2040 { { case "(($ac_try" in
2041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042 *) ac_try_echo=$ac_try;;
2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046 (eval "$ac_try") 2>&5
2048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049 test $ac_status = 0; }; }; then :
2052 $as_echo "$as_me: program exited with status $ac_status" >&5
2053 $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2056 ac_retval=$ac_status
2058 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 as_fn_set_status $ac_retval
2064 # ac_fn_c_check_func LINENO FUNC VAR
2065 # ----------------------------------
2066 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2067 ac_fn_c_check_func ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071 $as_echo_n "checking for $2... " >&6; }
2072 if eval \${$3+:} false; then :
2073 $as_echo_n "(cached) " >&6
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2077 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2079 #define $2 innocuous_$2
2081 /* System header to define __stub macros and hopefully few prototypes,
2082 which can conflict with char $2 (); below.
2083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2084 <limits.h> exists even on freestanding compilers. */
2087 # include <limits.h>
2089 # include <assert.h>
2094 /* Override any GCC internal prototype to avoid an error.
2095 Use char because int might match the return type of a GCC
2096 builtin and then its argument prototype would still apply. */
2101 /* The GNU C library defines this for functions which it implements
2102 to always fail with ENOSYS. Some functions are actually named
2103 something starting with __ and the normal name is an alias. */
2104 #if defined __stub_$2 || defined __stub___$2
2116 if ac_fn_c_try_link "$LINENO"; then :
2121 rm -f core conftest.err conftest.$ac_objext \
2122 conftest$ac_exeext conftest.$ac_ext
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 } # ac_fn_c_check_func
2131 # ac_fn_cxx_try_cpp LINENO
2132 # ------------------------
2133 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2134 ac_fn_cxx_try_cpp ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 if { { ac_try="$ac_cpp conftest.$ac_ext"
2139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2140 *) ac_try_echo=$ac_try;;
2142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2143 $as_echo "$ac_try_echo"; } >&5
2144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2146 if test -s conftest.err; then
2147 grep -v '^ *+' conftest.err >conftest.er1
2148 cat conftest.er1 >&5
2149 mv -f conftest.er1 conftest.err
2151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2152 test $ac_status = 0; } > conftest.i && {
2153 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2154 test ! -s conftest.err
2158 $as_echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164 as_fn_set_status $ac_retval
2166 } # ac_fn_cxx_try_cpp
2168 # ac_fn_cxx_try_link LINENO
2169 # -------------------------
2170 # Try to link conftest.$ac_ext, and return whether this succeeded.
2171 ac_fn_cxx_try_link ()
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 rm -f conftest.$ac_objext conftest$ac_exeext
2175 if { { ac_try="$ac_link"
2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178 *) ac_try_echo=$ac_try;;
2180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181 $as_echo "$ac_try_echo"; } >&5
2182 (eval "$ac_link") 2>conftest.err
2184 if test -s conftest.err; then
2185 grep -v '^ *+' conftest.err >conftest.er1
2186 cat conftest.er1 >&5
2187 mv -f conftest.er1 conftest.err
2189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190 test $ac_status = 0; } && {
2191 test -z "$ac_cxx_werror_flag" ||
2192 test ! -s conftest.err
2193 } && test -s conftest$ac_exeext && {
2194 test "$cross_compiling" = yes ||
2195 $as_test_x conftest$ac_exeext
2199 $as_echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2204 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2205 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2206 # interfere with the next link command; also delete a directory that is
2207 # left behind by Apple's compiler. We do this before executing the actions.
2208 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210 as_fn_set_status $ac_retval
2212 } # ac_fn_cxx_try_link
2214 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2215 # ---------------------------------------------
2216 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2218 ac_fn_c_check_decl ()
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 as_decl_name=`echo $2|sed 's/ *(.*//'`
2222 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2224 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2225 if eval \${$3+:} false; then :
2226 $as_echo_n "(cached) " >&6
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2234 #ifndef $as_decl_name
2236 (void) $as_decl_use;
2238 (void) $as_decl_name;
2246 if ac_fn_c_try_compile "$LINENO"; then :
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255 $as_echo "$ac_res" >&6; }
2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258 } # ac_fn_c_check_decl
2260 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2261 # -------------------------------------------
2262 # Tests whether TYPE exists after having included INCLUDES, setting cache
2263 # variable VAR accordingly.
2264 ac_fn_c_check_type ()
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2268 $as_echo_n "checking for $2... " >&6; }
2269 if eval \${$3+:} false; then :
2270 $as_echo_n "(cached) " >&6
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2285 if ac_fn_c_try_compile "$LINENO"; then :
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2298 if ac_fn_c_try_compile "$LINENO"; then :
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2310 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312 } # ac_fn_c_check_type
2314 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2315 # -------------------------------------------------------
2316 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2317 # the include files in INCLUDES and setting the cache variable VAR
2319 ac_fn_c_check_header_mongrel ()
2321 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322 if eval \${$3+:} false; then :
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2324 $as_echo_n "checking for $2... " >&6; }
2325 if eval \${$3+:} false; then :
2326 $as_echo_n "(cached) " >&6
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330 $as_echo "$ac_res" >&6; }
2332 # Is the header compilable?
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2334 $as_echo_n "checking $2 usability... " >&6; }
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2340 if ac_fn_c_try_compile "$LINENO"; then :
2341 ac_header_compiler=yes
2343 ac_header_compiler=no
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2347 $as_echo "$ac_header_compiler" >&6; }
2349 # Is the header present?
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2351 $as_echo_n "checking $2 presence... " >&6; }
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2356 if ac_fn_c_try_cpp "$LINENO"; then :
2357 ac_header_preproc=yes
2359 ac_header_preproc=no
2361 rm -f conftest.err conftest.i conftest.$ac_ext
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2363 $as_echo "$ac_header_preproc" >&6; }
2365 # So? What about this header?
2366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2369 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2371 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2375 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2377 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2379 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2381 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2383 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2387 $as_echo_n "checking for $2... " >&6; }
2388 if eval \${$3+:} false; then :
2389 $as_echo_n "(cached) " >&6
2391 eval "$3=\$ac_header_compiler"
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2397 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2399 } # ac_fn_c_check_header_mongrel
2401 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2402 # --------------------------------------------
2403 # Tries to find the compile-time value of EXPR in a program that includes
2404 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2406 ac_fn_c_compute_int ()
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 if test "$cross_compiling" = yes; then
2410 # Depending upon the size, compute the lo and hi bounds.
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2417 static int test_array [1 - 2 * !(($2) >= 0)];
2424 if ac_fn_c_try_compile "$LINENO"; then :
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2433 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2440 if ac_fn_c_try_compile "$LINENO"; then :
2441 ac_hi=$ac_mid; break
2443 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2444 if test $ac_lo -le $ac_mid; then
2448 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2459 static int test_array [1 - 2 * !(($2) < 0)];
2466 if ac_fn_c_try_compile "$LINENO"; then :
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2475 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2482 if ac_fn_c_try_compile "$LINENO"; then :
2483 ac_lo=$ac_mid; break
2485 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2486 if test $ac_mid -le $ac_hi; then
2490 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500 # Binary search between lo and hi bounds.
2501 while test "x$ac_lo" != "x$ac_hi"; do
2502 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2509 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2516 if ac_fn_c_try_compile "$LINENO"; then :
2519 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2524 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h. */
2531 static long int longval () { return $2; }
2532 static unsigned long int ulongval () { return $2; }
2539 FILE *f = fopen ("conftest.val", "w");
2544 long int i = longval ();
2547 fprintf (f, "%ld", i);
2551 unsigned long int i = ulongval ();
2554 fprintf (f, "%lu", i);
2556 /* Do not output a trailing newline, as this causes \r\n confusion
2557 on some platforms. */
2558 return ferror (f) || fclose (f) != 0;
2564 if ac_fn_c_try_run "$LINENO"; then :
2565 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2570 conftest.$ac_objext conftest.beam conftest.$ac_ext
2574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2575 as_fn_set_status $ac_retval
2577 } # ac_fn_c_compute_int
2579 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2580 # ----------------------------------------------------
2581 # Tries to find if the field MEMBER exists in type AGGR, after including
2582 # INCLUDES, setting cache variable VAR accordingly.
2583 ac_fn_c_check_member ()
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2587 $as_echo_n "checking for $2.$3... " >&6; }
2588 if eval \${$4+:} false; then :
2589 $as_echo_n "(cached) " >&6
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2604 if ac_fn_c_try_compile "$LINENO"; then :
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2614 if (sizeof ac_aggr.$3)
2620 if ac_fn_c_try_compile "$LINENO"; then :
2625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2631 $as_echo "$ac_res" >&6; }
2632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2634 } # ac_fn_c_check_member
2636 # ac_fn_cxx_try_run LINENO
2637 # ------------------------
2638 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2639 # that executables *can* be run.
2640 ac_fn_cxx_try_run ()
2642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2643 if { { ac_try="$ac_link"
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2649 $as_echo "$ac_try_echo"; } >&5
2650 (eval "$ac_link") 2>&5
2652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2653 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2654 { { case "(($ac_try" in
2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656 *) ac_try_echo=$ac_try;;
2658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2659 $as_echo "$ac_try_echo"; } >&5
2660 (eval "$ac_try") 2>&5
2662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2663 test $ac_status = 0; }; }; then :
2666 $as_echo "$as_me: program exited with status $ac_status" >&5
2667 $as_echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2670 ac_retval=$ac_status
2672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2674 as_fn_set_status $ac_retval
2676 } # ac_fn_cxx_try_run
2678 # ac_fn_cxx_check_func LINENO FUNC VAR
2679 # ------------------------------------
2680 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2681 ac_fn_cxx_check_func ()
2683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2685 $as_echo_n "checking for $2... " >&6; }
2686 if eval \${$3+:} false; then :
2687 $as_echo_n "(cached) " >&6
2689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690 /* end confdefs.h. */
2691 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2693 #define $2 innocuous_$2
2695 /* System header to define __stub macros and hopefully few prototypes,
2696 which can conflict with char $2 (); below.
2697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2698 <limits.h> exists even on freestanding compilers. */
2701 # include <limits.h>
2703 # include <assert.h>
2708 /* Override any GCC internal prototype to avoid an error.
2709 Use char because int might match the return type of a GCC
2710 builtin and then its argument prototype would still apply. */
2715 /* The GNU C library defines this for functions which it implements
2716 to always fail with ENOSYS. Some functions are actually named
2717 something starting with __ and the normal name is an alias. */
2718 #if defined __stub_$2 || defined __stub___$2
2730 if ac_fn_cxx_try_link "$LINENO"; then :
2735 rm -f core conftest.err conftest.$ac_objext \
2736 conftest$ac_exeext conftest.$ac_ext
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2740 $as_echo "$ac_res" >&6; }
2741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2743 } # ac_fn_cxx_check_func
2744 cat >config.log <<_ACEOF
2745 This file contains any messages produced by compilers while
2746 running configure, to aid debugging if configure makes a mistake.
2748 It was created by bacula $as_me 7.0.0, which was
2749 generated by GNU Autoconf 2.68. Invocation command line was
2761 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2762 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2763 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2764 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2765 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2767 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2768 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2770 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2771 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2772 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2773 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2774 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2775 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2776 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir=.
2785 $as_echo "PATH: $as_dir"
2801 # Keep a trace of the command line.
2802 # Strip out --no-create and --no-recursion so they do not pile up.
2803 # Strip out --silent because we don't want to record it for future runs.
2804 # Also quote any args containing shell meta-characters.
2805 # Make two passes to allow for proper duplicate-argument suppression.
2809 ac_must_keep_next=false
2815 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2817 | -silent | --silent | --silen | --sile | --sil)
2820 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2823 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2825 as_fn_append ac_configure_args1 " '$ac_arg'"
2826 if test $ac_must_keep_next = true; then
2827 ac_must_keep_next=false # Got value, back to normal.
2830 *=* | --config-cache | -C | -disable-* | --disable-* \
2831 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2832 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2833 | -with-* | --with-* | -without-* | --without-* | --x)
2834 case "$ac_configure_args0 " in
2835 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2838 -* ) ac_must_keep_next=true ;;
2841 as_fn_append ac_configure_args " '$ac_arg'"
2846 { ac_configure_args0=; unset ac_configure_args0;}
2847 { ac_configure_args1=; unset ac_configure_args1;}
2849 # When interrupted or exit'd, cleanup temporary files, and complete
2850 # config.log. We remove comments because anyway the quotes in there
2851 # would cause problems or look ugly.
2852 # WARNING: Use '\'' to represent an apostrophe within the trap.
2853 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2854 trap 'exit_status=$?
2855 # Save into config.log some information that might help in debugging.
2859 $as_echo "## ---------------- ##
2860 ## Cache variables. ##
2861 ## ---------------- ##"
2863 # The following way of writing the cache mishandles newlines in values,
2865 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2866 eval ac_val=\$$ac_var
2870 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2874 _ | IFS | as_nl) ;; #(
2875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2876 *) { eval $ac_var=; unset $ac_var;} ;;
2881 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2882 *${as_nl}ac_space=\ *)
2884 "s/'\''/'\''\\\\'\'''\''/g;
2885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2888 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2895 $as_echo "## ----------------- ##
2896 ## Output variables. ##
2897 ## ----------------- ##"
2899 for ac_var in $ac_subst_vars
2901 eval ac_val=\$$ac_var
2903 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2905 $as_echo "$ac_var='\''$ac_val'\''"
2909 if test -n "$ac_subst_files"; then
2910 $as_echo "## ------------------- ##
2911 ## File substitutions. ##
2912 ## ------------------- ##"
2914 for ac_var in $ac_subst_files
2916 eval ac_val=\$$ac_var
2918 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2920 $as_echo "$ac_var='\''$ac_val'\''"
2925 if test -s confdefs.h; then
2926 $as_echo "## ----------- ##
2933 test "$ac_signal" != 0 &&
2934 $as_echo "$as_me: caught signal $ac_signal"
2935 $as_echo "$as_me: exit $exit_status"
2937 rm -f core *.core core.conftest.* &&
2938 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2941 for ac_signal in 1 2 13 15; do
2942 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2946 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2947 rm -f -r conftest* confdefs.h
2949 $as_echo "/* confdefs.h */" > confdefs.h
2951 # Predefined preprocessor variables.
2953 cat >>confdefs.h <<_ACEOF
2954 #define PACKAGE_NAME "$PACKAGE_NAME"
2957 cat >>confdefs.h <<_ACEOF
2958 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2961 cat >>confdefs.h <<_ACEOF
2962 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2965 cat >>confdefs.h <<_ACEOF
2966 #define PACKAGE_STRING "$PACKAGE_STRING"
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_URL "$PACKAGE_URL"
2978 # Let the site file select an alternate cache file if it wants to.
2979 # Prefer an explicitly selected file to automatically selected ones.
2982 if test -n "$CONFIG_SITE"; then
2983 # We do not want a PATH search for config.site.
2984 case $CONFIG_SITE in #((
2985 -*) ac_site_file1=./$CONFIG_SITE;;
2986 */*) ac_site_file1=$CONFIG_SITE;;
2987 *) ac_site_file1=./$CONFIG_SITE;;
2989 elif test "x$prefix" != xNONE; then
2990 ac_site_file1=$prefix/share/config.site
2991 ac_site_file2=$prefix/etc/config.site
2993 ac_site_file1=$ac_default_prefix/share/config.site
2994 ac_site_file2=$ac_default_prefix/etc/config.site
2996 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2998 test "x$ac_site_file" = xNONE && continue
2999 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3001 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3002 sed 's/^/| /' "$ac_site_file" >&5
3004 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3006 as_fn_error $? "failed to load site script $ac_site_file
3007 See \`config.log' for more details" "$LINENO" 5; }
3011 if test -r "$cache_file"; then
3012 # Some versions of bash will fail to source /dev/null (special files
3013 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3014 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3016 $as_echo "$as_me: loading cache $cache_file" >&6;}
3018 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3019 *) . "./$cache_file";;
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3024 $as_echo "$as_me: creating cache $cache_file" >&6;}
3028 as_fn_append ac_header_list " stdlib.h"
3029 as_fn_append ac_header_list " unistd.h"
3030 as_fn_append ac_header_list " sys/param.h"
3031 # Check that the precious variables saved in the cache have kept the same
3033 ac_cache_corrupted=false
3034 for ac_var in $ac_precious_vars; do
3035 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3036 eval ac_new_set=\$ac_env_${ac_var}_set
3037 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3038 eval ac_new_val=\$ac_env_${ac_var}_value
3039 case $ac_old_set,$ac_new_set in
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3042 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3043 ac_cache_corrupted=: ;;
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3046 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3047 ac_cache_corrupted=: ;;
3050 if test "x$ac_old_val" != "x$ac_new_val"; then
3051 # differences in whitespace do not lead to failure.
3052 ac_old_val_w=`echo x $ac_old_val`
3053 ac_new_val_w=`echo x $ac_new_val`
3054 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3056 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3057 ac_cache_corrupted=:
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3060 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3061 eval $ac_var=\$ac_old_val
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3064 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3066 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3069 # Pass precious variables to config.status.
3070 if test "$ac_new_set" = set; then
3072 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3073 *) ac_arg=$ac_var=$ac_new_val ;;
3075 case " $ac_configure_args " in
3076 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3077 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3081 if $ac_cache_corrupted; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3085 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3086 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3088 ## -------------------- ##
3089 ## Main body of script. ##
3090 ## -------------------- ##
3093 ac_cpp='$CPP $CPPFLAGS'
3094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3109 if test -f "$ac_dir/install-sh"; then
3111 ac_install_sh="$ac_aux_dir/install-sh -c"
3113 elif test -f "$ac_dir/install.sh"; then
3115 ac_install_sh="$ac_aux_dir/install.sh -c"
3117 elif test -f "$ac_dir/shtool"; then
3119 ac_install_sh="$ac_aux_dir/shtool install -c"
3123 if test -z "$ac_aux_dir"; then
3124 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3127 # These three variables are undocumented and unsupported,
3128 # and are intended to be withdrawn in a future Autoconf release.
3129 # They can cause serious problems if a builder's source tree is in a directory
3130 # whose full name contains unusual characters.
3131 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3132 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3133 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3136 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3141 # Extract the first word of "$ac_prog", so it can be a program name with args.
3142 set dummy $ac_prog; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_path_TRUEPRG+:} false; then :
3146 $as_echo_n "(cached) " >&6
3150 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 TRUEPRG=$ac_cv_path_TRUEPRG
3172 if test -n "$TRUEPRG"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3174 $as_echo "$TRUEPRG" >&6; }
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3181 test -n "$TRUEPRG" && break
3183 test -n "$TRUEPRG" || TRUEPRG=":"
3185 for ac_prog in false
3187 # Extract the first word of "$ac_prog", so it can be a program name with args.
3188 set dummy $ac_prog; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if ${ac_cv_path_FALSEPRG+:} false; then :
3192 $as_echo_n "(cached) " >&6
3196 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 FALSEPRG=$ac_cv_path_FALSEPRG
3218 if test -n "$FALSEPRG"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3220 $as_echo "$FALSEPRG" >&6; }
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3227 test -n "$FALSEPRG" && break
3229 test -n "$FALSEPRG" || FALSEPRG=":"
3234 if test "x$BACULA" != x; then
3235 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3237 BACULA=${BACULA:-Bacula}
3238 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3239 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3240 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3241 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3242 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3243 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3244 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3245 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3247 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3248 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3249 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3251 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3252 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3253 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3256 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3257 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3259 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3260 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3263 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3265 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3268 echo "configuring for ${BACULA} $VERSION ($DATE)"
3273 ac_cpp='$CPP $CPPFLAGS'
3274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3277 if test -n "$ac_tool_prefix"; then
3278 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3279 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_CC+:} false; then :
3283 $as_echo_n "(cached) " >&6
3285 if test -n "$CC"; then
3286 ac_cv_prog_CC="$CC" # Let the user override the test.
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 if test -n "$CC"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308 $as_echo "$CC" >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3316 if test -z "$ac_cv_prog_CC"; then
3318 # Extract the first word of "gcc", so it can be a program name with args.
3319 set dummy gcc; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3323 $as_echo_n "(cached) " >&6
3325 if test -n "$ac_ct_CC"; then
3326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335 ac_cv_prog_ac_ct_CC="gcc"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3346 if test -n "$ac_ct_CC"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3348 $as_echo "$ac_ct_CC" >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3354 if test "x$ac_ct_CC" = x; then
3357 case $cross_compiling:$ac_tool_warned in
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3361 ac_tool_warned=yes ;;
3369 if test -z "$CC"; then
3370 if test -n "$ac_tool_prefix"; then
3371 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3372 set dummy ${ac_tool_prefix}cc; ac_word=$2
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 $as_echo_n "checking for $ac_word... " >&6; }
3375 if ${ac_cv_prog_CC+:} false; then :
3376 $as_echo_n "(cached) " >&6
3378 if test -n "$CC"; then
3379 ac_cv_prog_CC="$CC" # Let the user override the test.
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3388 ac_cv_prog_CC="${ac_tool_prefix}cc"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 if test -n "$CC"; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3401 $as_echo "$CC" >&6; }
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3410 if test -z "$CC"; then
3411 # Extract the first word of "cc", so it can be a program name with args.
3412 set dummy cc; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_CC+:} false; then :
3416 $as_echo_n "(cached) " >&6
3418 if test -n "$CC"; then
3419 ac_cv_prog_CC="$CC" # Let the user override the test.
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3429 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3430 ac_prog_rejected=yes
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 if test $ac_prog_rejected = yes; then
3442 # We found a bogon in the path, so make sure we never use it.
3443 set dummy $ac_cv_prog_CC
3445 if test $# != 0; then
3446 # We chose a different compiler from the bogus one.
3447 # However, it has the same basename, so the bogon will be chosen
3448 # first if we set CC to just the basename; use the full file name.
3450 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3456 if test -n "$CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3466 if test -z "$CC"; then
3467 if test -n "$ac_tool_prefix"; then
3468 for ac_prog in cl.exe
3470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if ${ac_cv_prog_CC+:} false; then :
3475 $as_echo_n "(cached) " >&6
3477 if test -n "$CC"; then
3478 ac_cv_prog_CC="$CC" # Let the user override the test.
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3487 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 if test -n "$CC"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3507 test -n "$CC" && break
3510 if test -z "$CC"; then
3512 for ac_prog in cl.exe
3514 # Extract the first word of "$ac_prog", so it can be a program name with args.
3515 set dummy $ac_prog; ac_word=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3519 $as_echo_n "(cached) " >&6
3521 if test -n "$ac_ct_CC"; then
3522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531 ac_cv_prog_ac_ct_CC="$ac_prog"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3542 if test -n "$ac_ct_CC"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3544 $as_echo "$ac_ct_CC" >&6; }
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3551 test -n "$ac_ct_CC" && break
3554 if test "x$ac_ct_CC" = x; then
3557 case $cross_compiling:$ac_tool_warned in
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3561 ac_tool_warned=yes ;;
3570 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error $? "no acceptable C compiler found in \$PATH
3573 See \`config.log' for more details" "$LINENO" 5; }
3575 # Provide some information about the compiler.
3576 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3579 for ac_option in --version -v -V -qversion; do
3580 { { ac_try="$ac_compiler $ac_option >&5"
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3589 if test -s conftest.err; then
3591 ... rest of stderr output deleted ...
3592 10q' conftest.err >conftest.er1
3593 cat conftest.er1 >&5
3595 rm -f conftest.er1 conftest.err
3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597 test $ac_status = 0; }
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3611 ac_clean_files_save=$ac_clean_files
3612 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3613 # Try to create an executable without -o first, disregard a.out.
3614 # It will help us diagnose broken compilers, and finding out an intuition
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3617 $as_echo_n "checking whether the C compiler works... " >&6; }
3618 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3620 # The possible output files:
3621 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3624 for ac_file in $ac_files
3627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3628 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3633 if { { ac_try="$ac_link_default"
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_link_default") 2>&5
3642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643 test $ac_status = 0; }; then :
3644 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3645 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3646 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3647 # so that the user can short-circuit this test for compilers unknown to
3649 for ac_file in $ac_files ''
3651 test -f "$ac_file" || continue
3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3656 # We found the default executable, but exeext='' is most
3660 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3662 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3664 # We set ac_cv_exeext here because the later test for it is not
3665 # safe: cross compilers may not add the suffix if given an `-o'
3666 # argument, so we may need to know it at that point already.
3667 # Even if this section looks crufty: it has the advantage of
3674 test "$ac_cv_exeext" = no && ac_cv_exeext=
3679 if test -z "$ac_file"; then :
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error 77 "C compiler cannot create executables
3688 See \`config.log' for more details" "$LINENO" 5; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3691 $as_echo "yes" >&6; }
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3694 $as_echo_n "checking for C compiler default output file name... " >&6; }
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3696 $as_echo "$ac_file" >&6; }
3697 ac_exeext=$ac_cv_exeext
3699 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3700 ac_clean_files=$ac_clean_files_save
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3702 $as_echo_n "checking for suffix of executables... " >&6; }
3703 if { { ac_try="$ac_link"
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709 $as_echo "$ac_try_echo"; } >&5
3710 (eval "$ac_link") 2>&5
3712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713 test $ac_status = 0; }; then :
3714 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3715 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3716 # work properly (i.e., refer to `conftest.exe'), while it won't with
3718 for ac_file in conftest.exe conftest conftest.*; do
3719 test -f "$ac_file" || continue
3721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3722 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3730 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3731 See \`config.log' for more details" "$LINENO" 5; }
3733 rm -f conftest conftest$ac_cv_exeext
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3735 $as_echo "$ac_cv_exeext" >&6; }
3737 rm -f conftest.$ac_ext
3738 EXEEXT=$ac_cv_exeext
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3746 FILE *f = fopen ("conftest.out", "w");
3747 return ferror (f) || fclose (f) != 0;
3753 ac_clean_files="$ac_clean_files conftest.out"
3754 # Check that the compiler produces executables we can run. If not, either
3755 # the compiler is broken, or we cross compile.
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3757 $as_echo_n "checking whether we are cross compiling... " >&6; }
3758 if test "$cross_compiling" != yes; then
3759 { { ac_try="$ac_link"
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3765 $as_echo "$ac_try_echo"; } >&5
3766 (eval "$ac_link") 2>&5
3768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769 test $ac_status = 0; }
3770 if { ac_try='./conftest$ac_cv_exeext'
3771 { { case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776 $as_echo "$ac_try_echo"; } >&5
3777 (eval "$ac_try") 2>&5
3779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780 test $ac_status = 0; }; }; then
3783 if test "$cross_compiling" = maybe; then
3786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error $? "cannot run C compiled programs.
3789 If you meant to cross compile, use \`--host'.
3790 See \`config.log' for more details" "$LINENO" 5; }
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3795 $as_echo "$cross_compiling" >&6; }
3797 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3798 ac_clean_files=$ac_clean_files_save
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3800 $as_echo_n "checking for suffix of object files... " >&6; }
3801 if ${ac_cv_objext+:} false; then :
3802 $as_echo_n "(cached) " >&6
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3815 rm -f conftest.o conftest.obj
3816 if { { ac_try="$ac_compile"
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_compile") 2>&5
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }; then :
3827 for ac_file in conftest.o conftest.obj conftest.*; do
3828 test -f "$ac_file" || continue;
3830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3831 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3836 $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841 as_fn_error $? "cannot compute suffix of object files: cannot compile
3842 See \`config.log' for more details" "$LINENO" 5; }
3844 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3847 $as_echo "$ac_cv_objext" >&6; }
3848 OBJEXT=$ac_cv_objext
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3851 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3852 if ${ac_cv_c_compiler_gnu+:} false; then :
3853 $as_echo_n "(cached) " >&6
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3869 if ac_fn_c_try_compile "$LINENO"; then :
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3879 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3880 if test $ac_compiler_gnu = yes; then
3885 ac_test_CFLAGS=${CFLAGS+set}
3886 ac_save_CFLAGS=$CFLAGS
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3888 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3889 if ${ac_cv_prog_cc_g+:} false; then :
3890 $as_echo_n "(cached) " >&6
3892 ac_save_c_werror_flag=$ac_c_werror_flag
3893 ac_c_werror_flag=yes
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3907 if ac_fn_c_try_compile "$LINENO"; then :
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3922 if ac_fn_c_try_compile "$LINENO"; then :
3925 ac_c_werror_flag=$ac_save_c_werror_flag
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3938 if ac_fn_c_try_compile "$LINENO"; then :
3941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 ac_c_werror_flag=$ac_save_c_werror_flag
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3949 $as_echo "$ac_cv_prog_cc_g" >&6; }
3950 if test "$ac_test_CFLAGS" = set; then
3951 CFLAGS=$ac_save_CFLAGS
3952 elif test $ac_cv_prog_cc_g = yes; then
3953 if test "$GCC" = yes; then
3959 if test "$GCC" = yes; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3966 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3967 if ${ac_cv_prog_cc_c89+:} false; then :
3968 $as_echo_n "(cached) " >&6
3970 ac_cv_prog_cc_c89=no
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3976 #include <sys/types.h>
3977 #include <sys/stat.h>
3978 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3979 struct buf { int x; };
3980 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3981 static char *e (p, i)
3987 static char *f (char * (*g) (char **, int), char **p, ...)
3992 s = g (p, va_arg (v,int));
3997 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3998 function prototypes and stuff, but not '\xHH' hex character constants.
3999 These don't provoke an error unfortunately, instead are silently treated
4000 as 'x'. The following induces an error, until -std is added to get
4001 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4002 array size at least. It's necessary to write '\x00'==0 to get something
4003 that's true only with -std. */
4004 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4006 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4007 inside strings and character constants. */
4009 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4011 int test (int i, double x);
4012 struct s1 {int (*f) (int a);};
4013 struct s2 {int (*f) (double a);};
4014 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4020 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4025 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4026 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4028 CC="$ac_save_CC $ac_arg"
4029 if ac_fn_c_try_compile "$LINENO"; then :
4030 ac_cv_prog_cc_c89=$ac_arg
4032 rm -f core conftest.err conftest.$ac_objext
4033 test "x$ac_cv_prog_cc_c89" != "xno" && break
4035 rm -f conftest.$ac_ext
4040 case "x$ac_cv_prog_cc_c89" in
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4043 $as_echo "none needed" >&6; } ;;
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4046 $as_echo "unsupported" >&6; } ;;
4048 CC="$CC $ac_cv_prog_cc_c89"
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4050 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4052 if test "x$ac_cv_prog_cc_c89" != xno; then :
4057 ac_cpp='$CPP $CPPFLAGS'
4058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 ac_cpp='$CXXCPP $CPPFLAGS'
4064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4067 if test -z "$CXX"; then
4068 if test -n "$CCC"; then
4071 if test -n "$ac_tool_prefix"; then
4072 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077 $as_echo_n "checking for $ac_word... " >&6; }
4078 if ${ac_cv_prog_CXX+:} false; then :
4079 $as_echo_n "(cached) " >&6
4081 if test -n "$CXX"; then
4082 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 test -z "$as_dir" && as_dir=.
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4091 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 if test -n "$CXX"; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4104 $as_echo "$CXX" >&6; }
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107 $as_echo "no" >&6; }
4111 test -n "$CXX" && break
4114 if test -z "$CXX"; then
4116 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4118 # Extract the first word of "$ac_prog", so it can be a program name with args.
4119 set dummy $ac_prog; ac_word=$2
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 $as_echo_n "checking for $ac_word... " >&6; }
4122 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4123 $as_echo_n "(cached) " >&6
4125 if test -n "$ac_ct_CXX"; then
4126 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4135 ac_cv_prog_ac_ct_CXX="$ac_prog"
4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4146 if test -n "$ac_ct_CXX"; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4148 $as_echo "$ac_ct_CXX" >&6; }
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4155 test -n "$ac_ct_CXX" && break
4158 if test "x$ac_ct_CXX" = x; then
4161 case $cross_compiling:$ac_tool_warned in
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4165 ac_tool_warned=yes ;;
4173 # Provide some information about the compiler.
4174 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4177 for ac_option in --version -v -V -qversion; do
4178 { { ac_try="$ac_compiler $ac_option >&5"
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4184 $as_echo "$ac_try_echo"; } >&5
4185 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4187 if test -s conftest.err; then
4189 ... rest of stderr output deleted ...
4190 10q' conftest.err >conftest.er1
4191 cat conftest.er1 >&5
4193 rm -f conftest.er1 conftest.err
4194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4195 test $ac_status = 0; }
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4199 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4200 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4201 $as_echo_n "(cached) " >&6
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4217 if ac_fn_cxx_try_compile "$LINENO"; then :
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4227 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4228 if test $ac_compiler_gnu = yes; then
4233 ac_test_CXXFLAGS=${CXXFLAGS+set}
4234 ac_save_CXXFLAGS=$CXXFLAGS
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4236 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4237 if ${ac_cv_prog_cxx_g+:} false; then :
4238 $as_echo_n "(cached) " >&6
4240 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4241 ac_cxx_werror_flag=yes
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4255 if ac_fn_cxx_try_compile "$LINENO"; then :
4256 ac_cv_prog_cxx_g=yes
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4270 if ac_fn_cxx_try_compile "$LINENO"; then :
4273 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4286 if ac_fn_cxx_try_compile "$LINENO"; then :
4287 ac_cv_prog_cxx_g=yes
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4297 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4298 if test "$ac_test_CXXFLAGS" = set; then
4299 CXXFLAGS=$ac_save_CXXFLAGS
4300 elif test $ac_cv_prog_cxx_g = yes; then
4301 if test "$GXX" = yes; then
4307 if test "$GXX" = yes; then
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319 if test "x$CC" != xcc; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4321 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4324 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4326 set dummy $CC; ac_cc=`$as_echo "$2" |
4327 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4328 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4329 $as_echo_n "(cached) " >&6
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4342 # Make sure it works both with $CC and with simple cc.
4343 # We do the test twice because some compilers refuse to overwrite an
4344 # existing .o file with -o, though they will create one.
4345 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4347 if { { case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352 $as_echo "$ac_try_echo"; } >&5
4353 (eval "$ac_try") 2>&5
4355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4356 test $ac_status = 0; } &&
4357 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4362 $as_echo "$ac_try_echo"; } >&5
4363 (eval "$ac_try") 2>&5
4365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4366 test $ac_status = 0; };
4368 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4369 if test "x$CC" != xcc; then
4370 # Test first that cc exists at all.
4371 if { ac_try='cc -c conftest.$ac_ext >&5'
4372 { { case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4377 $as_echo "$ac_try_echo"; } >&5
4378 (eval "$ac_try") 2>&5
4380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4381 test $ac_status = 0; }; }; then
4382 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4384 if { { case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4389 $as_echo "$ac_try_echo"; } >&5
4390 (eval "$ac_try") 2>&5
4392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4393 test $ac_status = 0; } &&
4394 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_try") 2>&5
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; };
4408 # cc exists but doesn't like -o.
4409 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4414 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4416 rm -f core conftest*
4419 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4421 $as_echo "yes" >&6; }
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4426 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4431 ac_cpp='$CPP $CPPFLAGS'
4432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4436 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4437 # On Suns, sometimes $CPP names a directory.
4438 if test -n "$CPP" && test -d "$CPP"; then
4441 if test -z "$CPP"; then
4442 if ${ac_cv_prog_CPP+:} false; then :
4443 $as_echo_n "(cached) " >&6
4445 # Double quotes because CPP needs to be expanded
4446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4449 for ac_c_preproc_warn_flag in '' yes
4451 # Use a header file that comes with gcc, so configuring glibc
4452 # with a fresh cross-compiler works.
4453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4454 # <limits.h> exists even on freestanding compilers.
4455 # On the NeXT, cc -E runs the code through the compiler's parser,
4456 # not just through cpp. "Syntax error" is here to catch this case.
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4460 # include <limits.h>
4462 # include <assert.h>
4466 if ac_fn_c_try_cpp "$LINENO"; then :
4469 # Broken: fails on valid input.
4472 rm -f conftest.err conftest.i conftest.$ac_ext
4474 # OK, works on sane cases. Now check whether nonexistent headers
4475 # can be detected and how.
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478 #include <ac_nonexistent.h>
4480 if ac_fn_c_try_cpp "$LINENO"; then :
4481 # Broken: success on invalid input.
4484 # Passes both tests.
4488 rm -f conftest.err conftest.i conftest.$ac_ext
4491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4492 rm -f conftest.i conftest.err conftest.$ac_ext
4493 if $ac_preproc_ok; then :
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4506 $as_echo "$CPP" >&6; }
4508 for ac_c_preproc_warn_flag in '' yes
4510 # Use a header file that comes with gcc, so configuring glibc
4511 # with a fresh cross-compiler works.
4512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4513 # <limits.h> exists even on freestanding compilers.
4514 # On the NeXT, cc -E runs the code through the compiler's parser,
4515 # not just through cpp. "Syntax error" is here to catch this case.
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4519 # include <limits.h>
4521 # include <assert.h>
4525 if ac_fn_c_try_cpp "$LINENO"; then :
4528 # Broken: fails on valid input.
4531 rm -f conftest.err conftest.i conftest.$ac_ext
4533 # OK, works on sane cases. Now check whether nonexistent headers
4534 # can be detected and how.
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4537 #include <ac_nonexistent.h>
4539 if ac_fn_c_try_cpp "$LINENO"; then :
4540 # Broken: success on invalid input.
4543 # Passes both tests.
4547 rm -f conftest.err conftest.i conftest.$ac_ext
4550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4551 rm -f conftest.i conftest.err conftest.$ac_ext
4552 if $ac_preproc_ok; then :
4555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4557 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4558 See \`config.log' for more details" "$LINENO" 5; }
4562 ac_cpp='$CPP $CPPFLAGS'
4563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4569 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4570 if ${ac_cv_path_GREP+:} false; then :
4571 $as_echo_n "(cached) " >&6
4573 if test -z "$GREP"; then
4574 ac_path_GREP_found=false
4575 # Loop through the user's path and test for each of PROGNAME-LIST
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4580 test -z "$as_dir" && as_dir=.
4581 for ac_prog in grep ggrep; do
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4584 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4585 # Check for GNU ac_path_GREP and select it if it is found.
4586 # Check for GNU $ac_path_GREP
4587 case `"$ac_path_GREP" --version 2>&1` in
4589 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4592 $as_echo_n 0123456789 >"conftest.in"
4595 cat "conftest.in" "conftest.in" >"conftest.tmp"
4596 mv "conftest.tmp" "conftest.in"
4597 cp "conftest.in" "conftest.nl"
4598 $as_echo 'GREP' >> "conftest.nl"
4599 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4601 as_fn_arith $ac_count + 1 && ac_count=$as_val
4602 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4603 # Best one so far, save it but keep looking for a better one
4604 ac_cv_path_GREP="$ac_path_GREP"
4605 ac_path_GREP_max=$ac_count
4607 # 10*(2^10) chars as input seems more than enough
4608 test $ac_count -gt 10 && break
4610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4613 $ac_path_GREP_found && break 3
4618 if test -z "$ac_cv_path_GREP"; then
4619 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4622 ac_cv_path_GREP=$GREP
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4627 $as_echo "$ac_cv_path_GREP" >&6; }
4628 GREP="$ac_cv_path_GREP"
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4632 $as_echo_n "checking for egrep... " >&6; }
4633 if ${ac_cv_path_EGREP+:} false; then :
4634 $as_echo_n "(cached) " >&6
4636 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4637 then ac_cv_path_EGREP="$GREP -E"
4639 if test -z "$EGREP"; then
4640 ac_path_EGREP_found=false
4641 # Loop through the user's path and test for each of PROGNAME-LIST
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4646 test -z "$as_dir" && as_dir=.
4647 for ac_prog in egrep; do
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4650 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4651 # Check for GNU ac_path_EGREP and select it if it is found.
4652 # Check for GNU $ac_path_EGREP
4653 case `"$ac_path_EGREP" --version 2>&1` in
4655 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4658 $as_echo_n 0123456789 >"conftest.in"
4661 cat "conftest.in" "conftest.in" >"conftest.tmp"
4662 mv "conftest.tmp" "conftest.in"
4663 cp "conftest.in" "conftest.nl"
4664 $as_echo 'EGREP' >> "conftest.nl"
4665 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4667 as_fn_arith $ac_count + 1 && ac_count=$as_val
4668 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4669 # Best one so far, save it but keep looking for a better one
4670 ac_cv_path_EGREP="$ac_path_EGREP"
4671 ac_path_EGREP_max=$ac_count
4673 # 10*(2^10) chars as input seems more than enough
4674 test $ac_count -gt 10 && break
4676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4679 $ac_path_EGREP_found && break 3
4684 if test -z "$ac_cv_path_EGREP"; then
4685 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4688 ac_cv_path_EGREP=$EGREP
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4694 $as_echo "$ac_cv_path_EGREP" >&6; }
4695 EGREP="$ac_cv_path_EGREP"
4698 if test $ac_cv_c_compiler_gnu = yes; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4700 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4701 if ${ac_cv_prog_gcc_traditional+:} false; then :
4702 $as_echo_n "(cached) " >&6
4704 ac_pattern="Autoconf.*'x'"
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4711 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4712 ac_cv_prog_gcc_traditional=yes
4714 ac_cv_prog_gcc_traditional=no
4719 if test $ac_cv_prog_gcc_traditional = no; then
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4726 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4727 ac_cv_prog_gcc_traditional=yes
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4734 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4735 if test $ac_cv_prog_gcc_traditional = yes; then
4736 CC="$CC -traditional"
4740 BASECC=`basename $CC`
4742 if test "x$BASECC" = xgcc; then
4743 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4747 # Extract the first word of "$CXX", so it can be a program name with args.
4748 set dummy $CXX; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if ${ac_cv_path_CXX+:} false; then :
4752 $as_echo_n "(cached) " >&6
4756 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4766 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4779 if test -n "$CXX"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4781 $as_echo "$CXX" >&6; }
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4788 if test ! -e $CXX; then
4789 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4792 # Find a good install program. We prefer a C program (faster),
4793 # so one script is as good as another. But avoid the broken or
4794 # incompatible versions:
4795 # SysV /etc/install, /usr/sbin/install
4796 # SunOS /usr/etc/install
4797 # IRIX /sbin/install
4799 # AmigaOS /C/install, which installs bootblocks on floppy discs
4800 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4801 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4802 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4803 # OS/2's system install, which has a completely different semantic
4804 # ./install, which can be erroneously created by make from ./install.sh.
4805 # Reject install programs that cannot install multiple files.
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4807 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4808 if test -z "$INSTALL"; then
4809 if ${ac_cv_path_install+:} false; then :
4810 $as_echo_n "(cached) " >&6
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 test -z "$as_dir" && as_dir=.
4817 # Account for people who put trailing slashes in PATH elements.
4818 case $as_dir/ in #((
4819 ./ | .// | /[cC]/* | \
4820 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4821 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4824 # OSF1 and SCO ODT 3.0 have their own names for install.
4825 # Don't use installbsd from OSF since it installs stuff as root
4827 for ac_prog in ginstall scoinst install; do
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4830 if test $ac_prog = install &&
4831 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4832 # AIX install. It has an incompatible calling convention.
4834 elif test $ac_prog = install &&
4835 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4836 # program-specific install script used by HP pwplus--don't use.
4839 rm -rf conftest.one conftest.two conftest.dir
4840 echo one > conftest.one
4841 echo two > conftest.two
4843 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4844 test -s conftest.one && test -s conftest.two &&
4845 test -s conftest.dir/conftest.one &&
4846 test -s conftest.dir/conftest.two
4848 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4861 rm -rf conftest.one conftest.two conftest.dir
4864 if test "${ac_cv_path_install+set}" = set; then
4865 INSTALL=$ac_cv_path_install
4867 # As a last resort, use the slow shell script. Don't cache a
4868 # value for INSTALL within a source directory, because that will
4869 # break other packages using the cache if that directory is
4870 # removed, or if the value is a relative name.
4871 INSTALL=$ac_install_sh
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4875 $as_echo "$INSTALL" >&6; }
4877 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4878 # It thinks the first close brace ends the variable substitution.
4879 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4881 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4883 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4885 # Extract the first word of "mv", so it can be a program name with args.
4886 set dummy mv; ac_word=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if ${ac_cv_path_MV+:} false; then :
4890 $as_echo_n "(cached) " >&6
4894 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4917 if test -n "$MV"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4919 $as_echo "$MV" >&6; }
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4926 # Extract the first word of "rm", so it can be a program name with args.
4927 set dummy rm; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if ${ac_cv_path_REMOVE+:} false; then :
4931 $as_echo_n "(cached) " >&6
4935 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4957 REMOVE=$ac_cv_path_REMOVE
4958 if test -n "$REMOVE"; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4960 $as_echo "$REMOVE" >&6; }
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 $as_echo "no" >&6; }
4967 # Extract the first word of "cp", so it can be a program name with args.
4968 set dummy cp; ac_word=$2
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970 $as_echo_n "checking for $ac_word... " >&6; }
4971 if ${ac_cv_path_CP+:} false; then :
4972 $as_echo_n "(cached) " >&6
4976 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4999 if test -n "$CP"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5001 $as_echo "$CP" >&6; }
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5008 # Extract the first word of "sed", so it can be a program name with args.
5009 set dummy sed; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if ${ac_cv_path_SED+:} false; then :
5013 $as_echo_n "(cached) " >&6
5017 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5027 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5040 if test -n "$SED"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5042 $as_echo "$SED" >&6; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5049 # Extract the first word of "echo", so it can be a program name with args.
5050 set dummy echo; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if ${ac_cv_path_ECHO+:} false; then :
5054 $as_echo_n "(cached) " >&6
5058 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5080 ECHO=$ac_cv_path_ECHO
5081 if test -n "$ECHO"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5083 $as_echo "$ECHO" >&6; }
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5090 # Extract the first word of "cmp", so it can be a program name with args.
5091 set dummy cmp; ac_word=$2
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093 $as_echo_n "checking for $ac_word... " >&6; }
5094 if ${ac_cv_path_CMP+:} false; then :
5095 $as_echo_n "(cached) " >&6
5099 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 test -z "$as_dir" && as_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5109 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5122 if test -n "$CMP"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5124 $as_echo "$CMP" >&6; }
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5131 # Extract the first word of "tbl", so it can be a program name with args.
5132 set dummy tbl; ac_word=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if ${ac_cv_path_TBL+:} false; then :
5136 $as_echo_n "(cached) " >&6
5140 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5163 if test -n "$TBL"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5165 $as_echo "$TBL" >&6; }
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5172 # Extract the first word of "ar", so it can be a program name with args.
5173 set dummy ar; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if ${ac_cv_path_AR+:} false; then :
5177 $as_echo_n "(cached) " >&6
5181 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5204 if test -n "$AR"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5206 $as_echo "$AR" >&6; }
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5213 # Extract the first word of "openssl", so it can be a program name with args.
5214 set dummy openssl; ac_word=$2
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5216 $as_echo_n "checking for $ac_word... " >&6; }
5217 if ${ac_cv_path_OPENSSL+:} false; then :
5218 $as_echo_n "(cached) " >&6
5222 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5244 OPENSSL=$ac_cv_path_OPENSSL
5245 if test -n "$OPENSSL"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5247 $as_echo "$OPENSSL" >&6; }
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5254 # Extract the first word of "mtx", so it can be a program name with args.
5255 set dummy mtx; ac_word=$2
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if ${ac_cv_path_MTX+:} false; then :
5259 $as_echo_n "(cached) " >&6
5263 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5286 if test -n "$MTX"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5288 $as_echo "$MTX" >&6; }
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5295 # Extract the first word of "dd", so it can be a program name with args.
5296 set dummy dd; ac_word=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if ${ac_cv_path_DD+:} false; then :
5300 $as_echo_n "(cached) " >&6
5304 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5327 if test -n "$DD"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5329 $as_echo "$DD" >&6; }
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5336 # Extract the first word of "mkisofs", so it can be a program name with args.
5337 set dummy mkisofs; ac_word=$2
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339 $as_echo_n "checking for $ac_word... " >&6; }
5340 if ${ac_cv_path_MKISOFS+:} false; then :
5341 $as_echo_n "(cached) " >&6
5345 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5367 MKISOFS=$ac_cv_path_MKISOFS
5368 if test -n "$MKISOFS"; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5370 $as_echo "$MKISOFS" >&6; }
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5377 # Extract the first word of "python", so it can be a program name with args.
5378 set dummy python; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_path_PYTHON+:} false; then :
5382 $as_echo_n "(cached) " >&6
5386 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5408 PYTHON=$ac_cv_path_PYTHON
5409 if test -n "$PYTHON"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5411 $as_echo "$PYTHON" >&6; }
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5418 # Extract the first word of "growisofs", so it can be a program name with args.
5419 set dummy growisofs; ac_word=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if ${ac_cv_path_GROWISOFS+:} false; then :
5423 $as_echo_n "(cached) " >&6
5427 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5449 GROWISOFS=$ac_cv_path_GROWISOFS
5450 if test -n "$GROWISOFS"; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5452 $as_echo "$GROWISOFS" >&6; }
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5459 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5460 set dummy dvd+rw-mediainfo; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5464 $as_echo_n "(cached) " >&6
5466 case $DVDRWMEDIAINFO in
5468 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5478 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5490 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5491 if test -n "$DVDRWMEDIAINFO"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5493 $as_echo "$DVDRWMEDIAINFO" >&6; }
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5500 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5501 set dummy dvd+rw-format; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5505 $as_echo_n "(cached) " >&6
5507 case $DVDRWFORMAT in
5509 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5531 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5532 if test -n "$DVDRWFORMAT"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5534 $as_echo "$DVDRWFORMAT" >&6; }
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5541 # Extract the first word of "pkg-config", so it can be a program name with args.
5542 set dummy pkg-config; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_path_PKGCONFIG+:} false; then :
5546 $as_echo_n "(cached) " >&6
5550 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5560 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5572 PKGCONFIG=$ac_cv_path_PKGCONFIG
5573 if test -n "$PKGCONFIG"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5575 $as_echo "$PKGCONFIG" >&6; }
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5582 # Extract the first word of "qmake", so it can be a program name with args.
5583 set dummy qmake; ac_word=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if ${ac_cv_path_QMAKE+:} false; then :
5587 $as_echo_n "(cached) " >&6
5591 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5601 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5613 QMAKE=$ac_cv_path_QMAKE
5614 if test -n "$QMAKE"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5616 $as_echo "$QMAKE" >&6; }
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5623 # Extract the first word of "gmake", so it can be a program name with args.
5624 set dummy gmake; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_path_GMAKE+:} false; then :
5628 $as_echo_n "(cached) " >&6
5632 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5654 GMAKE=$ac_cv_path_GMAKE
5655 if test -n "$GMAKE"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5657 $as_echo "$GMAKE" >&6; }
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }
5664 # Extract the first word of "cdrecord", so it can be a program name with args.
5665 set dummy cdrecord; ac_word=$2
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if ${ac_cv_path_CDRECORD+:} false; then :
5669 $as_echo_n "(cached) " >&6
5673 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5683 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5695 CDRECORD=$ac_cv_path_CDRECORD
5696 if test -n "$CDRECORD"; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5698 $as_echo "$CDRECORD" >&6; }
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5705 # Extract the first word of "pidof", so it can be a program name with args.
5706 set dummy pidof; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if ${ac_cv_path_PIDOF+:} false; then :
5710 $as_echo_n "(cached) " >&6
5714 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5724 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5736 PIDOF=$ac_cv_path_PIDOF
5737 if test -n "$PIDOF"; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5739 $as_echo "$PIDOF" >&6; }
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5746 for ac_prog in gawk mawk nawk awk
5748 # Extract the first word of "$ac_prog", so it can be a program name with args.
5749 set dummy $ac_prog; ac_word=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if ${ac_cv_prog_AWK+:} false; then :
5753 $as_echo_n "(cached) " >&6
5755 if test -n "$AWK"; then
5756 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5765 ac_cv_prog_AWK="$ac_prog"
5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 if test -n "$AWK"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5778 $as_echo "$AWK" >&6; }
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5785 test -n "$AWK" && break
5788 # Some AWK programs fail, so test it and warn the user
5789 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5790 { if ((prog == $2) || (("(" prog ")") == $2) ||
5791 (("" prog "") == $2) ||
5792 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5794 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5795 The regex engine of $AWK is too broken to be used you
5796 might want to install GNU AWK.
5797 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5800 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5801 set dummy $THE_AWK; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_path_AWK+:} false; then :
5805 $as_echo_n "(cached) " >&6
5809 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5819 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5832 if test -n "$AWK"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5834 $as_echo "$AWK" >&6; }
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5843 test -n "$ARFLAG" || ARFLAGS="cr"
5855 # Check whether --enable-libtool was given.
5856 if test "${enable_libtool+set}" = set; then :
5857 enableval=$enable_libtool;
5858 if test x$enableval = xno; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5868 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5874 macro_revision='1.3293'
5888 ltmain="$ac_aux_dir/ltmain.sh"
5890 # Make sure we can run config.sub.
5891 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5892 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5895 $as_echo_n "checking build system type... " >&6; }
5896 if ${ac_cv_build+:} false; then :
5897 $as_echo_n "(cached) " >&6
5899 ac_build_alias=$build_alias
5900 test "x$ac_build_alias" = x &&
5901 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5902 test "x$ac_build_alias" = x &&
5903 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5904 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5905 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5909 $as_echo "$ac_cv_build" >&6; }
5910 case $ac_cv_build in
5912 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5915 ac_save_IFS=$IFS; IFS='-'
5921 # Remember, the first character of IFS is used to create $*,
5922 # except with old shells:
5925 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5929 $as_echo_n "checking host system type... " >&6; }
5930 if ${ac_cv_host+:} false; then :
5931 $as_echo_n "(cached) " >&6
5933 if test "x$host_alias" = x; then
5934 ac_cv_host=$ac_cv_build
5936 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5937 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5942 $as_echo "$ac_cv_host" >&6; }
5945 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5948 ac_save_IFS=$IFS; IFS='-'
5954 # Remember, the first character of IFS is used to create $*,
5955 # except with old shells:
5958 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5961 # Backslashify metacharacters that are still active within
5962 # double-quoted strings.
5963 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5965 # Same as above, but do not quote variable references.
5966 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5968 # Sed substitution to delay expansion of an escaped shell variable in a
5969 # double_quote_subst'ed string.
5970 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5972 # Sed substitution to delay expansion of an escaped single quote.
5973 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5975 # Sed substitution to avoid accidental globbing in evaled expressions
5976 no_glob_subst='s/\*/\\\*/g'
5978 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5979 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5980 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5983 $as_echo_n "checking how to print strings... " >&6; }
5984 # Test print first, because it will be a builtin if present.
5985 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5986 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5988 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5991 # Use this function as a fallback that always works.
5992 func_fallback_echo ()
5994 eval 'cat <<_LTECHO_EOF
5998 ECHO='func_fallback_echo'
6001 # func_echo_all arg...
6002 # Invoke $ECHO with all args, space-separated.
6009 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6010 $as_echo "printf" >&6; } ;;
6011 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6012 $as_echo "print -r" >&6; } ;;
6013 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6014 $as_echo "cat" >&6; } ;;
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6031 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6032 if ${ac_cv_path_SED+:} false; then :
6033 $as_echo_n "(cached) " >&6
6035 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6036 for ac_i in 1 2 3 4 5 6 7; do
6037 ac_script="$ac_script$as_nl$ac_script"
6039 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6040 { ac_script=; unset ac_script;}
6041 if test -z "$SED"; then
6042 ac_path_SED_found=false
6043 # Loop through the user's path and test for each of PROGNAME-LIST
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 test -z "$as_dir" && as_dir=.
6049 for ac_prog in sed gsed; do
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6052 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6053 # Check for GNU ac_path_SED and select it if it is found.
6054 # Check for GNU $ac_path_SED
6055 case `"$ac_path_SED" --version 2>&1` in
6057 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6060 $as_echo_n 0123456789 >"conftest.in"
6063 cat "conftest.in" "conftest.in" >"conftest.tmp"
6064 mv "conftest.tmp" "conftest.in"
6065 cp "conftest.in" "conftest.nl"
6066 $as_echo '' >> "conftest.nl"
6067 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6069 as_fn_arith $ac_count + 1 && ac_count=$as_val
6070 if test $ac_count -gt ${ac_path_SED_max-0}; then
6071 # Best one so far, save it but keep looking for a better one
6072 ac_cv_path_SED="$ac_path_SED"
6073 ac_path_SED_max=$ac_count
6075 # 10*(2^10) chars as input seems more than enough
6076 test $ac_count -gt 10 && break
6078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6081 $ac_path_SED_found && break 3
6086 if test -z "$ac_cv_path_SED"; then
6087 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6095 $as_echo "$ac_cv_path_SED" >&6; }
6096 SED="$ac_cv_path_SED"
6099 test -z "$SED" && SED=sed
6100 Xsed="$SED -e 1s/^X//"
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6113 $as_echo_n "checking for fgrep... " >&6; }
6114 if ${ac_cv_path_FGREP+:} false; then :
6115 $as_echo_n "(cached) " >&6
6117 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6118 then ac_cv_path_FGREP="$GREP -F"
6120 if test -z "$FGREP"; then
6121 ac_path_FGREP_found=false
6122 # Loop through the user's path and test for each of PROGNAME-LIST
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6127 test -z "$as_dir" && as_dir=.
6128 for ac_prog in fgrep; do
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6131 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6132 # Check for GNU ac_path_FGREP and select it if it is found.
6133 # Check for GNU $ac_path_FGREP
6134 case `"$ac_path_FGREP" --version 2>&1` in
6136 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6139 $as_echo_n 0123456789 >"conftest.in"
6142 cat "conftest.in" "conftest.in" >"conftest.tmp"
6143 mv "conftest.tmp" "conftest.in"
6144 cp "conftest.in" "conftest.nl"
6145 $as_echo 'FGREP' >> "conftest.nl"
6146 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6148 as_fn_arith $ac_count + 1 && ac_count=$as_val
6149 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6150 # Best one so far, save it but keep looking for a better one
6151 ac_cv_path_FGREP="$ac_path_FGREP"
6152 ac_path_FGREP_max=$ac_count
6154 # 10*(2^10) chars as input seems more than enough
6155 test $ac_count -gt 10 && break
6157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6160 $ac_path_FGREP_found && break 3
6165 if test -z "$ac_cv_path_FGREP"; then
6166 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6169 ac_cv_path_FGREP=$FGREP
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6175 $as_echo "$ac_cv_path_FGREP" >&6; }
6176 FGREP="$ac_cv_path_FGREP"
6179 test -z "$GREP" && GREP=grep
6199 # Check whether --with-gnu-ld was given.
6200 if test "${with_gnu_ld+set}" = set; then :
6201 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6207 if test "$GCC" = yes; then
6208 # Check if gcc -print-prog-name=ld gives a path.
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6210 $as_echo_n "checking for ld used by $CC... " >&6; }
6213 # gcc leaves a trailing carriage return which upsets mingw
6214 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6216 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6219 # Accept absolute paths.
6221 re_direlt='/[^/][^/]*/\.\./'
6222 # Canonicalize the pathname of ld
6223 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6224 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6225 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6227 test -z "$LD" && LD="$ac_prog"
6230 # If it fails, then pretend we aren't using GCC.
6234 # If it is relative, then search for the first ld in PATH.
6238 elif test "$with_gnu_ld" = yes; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6240 $as_echo_n "checking for GNU ld... " >&6; }
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6243 $as_echo_n "checking for non-GNU ld... " >&6; }
6245 if ${lt_cv_path_LD+:} false; then :
6246 $as_echo_n "(cached) " >&6
6248 if test -z "$LD"; then
6249 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6250 for ac_dir in $PATH; do
6252 test -z "$ac_dir" && ac_dir=.
6253 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6254 lt_cv_path_LD="$ac_dir/$ac_prog"
6255 # Check to see if the program is GNU ld. I'd rather use --version,
6256 # but apparently some variants of GNU ld only accept -v.
6257 # Break only if it was the GNU/non-GNU ld that we prefer.
6258 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6259 *GNU* | *'with BFD'*)
6260 test "$with_gnu_ld" != no && break
6263 test "$with_gnu_ld" != yes && break
6270 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6275 if test -n "$LD"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6277 $as_echo "$LD" >&6; }
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6282 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6284 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6285 if ${lt_cv_prog_gnu_ld+:} false; then :
6286 $as_echo_n "(cached) " >&6
6288 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6289 case `$LD -v 2>&1 </dev/null` in
6290 *GNU* | *'with BFD'*)
6291 lt_cv_prog_gnu_ld=yes
6294 lt_cv_prog_gnu_ld=no
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6299 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6300 with_gnu_ld=$lt_cv_prog_gnu_ld
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6311 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6312 if ${lt_cv_path_NM+:} false; then :
6313 $as_echo_n "(cached) " >&6
6315 if test -n "$NM"; then
6316 # Let the user override the test.
6319 lt_nm_to_check="${ac_tool_prefix}nm"
6320 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6321 lt_nm_to_check="$lt_nm_to_check nm"
6323 for lt_tmp_nm in $lt_nm_to_check; do
6324 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6325 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6327 test -z "$ac_dir" && ac_dir=.
6328 tmp_nm="$ac_dir/$lt_tmp_nm"
6329 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6330 # Check to see if the nm accepts a BSD-compat flag.
6331 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6332 # nm: unknown option "B" ignored
6333 # Tru64's nm complains that /dev/null is an invalid object file
6334 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6335 */dev/null* | *'Invalid file or object type'*)
6336 lt_cv_path_NM="$tmp_nm -B"
6340 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6342 lt_cv_path_NM="$tmp_nm -p"
6346 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6347 continue # so that we can try to find one that supports BSD flags
6356 : ${lt_cv_path_NM=no}
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6360 $as_echo "$lt_cv_path_NM" >&6; }
6361 if test "$lt_cv_path_NM" != "no"; then
6364 # Didn't find any BSD compatible name lister, look for dumpbin.
6365 if test -n "$DUMPBIN"; then :
6366 # Let the user override the test.
6368 if test -n "$ac_tool_prefix"; then
6369 for ac_prog in dumpbin "link -dump"
6371 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6372 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if ${ac_cv_prog_DUMPBIN+:} false; then :
6376 $as_echo_n "(cached) " >&6
6378 if test -n "$DUMPBIN"; then
6379 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 DUMPBIN=$ac_cv_prog_DUMPBIN
6399 if test -n "$DUMPBIN"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6401 $as_echo "$DUMPBIN" >&6; }
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6408 test -n "$DUMPBIN" && break
6411 if test -z "$DUMPBIN"; then
6412 ac_ct_DUMPBIN=$DUMPBIN
6413 for ac_prog in dumpbin "link -dump"
6415 # Extract the first word of "$ac_prog", so it can be a program name with args.
6416 set dummy $ac_prog; ac_word=$2
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6420 $as_echo_n "(cached) " >&6
6422 if test -n "$ac_ct_DUMPBIN"; then
6423 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6432 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6443 if test -n "$ac_ct_DUMPBIN"; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6445 $as_echo "$ac_ct_DUMPBIN" >&6; }
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6452 test -n "$ac_ct_DUMPBIN" && break
6455 if test "x$ac_ct_DUMPBIN" = x; then
6458 case $cross_compiling:$ac_tool_warned in
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6464 DUMPBIN=$ac_ct_DUMPBIN
6468 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6470 DUMPBIN="$DUMPBIN -symbols"
6478 if test "$DUMPBIN" != ":"; then
6482 test -z "$NM" && NM=nm
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6490 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6491 if ${lt_cv_nm_interface+:} false; then :
6492 $as_echo_n "(cached) " >&6
6494 lt_cv_nm_interface="BSD nm"
6495 echo "int some_variable = 0;" > conftest.$ac_ext
6496 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6497 (eval "$ac_compile" 2>conftest.err)
6498 cat conftest.err >&5
6499 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6500 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6501 cat conftest.err >&5
6502 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6503 cat conftest.out >&5
6504 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6505 lt_cv_nm_interface="MS dumpbin"
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6510 $as_echo "$lt_cv_nm_interface" >&6; }
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6513 $as_echo_n "checking whether ln -s works... " >&6; }
6515 if test "$LN_S" = "ln -s"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6517 $as_echo "yes" >&6; }
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6520 $as_echo "no, using $LN_S" >&6; }
6523 # find the maximum length of command line arguments
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6525 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6526 if ${lt_cv_sys_max_cmd_len+:} false; then :
6527 $as_echo_n "(cached) " >&6
6534 # On DJGPP, this test can blow up pretty badly due to problems in libc
6535 # (any single argument exceeding 2000 bytes causes a buffer overrun
6536 # during glob expansion). Even if it were fixed, the result of this
6537 # check would be larger than it should be.
6538 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6542 # Under GNU Hurd, this test is not required because there is
6543 # no limit to the length of command line arguments.
6544 # Libtool will interpret -1 as no limit whatsoever
6545 lt_cv_sys_max_cmd_len=-1;
6548 cygwin* | mingw* | cegcc*)
6549 # On Win9x/ME, this test blows up -- it succeeds, but takes
6550 # about 5 minutes as the teststring grows exponentially.
6551 # Worse, since 9x/ME are not pre-emptively multitasking,
6552 # you end up with a "frozen" computer, even though with patience
6553 # the test eventually succeeds (with a max line length of 256k).
6554 # Instead, let's just punt: use the minimum linelength reported by
6555 # all of the supported platforms: 8192 (on NT/2K/XP).
6556 lt_cv_sys_max_cmd_len=8192;
6560 # On MiNT this can take a long time and run out of memory.
6561 lt_cv_sys_max_cmd_len=8192;
6565 # On AmigaOS with pdksh, this test takes hours, literally.
6566 # So we just punt and use a minimum line length of 8192.
6567 lt_cv_sys_max_cmd_len=8192;
6570 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6571 # This has been around since 386BSD, at least. Likely further.
6572 if test -x /sbin/sysctl; then
6573 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6574 elif test -x /usr/sbin/sysctl; then
6575 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6577 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6579 # And add a safety zone
6580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6585 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6586 lt_cv_sys_max_cmd_len=196608
6590 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6591 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6592 # nice to cause kernel panics so lets avoid the loop below.
6593 # First set a reasonable default.
6594 lt_cv_sys_max_cmd_len=16384
6596 if test -x /sbin/sysconfig; then
6597 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6598 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6603 lt_cv_sys_max_cmd_len=102400
6605 sysv5* | sco5v6* | sysv4.2uw2*)
6606 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6607 if test -n "$kargmax"; then
6608 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6610 lt_cv_sys_max_cmd_len=32768
6614 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6615 if test -n "$lt_cv_sys_max_cmd_len"; then
6616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6619 # Make teststring a little bigger before we do anything with it.
6620 # a 1K string should be a reasonable start.
6621 for i in 1 2 3 4 5 6 7 8 ; do
6622 teststring=$teststring$teststring
6624 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6625 # If test is not a shell built-in, we'll probably end up computing a
6626 # maximum length that is only half of the actual maximum length, but
6628 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6629 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6630 test $i != 17 # 1/2 MB should be enough
6633 teststring=$teststring$teststring
6635 # Only check the string length outside the loop.
6636 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6638 # Add a significant safety factor because C++ compilers can tack on
6639 # massive amounts of additional arguments before passing them to the
6640 # linker. It appears as though 1/2 is a usable value.
6641 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6648 if test -n $lt_cv_sys_max_cmd_len ; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6650 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6653 $as_echo "none" >&6; }
6655 max_cmd_len=$lt_cv_sys_max_cmd_len
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6667 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6668 # Try some XSI features
6671 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6673 && eval 'test $(( 1 + 1 )) -eq 2 \
6674 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6677 $as_echo "$xsi_shell" >&6; }
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6681 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6683 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6685 && lt_shell_append=yes
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6687 $as_echo "$lt_shell_append" >&6; }
6690 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6700 # test EBCDIC or ASCII
6701 case `echo X|tr X '\101'` in
6702 A) # ASCII based system
6703 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6704 lt_SP2NL='tr \040 \012'
6705 lt_NL2SP='tr \015\012 \040\040'
6707 *) # EBCDIC based system
6708 lt_SP2NL='tr \100 \n'
6709 lt_NL2SP='tr \r\n \100\100'
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6722 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6723 if ${lt_cv_to_host_file_cmd+:} false; then :
6724 $as_echo_n "(cached) " >&6
6729 *-*-mingw* ) # actually msys
6730 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6733 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6735 * ) # otherwise, assume *nix
6736 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6742 *-*-mingw* ) # actually msys
6743 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6746 lt_cv_to_host_file_cmd=func_convert_file_noop
6748 * ) # otherwise, assume *nix
6749 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6753 * ) # unhandled hosts (and "normal" native builds)
6754 lt_cv_to_host_file_cmd=func_convert_file_noop
6760 to_host_file_cmd=$lt_cv_to_host_file_cmd
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6762 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6769 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6770 if ${lt_cv_to_tool_file_cmd+:} false; then :
6771 $as_echo_n "(cached) " >&6
6773 #assume ordinary cross tools, or native build.
6774 lt_cv_to_tool_file_cmd=func_convert_file_noop
6778 *-*-mingw* ) # actually msys
6779 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6787 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6789 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6796 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6797 if ${lt_cv_ld_reload_flag+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 lt_cv_ld_reload_flag='-r'
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6803 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6804 reload_flag=$lt_cv_ld_reload_flag
6805 case $reload_flag in
6807 *) reload_flag=" $reload_flag" ;;
6809 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6811 cygwin* | mingw* | pw32* | cegcc*)
6812 if test "$GCC" != yes; then
6817 if test "$GCC" = yes; then
6818 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6820 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6833 if test -n "$ac_tool_prefix"; then
6834 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6835 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_OBJDUMP+:} false; then :
6839 $as_echo_n "(cached) " >&6
6841 if test -n "$OBJDUMP"; then
6842 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6851 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 OBJDUMP=$ac_cv_prog_OBJDUMP
6862 if test -n "$OBJDUMP"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6864 $as_echo "$OBJDUMP" >&6; }
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6872 if test -z "$ac_cv_prog_OBJDUMP"; then
6873 ac_ct_OBJDUMP=$OBJDUMP
6874 # Extract the first word of "objdump", so it can be a program name with args.
6875 set dummy objdump; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6879 $as_echo_n "(cached) " >&6
6881 if test -n "$ac_ct_OBJDUMP"; then
6882 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6891 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6902 if test -n "$ac_ct_OBJDUMP"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6904 $as_echo "$ac_ct_OBJDUMP" >&6; }
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6910 if test "x$ac_ct_OBJDUMP" = x; then
6913 case $cross_compiling:$ac_tool_warned in
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6917 ac_tool_warned=yes ;;
6919 OBJDUMP=$ac_ct_OBJDUMP
6922 OBJDUMP="$ac_cv_prog_OBJDUMP"
6925 test -z "$OBJDUMP" && OBJDUMP=objdump
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6936 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6937 if ${lt_cv_deplibs_check_method+:} false; then :
6938 $as_echo_n "(cached) " >&6
6940 lt_cv_file_magic_cmd='$MAGIC_CMD'
6941 lt_cv_file_magic_test_file=
6942 lt_cv_deplibs_check_method='unknown'
6943 # Need to set the preceding variable on all platforms that support
6944 # interlibrary dependencies.
6945 # 'none' -- dependencies not supported.
6946 # `unknown' -- same as none, but documents that we really don't know.
6947 # 'pass_all' -- all dependencies passed with no checks.
6948 # 'test_compile' -- check by making test program.
6949 # 'file_magic [[regex]]' -- check by looking for files in library path
6950 # which responds to the $file_magic_cmd with a given extended regex.
6951 # If you have `file' or equivalent on your system and you're not sure
6952 # whether `pass_all' will *always* work, you probably want this one.
6956 lt_cv_deplibs_check_method=pass_all
6960 lt_cv_deplibs_check_method=pass_all
6964 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6965 lt_cv_file_magic_cmd='/usr/bin/file -L'
6966 lt_cv_file_magic_test_file=/shlib/libc.so
6970 # func_win32_libid is a shell function defined in ltmain.sh
6971 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6972 lt_cv_file_magic_cmd='func_win32_libid'
6976 # Base MSYS/MinGW do not provide the 'file' command needed by
6977 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6978 # unless we find 'file', for example because we are cross-compiling.
6979 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6980 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6981 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6982 lt_cv_file_magic_cmd='func_win32_libid'
6984 # Keep this pattern in sync with the one in func_win32_libid.
6985 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6986 lt_cv_file_magic_cmd='$OBJDUMP -f'
6991 # use the weaker test based on 'objdump'. See mingw*.
6992 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6993 lt_cv_file_magic_cmd='$OBJDUMP -f'
6996 darwin* | rhapsody*)
6997 lt_cv_deplibs_check_method=pass_all
7000 freebsd* | dragonfly*)
7001 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7004 # Not sure whether the presence of OpenBSD here was a mistake.
7005 # Let's accept both of them until this is cleared up.
7006 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7007 lt_cv_file_magic_cmd=/usr/bin/file
7008 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7012 lt_cv_deplibs_check_method=pass_all
7017 lt_cv_deplibs_check_method=pass_all
7021 lt_cv_deplibs_check_method=pass_all
7024 hpux10.20* | hpux11*)
7025 lt_cv_file_magic_cmd=/usr/bin/file
7028 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7029 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7032 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]'
7033 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7036 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7037 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7043 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7047 irix5* | irix6* | nonstopux*)
7049 *-32|*"-32 ") libmagic=32-bit;;
7050 *-n32|*"-n32 ") libmagic=N32;;
7051 *-64|*"-64 ") libmagic=64-bit;;
7052 *) libmagic=never-match;;
7054 lt_cv_deplibs_check_method=pass_all
7057 # This must be Linux ELF.
7058 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7059 lt_cv_deplibs_check_method=pass_all
7063 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7072 lt_cv_file_magic_cmd=/usr/bin/file
7073 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7077 lt_cv_deplibs_check_method=pass_all
7081 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7088 osf3* | osf4* | osf5*)
7089 lt_cv_deplibs_check_method=pass_all
7093 lt_cv_deplibs_check_method=pass_all
7097 lt_cv_deplibs_check_method=pass_all
7100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7101 lt_cv_deplibs_check_method=pass_all
7105 case $host_vendor in
7107 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]'
7108 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7111 lt_cv_deplibs_check_method=pass_all
7114 lt_cv_file_magic_cmd='/bin/file'
7115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7118 lt_cv_file_magic_cmd='/bin/file'
7119 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7120 lt_cv_file_magic_test_file=/lib/libc.so
7123 lt_cv_deplibs_check_method=pass_all
7126 lt_cv_deplibs_check_method=pass_all
7132 lt_cv_deplibs_check_method=pass_all
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7138 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7142 if test "$build" = "$host"; then
7145 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7148 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7154 file_magic_cmd=$lt_cv_file_magic_cmd
7155 deplibs_check_method=$lt_cv_deplibs_check_method
7156 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7179 if test -n "$ac_tool_prefix"; then
7180 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7181 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_DLLTOOL+:} false; then :
7185 $as_echo_n "(cached) " >&6
7187 if test -n "$DLLTOOL"; then
7188 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7197 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 DLLTOOL=$ac_cv_prog_DLLTOOL
7208 if test -n "$DLLTOOL"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7210 $as_echo "$DLLTOOL" >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7218 if test -z "$ac_cv_prog_DLLTOOL"; then
7219 ac_ct_DLLTOOL=$DLLTOOL
7220 # Extract the first word of "dlltool", so it can be a program name with args.
7221 set dummy dlltool; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7225 $as_echo_n "(cached) " >&6
7227 if test -n "$ac_ct_DLLTOOL"; then
7228 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7237 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7248 if test -n "$ac_ct_DLLTOOL"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7250 $as_echo "$ac_ct_DLLTOOL" >&6; }
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7256 if test "x$ac_ct_DLLTOOL" = x; then
7259 case $cross_compiling:$ac_tool_warned in
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263 ac_tool_warned=yes ;;
7265 DLLTOOL=$ac_ct_DLLTOOL
7268 DLLTOOL="$ac_cv_prog_DLLTOOL"
7271 test -z "$DLLTOOL" && DLLTOOL=dlltool
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7283 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7284 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7285 $as_echo_n "(cached) " >&6
7287 lt_cv_sharedlib_from_linklib_cmd='unknown'
7290 cygwin* | mingw* | pw32* | cegcc*)
7291 # two different shell functions defined in ltmain.sh
7292 # decide which to use based on capabilities of $DLLTOOL
7293 case `$DLLTOOL --help 2>&1` in
7294 *--identify-strict*)
7295 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7298 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7303 # fallback: assume linklib IS sharedlib
7304 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7310 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7311 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7312 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7320 if test -n "$ac_tool_prefix"; then
7323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326 $as_echo_n "checking for $ac_word... " >&6; }
7327 if ${ac_cv_prog_AR+:} false; then :
7328 $as_echo_n "(cached) " >&6
7330 if test -n "$AR"; then
7331 ac_cv_prog_AR="$AR" # Let the user override the test.
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7340 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 if test -n "$AR"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7353 $as_echo "$AR" >&6; }
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7360 test -n "$AR" && break
7363 if test -z "$AR"; then
7367 # Extract the first word of "$ac_prog", so it can be a program name with args.
7368 set dummy $ac_prog; ac_word=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7372 $as_echo_n "(cached) " >&6
7374 if test -n "$ac_ct_AR"; then
7375 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_prog_ac_ct_AR="$ac_prog"
7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7395 if test -n "$ac_ct_AR"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7397 $as_echo "$ac_ct_AR" >&6; }
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7404 test -n "$ac_ct_AR" && break
7407 if test "x$ac_ct_AR" = x; then
7410 case $cross_compiling:$ac_tool_warned in
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7414 ac_tool_warned=yes ;;
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7434 $as_echo_n "checking for archiver @FILE support... " >&6; }
7435 if ${lt_cv_ar_at_file+:} false; then :
7436 $as_echo_n "(cached) " >&6
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7450 if ac_fn_c_try_compile "$LINENO"; then :
7451 echo conftest.$ac_objext > conftest.lst
7452 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7454 (eval $lt_ar_try) 2>&5
7456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7457 test $ac_status = 0; }
7458 if test "$ac_status" -eq 0; then
7459 # Ensure the archiver fails upon bogus file names.
7460 rm -f conftest.$ac_objext libconftest.a
7461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7462 (eval $lt_ar_try) 2>&5
7464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7465 test $ac_status = 0; }
7466 if test "$ac_status" -ne 0; then
7470 rm -f conftest.* libconftest.a
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7477 $as_echo "$lt_cv_ar_at_file" >&6; }
7479 if test "x$lt_cv_ar_at_file" = xno; then
7482 archiver_list_spec=$lt_cv_ar_at_file
7491 if test -n "$ac_tool_prefix"; then
7492 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7493 set dummy ${ac_tool_prefix}strip; ac_word=$2
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7495 $as_echo_n "checking for $ac_word... " >&6; }
7496 if ${ac_cv_prog_STRIP+:} false; then :
7497 $as_echo_n "(cached) " >&6
7499 if test -n "$STRIP"; then
7500 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 STRIP=$ac_cv_prog_STRIP
7520 if test -n "$STRIP"; then
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7522 $as_echo "$STRIP" >&6; }
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 $as_echo "no" >&6; }
7530 if test -z "$ac_cv_prog_STRIP"; then
7532 # Extract the first word of "strip", so it can be a program name with args.
7533 set dummy strip; ac_word=$2
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535 $as_echo_n "checking for $ac_word... " >&6; }
7536 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7537 $as_echo_n "(cached) " >&6
7539 if test -n "$ac_ct_STRIP"; then
7540 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7549 ac_cv_prog_ac_ct_STRIP="strip"
7550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7560 if test -n "$ac_ct_STRIP"; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7562 $as_echo "$ac_ct_STRIP" >&6; }
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 $as_echo "no" >&6; }
7568 if test "x$ac_ct_STRIP" = x; then
7571 case $cross_compiling:$ac_tool_warned in
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7575 ac_tool_warned=yes ;;
7580 STRIP="$ac_cv_prog_STRIP"
7583 test -z "$STRIP" && STRIP=:
7590 if test -n "$ac_tool_prefix"; then
7591 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7592 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 $as_echo_n "checking for $ac_word... " >&6; }
7595 if ${ac_cv_prog_RANLIB+:} false; then :
7596 $as_echo_n "(cached) " >&6
7598 if test -n "$RANLIB"; then
7599 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7608 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 RANLIB=$ac_cv_prog_RANLIB
7619 if test -n "$RANLIB"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7621 $as_echo "$RANLIB" >&6; }
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7629 if test -z "$ac_cv_prog_RANLIB"; then
7630 ac_ct_RANLIB=$RANLIB
7631 # Extract the first word of "ranlib", so it can be a program name with args.
7632 set dummy ranlib; ac_word=$2
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634 $as_echo_n "checking for $ac_word... " >&6; }
7635 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7636 $as_echo_n "(cached) " >&6
7638 if test -n "$ac_ct_RANLIB"; then
7639 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7648 ac_cv_prog_ac_ct_RANLIB="ranlib"
7649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7659 if test -n "$ac_ct_RANLIB"; then
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7661 $as_echo "$ac_ct_RANLIB" >&6; }
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664 $as_echo "no" >&6; }
7667 if test "x$ac_ct_RANLIB" = x; then
7670 case $cross_compiling:$ac_tool_warned in
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7674 ac_tool_warned=yes ;;
7676 RANLIB=$ac_ct_RANLIB
7679 RANLIB="$ac_cv_prog_RANLIB"
7682 test -z "$RANLIB" && RANLIB=:
7689 # Determine commands to create old-style static archives.
7690 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7691 old_postinstall_cmds='chmod 644 $oldlib'
7692 old_postuninstall_cmds=
7694 if test -n "$RANLIB"; then
7697 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7700 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7703 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7708 lock_old_archive_extraction=yes ;;
7710 lock_old_archive_extraction=no ;;
7751 # If no C compiler was specified, use CC.
7754 # If no C compiler flags were specified, use CFLAGS.
7755 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7757 # Allow CC to be a program name with arguments.
7761 # Check for command to grab the raw symbol name followed by C symbol from nm.
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7763 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7764 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7765 $as_echo_n "(cached) " >&6
7768 # These are sane defaults that work on at least a few old systems.
7769 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7771 # Character class describing NM global symbol codes.
7772 symcode='[BCDEGRST]'
7774 # Regexp to match symbols that can be accessed directly from C.
7775 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7777 # Define system-specific variables.
7782 cygwin* | mingw* | pw32* | cegcc*)
7783 symcode='[ABCDGISTW]'
7786 if test "$host_cpu" = ia64; then
7787 symcode='[ABCDEGRST]'
7791 symcode='[BCDEGRST]'
7794 symcode='[BCDEGQRST]'
7805 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7813 # If we're using GNU nm, then use its standard symbol codes.
7814 case `$NM -V 2>&1` in
7815 *GNU* | *'with BFD'*)
7816 symcode='[ABCDGIRSTW]' ;;
7819 # Transform an extracted symbol line into a proper C declaration.
7820 # Some systems (esp. on ia64) link data and code symbols differently,
7821 # so use this general approach.
7822 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7824 # Transform an extracted symbol line into symbol name and symbol address
7825 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7826 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'"
7828 # Handle CRLF in mingw tool chain
7832 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7836 # Try without a prefix underscore, then with it.
7837 for ac_symprfx in "" "_"; do
7839 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7840 symxfrm="\\1 $ac_symprfx\\2 \\2"
7842 # Write the raw and C identifiers.
7843 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7844 # Fake it for dumpbin and say T for any non-static function
7845 # and D for any global variable.
7846 # Also find C++ and __fastcall symbols from MSVC++,
7847 # which start with @ or ?.
7848 lt_cv_sys_global_symbol_pipe="$AWK '"\
7849 " {last_section=section; section=\$ 3};"\
7850 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7851 " \$ 0!~/External *\|/{next};"\
7852 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7853 " {if(hide[section]) next};"\
7854 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7855 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7856 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7857 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7858 " ' prfx=^$ac_symprfx"
7860 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7862 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7864 # Check to see that the pipe works correctly.
7868 cat > conftest.$ac_ext <<_LT_EOF
7873 void nm_test_func(void);
7874 void nm_test_func(void){}
7878 int main(){nm_test_var='a';nm_test_func();return(0);}
7881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7882 (eval $ac_compile) 2>&5
7884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7885 test $ac_status = 0; }; then
7886 # Now try to grab the symbols.
7888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7889 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7892 test $ac_status = 0; } && test -s "$nlist"; then
7893 # Try sorting and uniquifying the output.
7894 if sort "$nlist" | uniq > "$nlist"T; then
7895 mv -f "$nlist"T "$nlist"
7900 # Make sure that we snagged all the symbols we need.
7901 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7902 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7903 cat <<_LT_EOF > conftest.$ac_ext
7904 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7905 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7906 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7907 relocations are performed -- see ld's documentation on pseudo-relocs. */
7908 # define LT_DLSYM_CONST
7909 #elif defined(__osf__)
7910 /* This system does not cope well with relocations in const data. */
7911 # define LT_DLSYM_CONST
7913 # define LT_DLSYM_CONST const
7921 # Now generate the symbol file.
7922 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7924 cat <<_LT_EOF >> conftest.$ac_ext
7926 /* The mapping between symbol names and symbols. */
7927 LT_DLSYM_CONST struct {
7931 lt__PROGRAM__LTX_preloaded_symbols[] =
7933 { "@PROGRAM@", (void *) 0 },
7935 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7936 cat <<\_LT_EOF >> conftest.$ac_ext
7940 /* This works around a problem in FreeBSD linker */
7941 #ifdef FREEBSD_WORKAROUND
7942 static const void *lt_preloaded_setup() {
7943 return lt__PROGRAM__LTX_preloaded_symbols;
7951 # Now try linking the two files.
7952 mv conftest.$ac_objext conftstm.$ac_objext
7953 lt_globsym_save_LIBS=$LIBS
7954 lt_globsym_save_CFLAGS=$CFLAGS
7955 LIBS="conftstm.$ac_objext"
7956 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7958 (eval $ac_link) 2>&5
7960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7961 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7964 LIBS=$lt_globsym_save_LIBS
7965 CFLAGS=$lt_globsym_save_CFLAGS
7967 echo "cannot find nm_test_func in $nlist" >&5
7970 echo "cannot find nm_test_var in $nlist" >&5
7973 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7976 echo "$progname: failed program was:" >&5
7977 cat conftest.$ac_ext >&5
7979 rm -rf conftest* conftst*
7981 # Do not use the global_symbol_pipe unless it works.
7982 if test "$pipe_works" = yes; then
7985 lt_cv_sys_global_symbol_pipe=
7991 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7992 lt_cv_sys_global_symbol_to_cdecl=
7994 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7996 $as_echo "failed" >&6; }
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7999 $as_echo "ok" >&6; }
8002 # Response file support.
8003 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8004 nm_file_list_spec='@'
8005 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8006 nm_file_list_spec='@'
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8036 $as_echo_n "checking for sysroot... " >&6; }
8038 # Check whether --with-sysroot was given.
8039 if test "${with_sysroot+set}" = set; then :
8040 withval=$with_sysroot;
8047 case ${with_sysroot} in #(
8049 if test "$GCC" = yes; then
8050 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8054 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8060 $as_echo "${with_sysroot}" >&6; }
8061 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8066 $as_echo "${lt_sysroot:-no}" >&6; }
8072 # Check whether --enable-libtool-lock was given.
8073 if test "${enable_libtool_lock+set}" = set; then :
8074 enableval=$enable_libtool_lock;
8077 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8079 # Some flags need to be propagated to the compiler or linker for good
8083 # Find out which ABI we are using.
8084 echo 'int i;' > conftest.$ac_ext
8085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8086 (eval $ac_compile) 2>&5
8088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8089 test $ac_status = 0; }; then
8090 case `/usr/bin/file conftest.$ac_objext` in
8102 # Find out which ABI we are using.
8103 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8105 (eval $ac_compile) 2>&5
8107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8108 test $ac_status = 0; }; then
8109 if test "$lt_cv_prog_gnu_ld" = yes; then
8110 case `/usr/bin/file conftest.$ac_objext` in
8112 LD="${LD-ld} -melf32bsmip"
8115 LD="${LD-ld} -melf32bmipn32"
8118 LD="${LD-ld} -melf64bmip"
8122 case `/usr/bin/file conftest.$ac_objext` in
8138 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8139 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8140 # Find out which ABI we are using.
8141 echo 'int i;' > conftest.$ac_ext
8142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8143 (eval $ac_compile) 2>&5
8145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8146 test $ac_status = 0; }; then
8147 case `/usr/bin/file conftest.o` in
8150 x86_64-*kfreebsd*-gnu)
8151 LD="${LD-ld} -m elf_i386_fbsd"
8154 LD="${LD-ld} -m elf_i386"
8156 ppc64-*linux*|powerpc64-*linux*)
8157 LD="${LD-ld} -m elf32ppclinux"
8160 LD="${LD-ld} -m elf_s390"
8163 LD="${LD-ld} -m elf32_sparc"
8169 x86_64-*kfreebsd*-gnu)
8170 LD="${LD-ld} -m elf_x86_64_fbsd"
8173 LD="${LD-ld} -m elf_x86_64"
8175 ppc*-*linux*|powerpc*-*linux*)
8176 LD="${LD-ld} -m elf64ppc"
8178 s390*-*linux*|s390*-*tpf*)
8179 LD="${LD-ld} -m elf64_s390"
8182 LD="${LD-ld} -m elf64_sparc"
8192 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8193 SAVE_CFLAGS="$CFLAGS"
8194 CFLAGS="$CFLAGS -belf"
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8196 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8197 if ${lt_cv_cc_needs_belf+:} false; then :
8198 $as_echo_n "(cached) " >&6
8201 ac_cpp='$CPP $CPPFLAGS'
8202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8217 if ac_fn_c_try_link "$LINENO"; then :
8218 lt_cv_cc_needs_belf=yes
8220 lt_cv_cc_needs_belf=no
8222 rm -f core conftest.err conftest.$ac_objext \
8223 conftest$ac_exeext conftest.$ac_ext
8225 ac_cpp='$CPP $CPPFLAGS'
8226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8232 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8233 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8234 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8235 CFLAGS="$SAVE_CFLAGS"
8239 # Find out which ABI we are using.
8240 echo 'int i;' > conftest.$ac_ext
8241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8242 (eval $ac_compile) 2>&5
8244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8245 test $ac_status = 0; }; then
8246 case `/usr/bin/file conftest.o` in
8248 case $lt_cv_prog_gnu_ld in
8249 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8251 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8263 need_locks="$enable_libtool_lock"
8265 if test -n "$ac_tool_prefix"; then
8266 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8267 set dummy ${ac_tool_prefix}mt; ac_word=$2
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8269 $as_echo_n "checking for $ac_word... " >&6; }
8270 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8271 $as_echo_n "(cached) " >&6
8273 if test -n "$MANIFEST_TOOL"; then
8274 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 test -z "$as_dir" && as_dir=.
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8283 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8293 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8294 if test -n "$MANIFEST_TOOL"; then
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8296 $as_echo "$MANIFEST_TOOL" >&6; }
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299 $as_echo "no" >&6; }
8304 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8305 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8306 # Extract the first word of "mt", so it can be a program name with args.
8307 set dummy mt; ac_word=$2
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8309 $as_echo_n "checking for $ac_word... " >&6; }
8310 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8311 $as_echo_n "(cached) " >&6
8313 if test -n "$ac_ct_MANIFEST_TOOL"; then
8314 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8323 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8334 if test -n "$ac_ct_MANIFEST_TOOL"; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8336 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8342 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8345 case $cross_compiling:$ac_tool_warned in
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8349 ac_tool_warned=yes ;;
8351 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8354 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8357 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8359 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8360 if ${lt_cv_path_mainfest_tool+:} false; then :
8361 $as_echo_n "(cached) " >&6
8363 lt_cv_path_mainfest_tool=no
8364 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8365 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8366 cat conftest.err >&5
8367 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8368 lt_cv_path_mainfest_tool=yes
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8373 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8374 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8384 rhapsody* | darwin*)
8385 if test -n "$ac_tool_prefix"; then
8386 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8387 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 $as_echo_n "checking for $ac_word... " >&6; }
8390 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8391 $as_echo_n "(cached) " >&6
8393 if test -n "$DSYMUTIL"; then
8394 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8414 if test -n "$DSYMUTIL"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8416 $as_echo "$DSYMUTIL" >&6; }
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8424 if test -z "$ac_cv_prog_DSYMUTIL"; then
8425 ac_ct_DSYMUTIL=$DSYMUTIL
8426 # Extract the first word of "dsymutil", so it can be a program name with args.
8427 set dummy dsymutil; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8431 $as_echo_n "(cached) " >&6
8433 if test -n "$ac_ct_DSYMUTIL"; then
8434 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8454 if test -n "$ac_ct_DSYMUTIL"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8456 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8462 if test "x$ac_ct_DSYMUTIL" = x; then
8465 case $cross_compiling:$ac_tool_warned in
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8469 ac_tool_warned=yes ;;
8471 DSYMUTIL=$ac_ct_DSYMUTIL
8474 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8477 if test -n "$ac_tool_prefix"; then
8478 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8479 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 $as_echo_n "checking for $ac_word... " >&6; }
8482 if ${ac_cv_prog_NMEDIT+:} false; then :
8483 $as_echo_n "(cached) " >&6
8485 if test -n "$NMEDIT"; then
8486 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 test -z "$as_dir" && as_dir=.
8493 for ac_exec_ext in '' $ac_executable_extensions; do
8494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8495 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 NMEDIT=$ac_cv_prog_NMEDIT
8506 if test -n "$NMEDIT"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8508 $as_echo "$NMEDIT" >&6; }
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8516 if test -z "$ac_cv_prog_NMEDIT"; then
8517 ac_ct_NMEDIT=$NMEDIT
8518 # Extract the first word of "nmedit", so it can be a program name with args.
8519 set dummy nmedit; ac_word=$2
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8521 $as_echo_n "checking for $ac_word... " >&6; }
8522 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8523 $as_echo_n "(cached) " >&6
8525 if test -n "$ac_ct_NMEDIT"; then
8526 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 test -z "$as_dir" && as_dir=.
8533 for ac_exec_ext in '' $ac_executable_extensions; do
8534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8535 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8546 if test -n "$ac_ct_NMEDIT"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8548 $as_echo "$ac_ct_NMEDIT" >&6; }
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8554 if test "x$ac_ct_NMEDIT" = x; then
8557 case $cross_compiling:$ac_tool_warned in
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8561 ac_tool_warned=yes ;;
8563 NMEDIT=$ac_ct_NMEDIT
8566 NMEDIT="$ac_cv_prog_NMEDIT"
8569 if test -n "$ac_tool_prefix"; then
8570 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8571 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 $as_echo_n "checking for $ac_word... " >&6; }
8574 if ${ac_cv_prog_LIPO+:} false; then :
8575 $as_echo_n "(cached) " >&6
8577 if test -n "$LIPO"; then
8578 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584 test -z "$as_dir" && as_dir=.
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8587 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8597 LIPO=$ac_cv_prog_LIPO
8598 if test -n "$LIPO"; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8600 $as_echo "$LIPO" >&6; }
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603 $as_echo "no" >&6; }
8608 if test -z "$ac_cv_prog_LIPO"; then
8610 # Extract the first word of "lipo", so it can be a program name with args.
8611 set dummy lipo; ac_word=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8615 $as_echo_n "(cached) " >&6
8617 if test -n "$ac_ct_LIPO"; then
8618 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8627 ac_cv_prog_ac_ct_LIPO="lipo"
8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8638 if test -n "$ac_ct_LIPO"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8640 $as_echo "$ac_ct_LIPO" >&6; }
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8646 if test "x$ac_ct_LIPO" = x; then
8649 case $cross_compiling:$ac_tool_warned in
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8653 ac_tool_warned=yes ;;
8658 LIPO="$ac_cv_prog_LIPO"
8661 if test -n "$ac_tool_prefix"; then
8662 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8663 set dummy ${ac_tool_prefix}otool; ac_word=$2
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665 $as_echo_n "checking for $ac_word... " >&6; }
8666 if ${ac_cv_prog_OTOOL+:} false; then :
8667 $as_echo_n "(cached) " >&6
8669 if test -n "$OTOOL"; then
8670 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8676 test -z "$as_dir" && as_dir=.
8677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8679 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8689 OTOOL=$ac_cv_prog_OTOOL
8690 if test -n "$OTOOL"; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8692 $as_echo "$OTOOL" >&6; }
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695 $as_echo "no" >&6; }
8700 if test -z "$ac_cv_prog_OTOOL"; then
8702 # Extract the first word of "otool", so it can be a program name with args.
8703 set dummy otool; ac_word=$2
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8705 $as_echo_n "checking for $ac_word... " >&6; }
8706 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8707 $as_echo_n "(cached) " >&6
8709 if test -n "$ac_ct_OTOOL"; then
8710 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716 test -z "$as_dir" && as_dir=.
8717 for ac_exec_ext in '' $ac_executable_extensions; do
8718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8719 ac_cv_prog_ac_ct_OTOOL="otool"
8720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8729 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8730 if test -n "$ac_ct_OTOOL"; then
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8732 $as_echo "$ac_ct_OTOOL" >&6; }
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735 $as_echo "no" >&6; }
8738 if test "x$ac_ct_OTOOL" = x; then
8741 case $cross_compiling:$ac_tool_warned in
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8745 ac_tool_warned=yes ;;
8750 OTOOL="$ac_cv_prog_OTOOL"
8753 if test -n "$ac_tool_prefix"; then
8754 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8755 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8757 $as_echo_n "checking for $ac_word... " >&6; }
8758 if ${ac_cv_prog_OTOOL64+:} false; then :
8759 $as_echo_n "(cached) " >&6
8761 if test -n "$OTOOL64"; then
8762 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8768 test -z "$as_dir" && as_dir=.
8769 for ac_exec_ext in '' $ac_executable_extensions; do
8770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8771 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8781 OTOOL64=$ac_cv_prog_OTOOL64
8782 if test -n "$OTOOL64"; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8784 $as_echo "$OTOOL64" >&6; }
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787 $as_echo "no" >&6; }
8792 if test -z "$ac_cv_prog_OTOOL64"; then
8793 ac_ct_OTOOL64=$OTOOL64
8794 # Extract the first word of "otool64", so it can be a program name with args.
8795 set dummy otool64; ac_word=$2
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797 $as_echo_n "checking for $ac_word... " >&6; }
8798 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8799 $as_echo_n "(cached) " >&6
8801 if test -n "$ac_ct_OTOOL64"; then
8802 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808 test -z "$as_dir" && as_dir=.
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8811 ac_cv_prog_ac_ct_OTOOL64="otool64"
8812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8822 if test -n "$ac_ct_OTOOL64"; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8824 $as_echo "$ac_ct_OTOOL64" >&6; }
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8830 if test "x$ac_ct_OTOOL64" = x; then
8833 case $cross_compiling:$ac_tool_warned in
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8837 ac_tool_warned=yes ;;
8839 OTOOL64=$ac_ct_OTOOL64
8842 OTOOL64="$ac_cv_prog_OTOOL64"
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8872 $as_echo_n "checking for -single_module linker flag... " >&6; }
8873 if ${lt_cv_apple_cc_single_mod+:} false; then :
8874 $as_echo_n "(cached) " >&6
8876 lt_cv_apple_cc_single_mod=no
8877 if test -z "${LT_MULTI_MODULE}"; then
8878 # By default we will add the -single_module flag. You can override
8879 # by either setting the environment variable LT_MULTI_MODULE
8880 # non-empty at configure time, or by adding -multi_module to the
8882 rm -rf libconftest.dylib*
8883 echo "int foo(void){return 1;}" > conftest.c
8884 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8885 -dynamiclib -Wl,-single_module conftest.c" >&5
8886 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8887 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8889 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8890 lt_cv_apple_cc_single_mod=yes
8892 cat conftest.err >&5
8894 rm -rf libconftest.dylib*
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8899 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8901 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8902 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8903 $as_echo_n "(cached) " >&6
8905 lt_cv_ld_exported_symbols_list=no
8906 save_LDFLAGS=$LDFLAGS
8907 echo "_main" > conftest.sym
8908 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8920 if ac_fn_c_try_link "$LINENO"; then :
8921 lt_cv_ld_exported_symbols_list=yes
8923 lt_cv_ld_exported_symbols_list=no
8925 rm -f core conftest.err conftest.$ac_objext \
8926 conftest$ac_exeext conftest.$ac_ext
8927 LDFLAGS="$save_LDFLAGS"
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8931 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8933 $as_echo_n "checking for -force_load linker flag... " >&6; }
8934 if ${lt_cv_ld_force_load+:} false; then :
8935 $as_echo_n "(cached) " >&6
8937 lt_cv_ld_force_load=no
8938 cat > conftest.c << _LT_EOF
8939 int forced_loaded() { return 2;}
8941 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8942 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8943 echo "$AR cru libconftest.a conftest.o" >&5
8944 $AR cru libconftest.a conftest.o 2>&5
8945 echo "$RANLIB libconftest.a" >&5
8946 $RANLIB libconftest.a 2>&5
8947 cat > conftest.c << _LT_EOF
8948 int main() { return 0;}
8950 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8951 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8953 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8954 lt_cv_ld_force_load=yes
8956 cat conftest.err >&5
8958 rm -f conftest.err libconftest.a conftest conftest.c
8959 rm -rf conftest.dSYM
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8963 $as_echo "$lt_cv_ld_force_load" >&6; }
8965 rhapsody* | darwin1.[012])
8966 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8968 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8969 darwin*) # darwin 5.x on
8970 # if running on 10.5 or later, the deployment target defaults
8971 # to the OS version, if on x86, and 10.4, the deployment
8972 # target defaults to 10.4. Don't you love it?
8973 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8974 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8975 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8977 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8979 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8983 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8984 _lt_dar_single_mod='$single_module'
8986 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8987 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8989 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8991 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8992 _lt_dsymutil='~$DSYMUTIL $lib || :'
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9000 $as_echo_n "checking for ANSI C header files... " >&6; }
9001 if ${ac_cv_header_stdc+:} false; then :
9002 $as_echo_n "(cached) " >&6
9004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h. */
9019 if ac_fn_c_try_compile "$LINENO"; then :
9020 ac_cv_header_stdc=yes
9022 ac_cv_header_stdc=no
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 if test $ac_cv_header_stdc = yes; then
9027 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9034 $EGREP "memchr" >/dev/null 2>&1; then :
9037 ac_cv_header_stdc=no
9043 if test $ac_cv_header_stdc = yes; then
9044 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9051 $EGREP "free" >/dev/null 2>&1; then :
9054 ac_cv_header_stdc=no
9060 if test $ac_cv_header_stdc = yes; then
9061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9062 if test "$cross_compiling" = yes; then :
9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9069 #if ((' ' & 0x0FF) == 0x020)
9070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9071 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9073 # define ISLOWER(c) \
9074 (('a' <= (c) && (c) <= 'i') \
9075 || ('j' <= (c) && (c) <= 'r') \
9076 || ('s' <= (c) && (c) <= 'z'))
9077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9085 for (i = 0; i < 256; i++)
9086 if (XOR (islower (i), ISLOWER (i))
9087 || toupper (i) != TOUPPER (i))
9092 if ac_fn_c_try_run "$LINENO"; then :
9095 ac_cv_header_stdc=no
9097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9098 conftest.$ac_objext conftest.beam conftest.$ac_ext
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9104 $as_echo "$ac_cv_header_stdc" >&6; }
9105 if test $ac_cv_header_stdc = yes; then
9107 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9111 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9112 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9113 inttypes.h stdint.h unistd.h
9115 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9116 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9118 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9119 cat >>confdefs.h <<_ACEOF
9120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9128 for ac_header in dlfcn.h
9130 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9132 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9133 cat >>confdefs.h <<_ACEOF
9134 #define HAVE_DLFCN_H 1
9144 func_stripname_cnf ()
9147 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9148 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9150 } # func_stripname_cnf
9157 # Check whether --enable-shared was given.
9158 if test "${enable_shared+set}" = set; then :
9159 enableval=$enable_shared; p=${PACKAGE-default}
9161 yes) enable_shared=yes ;;
9162 no) enable_shared=no ;;
9165 # Look at the argument we got. We use all the common list separators.
9166 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9167 for pkg in $enableval; do
9169 if test "X$pkg" = "X$p"; then
9186 # Check whether --enable-static was given.
9187 if test "${enable_static+set}" = set; then :
9188 enableval=$enable_static; p=${PACKAGE-default}
9190 yes) enable_static=yes ;;
9191 no) enable_static=no ;;
9194 # Look at the argument we got. We use all the common list separators.
9195 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9196 for pkg in $enableval; do
9198 if test "X$pkg" = "X$p"; then
9227 # Check whether --with-pic was given.
9228 if test "${with_pic+set}" = set; then :
9229 withval=$with_pic; pic_mode="$withval"
9235 test -z "$pic_mode" && pic_mode=default
9243 # Check whether --enable-fast-install was given.
9244 if test "${enable_fast_install+set}" = set; then :
9245 enableval=$enable_fast_install; p=${PACKAGE-default}
9247 yes) enable_fast_install=yes ;;
9248 no) enable_fast_install=no ;;
9250 enable_fast_install=no
9251 # Look at the argument we got. We use all the common list separators.
9252 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9253 for pkg in $enableval; do
9255 if test "X$pkg" = "X$p"; then
9256 enable_fast_install=yes
9263 enable_fast_install=yes
9276 # This can be used to rebuild libtool when needed
9277 LIBTOOL_DEPS="$ltmain"
9279 # Always use our own libtool.
9280 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9307 test -z "$LN_S" && LN_S="ln -s"
9322 if test -n "${ZSH_VERSION+set}" ; then
9323 setopt NO_GLOB_SUBST
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9327 $as_echo_n "checking for objdir... " >&6; }
9328 if ${lt_cv_objdir+:} false; then :
9329 $as_echo_n "(cached) " >&6
9331 rm -f .libs 2>/dev/null
9332 mkdir .libs 2>/dev/null
9333 if test -d .libs; then
9336 # MS-DOS does not allow filenames that begin with a dot.
9339 rmdir .libs 2>/dev/null
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9342 $as_echo "$lt_cv_objdir" >&6; }
9343 objdir=$lt_cv_objdir
9349 cat >>confdefs.h <<_ACEOF
9350 #define LT_OBJDIR "$lt_cv_objdir/"
9358 # AIX sometimes has problems with the GCC collect2 program. For some
9359 # reason, if we set the COLLECT_NAMES environment variable, the problems
9360 # vanish in a puff of smoke.
9361 if test "X${COLLECT_NAMES+set}" != Xset; then
9363 export COLLECT_NAMES
9370 can_build_shared=yes
9372 # All known linkers require a `.a' archive for static linking (except MSVC,
9373 # which needs '.lib').
9376 with_gnu_ld="$lt_cv_prog_gnu_ld"
9379 old_CFLAGS="$CFLAGS"
9381 # Set sane defaults for various variables
9382 test -z "$CC" && CC=cc
9383 test -z "$LTCC" && LTCC=$CC
9384 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9385 test -z "$LD" && LD=ld
9386 test -z "$ac_objext" && ac_objext=o
9388 for cc_temp in $compiler""; do
9390 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9391 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9396 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9399 # Only perform the check for file, if the check method requires it
9400 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9401 case $deplibs_check_method in
9403 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9405 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9406 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9407 $as_echo_n "(cached) " >&6
9411 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9414 lt_save_MAGIC_CMD="$MAGIC_CMD"
9415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9416 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9417 for ac_dir in $ac_dummy; do
9419 test -z "$ac_dir" && ac_dir=.
9420 if test -f $ac_dir/${ac_tool_prefix}file; then
9421 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9422 if test -n "$file_magic_test_file"; then
9423 case $deplibs_check_method in
9425 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9427 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9428 $EGREP "$file_magic_regex" > /dev/null; then
9433 *** Warning: the command libtool uses to detect shared libraries,
9434 *** $file_magic_cmd, produces output that libtool cannot recognize.
9435 *** The result is that libtool may fail to recognize shared libraries
9436 *** as such. This will affect the creation of libtool libraries that
9437 *** depend on shared libraries, but programs linked with such libtool
9438 *** libraries will work regardless of this problem. Nevertheless, you
9439 *** may want to report the problem to your system manager and/or to
9440 *** bug-libtool@gnu.org
9450 MAGIC_CMD="$lt_save_MAGIC_CMD"
9455 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9456 if test -n "$MAGIC_CMD"; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9458 $as_echo "$MAGIC_CMD" >&6; }
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9468 if test -z "$lt_cv_path_MAGIC_CMD"; then
9469 if test -n "$ac_tool_prefix"; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9471 $as_echo_n "checking for file... " >&6; }
9472 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9473 $as_echo_n "(cached) " >&6
9477 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9480 lt_save_MAGIC_CMD="$MAGIC_CMD"
9481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9482 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9483 for ac_dir in $ac_dummy; do
9485 test -z "$ac_dir" && ac_dir=.
9486 if test -f $ac_dir/file; then
9487 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9488 if test -n "$file_magic_test_file"; then
9489 case $deplibs_check_method in
9491 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9492 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9493 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9494 $EGREP "$file_magic_regex" > /dev/null; then
9499 *** Warning: the command libtool uses to detect shared libraries,
9500 *** $file_magic_cmd, produces output that libtool cannot recognize.
9501 *** The result is that libtool may fail to recognize shared libraries
9502 *** as such. This will affect the creation of libtool libraries that
9503 *** depend on shared libraries, but programs linked with such libtool
9504 *** libraries will work regardless of this problem. Nevertheless, you
9505 *** may want to report the problem to your system manager and/or to
9506 *** bug-libtool@gnu.org
9516 MAGIC_CMD="$lt_save_MAGIC_CMD"
9521 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9522 if test -n "$MAGIC_CMD"; then
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9524 $as_echo "$MAGIC_CMD" >&6; }
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527 $as_echo "no" >&6; }
9540 # Use C for the default configuration in the libtool script
9544 ac_cpp='$CPP $CPPFLAGS'
9545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9550 # Source file extension for C test sources.
9553 # Object file extension for compiled C test sources.
9557 # Code to be used in simple compile tests
9558 lt_simple_compile_test_code="int some_variable = 0;"
9560 # Code to be used in simple link tests
9561 lt_simple_link_test_code='int main(){return(0);}'
9569 # If no C compiler was specified, use CC.
9572 # If no C compiler flags were specified, use CFLAGS.
9573 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9575 # Allow CC to be a program name with arguments.
9578 # Save the default compiler, since it gets overwritten when the other
9579 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9580 compiler_DEFAULT=$CC
9582 # save warnings/boilerplate of simple test code
9583 ac_outfile=conftest.$ac_objext
9584 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9585 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9586 _lt_compiler_boilerplate=`cat conftest.err`
9589 ac_outfile=conftest.$ac_objext
9590 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9591 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9592 _lt_linker_boilerplate=`cat conftest.err`
9597 ## There is no encapsulation within the following macros, do not change
9598 ## the running order or otherwise move them around unless you know exactly
9599 ## what you are doing...
9600 if test -n "$compiler"; then
9602 lt_prog_compiler_no_builtin_flag=
9604 if test "$GCC" = yes; then
9605 case $cc_basename in
9607 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9609 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9613 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9614 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9615 $as_echo_n "(cached) " >&6
9617 lt_cv_prog_compiler_rtti_exceptions=no
9618 ac_outfile=conftest.$ac_objext
9619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9620 lt_compiler_flag="-fno-rtti -fno-exceptions"
9621 # Insert the option either (1) after the last *FLAGS variable, or
9622 # (2) before a word containing "conftest.", or (3) at the end.
9623 # Note that $ac_compile itself does not contain backslashes and begins
9624 # with a dollar sign (not a hyphen), so the echo should work correctly.
9625 # The option is referenced via a variable to avoid confusing sed.
9626 lt_compile=`echo "$ac_compile" | $SED \
9627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9629 -e 's:$: $lt_compiler_flag:'`
9630 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9631 (eval "$lt_compile" 2>conftest.err)
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 if (exit $ac_status) && test -s "$ac_outfile"; then
9636 # The compiler can only warn and ignore the option if not recognized
9637 # So say no if there are warnings other than the usual output.
9638 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9640 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9641 lt_cv_prog_compiler_rtti_exceptions=yes
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9648 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9650 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9651 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9663 lt_prog_compiler_wl=
9664 lt_prog_compiler_pic=
9665 lt_prog_compiler_static=
9668 if test "$GCC" = yes; then
9669 lt_prog_compiler_wl='-Wl,'
9670 lt_prog_compiler_static='-static'
9674 # All AIX code is PIC.
9675 if test "$host_cpu" = ia64; then
9676 # AIX 5 now supports IA64 processor
9677 lt_prog_compiler_static='-Bstatic'
9684 # see comment about AmigaOS4 .so support
9685 lt_prog_compiler_pic='-fPIC'
9688 # FIXME: we need at least 68020 code to build shared libraries, but
9689 # adding the `-m68020' flag to GCC prevents building anything better,
9691 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9696 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9697 # PIC is the default for these OSes.
9700 mingw* | cygwin* | pw32* | os2* | cegcc*)
9701 # This hack is so that the source file can tell whether it is being
9702 # built for inclusion in a dll (and should export symbols for example).
9703 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9704 # (--disable-auto-import) libraries
9705 lt_prog_compiler_pic='-DDLL_EXPORT'
9708 darwin* | rhapsody*)
9709 # PIC is the default on this platform
9710 # Common symbols not allowed in MH_DYLIB files
9711 lt_prog_compiler_pic='-fno-common'
9715 # PIC is the default for Haiku.
9716 # The "-static" flag exists, but is broken.
9717 lt_prog_compiler_static=
9721 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9722 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9723 # sets the default TLS model and affects inlining.
9729 lt_prog_compiler_pic='-fPIC'
9735 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9736 # Instead, we relocate shared libraries at runtime.
9740 # Just because we use GCC doesn't mean we suddenly get shared libraries
9741 # on systems that don't support them.
9742 lt_prog_compiler_can_build_shared=no
9747 # QNX uses GNU C++, but need to define -shared option too, otherwise
9749 lt_prog_compiler_pic='-fPIC -shared'
9753 if test -d /usr/nec; then
9754 lt_prog_compiler_pic=-Kconform_pic
9759 lt_prog_compiler_pic='-fPIC'
9763 case $cc_basename in
9764 nvcc*) # Cuda Compiler Driver 2.2
9765 lt_prog_compiler_wl='-Xlinker '
9766 lt_prog_compiler_pic='-Xcompiler -fPIC'
9770 # PORTME Check for flag to pass linker flags through the system compiler.
9773 lt_prog_compiler_wl='-Wl,'
9774 if test "$host_cpu" = ia64; then
9775 # AIX 5 now supports IA64 processor
9776 lt_prog_compiler_static='-Bstatic'
9778 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9782 mingw* | cygwin* | pw32* | os2* | cegcc*)
9783 # This hack is so that the source file can tell whether it is being
9784 # built for inclusion in a dll (and should export symbols for example).
9785 lt_prog_compiler_pic='-DDLL_EXPORT'
9788 hpux9* | hpux10* | hpux11*)
9789 lt_prog_compiler_wl='-Wl,'
9790 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9797 lt_prog_compiler_pic='+Z'
9800 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9801 lt_prog_compiler_static='${wl}-a ${wl}archive'
9804 irix5* | irix6* | nonstopux*)
9805 lt_prog_compiler_wl='-Wl,'
9806 # PIC (with -KPIC) is the default.
9807 lt_prog_compiler_static='-non_shared'
9810 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9811 case $cc_basename in
9812 # old Intel for x86_64 which still supported -KPIC.
9814 lt_prog_compiler_wl='-Wl,'
9815 lt_prog_compiler_pic='-KPIC'
9816 lt_prog_compiler_static='-static'
9818 # icc used to be incompatible with GCC.
9819 # ICC 10 doesn't accept -KPIC any more.
9821 lt_prog_compiler_wl='-Wl,'
9822 lt_prog_compiler_pic='-fPIC'
9823 lt_prog_compiler_static='-static'
9825 # Lahey Fortran 8.1.
9827 lt_prog_compiler_wl='-Wl,'
9828 lt_prog_compiler_pic='--shared'
9829 lt_prog_compiler_static='--static'
9832 # NAG Fortran compiler
9833 lt_prog_compiler_wl='-Wl,-Wl,,'
9834 lt_prog_compiler_pic='-PIC'
9835 lt_prog_compiler_static='-Bstatic'
9837 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9838 # Portland Group compilers (*not* the Pentium gcc compiler,
9839 # which looks to be a dead project)
9840 lt_prog_compiler_wl='-Wl,'
9841 lt_prog_compiler_pic='-fpic'
9842 lt_prog_compiler_static='-Bstatic'
9845 lt_prog_compiler_wl='-Wl,'
9846 # All Alpha code is PIC.
9847 lt_prog_compiler_static='-non_shared'
9849 xl* | bgxl* | bgf* | mpixl*)
9850 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9851 lt_prog_compiler_wl='-Wl,'
9852 lt_prog_compiler_pic='-qpic'
9853 lt_prog_compiler_static='-qstaticlink'
9856 case `$CC -V 2>&1 | sed 5q` in
9857 *Sun\ F* | *Sun*Fortran*)
9858 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9859 lt_prog_compiler_pic='-KPIC'
9860 lt_prog_compiler_static='-Bstatic'
9861 lt_prog_compiler_wl=''
9865 lt_prog_compiler_pic='-KPIC'
9866 lt_prog_compiler_static='-Bstatic'
9867 lt_prog_compiler_wl='-Wl,'
9875 lt_prog_compiler_pic='-KPIC'
9876 lt_prog_compiler_static='-Bstatic'
9880 # QNX uses GNU C++, but need to define -shared option too, otherwise
9882 lt_prog_compiler_pic='-fPIC -shared'
9885 osf3* | osf4* | osf5*)
9886 lt_prog_compiler_wl='-Wl,'
9887 # All OSF/1 code is PIC.
9888 lt_prog_compiler_static='-non_shared'
9892 lt_prog_compiler_static='-non_shared'
9896 lt_prog_compiler_pic='-KPIC'
9897 lt_prog_compiler_static='-Bstatic'
9898 case $cc_basename in
9899 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9900 lt_prog_compiler_wl='-Qoption ld ';;
9902 lt_prog_compiler_wl='-Wl,';;
9907 lt_prog_compiler_wl='-Qoption ld '
9908 lt_prog_compiler_pic='-PIC'
9909 lt_prog_compiler_static='-Bstatic'
9912 sysv4 | sysv4.2uw2* | sysv4.3*)
9913 lt_prog_compiler_wl='-Wl,'
9914 lt_prog_compiler_pic='-KPIC'
9915 lt_prog_compiler_static='-Bstatic'
9919 if test -d /usr/nec ;then
9920 lt_prog_compiler_pic='-Kconform_pic'
9921 lt_prog_compiler_static='-Bstatic'
9925 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9926 lt_prog_compiler_wl='-Wl,'
9927 lt_prog_compiler_pic='-KPIC'
9928 lt_prog_compiler_static='-Bstatic'
9932 lt_prog_compiler_wl='-Wl,'
9933 lt_prog_compiler_can_build_shared=no
9937 lt_prog_compiler_pic='-pic'
9938 lt_prog_compiler_static='-Bstatic'
9942 lt_prog_compiler_can_build_shared=no
9948 # For platforms which do not support PIC, -DPIC is meaningless:
9950 lt_prog_compiler_pic=
9953 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9958 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9959 if ${lt_cv_prog_compiler_pic+:} false; then :
9960 $as_echo_n "(cached) " >&6
9962 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9965 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9966 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9969 # Check to make sure the PIC flag actually works.
9971 if test -n "$lt_prog_compiler_pic"; then
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9973 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9974 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9975 $as_echo_n "(cached) " >&6
9977 lt_cv_prog_compiler_pic_works=no
9978 ac_outfile=conftest.$ac_objext
9979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9980 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9981 # Insert the option either (1) after the last *FLAGS variable, or
9982 # (2) before a word containing "conftest.", or (3) at the end.
9983 # Note that $ac_compile itself does not contain backslashes and begins
9984 # with a dollar sign (not a hyphen), so the echo should work correctly.
9985 # The option is referenced via a variable to avoid confusing sed.
9986 lt_compile=`echo "$ac_compile" | $SED \
9987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9989 -e 's:$: $lt_compiler_flag:'`
9990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9991 (eval "$lt_compile" 2>conftest.err)
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 if (exit $ac_status) && test -s "$ac_outfile"; then
9996 # The compiler can only warn and ignore the option if not recognized
9997 # So say no if there are warnings other than the usual output.
9998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10001 lt_cv_prog_compiler_pic_works=yes
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10008 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10010 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10011 case $lt_prog_compiler_pic in
10013 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10016 lt_prog_compiler_pic=
10017 lt_prog_compiler_can_build_shared=no
10033 # Check to make sure the static flag actually works.
10035 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10037 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10038 if ${lt_cv_prog_compiler_static_works+:} false; then :
10039 $as_echo_n "(cached) " >&6
10041 lt_cv_prog_compiler_static_works=no
10042 save_LDFLAGS="$LDFLAGS"
10043 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10044 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10045 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10046 # The linker can only warn and ignore the option if not recognized
10047 # So say no if there are warnings
10048 if test -s conftest.err; then
10049 # Append any errors to the config.log.
10050 cat conftest.err 1>&5
10051 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10053 if diff conftest.exp conftest.er2 >/dev/null; then
10054 lt_cv_prog_compiler_static_works=yes
10057 lt_cv_prog_compiler_static_works=yes
10061 LDFLAGS="$save_LDFLAGS"
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10065 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10067 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10070 lt_prog_compiler_static=
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10080 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10081 if ${lt_cv_prog_compiler_c_o+:} false; then :
10082 $as_echo_n "(cached) " >&6
10084 lt_cv_prog_compiler_c_o=no
10085 $RM -r conftest 2>/dev/null
10089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10091 lt_compiler_flag="-o out/conftest2.$ac_objext"
10092 # Insert the option either (1) after the last *FLAGS variable, or
10093 # (2) before a word containing "conftest.", or (3) at the end.
10094 # Note that $ac_compile itself does not contain backslashes and begins
10095 # with a dollar sign (not a hyphen), so the echo should work correctly.
10096 lt_compile=`echo "$ac_compile" | $SED \
10097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10099 -e 's:$: $lt_compiler_flag:'`
10100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10101 (eval "$lt_compile" 2>out/conftest.err)
10103 cat out/conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10107 # The compiler can only warn and ignore the option if not recognized
10108 # So say no if there are warnings
10109 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10110 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10111 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10112 lt_cv_prog_compiler_c_o=yes
10117 # SGI C++ compiler will create directory out/ii_files/ for
10118 # template instantiation
10119 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10120 $RM out/* && rmdir out
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10127 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10135 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10136 if ${lt_cv_prog_compiler_c_o+:} false; then :
10137 $as_echo_n "(cached) " >&6
10139 lt_cv_prog_compiler_c_o=no
10140 $RM -r conftest 2>/dev/null
10144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10146 lt_compiler_flag="-o out/conftest2.$ac_objext"
10147 # Insert the option either (1) after the last *FLAGS variable, or
10148 # (2) before a word containing "conftest.", or (3) at the end.
10149 # Note that $ac_compile itself does not contain backslashes and begins
10150 # with a dollar sign (not a hyphen), so the echo should work correctly.
10151 lt_compile=`echo "$ac_compile" | $SED \
10152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10154 -e 's:$: $lt_compiler_flag:'`
10155 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10156 (eval "$lt_compile" 2>out/conftest.err)
10158 cat out/conftest.err >&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10162 # The compiler can only warn and ignore the option if not recognized
10163 # So say no if there are warnings
10164 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10165 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10166 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10167 lt_cv_prog_compiler_c_o=yes
10172 # SGI C++ compiler will create directory out/ii_files/ for
10173 # template instantiation
10174 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10175 $RM out/* && rmdir out
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10182 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10187 hard_links="nottested"
10188 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10189 # do not overwrite the value of need_locks provided by the user
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10191 $as_echo_n "checking if we can lock with hard links... " >&6; }
10194 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10196 ln conftest.a conftest.b 2>&5 || hard_links=no
10197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10199 $as_echo "$hard_links" >&6; }
10200 if test "$hard_links" = no; then
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10202 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10215 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10218 allow_undefined_flag=
10219 always_export_symbols=no
10221 archive_expsym_cmds=
10222 compiler_needs_object=no
10223 enable_shared_with_static_runtimes=no
10224 export_dynamic_flag_spec=
10225 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10226 hardcode_automatic=no
10228 hardcode_direct_absolute=no
10229 hardcode_libdir_flag_spec=
10230 hardcode_libdir_flag_spec_ld=
10231 hardcode_libdir_separator=
10232 hardcode_minus_L=no
10233 hardcode_shlibpath_var=unsupported
10235 link_all_deplibs=unknown
10237 module_expsym_cmds=
10238 old_archive_from_new_cmds=
10239 old_archive_from_expsyms_cmds=
10240 thread_safe_flag_spec=
10241 whole_archive_flag_spec=
10242 # include_expsyms should be a list of space-separated symbols to be *always*
10243 # included in the symbol list
10245 # exclude_expsyms can be an extended regexp of symbols to exclude
10246 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10247 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10248 # as well as any symbol that contains `d'.
10249 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10250 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10251 # platforms (ab)use it in PIC code, but their linkers get confused if
10252 # the symbol is explicitly referenced. Since portable code cannot
10253 # rely on this symbol name, it's probably fine to never include it in
10254 # preloaded symbol tables.
10255 # Exclude shared library initialization/finalization symbols.
10256 extract_expsyms_cmds=
10259 cygwin* | mingw* | pw32* | cegcc*)
10260 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10261 # When not using gcc, we currently assume that we are using
10262 # Microsoft Visual C++.
10263 if test "$GCC" != yes; then
10268 # we just hope/assume this is gcc and not c89 (= MSVC++)
10278 # On some targets, GNU ld is compatible enough with the native linker
10279 # that we're better off using the native interface for both.
10280 lt_use_gnu_ld_interface=no
10281 if test "$with_gnu_ld" = yes; then
10284 # The AIX port of GNU ld has always aspired to compatibility
10285 # with the native linker. However, as the warning in the GNU ld
10286 # block says, versions before 2.19.5* couldn't really create working
10287 # shared libraries, regardless of the interface used.
10288 case `$LD -v 2>&1` in
10289 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10290 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10291 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10293 lt_use_gnu_ld_interface=yes
10298 lt_use_gnu_ld_interface=yes
10303 if test "$lt_use_gnu_ld_interface" = yes; then
10304 # If archive_cmds runs LD, not CC, wlarc should be empty
10307 # Set some defaults for GNU ld with shared library support. These
10308 # are reset later if shared libraries are not supported. Putting them
10309 # here allows them to be overridden if necessary.
10310 runpath_var=LD_RUN_PATH
10311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10312 export_dynamic_flag_spec='${wl}--export-dynamic'
10313 # ancient GNU ld didn't support --whole-archive et. al.
10314 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10315 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10317 whole_archive_flag_spec=
10319 supports_anon_versioning=no
10320 case `$LD -v 2>&1` in
10321 *GNU\ gold*) supports_anon_versioning=yes ;;
10322 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10323 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10324 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10325 *\ 2.11.*) ;; # other 2.11 versions
10326 *) supports_anon_versioning=yes ;;
10329 # See if GNU ld supports shared libraries.
10332 # On AIX/PPC, the GNU linker is very broken
10333 if test "$host_cpu" != ia64; then
10337 *** Warning: the GNU linker, at least up to release 2.19, is reported
10338 *** to be unable to reliably create shared libraries on AIX.
10339 *** Therefore, libtool is disabling shared libraries support. If you
10340 *** really care for shared libraries, you may want to install binutils
10341 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10342 *** You will then need to restart the configuration process.
10351 # see comment about AmigaOS4 .so support
10352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10353 archive_expsym_cmds=''
10356 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)'
10357 hardcode_libdir_flag_spec='-L$libdir'
10358 hardcode_minus_L=yes
10364 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10365 allow_undefined_flag=unsupported
10366 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10367 # support --undefined. This deserves some investigation. FIXME
10368 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10374 cygwin* | mingw* | pw32* | cegcc*)
10375 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10376 # as there is no search path for DLLs.
10377 hardcode_libdir_flag_spec='-L$libdir'
10378 export_dynamic_flag_spec='${wl}--export-all-symbols'
10379 allow_undefined_flag=unsupported
10380 always_export_symbols=no
10381 enable_shared_with_static_runtimes=yes
10382 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'
10383 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10385 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10387 # If the export-symbols file already is a .def file (1st line
10388 # is EXPORTS), use it as is; otherwise, prepend...
10389 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10390 cp $export_symbols $output_objdir/$soname.def;
10392 echo EXPORTS > $output_objdir/$soname.def;
10393 cat $export_symbols >> $output_objdir/$soname.def;
10395 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10403 link_all_deplibs=yes
10408 hardcode_shlibpath_var=no
10409 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10410 export_dynamic_flag_spec='${wl}-E'
10411 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10412 # Instead, shared libraries are loaded at an image base (0x10000000 by
10413 # default) and relocated if they conflict, which is a slow very memory
10414 # consuming and fragmenting process. To avoid this, we pick a random,
10415 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10416 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10417 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10418 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'
10421 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10423 if test "$host_os" = linux-dietlibc; then
10424 case $cc_basename in
10425 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10428 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10429 && test "$tmp_diet" = no
10431 tmp_addflag=' $pic_flag'
10432 tmp_sharedflag='-shared'
10433 case $cc_basename,$host_cpu in
10434 pgcc*) # Portland Group C compiler
10435 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'
10436 tmp_addflag=' $pic_flag'
10438 pgf77* | pgf90* | pgf95* | pgfortran*)
10439 # Portland Group f77 and f90 compilers
10440 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'
10441 tmp_addflag=' $pic_flag -Mnomain' ;;
10442 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10443 tmp_addflag=' -i_dynamic' ;;
10444 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10445 tmp_addflag=' -i_dynamic -nofor_main' ;;
10446 ifc* | ifort*) # Intel Fortran compiler
10447 tmp_addflag=' -nofor_main' ;;
10448 lf95*) # Lahey Fortran 8.1
10449 whole_archive_flag_spec=
10450 tmp_sharedflag='--shared' ;;
10451 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10452 tmp_sharedflag='-qmkshrobj'
10454 nvcc*) # Cuda Compiler Driver 2.2
10455 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'
10456 compiler_needs_object=yes
10459 case `$CC -V 2>&1 | sed 5q` in
10460 *Sun\ C*) # Sun C 5.9
10461 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'
10462 compiler_needs_object=yes
10463 tmp_sharedflag='-G' ;;
10464 *Sun\ F*) # Sun Fortran 8.3
10465 tmp_sharedflag='-G' ;;
10467 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10469 if test "x$supports_anon_versioning" = xyes; then
10470 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10471 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10472 echo "local: *; };" >> $output_objdir/$libname.ver~
10473 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10476 case $cc_basename in
10477 xlf* | bgf* | bgxlf* | mpixlf*)
10478 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10479 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10480 hardcode_libdir_flag_spec=
10481 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10482 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10483 if test "x$supports_anon_versioning" = xyes; then
10484 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10485 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10486 echo "local: *; };" >> $output_objdir/$libname.ver~
10487 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10497 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10498 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10501 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10502 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10507 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10511 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10512 *** create shared libraries on Solaris systems. Therefore, libtool
10513 *** is disabling shared libraries support. We urge you to upgrade GNU
10514 *** binutils to release 2.9.1 or newer. Another option is to modify
10515 *** your PATH or compiler configuration so that the native linker is
10516 *** used, and then restart.
10519 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10520 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10521 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10528 case `$LD -v 2>&1` in
10529 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10533 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10534 *** reliably create shared libraries on SCO systems. Therefore, libtool
10535 *** is disabling shared libraries support. We urge you to upgrade GNU
10536 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10537 *** your PATH or compiler configuration so that the native linker is
10538 *** used, and then restart.
10543 # For security reasons, it is highly recommended that you always
10544 # use absolute paths for naming shared libraries, and exclude the
10545 # DT_RUNPATH tag from executables and libraries. But doing so
10546 # requires that you compile everything twice, which is a pain.
10547 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10550 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10559 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10561 hardcode_direct=yes
10562 hardcode_shlibpath_var=no
10566 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10567 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10568 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10575 if test "$ld_shlibs" = no; then
10577 hardcode_libdir_flag_spec=
10578 export_dynamic_flag_spec=
10579 whole_archive_flag_spec=
10582 # PORTME fill in a description of your system's linker (not GNU ld)
10585 allow_undefined_flag=unsupported
10586 always_export_symbols=yes
10587 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'
10588 # Note: this linker hardcodes the directories in LIBPATH if there
10589 # are no directories specified by -L.
10590 hardcode_minus_L=yes
10591 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10592 # Neither direct hardcoding nor static linking is supported with a
10594 hardcode_direct=unsupported
10599 if test "$host_cpu" = ia64; then
10600 # On IA64, the linker does run time linking by default, so we don't
10601 # have to do anything special.
10602 aix_use_runtimelinking=no
10603 exp_sym_flag='-Bexport'
10606 # If we're using GNU nm, then we don't want the "-C" option.
10607 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10608 # Also, AIX nm treats weak defined symbols like other global
10609 # defined symbols, whereas GNU nm marks them as "W".
10610 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10611 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'
10613 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'
10615 aix_use_runtimelinking=no
10617 # Test if we are trying to use run time linking or normal
10618 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10619 # need to do runtime linking.
10620 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10621 for ld_flag in $LDFLAGS; do
10622 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10623 aix_use_runtimelinking=yes
10630 exp_sym_flag='-bexport'
10631 no_entry_flag='-bnoentry'
10634 # When large executables or shared objects are built, AIX ld can
10635 # have problems creating the table of contents. If linking a library
10636 # or program results in "error TOC overflow" add -mminimal-toc to
10637 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10638 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10641 hardcode_direct=yes
10642 hardcode_direct_absolute=yes
10643 hardcode_libdir_separator=':'
10644 link_all_deplibs=yes
10645 file_list_spec='${wl}-f,'
10647 if test "$GCC" = yes; then
10648 case $host_os in aix4.[012]|aix4.[012].*)
10649 # We only want to do this on AIX 4.2 and lower, the check
10650 # below for broken collect2 doesn't work under 4.3+
10651 collect2name=`${CC} -print-prog-name=collect2`
10652 if test -f "$collect2name" &&
10653 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10655 # We have reworked collect2
10658 # We have old collect2
10659 hardcode_direct=unsupported
10660 # It fails to find uninstalled libraries when the uninstalled
10661 # path is not listed in the libpath. Setting hardcode_minus_L
10662 # to unsupported forces relinking
10663 hardcode_minus_L=yes
10664 hardcode_libdir_flag_spec='-L$libdir'
10665 hardcode_libdir_separator=
10669 shared_flag='-shared'
10670 if test "$aix_use_runtimelinking" = yes; then
10671 shared_flag="$shared_flag "'${wl}-G'
10675 if test "$host_cpu" = ia64; then
10676 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10677 # chokes on -Wl,-G. The following line is correct:
10680 if test "$aix_use_runtimelinking" = yes; then
10681 shared_flag='${wl}-G'
10683 shared_flag='${wl}-bM:SRE'
10688 export_dynamic_flag_spec='${wl}-bexpall'
10689 # It seems that -bexpall does not export symbols beginning with
10690 # underscore (_), so it is better to generate a list of symbols to export.
10691 always_export_symbols=yes
10692 if test "$aix_use_runtimelinking" = yes; then
10693 # Warning - without using the other runtime loading flags (-brtl),
10694 # -berok will link without error, but may produce a broken library.
10695 allow_undefined_flag='-berok'
10696 # Determine the default libpath from the value encoded in an
10697 # empty executable.
10698 if test "${lt_cv_aix_libpath+set}" = set; then
10699 aix_libpath=$lt_cv_aix_libpath
10701 if ${lt_cv_aix_libpath_+:} false; then :
10702 $as_echo_n "(cached) " >&6
10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10715 if ac_fn_c_try_link "$LINENO"; then :
10717 lt_aix_libpath_sed='
10718 /Import File Strings/,/^$/ {
10720 s/^0 *\([^ ]*\) *$/\1/
10724 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10725 # Check for a 64-bit object if we didn't find anything.
10726 if test -z "$lt_cv_aix_libpath_"; then
10727 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10730 rm -f core conftest.err conftest.$ac_objext \
10731 conftest$ac_exeext conftest.$ac_ext
10732 if test -z "$lt_cv_aix_libpath_"; then
10733 lt_cv_aix_libpath_="/usr/lib:/lib"
10738 aix_libpath=$lt_cv_aix_libpath_
10741 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10742 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"
10744 if test "$host_cpu" = ia64; then
10745 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10746 allow_undefined_flag="-z nodefs"
10747 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"
10749 # Determine the default libpath from the value encoded in an
10750 # empty executable.
10751 if test "${lt_cv_aix_libpath+set}" = set; then
10752 aix_libpath=$lt_cv_aix_libpath
10754 if ${lt_cv_aix_libpath_+:} false; then :
10755 $as_echo_n "(cached) " >&6
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10768 if ac_fn_c_try_link "$LINENO"; then :
10770 lt_aix_libpath_sed='
10771 /Import File Strings/,/^$/ {
10773 s/^0 *\([^ ]*\) *$/\1/
10777 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10778 # Check for a 64-bit object if we didn't find anything.
10779 if test -z "$lt_cv_aix_libpath_"; then
10780 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785 if test -z "$lt_cv_aix_libpath_"; then
10786 lt_cv_aix_libpath_="/usr/lib:/lib"
10791 aix_libpath=$lt_cv_aix_libpath_
10794 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10795 # Warning - without using the other run time loading flags,
10796 # -berok will link without error, but may produce a broken library.
10797 no_undefined_flag=' ${wl}-bernotok'
10798 allow_undefined_flag=' ${wl}-berok'
10799 if test "$with_gnu_ld" = yes; then
10800 # We only use this code for GNU lds that support --whole-archive.
10801 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10803 # Exported symbols can be pulled into shared objects from archives
10804 whole_archive_flag_spec='$convenience'
10806 archive_cmds_need_lc=yes
10807 # This is similar to how AIX traditionally builds its shared libraries.
10808 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'
10816 # see comment about AmigaOS4 .so support
10817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10818 archive_expsym_cmds=''
10821 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)'
10822 hardcode_libdir_flag_spec='-L$libdir'
10823 hardcode_minus_L=yes
10829 export_dynamic_flag_spec=-rdynamic
10832 cygwin* | mingw* | pw32* | cegcc*)
10833 # When not using gcc, we currently assume that we are using
10834 # Microsoft Visual C++.
10835 # hardcode_libdir_flag_spec is actually meaningless, as there is
10836 # no search path for DLLs.
10837 case $cc_basename in
10840 hardcode_libdir_flag_spec=' '
10841 allow_undefined_flag=unsupported
10842 always_export_symbols=yes
10844 # Tell ltmain to make .lib files, not .a files.
10846 # Tell ltmain to make .dll files, not .so files.
10848 # FIXME: Setting linknames here is a bad hack.
10849 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10850 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10851 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10853 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10855 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10857 # The linker will not automatically build a static lib if we build a DLL.
10858 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10859 enable_shared_with_static_runtimes=yes
10860 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10862 old_postinstall_cmds='chmod 644 $oldlib'
10863 postlink_cmds='lt_outputfile="@OUTPUT@"~
10864 lt_tool_outputfile="@TOOL_OUTPUT@"~
10865 case $lt_outputfile in
10868 lt_outputfile="$lt_outputfile.exe"
10869 lt_tool_outputfile="$lt_tool_outputfile.exe"
10872 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10873 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10874 $RM "$lt_outputfile.manifest";
10878 # Assume MSVC wrapper
10879 hardcode_libdir_flag_spec=' '
10880 allow_undefined_flag=unsupported
10881 # Tell ltmain to make .lib files, not .a files.
10883 # Tell ltmain to make .dll files, not .so files.
10885 # FIXME: Setting linknames here is a bad hack.
10886 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10887 # The linker will automatically build a .lib file if we build a DLL.
10888 old_archive_from_new_cmds='true'
10889 # FIXME: Should let the user specify the lib program.
10890 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10891 enable_shared_with_static_runtimes=yes
10896 darwin* | rhapsody*)
10899 archive_cmds_need_lc=no
10901 hardcode_automatic=yes
10902 hardcode_shlibpath_var=unsupported
10903 if test "$lt_cv_ld_force_load" = "yes"; then
10904 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\"`'
10906 whole_archive_flag_spec=''
10908 link_all_deplibs=yes
10909 allow_undefined_flag="$_lt_dar_allow_undefined"
10910 case $cc_basename in
10911 ifort*) _lt_dar_can_shared=yes ;;
10912 *) _lt_dar_can_shared=$GCC ;;
10914 if test "$_lt_dar_can_shared" = "yes"; then
10915 output_verbose_link_cmd=func_echo_all
10916 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10917 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10918 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}"
10919 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}"
10928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10929 hardcode_libdir_flag_spec='-L$libdir'
10930 hardcode_shlibpath_var=no
10937 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10938 # support. Future versions do this automatically, but an explicit c++rt0.o
10939 # does not break anything, and helps significantly (at the cost of a little
10942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10943 hardcode_libdir_flag_spec='-R$libdir'
10944 hardcode_direct=yes
10945 hardcode_shlibpath_var=no
10948 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10950 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10951 hardcode_direct=yes
10952 hardcode_minus_L=yes
10953 hardcode_shlibpath_var=no
10956 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10957 freebsd* | dragonfly*)
10958 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10959 hardcode_libdir_flag_spec='-R$libdir'
10960 hardcode_direct=yes
10961 hardcode_shlibpath_var=no
10965 if test "$GCC" = yes; then
10966 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'
10968 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'
10970 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10971 hardcode_libdir_separator=:
10972 hardcode_direct=yes
10974 # hardcode_minus_L: Not really in the search PATH,
10975 # but as the default location of the library.
10976 hardcode_minus_L=yes
10977 export_dynamic_flag_spec='${wl}-E'
10981 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10982 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10984 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10986 if test "$with_gnu_ld" = no; then
10987 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10988 hardcode_libdir_flag_spec_ld='+b $libdir'
10989 hardcode_libdir_separator=:
10990 hardcode_direct=yes
10991 hardcode_direct_absolute=yes
10992 export_dynamic_flag_spec='${wl}-E'
10993 # hardcode_minus_L: Not really in the search PATH,
10994 # but as the default location of the library.
10995 hardcode_minus_L=yes
11000 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11003 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11006 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11009 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11015 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11018 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11022 # Older versions of the 11.00 compiler do not understand -b yet
11023 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11025 $as_echo_n "checking if $CC understands -b... " >&6; }
11026 if ${lt_cv_prog_compiler__b+:} false; then :
11027 $as_echo_n "(cached) " >&6
11029 lt_cv_prog_compiler__b=no
11030 save_LDFLAGS="$LDFLAGS"
11031 LDFLAGS="$LDFLAGS -b"
11032 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11033 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11034 # The linker can only warn and ignore the option if not recognized
11035 # So say no if there are warnings
11036 if test -s conftest.err; then
11037 # Append any errors to the config.log.
11038 cat conftest.err 1>&5
11039 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11041 if diff conftest.exp conftest.er2 >/dev/null; then
11042 lt_cv_prog_compiler__b=yes
11045 lt_cv_prog_compiler__b=yes
11049 LDFLAGS="$save_LDFLAGS"
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11053 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11055 if test x"$lt_cv_prog_compiler__b" = xyes; then
11056 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11058 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11064 if test "$with_gnu_ld" = no; then
11065 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11066 hardcode_libdir_separator=:
11071 hardcode_shlibpath_var=no
11074 hardcode_direct=yes
11075 hardcode_direct_absolute=yes
11076 export_dynamic_flag_spec='${wl}-E'
11078 # hardcode_minus_L: Not really in the search PATH,
11079 # but as the default location of the library.
11080 hardcode_minus_L=yes
11086 irix5* | irix6* | nonstopux*)
11087 if test "$GCC" = yes; then
11088 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'
11089 # Try to use the -exported_symbol ld option, if it does not
11090 # work, assume that -exports_file does not work either and
11091 # implicitly export all symbols.
11092 # This should be the same for all languages, so no per-tag cache variable.
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11094 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11095 if ${lt_cv_irix_exported_symbol+:} false; then :
11096 $as_echo_n "(cached) " >&6
11098 save_LDFLAGS="$LDFLAGS"
11099 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h. */
11102 int foo (void) { return 0; }
11104 if ac_fn_c_try_link "$LINENO"; then :
11105 lt_cv_irix_exported_symbol=yes
11107 lt_cv_irix_exported_symbol=no
11109 rm -f core conftest.err conftest.$ac_objext \
11110 conftest$ac_exeext conftest.$ac_ext
11111 LDFLAGS="$save_LDFLAGS"
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11114 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11115 if test "$lt_cv_irix_exported_symbol" = yes; then
11116 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'
11119 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'
11120 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'
11122 archive_cmds_need_lc='no'
11123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11124 hardcode_libdir_separator=:
11126 link_all_deplibs=yes
11130 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11133 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11135 hardcode_libdir_flag_spec='-R$libdir'
11136 hardcode_direct=yes
11137 hardcode_shlibpath_var=no
11141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11142 hardcode_direct=yes
11143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11144 hardcode_libdir_separator=:
11145 hardcode_shlibpath_var=no
11152 if test -f /usr/libexec/ld.so; then
11153 hardcode_direct=yes
11154 hardcode_shlibpath_var=no
11155 hardcode_direct_absolute=yes
11156 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11157 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11158 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11159 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11160 export_dynamic_flag_spec='${wl}-E'
11163 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11164 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11165 hardcode_libdir_flag_spec='-R$libdir'
11168 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11169 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11179 hardcode_libdir_flag_spec='-L$libdir'
11180 hardcode_minus_L=yes
11181 allow_undefined_flag=unsupported
11182 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'
11183 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11187 if test "$GCC" = yes; then
11188 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11189 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'
11191 allow_undefined_flag=' -expect_unresolved \*'
11192 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'
11194 archive_cmds_need_lc='no'
11195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11196 hardcode_libdir_separator=:
11199 osf4* | osf5*) # as osf3* with the addition of -msym flag
11200 if test "$GCC" = yes; then
11201 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11202 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'
11203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11205 allow_undefined_flag=' -expect_unresolved \*'
11206 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'
11207 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~
11208 $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'
11210 # Both c and cxx compiler support -rpath directly
11211 hardcode_libdir_flag_spec='-rpath $libdir'
11213 archive_cmds_need_lc='no'
11214 hardcode_libdir_separator=:
11218 no_undefined_flag=' -z defs'
11219 if test "$GCC" = yes; then
11221 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11222 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11223 $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'
11225 case `$CC -V 2>&1` in
11228 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11229 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11230 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11234 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11235 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11236 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11240 hardcode_libdir_flag_spec='-R$libdir'
11241 hardcode_shlibpath_var=no
11243 solaris2.[0-5] | solaris2.[0-5].*) ;;
11245 # The compiler driver will combine and reorder linker options,
11246 # but understands `-z linker_flag'. GCC discards it without `$wl',
11247 # but is careful enough not to reorder.
11248 # Supported since Solaris 2.6 (maybe 2.5.1?)
11249 if test "$GCC" = yes; then
11250 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11252 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11256 link_all_deplibs=yes
11260 if test "x$host_vendor" = xsequent; then
11261 # Use $CC to link under sequent, because it throws in some extra .o
11262 # files that make .init and .fini sections work.
11263 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11265 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11267 hardcode_libdir_flag_spec='-L$libdir'
11268 hardcode_direct=yes
11269 hardcode_minus_L=yes
11270 hardcode_shlibpath_var=no
11274 case $host_vendor in
11276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11277 hardcode_direct=yes # is this really true???
11280 ## LD is ld it makes a PLAMLIB
11281 ## CC just makes a GrossModule.
11282 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11283 reload_cmds='$CC -r -o $output$reload_objs'
11287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11288 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11291 runpath_var='LD_RUN_PATH'
11292 hardcode_shlibpath_var=no
11296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11297 hardcode_shlibpath_var=no
11298 export_dynamic_flag_spec='-Bexport'
11302 if test -d /usr/nec; then
11303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11304 hardcode_shlibpath_var=no
11305 runpath_var=LD_RUN_PATH
11306 hardcode_runpath_var=yes
11311 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11312 no_undefined_flag='${wl}-z,text'
11313 archive_cmds_need_lc=no
11314 hardcode_shlibpath_var=no
11315 runpath_var='LD_RUN_PATH'
11317 if test "$GCC" = yes; then
11318 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11319 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11321 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11322 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11326 sysv5* | sco3.2v5* | sco5v6*)
11327 # Note: We can NOT use -z defs as we might desire, because we do not
11328 # link with -lc, and that would cause any symbols used from libc to
11329 # always be unresolved, which means just about no library would
11330 # ever link correctly. If we're not using GNU ld we use -z text
11331 # though, which does catch some bad symbols but isn't as heavy-handed
11333 no_undefined_flag='${wl}-z,text'
11334 allow_undefined_flag='${wl}-z,nodefs'
11335 archive_cmds_need_lc=no
11336 hardcode_shlibpath_var=no
11337 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11338 hardcode_libdir_separator=':'
11339 link_all_deplibs=yes
11340 export_dynamic_flag_spec='${wl}-Bexport'
11341 runpath_var='LD_RUN_PATH'
11343 if test "$GCC" = yes; then
11344 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11345 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11347 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11348 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11354 hardcode_libdir_flag_spec='-L$libdir'
11355 hardcode_shlibpath_var=no
11363 if test x$host_vendor = xsni; then
11365 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11366 export_dynamic_flag_spec='${wl}-Blargedynsym'
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11373 $as_echo "$ld_shlibs" >&6; }
11374 test "$ld_shlibs" = no && can_build_shared=no
11376 with_gnu_ld=$with_gnu_ld
11393 # Do we need to explicitly link libc?
11395 case "x$archive_cmds_need_lc" in
11397 # Assume -lc should be added
11398 archive_cmds_need_lc=yes
11400 if test "$enable_shared" = yes && test "$GCC" = yes; then
11401 case $archive_cmds in
11403 # FIXME: we may have to deal with multi-command sequences.
11406 # Test whether the compiler implicitly links with -lc since on some
11407 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11408 # to ld, don't add -lc before -lgcc.
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11410 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11411 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11412 $as_echo_n "(cached) " >&6
11415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11418 (eval $ac_compile) 2>&5
11420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11421 test $ac_status = 0; } 2>conftest.err; then
11424 libobjs=conftest.$ac_objext
11426 wl=$lt_prog_compiler_wl
11427 pic_flag=$lt_prog_compiler_pic
11433 lt_save_allow_undefined_flag=$allow_undefined_flag
11434 allow_undefined_flag=
11435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11436 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11439 test $ac_status = 0; }
11441 lt_cv_archive_cmds_need_lc=no
11443 lt_cv_archive_cmds_need_lc=yes
11445 allow_undefined_flag=$lt_save_allow_undefined_flag
11447 cat conftest.err 1>&5
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11453 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11454 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11618 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11620 if test "$GCC" = yes; then
11622 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11623 *) lt_awk_arg="/^libraries:/" ;;
11626 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11627 *) lt_sed_strip_eq="s,=/,/,g" ;;
11629 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11630 case $lt_search_path_spec in
11632 # if the path contains ";" then we assume it to be the separator
11633 # otherwise default to the standard path separator (i.e. ":") - it is
11634 # assumed that no part of a normal pathname contains ";" but that should
11635 # okay in the real world where ";" in dirpaths is itself problematic.
11636 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11639 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11642 # Ok, now we have the path, separated by spaces, we can step through it
11643 # and add multilib dir if necessary.
11644 lt_tmp_lt_search_path_spec=
11645 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11646 for lt_sys_path in $lt_search_path_spec; do
11647 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11648 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11650 test -d "$lt_sys_path" && \
11651 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11654 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11655 BEGIN {RS=" "; FS="/|\n";} {
11658 for (lt_i = NF; lt_i > 0; lt_i--) {
11659 if ($lt_i != "" && $lt_i != ".") {
11660 if ($lt_i == "..") {
11663 if (lt_count == 0) {
11664 lt_foo="/" $lt_i lt_foo;
11671 if (lt_foo != "") { lt_freq[lt_foo]++; }
11672 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11674 # AWK program above erroneously prepends '/' to C:/dos/paths
11677 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11678 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11680 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11682 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11684 library_names_spec=
11685 libname_spec='lib$name'
11689 postuninstall_cmds=
11693 shlibpath_overrides_runpath=unknown
11695 dynamic_linker="$host_os ld.so"
11696 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11697 need_lib_prefix=unknown
11698 hardcode_into_libs=no
11700 # when you set need_version to no, make sure it does not cause -set_version
11701 # flags to be left without arguments
11702 need_version=unknown
11707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11708 shlibpath_var=LIBPATH
11710 # AIX 3 has no versioning support, so we append a major version to the name.
11711 soname_spec='${libname}${release}${shared_ext}$major'
11718 hardcode_into_libs=yes
11719 if test "$host_cpu" = ia64; then
11720 # AIX 5 supports IA64
11721 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11722 shlibpath_var=LD_LIBRARY_PATH
11724 # With GCC up to 2.95.x, collect2 would create an import file
11725 # for dependence libraries. The import file would start with
11726 # the line `#! .'. This would cause the generated library to
11727 # depend on `.', always an invalid library. This was fixed in
11728 # development snapshots of GCC prior to 3.0.
11730 aix4 | aix4.[01] | aix4.[01].*)
11731 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11733 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11736 can_build_shared=no
11740 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11741 # soname into executable. Probably we can add versioning support to
11742 # collect2, so additional links can be useful in future.
11743 if test "$aix_use_runtimelinking" = yes; then
11744 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11745 # instead of lib<name>.a to let people know that these are not
11746 # typical AIX shared libraries.
11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11749 # We preserve .a as extension for shared libraries through AIX4.2
11750 # and later when we are not doing run time linking.
11751 library_names_spec='${libname}${release}.a $libname.a'
11752 soname_spec='${libname}${release}${shared_ext}$major'
11754 shlibpath_var=LIBPATH
11761 # Since July 2007 AmigaOS4 officially supports .so libraries.
11762 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11766 library_names_spec='$libname.ixlibrary $libname.a'
11767 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11768 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'
11774 library_names_spec='${libname}${shared_ext}'
11775 dynamic_linker="$host_os ld.so"
11776 shlibpath_var=LIBRARY_PATH
11782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11783 soname_spec='${libname}${release}${shared_ext}$major'
11784 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11785 shlibpath_var=LD_LIBRARY_PATH
11786 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11787 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11788 # the default ld.so.conf also contains /usr/contrib/lib and
11789 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11790 # libtool to hard-code these into programs
11793 cygwin* | mingw* | pw32* | cegcc*)
11794 version_type=windows
11799 case $GCC,$cc_basename in
11802 library_names_spec='$libname.dll.a'
11803 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11804 postinstall_cmds='base_file=`basename \${file}`~
11805 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11806 dldir=$destdir/`dirname \$dlpath`~
11807 test -d \$dldir || mkdir -p \$dldir~
11808 $install_prog $dir/$dlname \$dldir/$dlname~
11809 chmod a+x \$dldir/$dlname~
11810 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11811 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11813 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11814 dlpath=$dir/\$dldll~
11816 shlibpath_overrides_runpath=yes
11820 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11821 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11823 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11826 # MinGW DLLs use traditional 'lib' prefix
11827 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11830 # pw32 DLLs use 'pw' prefix rather than 'lib'
11831 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11834 dynamic_linker='Win32 ld.exe'
11839 libname_spec='$name'
11840 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11841 library_names_spec='${libname}.dll.lib'
11845 sys_lib_search_path_spec=
11848 for lt_path in $LIB
11851 # Let DOS variable expansion print the short 8.3 style file name.
11852 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11853 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11856 # Convert to MSYS style.
11857 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11860 # Convert to unix form, then to dos form, then back to unix form
11861 # but this time dos style (no spaces!) so that the unix form looks
11862 # like /cygdrive/c/PROGRA~1:/cygdr...
11863 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11864 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11865 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11868 sys_lib_search_path_spec="$LIB"
11869 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11870 # It is most probably a Windows format PATH.
11871 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11873 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11875 # FIXME: find the short name or the path components, as spaces are
11876 # common. (e.g. "Program Files" -> "PROGRA~1")
11880 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11881 postinstall_cmds='base_file=`basename \${file}`~
11882 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11883 dldir=$destdir/`dirname \$dlpath`~
11884 test -d \$dldir || mkdir -p \$dldir~
11885 $install_prog $dir/$dlname \$dldir/$dlname'
11886 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11887 dlpath=$dir/\$dldll~
11889 shlibpath_overrides_runpath=yes
11890 dynamic_linker='Win32 link.exe'
11894 # Assume MSVC wrapper
11895 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11896 dynamic_linker='Win32 ld.exe'
11899 # FIXME: first we should search . and the directory the executable is in
11903 darwin* | rhapsody*)
11904 dynamic_linker="$host_os dyld"
11905 version_type=darwin
11908 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11909 soname_spec='${libname}${release}${major}$shared_ext'
11910 shlibpath_overrides_runpath=yes
11911 shlibpath_var=DYLD_LIBRARY_PATH
11912 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11914 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11915 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11923 soname_spec='${libname}${release}${shared_ext}$major'
11924 shlibpath_var=LD_LIBRARY_PATH
11931 freebsd* | dragonfly*)
11932 # DragonFly does not have aout. When/if they implement a new
11933 # versioning mechanism, adjust this.
11934 if test -x /usr/bin/objformat; then
11935 objformat=`/usr/bin/objformat`
11938 freebsd[123]*) objformat=aout ;;
11939 *) objformat=elf ;;
11942 version_type=freebsd-$objformat
11943 case $version_type in
11945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11950 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11954 shlibpath_var=LD_LIBRARY_PATH
11957 shlibpath_overrides_runpath=yes
11959 freebsd3.[01]* | freebsdelf3.[01]*)
11960 shlibpath_overrides_runpath=yes
11961 hardcode_into_libs=yes
11963 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11964 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11965 shlibpath_overrides_runpath=no
11966 hardcode_into_libs=yes
11968 *) # from 4.6 on, and DragonFly
11969 shlibpath_overrides_runpath=yes
11970 hardcode_into_libs=yes
11979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11980 soname_spec='${libname}${release}${shared_ext}$major'
11981 shlibpath_var=LD_LIBRARY_PATH
11982 hardcode_into_libs=yes
11989 dynamic_linker="$host_os runtime_loader"
11990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11991 soname_spec='${libname}${release}${shared_ext}$major'
11992 shlibpath_var=LIBRARY_PATH
11993 shlibpath_overrides_runpath=yes
11994 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11995 hardcode_into_libs=yes
11998 hpux9* | hpux10* | hpux11*)
11999 # Give a soname corresponding to the major version so that dld.sl refuses to
12000 # link against other versions.
12007 hardcode_into_libs=yes
12008 dynamic_linker="$host_os dld.so"
12009 shlibpath_var=LD_LIBRARY_PATH
12010 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12012 soname_spec='${libname}${release}${shared_ext}$major'
12013 if test "X$HPUX_IA64_MODE" = X32; then
12014 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12016 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12022 hardcode_into_libs=yes
12023 dynamic_linker="$host_os dld.sl"
12024 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12027 soname_spec='${libname}${release}${shared_ext}$major'
12028 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12033 dynamic_linker="$host_os dld.sl"
12034 shlibpath_var=SHLIB_PATH
12035 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
12040 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12041 postinstall_cmds='chmod 555 $lib'
12042 # or fails outright, so override atomically:
12043 install_override_mode=555
12050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12051 soname_spec='${libname}${release}${shared_ext}$major'
12052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12053 shlibpath_var=LD_LIBRARY_PATH
12054 shlibpath_overrides_runpath=no
12055 hardcode_into_libs=yes
12058 irix5* | irix6* | nonstopux*)
12060 nonstopux*) version_type=nonstopux ;;
12062 if test "$lt_cv_prog_gnu_ld" = yes; then
12070 soname_spec='${libname}${release}${shared_ext}$major'
12071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12073 irix5* | nonstopux*)
12074 libsuff= shlibsuff=
12077 case $LD in # libtool.m4 will add one of these switches to LD
12078 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12079 libsuff= shlibsuff= libmagic=32-bit;;
12080 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12081 libsuff=32 shlibsuff=N32 libmagic=N32;;
12082 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12083 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12084 *) libsuff= shlibsuff= libmagic=never-match;;
12088 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12089 shlibpath_overrides_runpath=no
12090 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12091 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12092 hardcode_into_libs=yes
12095 # No shared lib support for Linux oldld, aout, or coff.
12096 linux*oldld* | linux*aout* | linux*coff*)
12100 # This must be Linux ELF.
12101 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12106 soname_spec='${libname}${release}${shared_ext}$major'
12107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12108 shlibpath_var=LD_LIBRARY_PATH
12109 shlibpath_overrides_runpath=no
12111 # Some binutils ld are patched to set DT_RUNPATH
12112 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12113 $as_echo_n "(cached) " >&6
12115 lt_cv_shlibpath_overrides_runpath=no
12116 save_LDFLAGS=$LDFLAGS
12117 save_libdir=$libdir
12118 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12119 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12131 if ac_fn_c_try_link "$LINENO"; then :
12132 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12133 lt_cv_shlibpath_overrides_runpath=yes
12136 rm -f core conftest.err conftest.$ac_objext \
12137 conftest$ac_exeext conftest.$ac_ext
12138 LDFLAGS=$save_LDFLAGS
12139 libdir=$save_libdir
12143 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12145 # This implies no fast_install, which is unacceptable.
12146 # Some rework will be needed to allow for fast_install
12147 # before this can be enabled.
12148 hardcode_into_libs=yes
12150 # Append ld.so.conf contents to the search path
12151 if test -f /etc/ld.so.conf; then
12152 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' ' '`
12153 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12156 # We used to test for /lib/ld.so.1 and disable shared libraries on
12157 # powerpc, because MkLinux only supported shared libraries with the
12158 # GNU dynamic linker. Since this was broken with cross compilers,
12159 # most powerpc-linux boxes support dynamic linking these days and
12160 # people can always --disable-shared, the test was removed, and we
12161 # assume the GNU/Linux dynamic linker is in use.
12162 dynamic_linker='GNU/Linux ld.so'
12169 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12172 dynamic_linker='NetBSD (a.out) ld.so'
12174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12175 soname_spec='${libname}${release}${shared_ext}$major'
12176 dynamic_linker='NetBSD ld.elf_so'
12178 shlibpath_var=LD_LIBRARY_PATH
12179 shlibpath_overrides_runpath=yes
12180 hardcode_into_libs=yes
12185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12186 shlibpath_var=LD_LIBRARY_PATH
12187 shlibpath_overrides_runpath=yes
12194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195 soname_spec='${libname}${release}${shared_ext}$major'
12196 shlibpath_var=LD_LIBRARY_PATH
12197 shlibpath_overrides_runpath=no
12198 hardcode_into_libs=yes
12199 dynamic_linker='ldqnx.so'
12204 sys_lib_dlsearch_path_spec="/usr/lib"
12206 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12208 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12209 *) need_version=no ;;
12211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12213 shlibpath_var=LD_LIBRARY_PATH
12214 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12216 openbsd2.[89] | openbsd2.[89].*)
12217 shlibpath_overrides_runpath=no
12220 shlibpath_overrides_runpath=yes
12224 shlibpath_overrides_runpath=yes
12229 libname_spec='$name'
12232 library_names_spec='$libname${shared_ext} $libname.a'
12233 dynamic_linker='OS/2 ld.exe'
12234 shlibpath_var=LIBPATH
12237 osf3* | osf4* | osf5*)
12241 soname_spec='${libname}${release}${shared_ext}$major'
12242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12243 shlibpath_var=LD_LIBRARY_PATH
12244 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12245 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12257 soname_spec='${libname}${release}${shared_ext}$major'
12258 shlibpath_var=LD_LIBRARY_PATH
12259 shlibpath_overrides_runpath=yes
12260 hardcode_into_libs=yes
12261 # ldd complains unless libraries are executable
12262 postinstall_cmds='chmod +x $lib'
12267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12268 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12269 shlibpath_var=LD_LIBRARY_PATH
12270 shlibpath_overrides_runpath=yes
12271 if test "$with_gnu_ld" = yes; then
12279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12280 soname_spec='${libname}${release}${shared_ext}$major'
12281 shlibpath_var=LD_LIBRARY_PATH
12282 case $host_vendor in
12284 shlibpath_overrides_runpath=no
12286 runpath_var=LD_RUN_PATH
12294 shlibpath_overrides_runpath=no
12295 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12301 if test -d /usr/nec ;then
12303 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12304 soname_spec='$libname${shared_ext}.$major'
12305 shlibpath_var=LD_LIBRARY_PATH
12309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12310 version_type=freebsd-elf
12313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12314 soname_spec='${libname}${release}${shared_ext}$major'
12315 shlibpath_var=LD_LIBRARY_PATH
12316 shlibpath_overrides_runpath=yes
12317 hardcode_into_libs=yes
12318 if test "$with_gnu_ld" = yes; then
12319 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12321 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12324 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12328 sys_lib_dlsearch_path_spec='/usr/lib'
12332 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12337 shlibpath_var=LD_LIBRARY_PATH
12338 shlibpath_overrides_runpath=no
12339 hardcode_into_libs=yes
12344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12345 soname_spec='${libname}${release}${shared_ext}$major'
12346 shlibpath_var=LD_LIBRARY_PATH
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12354 $as_echo "$dynamic_linker" >&6; }
12355 test "$dynamic_linker" = no && can_build_shared=no
12357 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12358 if test "$GCC" = yes; then
12359 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12362 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12363 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12365 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12366 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12461 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12463 if test -n "$hardcode_libdir_flag_spec" ||
12464 test -n "$runpath_var" ||
12465 test "X$hardcode_automatic" = "Xyes" ; then
12467 # We can hardcode non-existent directories.
12468 if test "$hardcode_direct" != no &&
12469 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12470 # have to relink, otherwise we might link with an installed library
12471 # when we should be linking with a yet-to-be-installed one
12472 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12473 test "$hardcode_minus_L" != no; then
12474 # Linking always hardcodes the temporary library directory.
12475 hardcode_action=relink
12477 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12478 hardcode_action=immediate
12481 # We cannot hardcode anything, or else we can only hardcode existing
12483 hardcode_action=unsupported
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12486 $as_echo "$hardcode_action" >&6; }
12488 if test "$hardcode_action" = relink ||
12489 test "$inherit_rpath" = yes; then
12490 # Fast installation is not supported
12491 enable_fast_install=no
12492 elif test "$shlibpath_overrides_runpath" = yes ||
12493 test "$enable_shared" = no; then
12494 # Fast installation is not necessary
12495 enable_fast_install=needless
12503 if test "x$enable_dlopen" != xyes; then
12504 enable_dlopen=unknown
12505 enable_dlopen_self=unknown
12506 enable_dlopen_self_static=unknown
12513 lt_cv_dlopen="load_add_on"
12515 lt_cv_dlopen_self=yes
12518 mingw* | pw32* | cegcc*)
12519 lt_cv_dlopen="LoadLibrary"
12524 lt_cv_dlopen="dlopen"
12529 # if libdl is installed we need to link against it
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12531 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12532 if ${ac_cv_lib_dl_dlopen+:} false; then :
12533 $as_echo_n "(cached) " >&6
12535 ac_check_lib_save_LIBS=$LIBS
12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h. */
12540 /* Override any GCC internal prototype to avoid an error.
12541 Use char because int might match the return type of a GCC
12542 builtin and then its argument prototype would still apply. */
12555 if ac_fn_c_try_link "$LINENO"; then :
12556 ac_cv_lib_dl_dlopen=yes
12558 ac_cv_lib_dl_dlopen=no
12560 rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
12562 LIBS=$ac_check_lib_save_LIBS
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12565 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12566 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12567 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12570 lt_cv_dlopen="dyld"
12572 lt_cv_dlopen_self=yes
12579 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12580 if test "x$ac_cv_func_shl_load" = xyes; then :
12581 lt_cv_dlopen="shl_load"
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12584 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12585 if ${ac_cv_lib_dld_shl_load+:} false; then :
12586 $as_echo_n "(cached) " >&6
12588 ac_check_lib_save_LIBS=$LIBS
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h. */
12593 /* Override any GCC internal prototype to avoid an error.
12594 Use char because int might match the return type of a GCC
12595 builtin and then its argument prototype would still apply. */
12603 return shl_load ();
12608 if ac_fn_c_try_link "$LINENO"; then :
12609 ac_cv_lib_dld_shl_load=yes
12611 ac_cv_lib_dld_shl_load=no
12613 rm -f core conftest.err conftest.$ac_objext \
12614 conftest$ac_exeext conftest.$ac_ext
12615 LIBS=$ac_check_lib_save_LIBS
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12618 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12619 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12620 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12622 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12623 if test "x$ac_cv_func_dlopen" = xyes; then :
12624 lt_cv_dlopen="dlopen"
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12628 if ${ac_cv_lib_dl_dlopen+:} false; then :
12629 $as_echo_n "(cached) " >&6
12631 ac_check_lib_save_LIBS=$LIBS
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h. */
12636 /* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply. */
12651 if ac_fn_c_try_link "$LINENO"; then :
12652 ac_cv_lib_dl_dlopen=yes
12654 ac_cv_lib_dl_dlopen=no
12656 rm -f core conftest.err conftest.$ac_objext \
12657 conftest$ac_exeext conftest.$ac_ext
12658 LIBS=$ac_check_lib_save_LIBS
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12661 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12662 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12666 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12667 if ${ac_cv_lib_svld_dlopen+:} false; then :
12668 $as_echo_n "(cached) " >&6
12670 ac_check_lib_save_LIBS=$LIBS
12671 LIBS="-lsvld $LIBS"
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12675 /* Override any GCC internal prototype to avoid an error.
12676 Use char because int might match the return type of a GCC
12677 builtin and then its argument prototype would still apply. */
12690 if ac_fn_c_try_link "$LINENO"; then :
12691 ac_cv_lib_svld_dlopen=yes
12693 ac_cv_lib_svld_dlopen=no
12695 rm -f core conftest.err conftest.$ac_objext \
12696 conftest$ac_exeext conftest.$ac_ext
12697 LIBS=$ac_check_lib_save_LIBS
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12700 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12701 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12702 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12705 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12706 if ${ac_cv_lib_dld_dld_link+:} false; then :
12707 $as_echo_n "(cached) " >&6
12709 ac_check_lib_save_LIBS=$LIBS
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h. */
12714 /* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
12724 return dld_link ();
12729 if ac_fn_c_try_link "$LINENO"; then :
12730 ac_cv_lib_dld_dld_link=yes
12732 ac_cv_lib_dld_dld_link=no
12734 rm -f core conftest.err conftest.$ac_objext \
12735 conftest$ac_exeext conftest.$ac_ext
12736 LIBS=$ac_check_lib_save_LIBS
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12739 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12740 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12741 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12762 if test "x$lt_cv_dlopen" != xno; then
12768 case $lt_cv_dlopen in
12770 save_CPPFLAGS="$CPPFLAGS"
12771 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12773 save_LDFLAGS="$LDFLAGS"
12774 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12777 LIBS="$lt_cv_dlopen_libs $LIBS"
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12780 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12781 if ${lt_cv_dlopen_self+:} false; then :
12782 $as_echo_n "(cached) " >&6
12784 if test "$cross_compiling" = yes; then :
12785 lt_cv_dlopen_self=cross
12787 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12788 lt_status=$lt_dlunknown
12789 cat > conftest.$ac_ext <<_LT_EOF
12790 #line $LINENO "configure"
12791 #include "confdefs.h"
12800 # define LT_DLGLOBAL RTLD_GLOBAL
12803 # define LT_DLGLOBAL DL_GLOBAL
12805 # define LT_DLGLOBAL 0
12809 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12810 find out it does not work in some platform. */
12811 #ifndef LT_DLLAZY_OR_NOW
12813 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12816 # define LT_DLLAZY_OR_NOW DL_LAZY
12819 # define LT_DLLAZY_OR_NOW RTLD_NOW
12822 # define LT_DLLAZY_OR_NOW DL_NOW
12824 # define LT_DLLAZY_OR_NOW 0
12831 /* When -fvisbility=hidden is used, assume the code has been annotated
12832 correspondingly for the symbols needed. */
12833 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12834 int fnord () __attribute__((visibility("default")));
12837 int fnord () { return 42; }
12840 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12841 int status = $lt_dlunknown;
12845 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12848 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12849 else puts (dlerror ());
12851 /* dlclose (self); */
12859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12860 (eval $ac_link) 2>&5
12862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12863 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12864 (./conftest; exit; ) >&5 2>/dev/null
12866 case x$lt_status in
12867 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12868 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12869 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12872 # compilation failed
12873 lt_cv_dlopen_self=no
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12881 $as_echo "$lt_cv_dlopen_self" >&6; }
12883 if test "x$lt_cv_dlopen_self" = xyes; then
12884 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12886 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12887 if ${lt_cv_dlopen_self_static+:} false; then :
12888 $as_echo_n "(cached) " >&6
12890 if test "$cross_compiling" = yes; then :
12891 lt_cv_dlopen_self_static=cross
12893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12894 lt_status=$lt_dlunknown
12895 cat > conftest.$ac_ext <<_LT_EOF
12896 #line $LINENO "configure"
12897 #include "confdefs.h"
12906 # define LT_DLGLOBAL RTLD_GLOBAL
12909 # define LT_DLGLOBAL DL_GLOBAL
12911 # define LT_DLGLOBAL 0
12915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12916 find out it does not work in some platform. */
12917 #ifndef LT_DLLAZY_OR_NOW
12919 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12922 # define LT_DLLAZY_OR_NOW DL_LAZY
12925 # define LT_DLLAZY_OR_NOW RTLD_NOW
12928 # define LT_DLLAZY_OR_NOW DL_NOW
12930 # define LT_DLLAZY_OR_NOW 0
12937 /* When -fvisbility=hidden is used, assume the code has been annotated
12938 correspondingly for the symbols needed. */
12939 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12940 int fnord () __attribute__((visibility("default")));
12943 int fnord () { return 42; }
12946 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12947 int status = $lt_dlunknown;
12951 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12954 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12955 else puts (dlerror ());
12957 /* dlclose (self); */
12965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12966 (eval $ac_link) 2>&5
12968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12969 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12970 (./conftest; exit; ) >&5 2>/dev/null
12972 case x$lt_status in
12973 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12974 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12975 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12978 # compilation failed
12979 lt_cv_dlopen_self_static=no
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12987 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12990 CPPFLAGS="$save_CPPFLAGS"
12991 LDFLAGS="$save_LDFLAGS"
12996 case $lt_cv_dlopen_self in
12997 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12998 *) enable_dlopen_self=unknown ;;
13001 case $lt_cv_dlopen_self_static in
13002 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13003 *) enable_dlopen_self_static=unknown ;;
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13026 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13027 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13028 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13029 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13031 $as_echo "yes" >&6; }
13033 # FIXME - insert some real tests, host_os isn't really good enough
13036 if test -n "$STRIP" ; then
13037 striplib="$STRIP -x"
13038 old_striplib="$STRIP -S"
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13040 $as_echo "yes" >&6; }
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048 $as_echo "no" >&6; }
13064 # Report which library types will actually be built
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13066 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13068 $as_echo "$can_build_shared" >&6; }
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13071 $as_echo_n "checking whether to build shared libraries... " >&6; }
13072 test "$can_build_shared" = "no" && enable_shared=no
13074 # On AIX, shared libraries and static libraries use the same namespace, and
13075 # are all built from PIC.
13078 test "$enable_shared" = yes && enable_static=no
13079 if test -n "$RANLIB"; then
13080 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13081 postinstall_cmds='$RANLIB $lib'
13086 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13087 test "$enable_shared" = yes && enable_static=no
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13092 $as_echo "$enable_shared" >&6; }
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13095 $as_echo_n "checking whether to build static libraries... " >&6; }
13096 # Make sure either enable_shared or enable_static is yes.
13097 test "$enable_shared" = yes || enable_static=yes
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13099 $as_echo "$enable_static" >&6; }
13106 ac_cpp='$CPP $CPPFLAGS'
13107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13113 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13114 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13115 (test "X$CXX" != "Xg++"))) ; then
13117 ac_cpp='$CXXCPP $CPPFLAGS'
13118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13122 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13123 if test -z "$CXXCPP"; then
13124 if ${ac_cv_prog_CXXCPP+:} false; then :
13125 $as_echo_n "(cached) " >&6
13127 # Double quotes because CXXCPP needs to be expanded
13128 for CXXCPP in "$CXX -E" "/lib/cpp"
13130 ac_preproc_ok=false
13131 for ac_cxx_preproc_warn_flag in '' yes
13133 # Use a header file that comes with gcc, so configuring glibc
13134 # with a fresh cross-compiler works.
13135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13136 # <limits.h> exists even on freestanding compilers.
13137 # On the NeXT, cc -E runs the code through the compiler's parser,
13138 # not just through cpp. "Syntax error" is here to catch this case.
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13142 # include <limits.h>
13144 # include <assert.h>
13148 if ac_fn_cxx_try_cpp "$LINENO"; then :
13151 # Broken: fails on valid input.
13154 rm -f conftest.err conftest.i conftest.$ac_ext
13156 # OK, works on sane cases. Now check whether nonexistent headers
13157 # can be detected and how.
13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h. */
13160 #include <ac_nonexistent.h>
13162 if ac_fn_cxx_try_cpp "$LINENO"; then :
13163 # Broken: success on invalid input.
13166 # Passes both tests.
13170 rm -f conftest.err conftest.i conftest.$ac_ext
13173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13174 rm -f conftest.i conftest.err conftest.$ac_ext
13175 if $ac_preproc_ok; then :
13180 ac_cv_prog_CXXCPP=$CXXCPP
13183 CXXCPP=$ac_cv_prog_CXXCPP
13185 ac_cv_prog_CXXCPP=$CXXCPP
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13188 $as_echo "$CXXCPP" >&6; }
13189 ac_preproc_ok=false
13190 for ac_cxx_preproc_warn_flag in '' yes
13192 # Use a header file that comes with gcc, so configuring glibc
13193 # with a fresh cross-compiler works.
13194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13195 # <limits.h> exists even on freestanding compilers.
13196 # On the NeXT, cc -E runs the code through the compiler's parser,
13197 # not just through cpp. "Syntax error" is here to catch this case.
13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13201 # include <limits.h>
13203 # include <assert.h>
13207 if ac_fn_cxx_try_cpp "$LINENO"; then :
13210 # Broken: fails on valid input.
13213 rm -f conftest.err conftest.i conftest.$ac_ext
13215 # OK, works on sane cases. Now check whether nonexistent headers
13216 # can be detected and how.
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h. */
13219 #include <ac_nonexistent.h>
13221 if ac_fn_cxx_try_cpp "$LINENO"; then :
13222 # Broken: success on invalid input.
13225 # Passes both tests.
13229 rm -f conftest.err conftest.i conftest.$ac_ext
13232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13233 rm -f conftest.i conftest.err conftest.$ac_ext
13234 if $ac_preproc_ok; then :
13237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13239 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13240 See \`config.log' for more details" "$LINENO" 5; }
13244 ac_cpp='$CPP $CPPFLAGS'
13245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13250 _lt_caught_CXX_error=yes
13254 ac_cpp='$CXXCPP $CPPFLAGS'
13255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13259 archive_cmds_need_lc_CXX=no
13260 allow_undefined_flag_CXX=
13261 always_export_symbols_CXX=no
13262 archive_expsym_cmds_CXX=
13263 compiler_needs_object_CXX=no
13264 export_dynamic_flag_spec_CXX=
13265 hardcode_direct_CXX=no
13266 hardcode_direct_absolute_CXX=no
13267 hardcode_libdir_flag_spec_CXX=
13268 hardcode_libdir_flag_spec_ld_CXX=
13269 hardcode_libdir_separator_CXX=
13270 hardcode_minus_L_CXX=no
13271 hardcode_shlibpath_var_CXX=unsupported
13272 hardcode_automatic_CXX=no
13273 inherit_rpath_CXX=no
13275 module_expsym_cmds_CXX=
13276 link_all_deplibs_CXX=unknown
13277 old_archive_cmds_CXX=$old_archive_cmds
13278 reload_flag_CXX=$reload_flag
13279 reload_cmds_CXX=$reload_cmds
13280 no_undefined_flag_CXX=
13281 whole_archive_flag_spec_CXX=
13282 enable_shared_with_static_runtimes_CXX=no
13284 # Source file extension for C++ test sources.
13287 # Object file extension for compiled C++ test sources.
13291 # No sense in running all these tests if we already determined that
13292 # the CXX compiler isn't working. Some variables (like enable_shared)
13293 # are currently assumed to apply to all compilers on this platform,
13294 # and will be corrupted by setting them based on a non-working compiler.
13295 if test "$_lt_caught_CXX_error" != yes; then
13296 # Code to be used in simple compile tests
13297 lt_simple_compile_test_code="int some_variable = 0;"
13299 # Code to be used in simple link tests
13300 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13302 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13309 # If no C compiler was specified, use CC.
13312 # If no C compiler flags were specified, use CFLAGS.
13313 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13315 # Allow CC to be a program name with arguments.
13319 # save warnings/boilerplate of simple test code
13320 ac_outfile=conftest.$ac_objext
13321 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13322 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13323 _lt_compiler_boilerplate=`cat conftest.err`
13326 ac_outfile=conftest.$ac_objext
13327 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13328 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13329 _lt_linker_boilerplate=`cat conftest.err`
13333 # Allow CC to be a program name with arguments.
13335 lt_save_CFLAGS=$CFLAGS
13339 lt_save_with_gnu_ld=$with_gnu_ld
13340 lt_save_path_LD=$lt_cv_path_LD
13341 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13342 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13344 $as_unset lt_cv_prog_gnu_ld
13346 if test -n "${lt_cv_path_LDCXX+set}"; then
13347 lt_cv_path_LD=$lt_cv_path_LDCXX
13349 $as_unset lt_cv_path_LD
13351 test -z "${LDCXX+set}" || LD=$LDCXX
13356 for cc_temp in $compiler""; do
13358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13364 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13367 if test -n "$compiler"; then
13368 # We don't want -fno-exception when compiling C++ code, so set the
13369 # no_builtin_flag separately
13370 if test "$GXX" = yes; then
13371 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13373 lt_prog_compiler_no_builtin_flag_CXX=
13376 if test "$GXX" = yes; then
13377 # Set up default GNU C++ configuration
13381 # Check whether --with-gnu-ld was given.
13382 if test "${with_gnu_ld+set}" = set; then :
13383 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13389 if test "$GCC" = yes; then
13390 # Check if gcc -print-prog-name=ld gives a path.
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13392 $as_echo_n "checking for ld used by $CC... " >&6; }
13395 # gcc leaves a trailing carriage return which upsets mingw
13396 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13398 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13401 # Accept absolute paths.
13403 re_direlt='/[^/][^/]*/\.\./'
13404 # Canonicalize the pathname of ld
13405 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13406 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13407 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13409 test -z "$LD" && LD="$ac_prog"
13412 # If it fails, then pretend we aren't using GCC.
13416 # If it is relative, then search for the first ld in PATH.
13417 with_gnu_ld=unknown
13420 elif test "$with_gnu_ld" = yes; then
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13422 $as_echo_n "checking for GNU ld... " >&6; }
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13425 $as_echo_n "checking for non-GNU ld... " >&6; }
13427 if ${lt_cv_path_LD+:} false; then :
13428 $as_echo_n "(cached) " >&6
13430 if test -z "$LD"; then
13431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13432 for ac_dir in $PATH; do
13434 test -z "$ac_dir" && ac_dir=.
13435 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13436 lt_cv_path_LD="$ac_dir/$ac_prog"
13437 # Check to see if the program is GNU ld. I'd rather use --version,
13438 # but apparently some variants of GNU ld only accept -v.
13439 # Break only if it was the GNU/non-GNU ld that we prefer.
13440 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13441 *GNU* | *'with BFD'*)
13442 test "$with_gnu_ld" != no && break
13445 test "$with_gnu_ld" != yes && break
13452 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13456 LD="$lt_cv_path_LD"
13457 if test -n "$LD"; then
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13459 $as_echo "$LD" >&6; }
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13462 $as_echo "no" >&6; }
13464 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13466 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13467 if ${lt_cv_prog_gnu_ld+:} false; then :
13468 $as_echo_n "(cached) " >&6
13470 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13471 case `$LD -v 2>&1 </dev/null` in
13472 *GNU* | *'with BFD'*)
13473 lt_cv_prog_gnu_ld=yes
13476 lt_cv_prog_gnu_ld=no
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13481 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13482 with_gnu_ld=$lt_cv_prog_gnu_ld
13490 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13491 # archiving commands below assume that GNU ld is being used.
13492 if test "$with_gnu_ld" = yes; then
13493 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13494 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'
13496 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13497 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13499 # If archive_cmds runs LD, not CC, wlarc should be empty
13500 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13501 # investigate it a little bit more. (MM)
13504 # ancient GNU ld didn't support --whole-archive et. al.
13505 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13506 $GREP 'no-whole-archive' > /dev/null; then
13507 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13509 whole_archive_flag_spec_CXX=
13515 # A generic and very simple default shared library creation
13516 # command for GNU C++ for the case where it uses the native
13517 # linker, instead of GNU ld. If possible, this setting should
13518 # overridden to take advantage of the native linker features on
13519 # the platform it is being used on.
13520 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13523 # Commands to make compiler produce verbose output that lists
13524 # what "hidden" libraries, object files and flags are used when
13525 # linking a shared library.
13526 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13534 # PORTME: fill in a description of your system's C++ link characteristics
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13536 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13540 # FIXME: insert proper C++ library support
13544 if test "$host_cpu" = ia64; then
13545 # On IA64, the linker does run time linking by default, so we don't
13546 # have to do anything special.
13547 aix_use_runtimelinking=no
13548 exp_sym_flag='-Bexport'
13551 aix_use_runtimelinking=no
13553 # Test if we are trying to use run time linking or normal
13554 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13555 # need to do runtime linking.
13556 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13557 for ld_flag in $LDFLAGS; do
13560 aix_use_runtimelinking=yes
13568 exp_sym_flag='-bexport'
13569 no_entry_flag='-bnoentry'
13572 # When large executables or shared objects are built, AIX ld can
13573 # have problems creating the table of contents. If linking a library
13574 # or program results in "error TOC overflow" add -mminimal-toc to
13575 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13576 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13578 archive_cmds_CXX=''
13579 hardcode_direct_CXX=yes
13580 hardcode_direct_absolute_CXX=yes
13581 hardcode_libdir_separator_CXX=':'
13582 link_all_deplibs_CXX=yes
13583 file_list_spec_CXX='${wl}-f,'
13585 if test "$GXX" = yes; then
13586 case $host_os in aix4.[012]|aix4.[012].*)
13587 # We only want to do this on AIX 4.2 and lower, the check
13588 # below for broken collect2 doesn't work under 4.3+
13589 collect2name=`${CC} -print-prog-name=collect2`
13590 if test -f "$collect2name" &&
13591 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13593 # We have reworked collect2
13596 # We have old collect2
13597 hardcode_direct_CXX=unsupported
13598 # It fails to find uninstalled libraries when the uninstalled
13599 # path is not listed in the libpath. Setting hardcode_minus_L
13600 # to unsupported forces relinking
13601 hardcode_minus_L_CXX=yes
13602 hardcode_libdir_flag_spec_CXX='-L$libdir'
13603 hardcode_libdir_separator_CXX=
13606 shared_flag='-shared'
13607 if test "$aix_use_runtimelinking" = yes; then
13608 shared_flag="$shared_flag "'${wl}-G'
13612 if test "$host_cpu" = ia64; then
13613 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13614 # chokes on -Wl,-G. The following line is correct:
13617 if test "$aix_use_runtimelinking" = yes; then
13618 shared_flag='${wl}-G'
13620 shared_flag='${wl}-bM:SRE'
13625 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13626 # It seems that -bexpall does not export symbols beginning with
13627 # underscore (_), so it is better to generate a list of symbols to
13629 always_export_symbols_CXX=yes
13630 if test "$aix_use_runtimelinking" = yes; then
13631 # Warning - without using the other runtime loading flags (-brtl),
13632 # -berok will link without error, but may produce a broken library.
13633 allow_undefined_flag_CXX='-berok'
13634 # Determine the default libpath from the value encoded in an empty
13636 if test "${lt_cv_aix_libpath+set}" = set; then
13637 aix_libpath=$lt_cv_aix_libpath
13639 if ${lt_cv_aix_libpath__CXX+:} false; then :
13640 $as_echo_n "(cached) " >&6
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13653 if ac_fn_cxx_try_link "$LINENO"; then :
13655 lt_aix_libpath_sed='
13656 /Import File Strings/,/^$/ {
13658 s/^0 *\([^ ]*\) *$/\1/
13662 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13663 # Check for a 64-bit object if we didn't find anything.
13664 if test -z "$lt_cv_aix_libpath__CXX"; then
13665 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13668 rm -f core conftest.err conftest.$ac_objext \
13669 conftest$ac_exeext conftest.$ac_ext
13670 if test -z "$lt_cv_aix_libpath__CXX"; then
13671 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13676 aix_libpath=$lt_cv_aix_libpath__CXX
13679 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13681 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"
13683 if test "$host_cpu" = ia64; then
13684 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13685 allow_undefined_flag_CXX="-z nodefs"
13686 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"
13688 # Determine the default libpath from the value encoded in an
13689 # empty executable.
13690 if test "${lt_cv_aix_libpath+set}" = set; then
13691 aix_libpath=$lt_cv_aix_libpath
13693 if ${lt_cv_aix_libpath__CXX+:} false; then :
13694 $as_echo_n "(cached) " >&6
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13707 if ac_fn_cxx_try_link "$LINENO"; then :
13709 lt_aix_libpath_sed='
13710 /Import File Strings/,/^$/ {
13712 s/^0 *\([^ ]*\) *$/\1/
13716 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13717 # Check for a 64-bit object if we didn't find anything.
13718 if test -z "$lt_cv_aix_libpath__CXX"; then
13719 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13722 rm -f core conftest.err conftest.$ac_objext \
13723 conftest$ac_exeext conftest.$ac_ext
13724 if test -z "$lt_cv_aix_libpath__CXX"; then
13725 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13730 aix_libpath=$lt_cv_aix_libpath__CXX
13733 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13734 # Warning - without using the other run time loading flags,
13735 # -berok will link without error, but may produce a broken library.
13736 no_undefined_flag_CXX=' ${wl}-bernotok'
13737 allow_undefined_flag_CXX=' ${wl}-berok'
13738 if test "$with_gnu_ld" = yes; then
13739 # We only use this code for GNU lds that support --whole-archive.
13740 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13742 # Exported symbols can be pulled into shared objects from archives
13743 whole_archive_flag_spec_CXX='$convenience'
13745 archive_cmds_need_lc_CXX=yes
13746 # This is similar to how AIX traditionally builds its shared
13748 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'
13754 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13755 allow_undefined_flag_CXX=unsupported
13756 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13757 # support --undefined. This deserves some investigation. FIXME
13758 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13765 case $cc_basename in
13767 # FIXME: insert proper C++ library support
13773 cygwin* | mingw* | pw32* | cegcc*)
13774 case $GXX,$cc_basename in
13777 # hardcode_libdir_flag_spec is actually meaningless, as there is
13778 # no search path for DLLs.
13779 hardcode_libdir_flag_spec_CXX=' '
13780 allow_undefined_flag_CXX=unsupported
13781 always_export_symbols_CXX=yes
13782 file_list_spec_CXX='@'
13783 # Tell ltmain to make .lib files, not .a files.
13785 # Tell ltmain to make .dll files, not .so files.
13787 # FIXME: Setting linknames here is a bad hack.
13788 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13789 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13790 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13792 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13794 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13796 # The linker will not automatically build a static lib if we build a DLL.
13797 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13798 enable_shared_with_static_runtimes_CXX=yes
13800 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13801 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13802 lt_tool_outputfile="@TOOL_OUTPUT@"~
13803 case $lt_outputfile in
13806 lt_outputfile="$lt_outputfile.exe"
13807 lt_tool_outputfile="$lt_tool_outputfile.exe"
13810 func_to_tool_file "$lt_outputfile"~
13811 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13812 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13813 $RM "$lt_outputfile.manifest";
13818 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13819 # as there is no search path for DLLs.
13820 hardcode_libdir_flag_spec_CXX='-L$libdir'
13821 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13822 allow_undefined_flag_CXX=unsupported
13823 always_export_symbols_CXX=no
13824 enable_shared_with_static_runtimes_CXX=yes
13826 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13827 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'
13828 # If the export-symbols file already is a .def file (1st line
13829 # is EXPORTS), use it as is; otherwise, prepend...
13830 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13831 cp $export_symbols $output_objdir/$soname.def;
13833 echo EXPORTS > $output_objdir/$soname.def;
13834 cat $export_symbols >> $output_objdir/$soname.def;
13836 $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'
13843 darwin* | rhapsody*)
13846 archive_cmds_need_lc_CXX=no
13847 hardcode_direct_CXX=no
13848 hardcode_automatic_CXX=yes
13849 hardcode_shlibpath_var_CXX=unsupported
13850 if test "$lt_cv_ld_force_load" = "yes"; then
13851 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\"`'
13853 whole_archive_flag_spec_CXX=''
13855 link_all_deplibs_CXX=yes
13856 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13857 case $cc_basename in
13858 ifort*) _lt_dar_can_shared=yes ;;
13859 *) _lt_dar_can_shared=$GCC ;;
13861 if test "$_lt_dar_can_shared" = "yes"; then
13862 output_verbose_link_cmd=func_echo_all
13863 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}"
13864 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13865 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}"
13866 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}"
13867 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13868 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}"
13869 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}"
13879 case $cc_basename in
13881 # FIXME: insert proper C++ library support
13885 # Green Hills C++ Compiler
13886 # FIXME: insert proper C++ library support
13890 # FIXME: insert proper C++ library support
13897 # C++ shared libraries reported to be fairly broken before
13903 archive_cmds_need_lc_CXX=no
13906 freebsd* | dragonfly*)
13907 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13916 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13917 link_all_deplibs_CXX=yes
13921 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13922 hardcode_libdir_separator_CXX=:
13923 export_dynamic_flag_spec_CXX='${wl}-E'
13924 hardcode_direct_CXX=yes
13925 hardcode_minus_L_CXX=yes # Not in the search PATH,
13926 # but as the default
13927 # location of the library.
13929 case $cc_basename in
13931 # FIXME: insert proper C++ library support
13935 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'
13936 # Commands to make compiler produce verbose output that lists
13937 # what "hidden" libraries, object files and flags are used when
13938 # linking a shared library.
13940 # There doesn't appear to be a way to prevent this compiler from
13941 # explicitly linking system object files so we need to strip them
13942 # from the output so that they don't get included in the library
13944 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"'
13947 if test "$GXX" = yes; then
13948 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'
13950 # FIXME: insert proper C++ library support
13958 if test $with_gnu_ld = no; then
13959 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13960 hardcode_libdir_separator_CXX=:
13966 export_dynamic_flag_spec_CXX='${wl}-E'
13972 hardcode_direct_CXX=no
13973 hardcode_shlibpath_var_CXX=no
13976 hardcode_direct_CXX=yes
13977 hardcode_direct_absolute_CXX=yes
13978 hardcode_minus_L_CXX=yes # Not in the search PATH,
13979 # but as the default
13980 # location of the library.
13984 case $cc_basename in
13986 # FIXME: insert proper C++ library support
13992 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13995 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13998 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14001 # Commands to make compiler produce verbose output that lists
14002 # what "hidden" libraries, object files and flags are used when
14003 # linking a shared library.
14005 # There doesn't appear to be a way to prevent this compiler from
14006 # explicitly linking system object files so we need to strip them
14007 # from the output so that they don't get included in the library
14009 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"'
14012 if test "$GXX" = yes; then
14013 if test $with_gnu_ld = no; then
14016 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14019 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14022 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'
14027 # FIXME: insert proper C++ library support
14035 hardcode_direct_CXX=no
14036 hardcode_shlibpath_var_CXX=no
14037 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14038 export_dynamic_flag_spec_CXX='${wl}-E'
14039 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14040 # Instead, shared libraries are loaded at an image base (0x10000000 by
14041 # default) and relocated if they conflict, which is a slow very memory
14042 # consuming and fragmenting process. To avoid this, we pick a random,
14043 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14044 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14045 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'
14046 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'
14049 case $cc_basename in
14052 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'
14054 # Archives containing C++ object files must be created using
14055 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14056 # necessary to make sure instantiated templates are included
14058 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14061 if test "$GXX" = yes; then
14062 if test "$with_gnu_ld" = no; then
14063 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'
14065 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'
14068 link_all_deplibs_CXX=yes
14071 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14072 hardcode_libdir_separator_CXX=:
14073 inherit_rpath_CXX=yes
14076 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14077 case $cc_basename in
14079 # Kuck and Associates, Inc. (KAI) C++ Compiler
14081 # KCC will only create a shared library if the output file
14082 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14083 # to its proper name (with version) after linking.
14084 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'
14085 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'
14086 # Commands to make compiler produce verbose output that lists
14087 # what "hidden" libraries, object files and flags are used when
14088 # linking a shared library.
14090 # There doesn't appear to be a way to prevent this compiler from
14091 # explicitly linking system object files so we need to strip them
14092 # from the output so that they don't get included in the library
14094 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"'
14096 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14097 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14099 # Archives containing C++ object files must be created using
14100 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14101 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14106 # version 8.0 and above of icpc choke on multiply defined symbols
14107 # if we add $predep_objects and $postdep_objects, however 7.1 and
14108 # earlier do not add the objects themselves.
14109 case `$CC -V 2>&1` in
14111 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14112 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'
14114 *) # Version 8.0 or newer
14117 ia64*) tmp_idyn=' -i_dynamic';;
14119 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14120 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'
14123 archive_cmds_need_lc_CXX=no
14124 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14125 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14126 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14129 # Portland Group C++ compiler
14131 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14132 prelink_cmds_CXX='tpldir=Template.dir~
14134 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14135 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14136 old_archive_cmds_CXX='tpldir=Template.dir~
14138 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14139 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14141 archive_cmds_CXX='tpldir=Template.dir~
14143 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14144 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14145 archive_expsym_cmds_CXX='tpldir=Template.dir~
14147 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14148 $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'
14150 *) # Version 6 and above use weak symbols
14151 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14152 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'
14156 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14157 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14158 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'
14162 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14163 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'
14165 runpath_var=LD_RUN_PATH
14166 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14167 hardcode_libdir_separator_CXX=:
14169 # Commands to make compiler produce verbose output that lists
14170 # what "hidden" libraries, object files and flags are used when
14171 # linking a shared library.
14173 # There doesn't appear to be a way to prevent this compiler from
14174 # explicitly linking system object files so we need to strip them
14175 # from the output so that they don't get included in the library
14177 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'
14179 xl* | mpixl* | bgxl*)
14180 # IBM XL 8.0 on PPC, with GNU ld
14181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14182 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14183 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14184 if test "x$supports_anon_versioning" = xyes; then
14185 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14186 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14187 echo "local: *; };" >> $output_objdir/$libname.ver~
14188 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14192 case `$CC -V 2>&1 | sed 5q` in
14195 no_undefined_flag_CXX=' -zdefs'
14196 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14197 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'
14198 hardcode_libdir_flag_spec_CXX='-R$libdir'
14199 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'
14200 compiler_needs_object_CXX=yes
14202 # Not sure whether something based on
14203 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14205 output_verbose_link_cmd='func_echo_all'
14207 # Archives containing C++ object files must be created using
14208 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14209 # necessary to make sure instantiated templates are included
14211 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14219 # FIXME: insert proper C++ library support
14224 # FIXME: insert proper C++ library support
14229 case $cc_basename in
14231 # FIXME: insert proper C++ library support
14235 # FIXME: insert proper C++ library support
14242 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14243 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14245 hardcode_libdir_flag_spec_CXX='-R$libdir'
14246 hardcode_direct_CXX=yes
14247 hardcode_shlibpath_var_CXX=no
14249 # Workaround some broken pre-1.5 toolchains
14250 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14258 # C++ shared libraries are fairly broken
14263 if test -f /usr/libexec/ld.so; then
14264 hardcode_direct_CXX=yes
14265 hardcode_shlibpath_var_CXX=no
14266 hardcode_direct_absolute_CXX=yes
14267 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14268 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14269 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14270 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14271 export_dynamic_flag_spec_CXX='${wl}-E'
14272 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14274 output_verbose_link_cmd=func_echo_all
14280 osf3* | osf4* | osf5*)
14281 case $cc_basename in
14283 # Kuck and Associates, Inc. (KAI) C++ Compiler
14285 # KCC will only create a shared library if the output file
14286 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14287 # to its proper name (with version) after linking.
14288 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'
14290 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14291 hardcode_libdir_separator_CXX=:
14293 # Archives containing C++ object files must be created using
14294 # the KAI C++ compiler.
14296 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14297 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14301 # Rational C++ 2.4.1
14302 # FIXME: insert proper C++ library support
14308 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14309 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'
14310 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14313 allow_undefined_flag_CXX=' -expect_unresolved \*'
14314 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'
14315 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14316 echo "-hidden">> $lib.exp~
14317 $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~
14319 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14323 hardcode_libdir_separator_CXX=:
14325 # Commands to make compiler produce verbose output that lists
14326 # what "hidden" libraries, object files and flags are used when
14327 # linking a shared library.
14329 # There doesn't appear to be a way to prevent this compiler from
14330 # explicitly linking system object files so we need to strip them
14331 # from the output so that they don't get included in the library
14333 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"'
14336 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14337 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14340 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'
14343 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'
14347 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14348 hardcode_libdir_separator_CXX=:
14350 # Commands to make compiler produce verbose output that lists
14351 # what "hidden" libraries, object files and flags are used when
14352 # linking a shared library.
14353 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14356 # FIXME: insert proper C++ library support
14364 # FIXME: insert proper C++ library support
14369 case $cc_basename in
14372 # FIXME: insert proper C++ library support
14377 # FIXME: insert proper C++ library support
14381 # FIXME: insert proper C++ library support
14388 case $cc_basename in
14390 # Sun C++ 4.2, 5.x and Centerline C++
14391 archive_cmds_need_lc_CXX=yes
14392 no_undefined_flag_CXX=' -zdefs'
14393 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14394 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14395 $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'
14397 hardcode_libdir_flag_spec_CXX='-R$libdir'
14398 hardcode_shlibpath_var_CXX=no
14400 solaris2.[0-5] | solaris2.[0-5].*) ;;
14402 # The compiler driver will combine and reorder linker options,
14403 # but understands `-z linker_flag'.
14404 # Supported since Solaris 2.6 (maybe 2.5.1?)
14405 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14408 link_all_deplibs_CXX=yes
14410 output_verbose_link_cmd='func_echo_all'
14412 # Archives containing C++ object files must be created using
14413 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14414 # necessary to make sure instantiated templates are included
14416 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14419 # Green Hills C++ Compiler
14420 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14422 # The C++ compiler must be used to create the archive.
14423 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14426 # GNU C++ compiler with Solaris linker
14427 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14428 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14429 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14430 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14431 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14432 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14434 # Commands to make compiler produce verbose output that lists
14435 # what "hidden" libraries, object files and flags are used when
14436 # linking a shared library.
14437 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14439 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14441 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14442 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14443 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14445 # Commands to make compiler produce verbose output that lists
14446 # what "hidden" libraries, object files and flags are used when
14447 # linking a shared library.
14448 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14451 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14453 solaris2.[0-5] | solaris2.[0-5].*) ;;
14455 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14463 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14464 no_undefined_flag_CXX='${wl}-z,text'
14465 archive_cmds_need_lc_CXX=no
14466 hardcode_shlibpath_var_CXX=no
14467 runpath_var='LD_RUN_PATH'
14469 case $cc_basename in
14471 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14472 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14475 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14476 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14481 sysv5* | sco3.2v5* | sco5v6*)
14482 # Note: We can NOT use -z defs as we might desire, because we do not
14483 # link with -lc, and that would cause any symbols used from libc to
14484 # always be unresolved, which means just about no library would
14485 # ever link correctly. If we're not using GNU ld we use -z text
14486 # though, which does catch some bad symbols but isn't as heavy-handed
14488 no_undefined_flag_CXX='${wl}-z,text'
14489 allow_undefined_flag_CXX='${wl}-z,nodefs'
14490 archive_cmds_need_lc_CXX=no
14491 hardcode_shlibpath_var_CXX=no
14492 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14493 hardcode_libdir_separator_CXX=':'
14494 link_all_deplibs_CXX=yes
14495 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14496 runpath_var='LD_RUN_PATH'
14498 case $cc_basename in
14500 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14501 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14502 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14503 '"$old_archive_cmds_CXX"
14504 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14505 '"$reload_cmds_CXX"
14508 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14509 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14515 case $cc_basename in
14517 # NonStop-UX NCC 3.20
14518 # FIXME: insert proper C++ library support
14522 # FIXME: insert proper C++ library support
14529 # FIXME: insert proper C++ library support
14534 # FIXME: insert proper C++ library support
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14540 $as_echo "$ld_shlibs_CXX" >&6; }
14541 test "$ld_shlibs_CXX" = no && can_build_shared=no
14547 ## There is no encapsulation within the following macros, do not change
14548 ## the running order or otherwise move them around unless you know exactly
14549 ## what you are doing...
14550 # Dependencies to place before and after the object being linked:
14551 predep_objects_CXX=
14552 postdep_objects_CXX=
14555 compiler_lib_search_path_CXX=
14557 cat > conftest.$ac_ext <<_LT_EOF
14561 Foo (void) { a = 0; }
14568 _lt_libdeps_save_CFLAGS=$CFLAGS
14569 case "$CC $CFLAGS " in #(
14570 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14571 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14575 (eval $ac_compile) 2>&5
14577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14578 test $ac_status = 0; }; then
14579 # Parse the compiler output and extract the necessary
14580 # objects, libraries and library flags.
14582 # Sentinel used to keep track of whether or not we are before
14583 # the conftest object file.
14584 pre_test_object_deps_done=no
14586 for p in `eval "$output_verbose_link_cmd"`; do
14587 case ${prev}${p} in
14590 # Some compilers place space between "-{L,R}" and the path.
14591 # Remove the space.
14592 if test $p = "-L" ||
14593 test $p = "-R"; then
14598 # Expand the sysroot to ease extracting the directories later.
14599 if test -z "$prev"; then
14601 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14602 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14603 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14607 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14609 if test "$pre_test_object_deps_done" = no; then
14612 # Internal compiler library paths should come after those
14613 # provided the user. The postdeps already come after the
14614 # user supplied libs so there is no need to process them.
14615 if test -z "$compiler_lib_search_path_CXX"; then
14616 compiler_lib_search_path_CXX="${prev}${p}"
14618 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14621 # The "-l" case would never come before the object being
14622 # linked, so don't bother handling this case.
14625 if test -z "$postdeps_CXX"; then
14626 postdeps_CXX="${prev}${p}"
14628 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14634 *.lto.$objext) ;; # Ignore GCC LTO objects
14636 # This assumes that the test object file only shows up
14637 # once in the compiler output.
14638 if test "$p" = "conftest.$objext"; then
14639 pre_test_object_deps_done=yes
14643 if test "$pre_test_object_deps_done" = no; then
14644 if test -z "$predep_objects_CXX"; then
14645 predep_objects_CXX="$p"
14647 predep_objects_CXX="$predep_objects_CXX $p"
14650 if test -z "$postdep_objects_CXX"; then
14651 postdep_objects_CXX="$p"
14653 postdep_objects_CXX="$postdep_objects_CXX $p"
14658 *) ;; # Ignore the rest.
14666 echo "libtool.m4: error: problem compiling CXX test program"
14669 $RM -f confest.$objext
14670 CFLAGS=$_lt_libdeps_save_CFLAGS
14672 # PORTME: override above test on systems where it is broken
14675 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14676 # hack all around it, let's just trust "g++" to DTRT.
14677 predep_objects_CXX=
14678 postdep_objects_CXX=
14683 case `$CC -V 2>&1 | sed 5q` in
14687 # The more standards-conforming stlport4 library is
14688 # incompatible with the Cstd library. Avoid specifying
14689 # it if it's in CXXFLAGS. Ignore libCrun as
14690 # -library=stlport4 depends on it.
14691 case " $CXX $CXXFLAGS " in
14692 *" -library=stlport4 "*)
14693 solaris_use_stlport4=yes
14697 if test "$solaris_use_stlport4" != yes; then
14698 postdeps_CXX='-library=Cstd -library=Crun'
14705 case $cc_basename in
14707 # The more standards-conforming stlport4 library is
14708 # incompatible with the Cstd library. Avoid specifying
14709 # it if it's in CXXFLAGS. Ignore libCrun as
14710 # -library=stlport4 depends on it.
14711 case " $CXX $CXXFLAGS " in
14712 *" -library=stlport4 "*)
14713 solaris_use_stlport4=yes
14717 # Adding this requires a known-good setup of shared libraries for
14718 # Sun compiler versions before 5.6, else PIC objects from an old
14719 # archive will be linked into the output, leading to subtle bugs.
14720 if test "$solaris_use_stlport4" != yes; then
14721 postdeps_CXX='-library=Cstd -library=Crun'
14729 case " $postdeps_CXX " in
14730 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14732 compiler_lib_search_dirs_CXX=
14733 if test -n "${compiler_lib_search_path_CXX}"; then
14734 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14767 lt_prog_compiler_wl_CXX=
14768 lt_prog_compiler_pic_CXX=
14769 lt_prog_compiler_static_CXX=
14772 # C++ specific cases for pic, static, wl, etc.
14773 if test "$GXX" = yes; then
14774 lt_prog_compiler_wl_CXX='-Wl,'
14775 lt_prog_compiler_static_CXX='-static'
14779 # All AIX code is PIC.
14780 if test "$host_cpu" = ia64; then
14781 # AIX 5 now supports IA64 processor
14782 lt_prog_compiler_static_CXX='-Bstatic'
14789 # see comment about AmigaOS4 .so support
14790 lt_prog_compiler_pic_CXX='-fPIC'
14793 # FIXME: we need at least 68020 code to build shared libraries, but
14794 # adding the `-m68020' flag to GCC prevents building anything better,
14796 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14801 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14802 # PIC is the default for these OSes.
14804 mingw* | cygwin* | os2* | pw32* | cegcc*)
14805 # This hack is so that the source file can tell whether it is being
14806 # built for inclusion in a dll (and should export symbols for example).
14807 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14808 # (--disable-auto-import) libraries
14809 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14811 darwin* | rhapsody*)
14812 # PIC is the default on this platform
14813 # Common symbols not allowed in MH_DYLIB files
14814 lt_prog_compiler_pic_CXX='-fno-common'
14817 # DJGPP does not support shared libraries at all
14818 lt_prog_compiler_pic_CXX=
14821 # PIC is the default for Haiku.
14822 # The "-static" flag exists, but is broken.
14823 lt_prog_compiler_static_CXX=
14826 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14827 # Instead, we relocate shared libraries at runtime.
14830 if test -d /usr/nec; then
14831 lt_prog_compiler_pic_CXX=-Kconform_pic
14835 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14836 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14837 # sets the default TLS model and affects inlining.
14842 lt_prog_compiler_pic_CXX='-fPIC'
14847 # QNX uses GNU C++, but need to define -shared option too, otherwise
14848 # it will coredump.
14849 lt_prog_compiler_pic_CXX='-fPIC -shared'
14852 lt_prog_compiler_pic_CXX='-fPIC'
14858 # All AIX code is PIC.
14859 if test "$host_cpu" = ia64; then
14860 # AIX 5 now supports IA64 processor
14861 lt_prog_compiler_static_CXX='-Bstatic'
14863 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14867 case $cc_basename in
14869 # Green Hills C++ Compiler
14870 # _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"
14874 mingw* | cygwin* | os2* | pw32* | cegcc*)
14875 # This hack is so that the source file can tell whether it is being
14876 # built for inclusion in a dll (and should export symbols for example).
14877 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14880 case $cc_basename in
14882 lt_prog_compiler_pic_CXX='-KPIC'
14885 # Green Hills C++ Compiler
14886 lt_prog_compiler_pic_CXX='-pic'
14892 freebsd* | dragonfly*)
14893 # FreeBSD uses GNU C++
14895 hpux9* | hpux10* | hpux11*)
14896 case $cc_basename in
14898 lt_prog_compiler_wl_CXX='-Wl,'
14899 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14900 if test "$host_cpu" != ia64; then
14901 lt_prog_compiler_pic_CXX='+Z'
14905 lt_prog_compiler_wl_CXX='-Wl,'
14906 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14912 lt_prog_compiler_pic_CXX='+Z'
14921 # This is c89, which is MS Visual C++ (no shared libs)
14922 # Anyone wants to do a port?
14924 irix5* | irix6* | nonstopux*)
14925 case $cc_basename in
14927 lt_prog_compiler_wl_CXX='-Wl,'
14928 lt_prog_compiler_static_CXX='-non_shared'
14929 # CC pic flag -KPIC is the default.
14935 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14936 case $cc_basename in
14939 lt_prog_compiler_wl_CXX='--backend -Wl,'
14940 lt_prog_compiler_pic_CXX='-fPIC'
14943 # old Intel C++ for x86_64 which still supported -KPIC.
14944 lt_prog_compiler_wl_CXX='-Wl,'
14945 lt_prog_compiler_pic_CXX='-KPIC'
14946 lt_prog_compiler_static_CXX='-static'
14949 # Intel C++, used to be incompatible with GCC.
14950 # ICC 10 doesn't accept -KPIC any more.
14951 lt_prog_compiler_wl_CXX='-Wl,'
14952 lt_prog_compiler_pic_CXX='-fPIC'
14953 lt_prog_compiler_static_CXX='-static'
14956 # Portland Group C++ compiler
14957 lt_prog_compiler_wl_CXX='-Wl,'
14958 lt_prog_compiler_pic_CXX='-fpic'
14959 lt_prog_compiler_static_CXX='-Bstatic'
14963 # Make sure the PIC flag is empty. It appears that all Alpha
14964 # Linux and Compaq Tru64 Unix objects are PIC.
14965 lt_prog_compiler_pic_CXX=
14966 lt_prog_compiler_static_CXX='-non_shared'
14968 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14969 # IBM XL 8.0, 9.0 on PPC and BlueGene
14970 lt_prog_compiler_wl_CXX='-Wl,'
14971 lt_prog_compiler_pic_CXX='-qpic'
14972 lt_prog_compiler_static_CXX='-qstaticlink'
14975 case `$CC -V 2>&1 | sed 5q` in
14978 lt_prog_compiler_pic_CXX='-KPIC'
14979 lt_prog_compiler_static_CXX='-Bstatic'
14980 lt_prog_compiler_wl_CXX='-Qoption ld '
14991 case $cc_basename in
14993 lt_prog_compiler_pic_CXX='-W c,exportall'
15002 # QNX uses GNU C++, but need to define -shared option too, otherwise
15003 # it will coredump.
15004 lt_prog_compiler_pic_CXX='-fPIC -shared'
15006 osf3* | osf4* | osf5*)
15007 case $cc_basename in
15009 lt_prog_compiler_wl_CXX='--backend -Wl,'
15012 # Rational C++ 2.4.1
15013 lt_prog_compiler_pic_CXX='-pic'
15016 # Digital/Compaq C++
15017 lt_prog_compiler_wl_CXX='-Wl,'
15018 # Make sure the PIC flag is empty. It appears that all Alpha
15019 # Linux and Compaq Tru64 Unix objects are PIC.
15020 lt_prog_compiler_pic_CXX=
15021 lt_prog_compiler_static_CXX='-non_shared'
15030 case $cc_basename in
15032 # Sun C++ 4.2, 5.x and Centerline C++
15033 lt_prog_compiler_pic_CXX='-KPIC'
15034 lt_prog_compiler_static_CXX='-Bstatic'
15035 lt_prog_compiler_wl_CXX='-Qoption ld '
15038 # Green Hills C++ Compiler
15039 lt_prog_compiler_pic_CXX='-PIC'
15046 case $cc_basename in
15049 lt_prog_compiler_pic_CXX='-pic'
15050 lt_prog_compiler_static_CXX='-Bstatic'
15054 lt_prog_compiler_pic_CXX='-pic'
15060 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15061 case $cc_basename in
15063 lt_prog_compiler_wl_CXX='-Wl,'
15064 lt_prog_compiler_pic_CXX='-KPIC'
15065 lt_prog_compiler_static_CXX='-Bstatic'
15070 case $cc_basename in
15072 # NonStop-UX NCC 3.20
15073 lt_prog_compiler_pic_CXX='-KPIC'
15082 lt_prog_compiler_can_build_shared_CXX=no
15088 # For platforms which do not support PIC, -DPIC is meaningless:
15090 lt_prog_compiler_pic_CXX=
15093 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15098 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15099 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15100 $as_echo_n "(cached) " >&6
15102 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15105 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15106 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15109 # Check to make sure the PIC flag actually works.
15111 if test -n "$lt_prog_compiler_pic_CXX"; then
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15113 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15114 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15115 $as_echo_n "(cached) " >&6
15117 lt_cv_prog_compiler_pic_works_CXX=no
15118 ac_outfile=conftest.$ac_objext
15119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15120 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15121 # Insert the option either (1) after the last *FLAGS variable, or
15122 # (2) before a word containing "conftest.", or (3) at the end.
15123 # Note that $ac_compile itself does not contain backslashes and begins
15124 # with a dollar sign (not a hyphen), so the echo should work correctly.
15125 # The option is referenced via a variable to avoid confusing sed.
15126 lt_compile=`echo "$ac_compile" | $SED \
15127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15129 -e 's:$: $lt_compiler_flag:'`
15130 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15131 (eval "$lt_compile" 2>conftest.err)
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 if (exit $ac_status) && test -s "$ac_outfile"; then
15136 # The compiler can only warn and ignore the option if not recognized
15137 # So say no if there are warnings other than the usual output.
15138 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15140 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15141 lt_cv_prog_compiler_pic_works_CXX=yes
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15148 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15150 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15151 case $lt_prog_compiler_pic_CXX in
15153 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15156 lt_prog_compiler_pic_CXX=
15157 lt_prog_compiler_can_build_shared_CXX=no
15167 # Check to make sure the static flag actually works.
15169 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15171 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15172 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15173 $as_echo_n "(cached) " >&6
15175 lt_cv_prog_compiler_static_works_CXX=no
15176 save_LDFLAGS="$LDFLAGS"
15177 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15178 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15179 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15180 # The linker can only warn and ignore the option if not recognized
15181 # So say no if there are warnings
15182 if test -s conftest.err; then
15183 # Append any errors to the config.log.
15184 cat conftest.err 1>&5
15185 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15187 if diff conftest.exp conftest.er2 >/dev/null; then
15188 lt_cv_prog_compiler_static_works_CXX=yes
15191 lt_cv_prog_compiler_static_works_CXX=yes
15195 LDFLAGS="$save_LDFLAGS"
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15199 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15201 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15204 lt_prog_compiler_static_CXX=
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15211 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15212 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15213 $as_echo_n "(cached) " >&6
15215 lt_cv_prog_compiler_c_o_CXX=no
15216 $RM -r conftest 2>/dev/null
15220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15222 lt_compiler_flag="-o out/conftest2.$ac_objext"
15223 # Insert the option either (1) after the last *FLAGS variable, or
15224 # (2) before a word containing "conftest.", or (3) at the end.
15225 # Note that $ac_compile itself does not contain backslashes and begins
15226 # with a dollar sign (not a hyphen), so the echo should work correctly.
15227 lt_compile=`echo "$ac_compile" | $SED \
15228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15230 -e 's:$: $lt_compiler_flag:'`
15231 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15232 (eval "$lt_compile" 2>out/conftest.err)
15234 cat out/conftest.err >&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15238 # The compiler can only warn and ignore the option if not recognized
15239 # So say no if there are warnings
15240 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15241 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15242 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15243 lt_cv_prog_compiler_c_o_CXX=yes
15248 # SGI C++ compiler will create directory out/ii_files/ for
15249 # template instantiation
15250 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15251 $RM out/* && rmdir out
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15258 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15263 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15264 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15265 $as_echo_n "(cached) " >&6
15267 lt_cv_prog_compiler_c_o_CXX=no
15268 $RM -r conftest 2>/dev/null
15272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15274 lt_compiler_flag="-o out/conftest2.$ac_objext"
15275 # Insert the option either (1) after the last *FLAGS variable, or
15276 # (2) before a word containing "conftest.", or (3) at the end.
15277 # Note that $ac_compile itself does not contain backslashes and begins
15278 # with a dollar sign (not a hyphen), so the echo should work correctly.
15279 lt_compile=`echo "$ac_compile" | $SED \
15280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15282 -e 's:$: $lt_compiler_flag:'`
15283 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15284 (eval "$lt_compile" 2>out/conftest.err)
15286 cat out/conftest.err >&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15290 # The compiler can only warn and ignore the option if not recognized
15291 # So say no if there are warnings
15292 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15293 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15294 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15295 lt_cv_prog_compiler_c_o_CXX=yes
15300 # SGI C++ compiler will create directory out/ii_files/ for
15301 # template instantiation
15302 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15303 $RM out/* && rmdir out
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15310 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15315 hard_links="nottested"
15316 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15317 # do not overwrite the value of need_locks provided by the user
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15319 $as_echo_n "checking if we can lock with hard links... " >&6; }
15322 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15324 ln conftest.a conftest.b 2>&5 || hard_links=no
15325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15327 $as_echo "$hard_links" >&6; }
15328 if test "$hard_links" = no; then
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15330 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15340 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15342 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15343 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15346 # If we're using GNU nm, then we don't want the "-C" option.
15347 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15348 # Also, AIX nm treats weak defined symbols like other global defined
15349 # symbols, whereas GNU nm marks them as "W".
15350 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15351 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'
15353 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'
15357 export_symbols_cmds_CXX="$ltdll_cmds"
15359 cygwin* | mingw* | cegcc*)
15360 case $cc_basename in
15363 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'
15364 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15369 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15374 $as_echo "$ld_shlibs_CXX" >&6; }
15375 test "$ld_shlibs_CXX" = no && can_build_shared=no
15377 with_gnu_ld_CXX=$with_gnu_ld
15385 # Do we need to explicitly link libc?
15387 case "x$archive_cmds_need_lc_CXX" in
15389 # Assume -lc should be added
15390 archive_cmds_need_lc_CXX=yes
15392 if test "$enable_shared" = yes && test "$GCC" = yes; then
15393 case $archive_cmds_CXX in
15395 # FIXME: we may have to deal with multi-command sequences.
15398 # Test whether the compiler implicitly links with -lc since on some
15399 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15400 # to ld, don't add -lc before -lgcc.
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15402 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15403 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15404 $as_echo_n "(cached) " >&6
15407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15410 (eval $ac_compile) 2>&5
15412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15413 test $ac_status = 0; } 2>conftest.err; then
15416 libobjs=conftest.$ac_objext
15418 wl=$lt_prog_compiler_wl_CXX
15419 pic_flag=$lt_prog_compiler_pic_CXX
15425 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15426 allow_undefined_flag_CXX=
15427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15428 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15431 test $ac_status = 0; }
15433 lt_cv_archive_cmds_need_lc_CXX=no
15435 lt_cv_archive_cmds_need_lc_CXX=yes
15437 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15439 cat conftest.err 1>&5
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15445 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15446 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15517 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15519 library_names_spec=
15520 libname_spec='lib$name'
15524 postuninstall_cmds=
15528 shlibpath_overrides_runpath=unknown
15530 dynamic_linker="$host_os ld.so"
15531 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15532 need_lib_prefix=unknown
15533 hardcode_into_libs=no
15535 # when you set need_version to no, make sure it does not cause -set_version
15536 # flags to be left without arguments
15537 need_version=unknown
15542 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15543 shlibpath_var=LIBPATH
15545 # AIX 3 has no versioning support, so we append a major version to the name.
15546 soname_spec='${libname}${release}${shared_ext}$major'
15553 hardcode_into_libs=yes
15554 if test "$host_cpu" = ia64; then
15555 # AIX 5 supports IA64
15556 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15557 shlibpath_var=LD_LIBRARY_PATH
15559 # With GCC up to 2.95.x, collect2 would create an import file
15560 # for dependence libraries. The import file would start with
15561 # the line `#! .'. This would cause the generated library to
15562 # depend on `.', always an invalid library. This was fixed in
15563 # development snapshots of GCC prior to 3.0.
15565 aix4 | aix4.[01] | aix4.[01].*)
15566 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15568 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15571 can_build_shared=no
15575 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15576 # soname into executable. Probably we can add versioning support to
15577 # collect2, so additional links can be useful in future.
15578 if test "$aix_use_runtimelinking" = yes; then
15579 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15580 # instead of lib<name>.a to let people know that these are not
15581 # typical AIX shared libraries.
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15584 # We preserve .a as extension for shared libraries through AIX4.2
15585 # and later when we are not doing run time linking.
15586 library_names_spec='${libname}${release}.a $libname.a'
15587 soname_spec='${libname}${release}${shared_ext}$major'
15589 shlibpath_var=LIBPATH
15596 # Since July 2007 AmigaOS4 officially supports .so libraries.
15597 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15601 library_names_spec='$libname.ixlibrary $libname.a'
15602 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15603 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'
15609 library_names_spec='${libname}${shared_ext}'
15610 dynamic_linker="$host_os ld.so"
15611 shlibpath_var=LIBRARY_PATH
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618 soname_spec='${libname}${release}${shared_ext}$major'
15619 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15620 shlibpath_var=LD_LIBRARY_PATH
15621 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15622 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15623 # the default ld.so.conf also contains /usr/contrib/lib and
15624 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15625 # libtool to hard-code these into programs
15628 cygwin* | mingw* | pw32* | cegcc*)
15629 version_type=windows
15634 case $GCC,$cc_basename in
15637 library_names_spec='$libname.dll.a'
15638 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15639 postinstall_cmds='base_file=`basename \${file}`~
15640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15641 dldir=$destdir/`dirname \$dlpath`~
15642 test -d \$dldir || mkdir -p \$dldir~
15643 $install_prog $dir/$dlname \$dldir/$dlname~
15644 chmod a+x \$dldir/$dlname~
15645 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15646 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15649 dlpath=$dir/\$dldll~
15651 shlibpath_overrides_runpath=yes
15655 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15656 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15660 # MinGW DLLs use traditional 'lib' prefix
15661 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15664 # pw32 DLLs use 'pw' prefix rather than 'lib'
15665 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15668 dynamic_linker='Win32 ld.exe'
15673 libname_spec='$name'
15674 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15675 library_names_spec='${libname}.dll.lib'
15679 sys_lib_search_path_spec=
15682 for lt_path in $LIB
15685 # Let DOS variable expansion print the short 8.3 style file name.
15686 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15687 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15690 # Convert to MSYS style.
15691 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15694 # Convert to unix form, then to dos form, then back to unix form
15695 # but this time dos style (no spaces!) so that the unix form looks
15696 # like /cygdrive/c/PROGRA~1:/cygdr...
15697 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15698 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15699 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15702 sys_lib_search_path_spec="$LIB"
15703 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15704 # It is most probably a Windows format PATH.
15705 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15707 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15709 # FIXME: find the short name or the path components, as spaces are
15710 # common. (e.g. "Program Files" -> "PROGRA~1")
15714 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15715 postinstall_cmds='base_file=`basename \${file}`~
15716 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15717 dldir=$destdir/`dirname \$dlpath`~
15718 test -d \$dldir || mkdir -p \$dldir~
15719 $install_prog $dir/$dlname \$dldir/$dlname'
15720 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15721 dlpath=$dir/\$dldll~
15723 shlibpath_overrides_runpath=yes
15724 dynamic_linker='Win32 link.exe'
15728 # Assume MSVC wrapper
15729 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15730 dynamic_linker='Win32 ld.exe'
15733 # FIXME: first we should search . and the directory the executable is in
15737 darwin* | rhapsody*)
15738 dynamic_linker="$host_os dyld"
15739 version_type=darwin
15742 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15743 soname_spec='${libname}${release}${major}$shared_ext'
15744 shlibpath_overrides_runpath=yes
15745 shlibpath_var=DYLD_LIBRARY_PATH
15746 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15748 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15756 soname_spec='${libname}${release}${shared_ext}$major'
15757 shlibpath_var=LD_LIBRARY_PATH
15764 freebsd* | dragonfly*)
15765 # DragonFly does not have aout. When/if they implement a new
15766 # versioning mechanism, adjust this.
15767 if test -x /usr/bin/objformat; then
15768 objformat=`/usr/bin/objformat`
15771 freebsd[123]*) objformat=aout ;;
15772 *) objformat=elf ;;
15775 version_type=freebsd-$objformat
15776 case $version_type in
15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15787 shlibpath_var=LD_LIBRARY_PATH
15790 shlibpath_overrides_runpath=yes
15792 freebsd3.[01]* | freebsdelf3.[01]*)
15793 shlibpath_overrides_runpath=yes
15794 hardcode_into_libs=yes
15796 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15797 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15798 shlibpath_overrides_runpath=no
15799 hardcode_into_libs=yes
15801 *) # from 4.6 on, and DragonFly
15802 shlibpath_overrides_runpath=yes
15803 hardcode_into_libs=yes
15812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15813 soname_spec='${libname}${release}${shared_ext}$major'
15814 shlibpath_var=LD_LIBRARY_PATH
15815 hardcode_into_libs=yes
15822 dynamic_linker="$host_os runtime_loader"
15823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15824 soname_spec='${libname}${release}${shared_ext}$major'
15825 shlibpath_var=LIBRARY_PATH
15826 shlibpath_overrides_runpath=yes
15827 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15828 hardcode_into_libs=yes
15831 hpux9* | hpux10* | hpux11*)
15832 # Give a soname corresponding to the major version so that dld.sl refuses to
15833 # link against other versions.
15840 hardcode_into_libs=yes
15841 dynamic_linker="$host_os dld.so"
15842 shlibpath_var=LD_LIBRARY_PATH
15843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15845 soname_spec='${libname}${release}${shared_ext}$major'
15846 if test "X$HPUX_IA64_MODE" = X32; then
15847 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15849 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15855 hardcode_into_libs=yes
15856 dynamic_linker="$host_os dld.sl"
15857 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15860 soname_spec='${libname}${release}${shared_ext}$major'
15861 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15866 dynamic_linker="$host_os dld.sl"
15867 shlibpath_var=SHLIB_PATH
15868 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15870 soname_spec='${libname}${release}${shared_ext}$major'
15873 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15874 postinstall_cmds='chmod 555 $lib'
15875 # or fails outright, so override atomically:
15876 install_override_mode=555
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15884 soname_spec='${libname}${release}${shared_ext}$major'
15885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15886 shlibpath_var=LD_LIBRARY_PATH
15887 shlibpath_overrides_runpath=no
15888 hardcode_into_libs=yes
15891 irix5* | irix6* | nonstopux*)
15893 nonstopux*) version_type=nonstopux ;;
15895 if test "$lt_cv_prog_gnu_ld" = yes; then
15903 soname_spec='${libname}${release}${shared_ext}$major'
15904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15906 irix5* | nonstopux*)
15907 libsuff= shlibsuff=
15910 case $LD in # libtool.m4 will add one of these switches to LD
15911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15912 libsuff= shlibsuff= libmagic=32-bit;;
15913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15914 libsuff=32 shlibsuff=N32 libmagic=N32;;
15915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15917 *) libsuff= shlibsuff= libmagic=never-match;;
15921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15922 shlibpath_overrides_runpath=no
15923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15925 hardcode_into_libs=yes
15928 # No shared lib support for Linux oldld, aout, or coff.
15929 linux*oldld* | linux*aout* | linux*coff*)
15933 # This must be Linux ELF.
15934 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15939 soname_spec='${libname}${release}${shared_ext}$major'
15940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15941 shlibpath_var=LD_LIBRARY_PATH
15942 shlibpath_overrides_runpath=no
15944 # Some binutils ld are patched to set DT_RUNPATH
15945 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15946 $as_echo_n "(cached) " >&6
15948 lt_cv_shlibpath_overrides_runpath=no
15949 save_LDFLAGS=$LDFLAGS
15950 save_libdir=$libdir
15951 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15952 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15964 if ac_fn_cxx_try_link "$LINENO"; then :
15965 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15966 lt_cv_shlibpath_overrides_runpath=yes
15969 rm -f core conftest.err conftest.$ac_objext \
15970 conftest$ac_exeext conftest.$ac_ext
15971 LDFLAGS=$save_LDFLAGS
15972 libdir=$save_libdir
15976 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15978 # This implies no fast_install, which is unacceptable.
15979 # Some rework will be needed to allow for fast_install
15980 # before this can be enabled.
15981 hardcode_into_libs=yes
15983 # Append ld.so.conf contents to the search path
15984 if test -f /etc/ld.so.conf; then
15985 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' ' '`
15986 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15989 # We used to test for /lib/ld.so.1 and disable shared libraries on
15990 # powerpc, because MkLinux only supported shared libraries with the
15991 # GNU dynamic linker. Since this was broken with cross compilers,
15992 # most powerpc-linux boxes support dynamic linking these days and
15993 # people can always --disable-shared, the test was removed, and we
15994 # assume the GNU/Linux dynamic linker is in use.
15995 dynamic_linker='GNU/Linux ld.so'
16002 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16005 dynamic_linker='NetBSD (a.out) ld.so'
16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16008 soname_spec='${libname}${release}${shared_ext}$major'
16009 dynamic_linker='NetBSD ld.elf_so'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 shlibpath_overrides_runpath=yes
16013 hardcode_into_libs=yes
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019 shlibpath_var=LD_LIBRARY_PATH
16020 shlibpath_overrides_runpath=yes
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028 soname_spec='${libname}${release}${shared_ext}$major'
16029 shlibpath_var=LD_LIBRARY_PATH
16030 shlibpath_overrides_runpath=no
16031 hardcode_into_libs=yes
16032 dynamic_linker='ldqnx.so'
16037 sys_lib_dlsearch_path_spec="/usr/lib"
16039 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16041 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16042 *) need_version=no ;;
16044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16046 shlibpath_var=LD_LIBRARY_PATH
16047 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16049 openbsd2.[89] | openbsd2.[89].*)
16050 shlibpath_overrides_runpath=no
16053 shlibpath_overrides_runpath=yes
16057 shlibpath_overrides_runpath=yes
16062 libname_spec='$name'
16065 library_names_spec='$libname${shared_ext} $libname.a'
16066 dynamic_linker='OS/2 ld.exe'
16067 shlibpath_var=LIBPATH
16070 osf3* | osf4* | osf5*)
16074 soname_spec='${libname}${release}${shared_ext}$major'
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076 shlibpath_var=LD_LIBRARY_PATH
16077 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16078 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090 soname_spec='${libname}${release}${shared_ext}$major'
16091 shlibpath_var=LD_LIBRARY_PATH
16092 shlibpath_overrides_runpath=yes
16093 hardcode_into_libs=yes
16094 # ldd complains unless libraries are executable
16095 postinstall_cmds='chmod +x $lib'
16100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16101 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16102 shlibpath_var=LD_LIBRARY_PATH
16103 shlibpath_overrides_runpath=yes
16104 if test "$with_gnu_ld" = yes; then
16112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16113 soname_spec='${libname}${release}${shared_ext}$major'
16114 shlibpath_var=LD_LIBRARY_PATH
16115 case $host_vendor in
16117 shlibpath_overrides_runpath=no
16119 runpath_var=LD_RUN_PATH
16127 shlibpath_overrides_runpath=no
16128 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16134 if test -d /usr/nec ;then
16136 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16137 soname_spec='$libname${shared_ext}.$major'
16138 shlibpath_var=LD_LIBRARY_PATH
16142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16143 version_type=freebsd-elf
16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $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 if test "$with_gnu_ld" = yes; then
16152 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16154 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16157 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16161 sys_lib_dlsearch_path_spec='/usr/lib'
16165 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170 shlibpath_var=LD_LIBRARY_PATH
16171 shlibpath_overrides_runpath=no
16172 hardcode_into_libs=yes
16177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178 soname_spec='${libname}${release}${shared_ext}$major'
16179 shlibpath_var=LD_LIBRARY_PATH
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16187 $as_echo "$dynamic_linker" >&6; }
16188 test "$dynamic_linker" = no && can_build_shared=no
16190 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16191 if test "$GCC" = yes; then
16192 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16195 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16196 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16198 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16199 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16240 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16241 hardcode_action_CXX=
16242 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16243 test -n "$runpath_var_CXX" ||
16244 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16246 # We can hardcode non-existent directories.
16247 if test "$hardcode_direct_CXX" != no &&
16248 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16249 # have to relink, otherwise we might link with an installed library
16250 # when we should be linking with a yet-to-be-installed one
16251 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16252 test "$hardcode_minus_L_CXX" != no; then
16253 # Linking always hardcodes the temporary library directory.
16254 hardcode_action_CXX=relink
16256 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16257 hardcode_action_CXX=immediate
16260 # We cannot hardcode anything, or else we can only hardcode existing
16262 hardcode_action_CXX=unsupported
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16265 $as_echo "$hardcode_action_CXX" >&6; }
16267 if test "$hardcode_action_CXX" = relink ||
16268 test "$inherit_rpath_CXX" = yes; then
16269 # Fast installation is not supported
16270 enable_fast_install=no
16271 elif test "$shlibpath_overrides_runpath" = yes ||
16272 test "$enable_shared" = no; then
16273 # Fast installation is not necessary
16274 enable_fast_install=needless
16283 fi # test -n "$compiler"
16286 CFLAGS=$lt_save_CFLAGS
16290 with_gnu_ld=$lt_save_with_gnu_ld
16291 lt_cv_path_LDCXX=$lt_cv_path_LD
16292 lt_cv_path_LD=$lt_save_path_LD
16293 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16294 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16295 fi # test "$_lt_caught_CXX_error" != yes
16298 ac_cpp='$CPP $CPPFLAGS'
16299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16315 ac_config_commands="$ac_config_commands libtool"
16320 # Only expand once:
16328 ac_cpp='$CPP $CPPFLAGS'
16329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16336 $as_echo_n "checking for library containing dlopen... " >&6; }
16337 if ${ac_cv_search_dlopen+:} false; then :
16338 $as_echo_n "(cached) " >&6
16340 ac_func_search_save_LIBS=$LIBS
16341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342 /* end confdefs.h. */
16344 /* Override any GCC internal prototype to avoid an error.
16345 Use char because int might match the return type of a GCC
16346 builtin and then its argument prototype would still apply. */
16359 for ac_lib in '' dl; do
16360 if test -z "$ac_lib"; then
16361 ac_res="none required"
16364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16366 if ac_fn_c_try_link "$LINENO"; then :
16367 ac_cv_search_dlopen=$ac_res
16369 rm -f core conftest.err conftest.$ac_objext \
16371 if ${ac_cv_search_dlopen+:} false; then :
16375 if ${ac_cv_search_dlopen+:} false; then :
16378 ac_cv_search_dlopen=no
16380 rm conftest.$ac_ext
16381 LIBS=$ac_func_search_save_LIBS
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16384 $as_echo "$ac_cv_search_dlopen" >&6; }
16385 ac_res=$ac_cv_search_dlopen
16386 if test "$ac_res" != no; then :
16387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16389 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16391 if test "$ac_cv_search_dlopen" != "none required" ; then
16392 LIBADD_DLOPEN="-ldl"
16394 libltdl_cv_lib_dl_dlopen="yes"
16395 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h. */
16400 # include <dlfcn.h>
16411 if ac_fn_c_try_link "$LINENO"; then :
16413 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16415 libltdl_cv_func_dlopen="yes"
16416 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16419 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16420 if ${ac_cv_lib_svld_dlopen+:} false; then :
16421 $as_echo_n "(cached) " >&6
16423 ac_check_lib_save_LIBS=$LIBS
16424 LIBS="-lsvld $LIBS"
16425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426 /* end confdefs.h. */
16428 /* Override any GCC internal prototype to avoid an error.
16429 Use char because int might match the return type of a GCC
16430 builtin and then its argument prototype would still apply. */
16443 if ac_fn_c_try_link "$LINENO"; then :
16444 ac_cv_lib_svld_dlopen=yes
16446 ac_cv_lib_svld_dlopen=no
16448 rm -f core conftest.err conftest.$ac_objext \
16449 conftest$ac_exeext conftest.$ac_ext
16450 LIBS=$ac_check_lib_save_LIBS
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16453 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16454 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16456 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16458 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16459 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16463 rm -f core conftest.err conftest.$ac_objext \
16464 conftest$ac_exeext conftest.$ac_ext
16467 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16469 lt_save_LIBS="$LIBS"
16470 LIBS="$LIBS $LIBADD_DLOPEN"
16471 for ac_func in dlerror
16473 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16474 if test "x$ac_cv_func_dlerror" = xyes; then :
16475 cat >>confdefs.h <<_ACEOF
16476 #define HAVE_DLERROR 1
16482 LIBS="$lt_save_LIBS"
16487 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16488 if test "x$ac_cv_func_shl_load" = xyes; then :
16490 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16492 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16495 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16496 if ${ac_cv_lib_dld_shl_load+:} false; then :
16497 $as_echo_n "(cached) " >&6
16499 ac_check_lib_save_LIBS=$LIBS
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h. */
16504 /* Override any GCC internal prototype to avoid an error.
16505 Use char because int might match the return type of a GCC
16506 builtin and then its argument prototype would still apply. */
16514 return shl_load ();
16519 if ac_fn_c_try_link "$LINENO"; then :
16520 ac_cv_lib_dld_shl_load=yes
16522 ac_cv_lib_dld_shl_load=no
16524 rm -f core conftest.err conftest.$ac_objext \
16525 conftest$ac_exeext conftest.$ac_ext
16526 LIBS=$ac_check_lib_save_LIBS
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16529 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16530 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16532 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16534 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16535 LIBADD_SHL_LOAD="-ldld"
16544 # We only want this for pre-Mac OS X 10.4.
16545 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16546 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16548 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16550 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16555 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16557 cygwin* | mingw* | os2* | pw32*)
16558 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16560 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16566 cat >>confdefs.h <<_ACEOF
16567 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16570 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16575 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16576 if ${ac_cv_lib_dld_dld_link+:} false; then :
16577 $as_echo_n "(cached) " >&6
16579 ac_check_lib_save_LIBS=$LIBS
16581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16582 /* end confdefs.h. */
16584 /* Override any GCC internal prototype to avoid an error.
16585 Use char because int might match the return type of a GCC
16586 builtin and then its argument prototype would still apply. */
16594 return dld_link ();
16599 if ac_fn_c_try_link "$LINENO"; then :
16600 ac_cv_lib_dld_dld_link=yes
16602 ac_cv_lib_dld_dld_link=no
16604 rm -f core conftest.err conftest.$ac_objext \
16605 conftest$ac_exeext conftest.$ac_ext
16606 LIBS=$ac_check_lib_save_LIBS
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16609 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16610 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16612 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16614 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16621 if test -n "$LT_DLLOADERS"
16623 for lt_loader in $LT_DLLOADERS; do
16624 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16627 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16632 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16636 ac_cpp='$CPP $CPPFLAGS'
16637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16644 if test x$use_libtool != xno; then
16645 DEFAULT_OBJECT_TYPE=".lo"
16646 DEFAULT_ARCHIVE_TYPE=".la"
16647 DEFAULT_SHARED_OBJECT_TYPE=".la"
16648 LIBTOOL="\$(LIBTOOL)"
16649 LIBTOOL_INSTALL_TARGET="libtool-install"
16650 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16651 LIBTOOL_CLEAN_TARGET="libtool-clean"
16652 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16653 FD_PLUGIN_DIR="src/plugins/fd"
16656 DEFAULT_OBJECT_TYPE=".o"
16657 DEFAULT_ARCHIVE_TYPE=".a"
16658 DEFAULT_SHARED_OBJECT_TYPE=".so"
16659 LIBTOOL="# \$(LIBTOOL)"
16660 LIBTOOL_INSTALL_TARGET=""
16661 LIBTOOL_UNINSTALL_TARGET=""
16662 LIBTOOL_CLEAN_TARGET=""
16663 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16678 # Check whether --enable-includes was given.
16679 if test "${enable_includes+set}" = set; then :
16680 enableval=$enable_includes;
16681 if test x$enableval = xyes; then
16682 install_includes=yes
16690 if test x$use_libtool != xno -a x$install_includes = xyes; then
16691 INCLUDE_INSTALL_TARGET="install-includes"
16692 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16694 INCLUDE_INSTALL_TARGET=""
16695 INCLUDE_UNINSTALL_TARGET=""
16703 *cygwin* ) CYGWIN=yes;;
16707 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16713 HAVE_SUN_OS_FALSE='#'
16715 HAVE_SUN_OS_TRUE='#'
16718 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16725 HAVE_SUN_OS_FALSE='#'
16727 HAVE_SUN_OS_TRUE='#'
16732 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16738 HAVE_HURD_OS_FALSE='#'
16740 HAVE_HURD_OS_TRUE='#'
16741 HAVE_HURD_OS_FALSE=
16743 $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16750 HAVE_HURD_OS_FALSE='#'
16752 HAVE_HURD_OS_TRUE='#'
16753 HAVE_HURD_OS_FALSE=
16757 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16763 HAVE_OSF1_OS_FALSE='#'
16765 HAVE_OSF1_OS_TRUE='#'
16766 HAVE_OSF1_OS_FALSE=
16768 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16775 HAVE_OSF1_OS_FALSE='#'
16777 HAVE_OSF1_OS_TRUE='#'
16778 HAVE_OSF1_OS_FALSE=
16782 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16788 HAVE_AIX_OS_FALSE='#'
16790 HAVE_AIX_OS_TRUE='#'
16793 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16800 HAVE_AIX_OS_FALSE='#'
16802 HAVE_AIX_OS_TRUE='#'
16807 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16813 HAVE_HPUX_OS_FALSE='#'
16815 HAVE_HPUX_OS_TRUE='#'
16816 HAVE_HPUX_OS_FALSE=
16818 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16825 HAVE_HPUX_OS_FALSE='#'
16827 HAVE_HPUX_OS_TRUE='#'
16828 HAVE_HPUX_OS_FALSE=
16832 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16837 HAVE_LINUX_OS_TRUE=
16838 HAVE_LINUX_OS_FALSE='#'
16840 HAVE_LINUX_OS_TRUE='#'
16841 HAVE_LINUX_OS_FALSE=
16843 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16849 HAVE_LINUX_OS_TRUE=
16850 HAVE_LINUX_OS_FALSE='#'
16852 HAVE_LINUX_OS_TRUE='#'
16853 HAVE_LINUX_OS_FALSE=
16857 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16862 HAVE_FREEBSD_OS_TRUE=
16863 HAVE_FREEBSD_OS_FALSE='#'
16865 HAVE_FREEBSD_OS_TRUE='#'
16866 HAVE_FREEBSD_OS_FALSE=
16868 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16874 HAVE_FREEBSD_OS_TRUE=
16875 HAVE_FREEBSD_OS_FALSE='#'
16877 HAVE_FREEBSD_OS_TRUE='#'
16878 HAVE_FREEBSD_OS_FALSE=
16882 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16887 HAVE_NETBSD_OS_TRUE=
16888 HAVE_NETBSD_OS_FALSE='#'
16890 HAVE_NETBSD_OS_TRUE='#'
16891 HAVE_NETBSD_OS_FALSE=
16893 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16899 HAVE_NETBSD_OS_TRUE=
16900 HAVE_NETBSD_OS_FALSE='#'
16902 HAVE_NETBSD_OS_TRUE='#'
16903 HAVE_NETBSD_OS_FALSE=
16907 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16912 HAVE_OPENBSD_OS_TRUE=
16913 HAVE_OPENBSD_OS_FALSE='#'
16915 HAVE_OPENBSD_OS_TRUE='#'
16916 HAVE_OPENBSD_OS_FALSE=
16918 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16924 HAVE_OPENBSD_OS_TRUE=
16925 HAVE_OPENBSD_OS_FALSE='#'
16927 HAVE_OPENBSD_OS_TRUE='#'
16928 HAVE_OPENBSD_OS_FALSE=
16932 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16938 HAVE_BSDI_OS_FALSE='#'
16940 HAVE_BSDI_OS_TRUE='#'
16941 HAVE_BSDI_OS_FALSE=
16943 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16950 HAVE_BSDI_OS_FALSE='#'
16952 HAVE_BSDI_OS_TRUE='#'
16953 HAVE_BSDI_OS_FALSE=
16957 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16963 HAVE_SGI_OS_FALSE='#'
16965 HAVE_SGI_OS_TRUE='#'
16968 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
16975 HAVE_SGI_OS_FALSE='#'
16977 HAVE_SGI_OS_TRUE='#'
16982 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16988 HAVE_IRIX_OS_FALSE='#'
16990 HAVE_IRIX_OS_TRUE='#'
16991 HAVE_IRIX_OS_FALSE=
16993 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17000 HAVE_IRIX_OS_FALSE='#'
17002 HAVE_IRIX_OS_TRUE='#'
17003 HAVE_IRIX_OS_FALSE=
17007 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17012 HAVE_DARWIN_OS_TRUE=
17013 HAVE_DARWIN_OS_FALSE='#'
17015 HAVE_DARWIN_OS_TRUE='#'
17016 HAVE_DARWIN_OS_FALSE=
17018 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17024 HAVE_DARWIN_OS_TRUE=
17025 HAVE_DARWIN_OS_FALSE='#'
17027 HAVE_DARWIN_OS_TRUE='#'
17028 HAVE_DARWIN_OS_FALSE=
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17034 $as_echo_n "checking for Operating System Distribution... " >&6; }
17035 if test "x$DISTNAME" != "x"
17037 echo "distname set to $DISTNAME"
17038 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17041 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17044 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17047 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17050 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17053 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17056 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17059 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17062 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17065 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17068 elif test -f /etc/SuSE-release
17071 elif test -d /etc/SuSEconfig
17074 elif test -f /etc/mandrake-release
17077 elif test -f /etc/whitebox-release
17080 elif test -f /etc/redhat-release
17083 elif test -f /etc/gentoo-release
17086 elif test -f /etc/debian_version
17089 elif test -f /etc/slackware-version
17092 elif test x$host_vendor = xapple
17095 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17098 elif test -f /etc/engarde-version
17101 elif test -f /etc/arch-release
17104 elif test "$CYGWIN" = yes
17107 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17113 $as_echo "done" >&6; }
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17117 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17119 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17120 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17121 $as_echo_n "(cached) " >&6
17123 cat >conftest.make <<\_ACEOF
17126 @echo '@@@%%%=$(MAKE)=@@@%%%'
17128 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17129 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17130 *@@@%%%=?*=@@@%%%*)
17131 eval ac_cv_prog_make_${ac_make}_set=yes;;
17133 eval ac_cv_prog_make_${ac_make}_set=no;;
17135 rm -f conftest.make
17137 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17139 $as_echo "yes" >&6; }
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17143 $as_echo "no" >&6; }
17144 SET_MAKE="MAKE=${MAKE-make}"
17150 if test -n "$ac_aux_dir"; then
17151 case "$ac_aux_dir" in
17152 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17153 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17156 if test -z "$MKINSTALLDIRS"; then
17157 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17163 $as_echo_n "checking whether NLS is requested... " >&6; }
17164 # Check whether --enable-nls was given.
17165 if test "${enable_nls+set}" = set; then :
17166 enableval=$enable_nls; USE_NLS=$enableval
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17172 $as_echo "$USE_NLS" >&6; }
17179 # Prepare PATH_SEPARATOR.
17180 # The user is always right.
17181 if test "${PATH_SEPARATOR+set}" != set; then
17182 echo "#! /bin/sh" >conf$$.sh
17183 echo "exit 0" >>conf$$.sh
17185 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17193 # Find out how to test for executable files. Don't use a zero-byte file,
17194 # as systems may use methods other than mode bits to determine executability.
17195 cat >conf$$.file <<_ASEOF
17199 chmod +x conf$$.file
17200 if test -x conf$$.file >/dev/null 2>&1; then
17201 ac_executable_p="test -x"
17203 ac_executable_p="test -f"
17207 # Extract the first word of "msgfmt", so it can be a program name with args.
17208 set dummy msgfmt; ac_word=$2
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17210 $as_echo_n "checking for $ac_word... " >&6; }
17211 if ${ac_cv_path_MSGFMT+:} false; then :
17212 $as_echo_n "(cached) " >&6
17216 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17219 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17220 for ac_dir in $PATH; do
17222 test -z "$ac_dir" && ac_dir=.
17223 for ac_exec_ext in '' $ac_executable_extensions; do
17224 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17225 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17226 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17227 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17228 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17235 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17239 MSGFMT="$ac_cv_path_MSGFMT"
17240 if test "$MSGFMT" != ":"; then
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17242 $as_echo "$MSGFMT" >&6; }
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17245 $as_echo "no" >&6; }
17248 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17249 set dummy gmsgfmt; ac_word=$2
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17251 $as_echo_n "checking for $ac_word... " >&6; }
17252 if ${ac_cv_path_GMSGFMT+:} false; then :
17253 $as_echo_n "(cached) " >&6
17257 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17261 for as_dir in $PATH
17264 test -z "$as_dir" && as_dir=.
17265 for ac_exec_ext in '' $ac_executable_extensions; do
17266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17267 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17275 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17279 GMSGFMT=$ac_cv_path_GMSGFMT
17280 if test -n "$GMSGFMT"; then
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17282 $as_echo "$GMSGFMT" >&6; }
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17285 $as_echo "no" >&6; }
17291 # Prepare PATH_SEPARATOR.
17292 # The user is always right.
17293 if test "${PATH_SEPARATOR+set}" != set; then
17294 echo "#! /bin/sh" >conf$$.sh
17295 echo "exit 0" >>conf$$.sh
17297 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17305 # Find out how to test for executable files. Don't use a zero-byte file,
17306 # as systems may use methods other than mode bits to determine executability.
17307 cat >conf$$.file <<_ASEOF
17311 chmod +x conf$$.file
17312 if test -x conf$$.file >/dev/null 2>&1; then
17313 ac_executable_p="test -x"
17315 ac_executable_p="test -f"
17319 # Extract the first word of "xgettext", so it can be a program name with args.
17320 set dummy xgettext; ac_word=$2
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17322 $as_echo_n "checking for $ac_word... " >&6; }
17323 if ${ac_cv_path_XGETTEXT+:} false; then :
17324 $as_echo_n "(cached) " >&6
17326 case "$XGETTEXT" in
17328 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17331 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17332 for ac_dir in $PATH; do
17334 test -z "$ac_dir" && ac_dir=.
17335 for ac_exec_ext in '' $ac_executable_extensions; do
17336 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17337 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17338 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17339 (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
17340 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17347 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17351 XGETTEXT="$ac_cv_path_XGETTEXT"
17352 if test "$XGETTEXT" != ":"; then
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17354 $as_echo "$XGETTEXT" >&6; }
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17357 $as_echo "no" >&6; }
17363 # Prepare PATH_SEPARATOR.
17364 # The user is always right.
17365 if test "${PATH_SEPARATOR+set}" != set; then
17366 echo "#! /bin/sh" >conf$$.sh
17367 echo "exit 0" >>conf$$.sh
17369 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17377 # Find out how to test for executable files. Don't use a zero-byte file,
17378 # as systems may use methods other than mode bits to determine executability.
17379 cat >conf$$.file <<_ASEOF
17383 chmod +x conf$$.file
17384 if test -x conf$$.file >/dev/null 2>&1; then
17385 ac_executable_p="test -x"
17387 ac_executable_p="test -f"
17391 # Extract the first word of "msgmerge", so it can be a program name with args.
17392 set dummy msgmerge; ac_word=$2
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17394 $as_echo_n "checking for $ac_word... " >&6; }
17395 if ${ac_cv_path_MSGMERGE+:} false; then :
17396 $as_echo_n "(cached) " >&6
17398 case "$MSGMERGE" in
17400 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17403 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17404 for ac_dir in $PATH; do
17406 test -z "$ac_dir" && ac_dir=.
17407 for ac_exec_ext in '' $ac_executable_extensions; do
17408 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17409 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17410 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17411 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17418 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17422 MSGMERGE="$ac_cv_path_MSGMERGE"
17423 if test "$MSGMERGE" != ":"; then
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17425 $as_echo "$MSGMERGE" >&6; }
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17428 $as_echo "no" >&6; }
17432 if test "$GMSGFMT" != ":"; then
17433 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17434 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17437 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17439 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17444 if test "$XGETTEXT" != ":"; then
17445 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17446 (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
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17450 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17456 ac_config_commands="$ac_config_commands default-1"
17460 if test "X$prefix" = "XNONE"; then
17461 acl_final_prefix="$ac_default_prefix"
17463 acl_final_prefix="$prefix"
17465 if test "X$exec_prefix" = "XNONE"; then
17466 acl_final_exec_prefix='${prefix}'
17468 acl_final_exec_prefix="$exec_prefix"
17470 acl_save_prefix="$prefix"
17471 prefix="$acl_final_prefix"
17472 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17473 prefix="$acl_save_prefix"
17476 # Check whether --with-gnu-ld was given.
17477 if test "${with_gnu_ld+set}" = set; then :
17478 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17483 # Prepare PATH_SEPARATOR.
17484 # The user is always right.
17485 if test "${PATH_SEPARATOR+set}" != set; then
17486 echo "#! /bin/sh" >conf$$.sh
17487 echo "exit 0" >>conf$$.sh
17489 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17497 if test "$GCC" = yes; then
17498 # Check if gcc -print-prog-name=ld gives a path.
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17500 $as_echo_n "checking for ld used by GCC... " >&6; }
17503 # gcc leaves a trailing carriage return which upsets mingw
17504 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17506 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17509 # Accept absolute paths.
17510 [\\/]* | [A-Za-z]:[\\/]*)
17511 re_direlt='/[^/][^/]*/\.\./'
17512 # Canonicalize the path of ld
17513 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17514 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17515 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17517 test -z "$LD" && LD="$ac_prog"
17520 # If it fails, then pretend we aren't using GCC.
17524 # If it is relative, then search for the first ld in PATH.
17525 with_gnu_ld=unknown
17528 elif test "$with_gnu_ld" = yes; then
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17530 $as_echo_n "checking for GNU ld... " >&6; }
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17533 $as_echo_n "checking for non-GNU ld... " >&6; }
17535 if ${acl_cv_path_LD+:} false; then :
17536 $as_echo_n "(cached) " >&6
17538 if test -z "$LD"; then
17539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17540 for ac_dir in $PATH; do
17541 test -z "$ac_dir" && ac_dir=.
17542 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17543 acl_cv_path_LD="$ac_dir/$ac_prog"
17544 # Check to see if the program is GNU ld. I'd rather use --version,
17545 # but apparently some GNU ld's only accept -v.
17546 # Break only if it was the GNU/non-GNU ld that we prefer.
17547 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17548 *GNU* | *'with BFD'*)
17549 test "$with_gnu_ld" != no && break ;;
17551 test "$with_gnu_ld" != yes && break ;;
17557 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17561 LD="$acl_cv_path_LD"
17562 if test -n "$LD"; then
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17564 $as_echo "$LD" >&6; }
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17567 $as_echo "no" >&6; }
17569 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17571 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17572 if ${acl_cv_prog_gnu_ld+:} false; then :
17573 $as_echo_n "(cached) " >&6
17575 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17576 case `$LD -v 2>&1 </dev/null` in
17577 *GNU* | *'with BFD'*)
17578 acl_cv_prog_gnu_ld=yes ;;
17580 acl_cv_prog_gnu_ld=no ;;
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17584 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17585 with_gnu_ld=$acl_cv_prog_gnu_ld
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17591 $as_echo_n "checking for shared library run path origin... " >&6; }
17592 if ${acl_cv_rpath+:} false; then :
17593 $as_echo_n "(cached) " >&6
17596 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17597 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17599 rm -f ./conftest.sh
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17604 $as_echo "$acl_cv_rpath" >&6; }
17606 libext="$acl_cv_libext"
17607 shlibext="$acl_cv_shlibext"
17608 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17609 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17610 hardcode_direct="$acl_cv_hardcode_direct"
17611 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17612 # Check whether --enable-rpath was given.
17613 if test "${enable_rpath+set}" = set; then :
17614 enableval=$enable_rpath; :
17628 acl_save_prefix="$prefix"
17629 prefix="$acl_final_prefix"
17630 acl_save_exec_prefix="$exec_prefix"
17631 exec_prefix="$acl_final_exec_prefix"
17633 eval additional_includedir=\"$includedir\"
17634 eval additional_libdir=\"$libdir\"
17636 exec_prefix="$acl_save_exec_prefix"
17637 prefix="$acl_save_prefix"
17640 # Check whether --with-libiconv-prefix was given.
17641 if test "${with_libiconv_prefix+set}" = set; then :
17642 withval=$with_libiconv_prefix;
17643 if test "X$withval" = "Xno"; then
17646 if test "X$withval" = "X"; then
17648 acl_save_prefix="$prefix"
17649 prefix="$acl_final_prefix"
17650 acl_save_exec_prefix="$exec_prefix"
17651 exec_prefix="$acl_final_exec_prefix"
17653 eval additional_includedir=\"$includedir\"
17654 eval additional_libdir=\"$libdir\"
17656 exec_prefix="$acl_save_exec_prefix"
17657 prefix="$acl_save_prefix"
17660 additional_includedir="$withval/include"
17661 additional_libdir="$withval/lib"
17672 names_already_handled=
17673 names_next_round='iconv '
17674 while test -n "$names_next_round"; do
17675 names_this_round="$names_next_round"
17677 for name in $names_this_round; do
17679 for n in $names_already_handled; do
17680 if test "$n" = "$name"; then
17681 already_handled=yes
17685 if test -z "$already_handled"; then
17686 names_already_handled="$names_already_handled $name"
17687 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17688 eval value=\"\$HAVE_LIB$uppername\"
17689 if test -n "$value"; then
17690 if test "$value" = yes; then
17691 eval value=\"\$LIB$uppername\"
17692 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17693 eval value=\"\$LTLIB$uppername\"
17694 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17703 if test $use_additional = yes; then
17704 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17705 found_dir="$additional_libdir"
17706 found_so="$additional_libdir/lib$name.$shlibext"
17707 if test -f "$additional_libdir/lib$name.la"; then
17708 found_la="$additional_libdir/lib$name.la"
17711 if test -f "$additional_libdir/lib$name.$libext"; then
17712 found_dir="$additional_libdir"
17713 found_a="$additional_libdir/lib$name.$libext"
17714 if test -f "$additional_libdir/lib$name.la"; then
17715 found_la="$additional_libdir/lib$name.la"
17720 if test "X$found_dir" = "X"; then
17721 for x in $LDFLAGS $LTLIBICONV; do
17723 acl_save_prefix="$prefix"
17724 prefix="$acl_final_prefix"
17725 acl_save_exec_prefix="$exec_prefix"
17726 exec_prefix="$acl_final_exec_prefix"
17728 exec_prefix="$acl_save_exec_prefix"
17729 prefix="$acl_save_prefix"
17733 dir=`echo "X$x" | sed -e 's/^X-L//'`
17734 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17736 found_so="$dir/lib$name.$shlibext"
17737 if test -f "$dir/lib$name.la"; then
17738 found_la="$dir/lib$name.la"
17741 if test -f "$dir/lib$name.$libext"; then
17743 found_a="$dir/lib$name.$libext"
17744 if test -f "$dir/lib$name.la"; then
17745 found_la="$dir/lib$name.la"
17751 if test "X$found_dir" != "X"; then
17756 if test "X$found_dir" != "X"; then
17757 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17758 if test "X$found_so" != "X"; then
17759 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17760 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17763 for x in $ltrpathdirs; do
17764 if test "X$x" = "X$found_dir"; then
17769 if test -z "$haveit"; then
17770 ltrpathdirs="$ltrpathdirs $found_dir"
17772 if test "$hardcode_direct" = yes; then
17773 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17775 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17776 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17778 for x in $rpathdirs; do
17779 if test "X$x" = "X$found_dir"; then
17784 if test -z "$haveit"; then
17785 rpathdirs="$rpathdirs $found_dir"
17789 for x in $LDFLAGS $LIBICONV; do
17791 acl_save_prefix="$prefix"
17792 prefix="$acl_final_prefix"
17793 acl_save_exec_prefix="$exec_prefix"
17794 exec_prefix="$acl_final_exec_prefix"
17796 exec_prefix="$acl_save_exec_prefix"
17797 prefix="$acl_save_prefix"
17799 if test "X$x" = "X-L$found_dir"; then
17804 if test -z "$haveit"; then
17805 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17807 if test "$hardcode_minus_L" != no; then
17808 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17810 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17816 if test "X$found_a" != "X"; then
17817 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17819 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17822 additional_includedir=
17823 case "$found_dir" in
17825 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17826 additional_includedir="$basedir/include"
17829 if test "X$additional_includedir" != "X"; then
17830 if test "X$additional_includedir" != "X/usr/include"; then
17832 if test "X$additional_includedir" = "X/usr/local/include"; then
17833 if test -n "$GCC"; then
17835 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17839 if test -z "$haveit"; then
17840 for x in $CPPFLAGS $INCICONV; do
17842 acl_save_prefix="$prefix"
17843 prefix="$acl_final_prefix"
17844 acl_save_exec_prefix="$exec_prefix"
17845 exec_prefix="$acl_final_exec_prefix"
17847 exec_prefix="$acl_save_exec_prefix"
17848 prefix="$acl_save_prefix"
17850 if test "X$x" = "X-I$additional_includedir"; then
17855 if test -z "$haveit"; then
17856 if test -d "$additional_includedir"; then
17857 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17863 if test -n "$found_la"; then
17864 save_libdir="$libdir"
17865 case "$found_la" in
17866 */* | *\\*) . "$found_la" ;;
17867 *) . "./$found_la" ;;
17869 libdir="$save_libdir"
17870 for dep in $dependency_libs; do
17873 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17874 if test "X$additional_libdir" != "X/usr/lib"; then
17876 if test "X$additional_libdir" = "X/usr/local/lib"; then
17877 if test -n "$GCC"; then
17879 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17883 if test -z "$haveit"; then
17885 for x in $LDFLAGS $LIBICONV; do
17887 acl_save_prefix="$prefix"
17888 prefix="$acl_final_prefix"
17889 acl_save_exec_prefix="$exec_prefix"
17890 exec_prefix="$acl_final_exec_prefix"
17892 exec_prefix="$acl_save_exec_prefix"
17893 prefix="$acl_save_prefix"
17895 if test "X$x" = "X-L$additional_libdir"; then
17900 if test -z "$haveit"; then
17901 if test -d "$additional_libdir"; then
17902 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17906 for x in $LDFLAGS $LTLIBICONV; do
17908 acl_save_prefix="$prefix"
17909 prefix="$acl_final_prefix"
17910 acl_save_exec_prefix="$exec_prefix"
17911 exec_prefix="$acl_final_exec_prefix"
17913 exec_prefix="$acl_save_exec_prefix"
17914 prefix="$acl_save_prefix"
17916 if test "X$x" = "X-L$additional_libdir"; then
17921 if test -z "$haveit"; then
17922 if test -d "$additional_libdir"; then
17923 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17930 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17931 if test "$enable_rpath" != no; then
17933 for x in $rpathdirs; do
17934 if test "X$x" = "X$dir"; then
17939 if test -z "$haveit"; then
17940 rpathdirs="$rpathdirs $dir"
17943 for x in $ltrpathdirs; do
17944 if test "X$x" = "X$dir"; then
17949 if test -z "$haveit"; then
17950 ltrpathdirs="$ltrpathdirs $dir"
17955 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17958 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17961 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17962 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17968 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17969 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17975 if test "X$rpathdirs" != "X"; then
17976 if test -n "$hardcode_libdir_separator"; then
17978 for found_dir in $rpathdirs; do
17979 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17981 acl_save_libdir="$libdir"
17983 eval flag=\"$hardcode_libdir_flag_spec\"
17984 libdir="$acl_save_libdir"
17985 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17987 for found_dir in $rpathdirs; do
17988 acl_save_libdir="$libdir"
17989 libdir="$found_dir"
17990 eval flag=\"$hardcode_libdir_flag_spec\"
17991 libdir="$acl_save_libdir"
17992 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17996 if test "X$ltrpathdirs" != "X"; then
17997 for found_dir in $ltrpathdirs; do
17998 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18020 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18021 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18022 $as_echo_n "(cached) " >&6
18024 gt_save_CPPFLAGS="$CPPFLAGS"
18025 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18026 gt_save_LIBS="$LIBS"
18027 LIBS="$LIBS -framework CoreFoundation"
18028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18029 /* end confdefs.h. */
18030 #include <CFPreferences.h>
18034 CFPreferencesCopyAppValue(NULL, NULL)
18039 if ac_fn_c_try_link "$LINENO"; then :
18040 gt_cv_func_CFPreferencesCopyAppValue=yes
18042 gt_cv_func_CFPreferencesCopyAppValue=no
18044 rm -f core conftest.err conftest.$ac_objext \
18045 conftest$ac_exeext conftest.$ac_ext
18046 CPPFLAGS="$gt_save_CPPFLAGS"
18047 LIBS="$gt_save_LIBS"
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18050 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18051 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18053 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18057 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18058 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18059 $as_echo_n "(cached) " >&6
18061 gt_save_CPPFLAGS="$CPPFLAGS"
18062 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18063 gt_save_LIBS="$LIBS"
18064 LIBS="$LIBS -framework CoreFoundation"
18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066 /* end confdefs.h. */
18067 #include <CFLocale.h>
18071 CFLocaleCopyCurrent();
18076 if ac_fn_c_try_link "$LINENO"; then :
18077 gt_cv_func_CFLocaleCopyCurrent=yes
18079 gt_cv_func_CFLocaleCopyCurrent=no
18081 rm -f core conftest.err conftest.$ac_objext \
18082 conftest$ac_exeext conftest.$ac_ext
18083 CPPFLAGS="$gt_save_CPPFLAGS"
18084 LIBS="$gt_save_LIBS"
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18087 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18088 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18090 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18094 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18095 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18102 $as_echo_n "checking whether NLS is requested... " >&6; }
18103 # Check whether --enable-nls was given.
18104 if test "${enable_nls+set}" = set; then :
18105 enableval=$enable_nls; USE_NLS=$enableval
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18111 $as_echo "$USE_NLS" >&6; }
18120 if test "$USE_NLS" = "yes"; then
18121 gt_use_preinstalled_gnugettext=no
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18129 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18130 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18131 $as_echo_n "(cached) " >&6
18133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18134 /* end confdefs.h. */
18135 #include <libintl.h>
18136 extern int _nl_msg_cat_cntr;
18137 extern int *_nl_domain_bindings;
18141 bindtextdomain ("", "");
18142 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18147 if ac_fn_c_try_link "$LINENO"; then :
18148 gt_cv_func_gnugettext1_libc=yes
18150 gt_cv_func_gnugettext1_libc=no
18152 rm -f core conftest.err conftest.$ac_objext \
18153 conftest$ac_exeext conftest.$ac_ext
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18156 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18158 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18164 am_save_CPPFLAGS="$CPPFLAGS"
18166 for element in $INCICONV; do
18168 for x in $CPPFLAGS; do
18170 acl_save_prefix="$prefix"
18171 prefix="$acl_final_prefix"
18172 acl_save_exec_prefix="$exec_prefix"
18173 exec_prefix="$acl_final_exec_prefix"
18175 exec_prefix="$acl_save_exec_prefix"
18176 prefix="$acl_save_prefix"
18178 if test "X$x" = "X$element"; then
18183 if test -z "$haveit"; then
18184 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18190 $as_echo_n "checking for iconv... " >&6; }
18191 if ${am_cv_func_iconv+:} false; then :
18192 $as_echo_n "(cached) " >&6
18195 am_cv_func_iconv="no, consider installing GNU libiconv"
18197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h. */
18199 #include <stdlib.h>
18204 iconv_t cd = iconv_open("","");
18205 iconv(cd,NULL,NULL,NULL,NULL);
18211 if ac_fn_c_try_link "$LINENO"; then :
18212 am_cv_func_iconv=yes
18214 rm -f core conftest.err conftest.$ac_objext \
18215 conftest$ac_exeext conftest.$ac_ext
18216 if test "$am_cv_func_iconv" != yes; then
18217 am_save_LIBS="$LIBS"
18218 LIBS="$LIBS $LIBICONV"
18219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18220 /* end confdefs.h. */
18221 #include <stdlib.h>
18226 iconv_t cd = iconv_open("","");
18227 iconv(cd,NULL,NULL,NULL,NULL);
18233 if ac_fn_c_try_link "$LINENO"; then :
18234 am_cv_lib_iconv=yes
18235 am_cv_func_iconv=yes
18237 rm -f core conftest.err conftest.$ac_objext \
18238 conftest$ac_exeext conftest.$ac_ext
18239 LIBS="$am_save_LIBS"
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18244 $as_echo "$am_cv_func_iconv" >&6; }
18245 if test "$am_cv_func_iconv" = yes; then
18247 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18250 if test "$am_cv_lib_iconv" = yes; then
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18252 $as_echo_n "checking how to link with libiconv... " >&6; }
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18254 $as_echo "$LIBICONV" >&6; }
18256 CPPFLAGS="$am_save_CPPFLAGS"
18268 acl_save_prefix="$prefix"
18269 prefix="$acl_final_prefix"
18270 acl_save_exec_prefix="$exec_prefix"
18271 exec_prefix="$acl_final_exec_prefix"
18273 eval additional_includedir=\"$includedir\"
18274 eval additional_libdir=\"$libdir\"
18276 exec_prefix="$acl_save_exec_prefix"
18277 prefix="$acl_save_prefix"
18280 # Check whether --with-libintl-prefix was given.
18281 if test "${with_libintl_prefix+set}" = set; then :
18282 withval=$with_libintl_prefix;
18283 if test "X$withval" = "Xno"; then
18286 if test "X$withval" = "X"; then
18288 acl_save_prefix="$prefix"
18289 prefix="$acl_final_prefix"
18290 acl_save_exec_prefix="$exec_prefix"
18291 exec_prefix="$acl_final_exec_prefix"
18293 eval additional_includedir=\"$includedir\"
18294 eval additional_libdir=\"$libdir\"
18296 exec_prefix="$acl_save_exec_prefix"
18297 prefix="$acl_save_prefix"
18300 additional_includedir="$withval/include"
18301 additional_libdir="$withval/lib"
18312 names_already_handled=
18313 names_next_round='intl '
18314 while test -n "$names_next_round"; do
18315 names_this_round="$names_next_round"
18317 for name in $names_this_round; do
18319 for n in $names_already_handled; do
18320 if test "$n" = "$name"; then
18321 already_handled=yes
18325 if test -z "$already_handled"; then
18326 names_already_handled="$names_already_handled $name"
18327 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18328 eval value=\"\$HAVE_LIB$uppername\"
18329 if test -n "$value"; then
18330 if test "$value" = yes; then
18331 eval value=\"\$LIB$uppername\"
18332 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18333 eval value=\"\$LTLIB$uppername\"
18334 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18343 if test $use_additional = yes; then
18344 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18345 found_dir="$additional_libdir"
18346 found_so="$additional_libdir/lib$name.$shlibext"
18347 if test -f "$additional_libdir/lib$name.la"; then
18348 found_la="$additional_libdir/lib$name.la"
18351 if test -f "$additional_libdir/lib$name.$libext"; then
18352 found_dir="$additional_libdir"
18353 found_a="$additional_libdir/lib$name.$libext"
18354 if test -f "$additional_libdir/lib$name.la"; then
18355 found_la="$additional_libdir/lib$name.la"
18360 if test "X$found_dir" = "X"; then
18361 for x in $LDFLAGS $LTLIBINTL; do
18363 acl_save_prefix="$prefix"
18364 prefix="$acl_final_prefix"
18365 acl_save_exec_prefix="$exec_prefix"
18366 exec_prefix="$acl_final_exec_prefix"
18368 exec_prefix="$acl_save_exec_prefix"
18369 prefix="$acl_save_prefix"
18373 dir=`echo "X$x" | sed -e 's/^X-L//'`
18374 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18376 found_so="$dir/lib$name.$shlibext"
18377 if test -f "$dir/lib$name.la"; then
18378 found_la="$dir/lib$name.la"
18381 if test -f "$dir/lib$name.$libext"; then
18383 found_a="$dir/lib$name.$libext"
18384 if test -f "$dir/lib$name.la"; then
18385 found_la="$dir/lib$name.la"
18391 if test "X$found_dir" != "X"; then
18396 if test "X$found_dir" != "X"; then
18397 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18398 if test "X$found_so" != "X"; then
18399 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18400 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18403 for x in $ltrpathdirs; do
18404 if test "X$x" = "X$found_dir"; then
18409 if test -z "$haveit"; then
18410 ltrpathdirs="$ltrpathdirs $found_dir"
18412 if test "$hardcode_direct" = yes; then
18413 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18415 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18416 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18418 for x in $rpathdirs; do
18419 if test "X$x" = "X$found_dir"; then
18424 if test -z "$haveit"; then
18425 rpathdirs="$rpathdirs $found_dir"
18429 for x in $LDFLAGS $LIBINTL; do
18431 acl_save_prefix="$prefix"
18432 prefix="$acl_final_prefix"
18433 acl_save_exec_prefix="$exec_prefix"
18434 exec_prefix="$acl_final_exec_prefix"
18436 exec_prefix="$acl_save_exec_prefix"
18437 prefix="$acl_save_prefix"
18439 if test "X$x" = "X-L$found_dir"; then
18444 if test -z "$haveit"; then
18445 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18447 if test "$hardcode_minus_L" != no; then
18448 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18450 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18456 if test "X$found_a" != "X"; then
18457 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18459 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18462 additional_includedir=
18463 case "$found_dir" in
18465 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18466 additional_includedir="$basedir/include"
18469 if test "X$additional_includedir" != "X"; then
18470 if test "X$additional_includedir" != "X/usr/include"; then
18472 if test "X$additional_includedir" = "X/usr/local/include"; then
18473 if test -n "$GCC"; then
18475 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18479 if test -z "$haveit"; then
18480 for x in $CPPFLAGS $INCINTL; do
18482 acl_save_prefix="$prefix"
18483 prefix="$acl_final_prefix"
18484 acl_save_exec_prefix="$exec_prefix"
18485 exec_prefix="$acl_final_exec_prefix"
18487 exec_prefix="$acl_save_exec_prefix"
18488 prefix="$acl_save_prefix"
18490 if test "X$x" = "X-I$additional_includedir"; then
18495 if test -z "$haveit"; then
18496 if test -d "$additional_includedir"; then
18497 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18503 if test -n "$found_la"; then
18504 save_libdir="$libdir"
18505 case "$found_la" in
18506 */* | *\\*) . "$found_la" ;;
18507 *) . "./$found_la" ;;
18509 libdir="$save_libdir"
18510 for dep in $dependency_libs; do
18513 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18514 if test "X$additional_libdir" != "X/usr/lib"; then
18516 if test "X$additional_libdir" = "X/usr/local/lib"; then
18517 if test -n "$GCC"; then
18519 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18523 if test -z "$haveit"; then
18525 for x in $LDFLAGS $LIBINTL; do
18527 acl_save_prefix="$prefix"
18528 prefix="$acl_final_prefix"
18529 acl_save_exec_prefix="$exec_prefix"
18530 exec_prefix="$acl_final_exec_prefix"
18532 exec_prefix="$acl_save_exec_prefix"
18533 prefix="$acl_save_prefix"
18535 if test "X$x" = "X-L$additional_libdir"; then
18540 if test -z "$haveit"; then
18541 if test -d "$additional_libdir"; then
18542 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18546 for x in $LDFLAGS $LTLIBINTL; do
18548 acl_save_prefix="$prefix"
18549 prefix="$acl_final_prefix"
18550 acl_save_exec_prefix="$exec_prefix"
18551 exec_prefix="$acl_final_exec_prefix"
18553 exec_prefix="$acl_save_exec_prefix"
18554 prefix="$acl_save_prefix"
18556 if test "X$x" = "X-L$additional_libdir"; then
18561 if test -z "$haveit"; then
18562 if test -d "$additional_libdir"; then
18563 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18570 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18571 if test "$enable_rpath" != no; then
18573 for x in $rpathdirs; do
18574 if test "X$x" = "X$dir"; then
18579 if test -z "$haveit"; then
18580 rpathdirs="$rpathdirs $dir"
18583 for x in $ltrpathdirs; do
18584 if test "X$x" = "X$dir"; then
18589 if test -z "$haveit"; then
18590 ltrpathdirs="$ltrpathdirs $dir"
18595 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18598 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18601 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18602 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18608 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18609 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18615 if test "X$rpathdirs" != "X"; then
18616 if test -n "$hardcode_libdir_separator"; then
18618 for found_dir in $rpathdirs; do
18619 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18621 acl_save_libdir="$libdir"
18623 eval flag=\"$hardcode_libdir_flag_spec\"
18624 libdir="$acl_save_libdir"
18625 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18627 for found_dir in $rpathdirs; do
18628 acl_save_libdir="$libdir"
18629 libdir="$found_dir"
18630 eval flag=\"$hardcode_libdir_flag_spec\"
18631 libdir="$acl_save_libdir"
18632 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18636 if test "X$ltrpathdirs" != "X"; then
18637 for found_dir in $ltrpathdirs; do
18638 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18643 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18644 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18645 $as_echo_n "(cached) " >&6
18647 gt_save_CPPFLAGS="$CPPFLAGS"
18648 CPPFLAGS="$CPPFLAGS $INCINTL"
18649 gt_save_LIBS="$LIBS"
18650 LIBS="$LIBS $LIBINTL"
18651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18652 /* end confdefs.h. */
18653 #include <libintl.h>
18654 extern int _nl_msg_cat_cntr;
18659 const char *_nl_expand_alias (const char *);
18663 bindtextdomain ("", "");
18664 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18669 if ac_fn_c_try_link "$LINENO"; then :
18670 gt_cv_func_gnugettext1_libintl=yes
18672 gt_cv_func_gnugettext1_libintl=no
18674 rm -f core conftest.err conftest.$ac_objext \
18675 conftest$ac_exeext conftest.$ac_ext
18676 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18677 LIBS="$LIBS $LIBICONV"
18678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679 /* end confdefs.h. */
18680 #include <libintl.h>
18681 extern int _nl_msg_cat_cntr;
18686 const char *_nl_expand_alias (const char *);
18690 bindtextdomain ("", "");
18691 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18696 if ac_fn_c_try_link "$LINENO"; then :
18697 LIBINTL="$LIBINTL $LIBICONV"
18698 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18699 gt_cv_func_gnugettext1_libintl=yes
18702 rm -f core conftest.err conftest.$ac_objext \
18703 conftest$ac_exeext conftest.$ac_ext
18705 CPPFLAGS="$gt_save_CPPFLAGS"
18706 LIBS="$gt_save_LIBS"
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18709 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18712 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18713 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18714 && test "$PACKAGE" != gettext-runtime \
18715 && test "$PACKAGE" != gettext-tools; }; then
18716 gt_use_preinstalled_gnugettext=yes
18725 if test -n "$INTL_MACOSX_LIBS"; then
18726 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18727 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18728 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18729 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18733 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18734 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18736 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18744 $as_echo_n "checking whether to use NLS... " >&6; }
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18746 $as_echo "$USE_NLS" >&6; }
18747 if test "$USE_NLS" = "yes"; then
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18749 $as_echo_n "checking where the gettext function comes from... " >&6; }
18750 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18751 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18752 gt_source="external libintl"
18757 gt_source="included intl directory"
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18760 $as_echo "$gt_source" >&6; }
18763 if test "$USE_NLS" = "yes"; then
18765 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18766 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18768 $as_echo_n "checking how to link with libintl... " >&6; }
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18770 $as_echo "$LIBINTL" >&6; }
18772 for element in $INCINTL; do
18774 for x in $CPPFLAGS; do
18776 acl_save_prefix="$prefix"
18777 prefix="$acl_final_prefix"
18778 acl_save_exec_prefix="$exec_prefix"
18779 exec_prefix="$acl_final_exec_prefix"
18781 exec_prefix="$acl_save_exec_prefix"
18782 prefix="$acl_save_prefix"
18784 if test "X$x" = "X$element"; then
18789 if test -z "$haveit"; then
18790 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18797 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18800 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18809 INTLLIBS="$LIBINTL"
18817 os_name=`uname -s 2>/dev/null`
18818 if test x${prefix} = xNONE ; then
18819 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18820 sysconfdir=/etc/bacula
18823 if test `eval echo ${libdir}` = NONE/lib ; then
18826 os_processor=`uname -p 2>/dev/null`
18827 case ${os_processor} in
18842 if test `eval echo ${includedir}` = NONE/include ; then
18843 includedir=/usr/include
18846 if test `eval echo ${datarootdir}` = NONE/share ; then
18847 datarootdir=/usr/share
18852 if test x${exec_prefix} = xNONE ; then
18853 exec_prefix=${prefix}
18856 sysconfdir=`eval echo ${sysconfdir}`
18857 datarootdir=`eval echo ${datarootdir}`
18858 docdir=`eval echo ${docdir}`
18859 htmldir=`eval echo ${htmldir}`
18860 libdir=`eval echo ${libdir}`
18861 includedir=`eval echo ${includedir}`
18862 localedir=`eval echo ${datarootdir}/locale`
18863 cat >>confdefs.h <<_ACEOF
18864 #define SYSCONFDIR "$sysconfdir"
18867 cat >>confdefs.h <<_ACEOF
18868 #define LOCALEDIR "$localedir"
18872 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18873 sbindir=${exec_prefix}/sbin
18875 sbindir=`eval echo ${sbindir}`
18877 if test x$mandir = x'${prefix}/man' ; then
18878 mandir=/usr/share/man
18881 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18882 htmldir=`eval echo ${docdir}html`
18885 if test x$docdir = x'/usr/share/doc/' ; then
18886 docdir=`eval echo ${docdir}bacula`
18890 for ac_prog in msgfmt
18892 # Extract the first word of "$ac_prog", so it can be a program name with args.
18893 set dummy $ac_prog; ac_word=$2
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18895 $as_echo_n "checking for $ac_word... " >&6; }
18896 if ${ac_cv_path_MSGFMT+:} false; then :
18897 $as_echo_n "(cached) " >&6
18901 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18905 for as_dir in $PATH
18908 test -z "$as_dir" && as_dir=.
18909 for ac_exec_ext in '' $ac_executable_extensions; do
18910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18911 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18922 MSGFMT=$ac_cv_path_MSGFMT
18923 if test -n "$MSGFMT"; then
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18925 $as_echo "$MSGFMT" >&6; }
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18928 $as_echo "no" >&6; }
18932 test -n "$MSGFMT" && break
18934 test -n "$MSGFMT" || MSGFMT="no"
18936 if test "$MSGFMT" = "no"
18938 echo 'msgfmt program not found, disabling NLS !'
18940 USE_INCLUDED_LIBINTL=no
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18944 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18945 if ${ac_cv_gnu_library_2+:} false; then :
18946 $as_echo_n "(cached) " >&6
18948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18949 /* end confdefs.h. */
18951 #include <features.h>
18952 #ifdef __GNU_LIBRARY__
18953 #if (__GLIBC__ >= 2)
18959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18960 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18961 ac_cv_gnu_library_2=yes
18963 ac_cv_gnu_library_2=no
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
18971 $as_echo "$ac_cv_gnu_library_2" >&6; }
18973 GLIBC2="$ac_cv_gnu_library_2"
18976 if test -n "$ac_tool_prefix"; then
18977 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18978 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18980 $as_echo_n "checking for $ac_word... " >&6; }
18981 if ${ac_cv_prog_RANLIB+:} false; then :
18982 $as_echo_n "(cached) " >&6
18984 if test -n "$RANLIB"; then
18985 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18988 for as_dir in $PATH
18991 test -z "$as_dir" && as_dir=.
18992 for ac_exec_ext in '' $ac_executable_extensions; do
18993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18994 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19004 RANLIB=$ac_cv_prog_RANLIB
19005 if test -n "$RANLIB"; then
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19007 $as_echo "$RANLIB" >&6; }
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19010 $as_echo "no" >&6; }
19015 if test -z "$ac_cv_prog_RANLIB"; then
19016 ac_ct_RANLIB=$RANLIB
19017 # Extract the first word of "ranlib", so it can be a program name with args.
19018 set dummy ranlib; ac_word=$2
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19020 $as_echo_n "checking for $ac_word... " >&6; }
19021 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19022 $as_echo_n "(cached) " >&6
19024 if test -n "$ac_ct_RANLIB"; then
19025 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19028 for as_dir in $PATH
19031 test -z "$as_dir" && as_dir=.
19032 for ac_exec_ext in '' $ac_executable_extensions; do
19033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19034 ac_cv_prog_ac_ct_RANLIB="ranlib"
19035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19044 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19045 if test -n "$ac_ct_RANLIB"; then
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19047 $as_echo "$ac_ct_RANLIB" >&6; }
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19050 $as_echo "no" >&6; }
19053 if test "x$ac_ct_RANLIB" = x; then
19056 case $cross_compiling:$ac_tool_warned in
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19060 ac_tool_warned=yes ;;
19062 RANLIB=$ac_ct_RANLIB
19065 RANLIB="$ac_cv_prog_RANLIB"
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19070 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19071 if ${ac_cv_lib_cposix_strerror+:} false; then :
19072 $as_echo_n "(cached) " >&6
19074 ac_check_lib_save_LIBS=$LIBS
19075 LIBS="-lcposix $LIBS"
19076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h. */
19079 /* Override any GCC internal prototype to avoid an error.
19080 Use char because int might match the return type of a GCC
19081 builtin and then its argument prototype would still apply. */
19089 return strerror ();
19094 if ac_fn_c_try_link "$LINENO"; then :
19095 ac_cv_lib_cposix_strerror=yes
19097 ac_cv_lib_cposix_strerror=no
19099 rm -f core conftest.err conftest.$ac_objext \
19100 conftest$ac_exeext conftest.$ac_ext
19101 LIBS=$ac_check_lib_save_LIBS
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19104 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19105 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19106 LIBS="$LIBS -lcposix"
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19112 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19113 if ${ac_cv_c_const+:} false; then :
19114 $as_echo_n "(cached) " >&6
19116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19117 /* end confdefs.h. */
19122 /* FIXME: Include the comments suggested by Paul. */
19123 #ifndef __cplusplus
19124 /* Ultrix mips cc rejects this. */
19125 typedef int charset[2];
19127 /* SunOS 4.1.1 cc rejects this. */
19128 char const *const *pcpcc;
19130 /* NEC SVR4.0.2 mips cc rejects this. */
19131 struct point {int x, y;};
19132 static struct point const zero = {0,0};
19133 /* AIX XL C 1.02.0.0 rejects this.
19134 It does not let you subtract one const X* pointer from another in
19135 an arm of an if-expression whose if-part is not a constant
19137 const char *g = "string";
19138 pcpcc = &g + (g ? g-g : 0);
19139 /* HPUX 7.0 cc rejects these. */
19141 ppc = (char**) pcpcc;
19142 pcpcc = (char const *const *) ppc;
19143 { /* SCO 3.2v4 cc rejects this. */
19145 char const *s = 0 ? (char *) 0 : (char const *) 0;
19150 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19151 int x[] = {25, 17};
19152 const int *foo = &x[0];
19155 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19156 typedef const int *iptr;
19160 { /* AIX XL C 1.02.0.0 rejects this saying
19161 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19162 struct s { int j; const int *ap[3]; };
19163 struct s *b; b->j = 5;
19165 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19166 const int foo = 10;
19167 if (!foo) return 0;
19169 return !cs[0] && !zero.x;
19176 if ac_fn_c_try_compile "$LINENO"; then :
19181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19184 $as_echo "$ac_cv_c_const" >&6; }
19185 if test $ac_cv_c_const = no; then
19187 $as_echo "#define const /**/" >>confdefs.h
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19193 $as_echo_n "checking for signed... " >&6; }
19194 if ${bh_cv_c_signed+:} false; then :
19195 $as_echo_n "(cached) " >&6
19197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19198 /* end confdefs.h. */
19208 if ac_fn_c_try_compile "$LINENO"; then :
19213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19216 $as_echo "$bh_cv_c_signed" >&6; }
19217 if test $bh_cv_c_signed = no; then
19219 $as_echo "#define signed /**/" >>confdefs.h
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19224 $as_echo_n "checking for inline... " >&6; }
19225 if ${ac_cv_c_inline+:} false; then :
19226 $as_echo_n "(cached) " >&6
19229 for ac_kw in inline __inline__ __inline; do
19230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231 /* end confdefs.h. */
19232 #ifndef __cplusplus
19234 static $ac_kw foo_t static_foo () {return 0; }
19235 $ac_kw foo_t foo () {return 0; }
19239 if ac_fn_c_try_compile "$LINENO"; then :
19240 ac_cv_c_inline=$ac_kw
19242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19243 test "$ac_cv_c_inline" != no && break
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19248 $as_echo "$ac_cv_c_inline" >&6; }
19250 case $ac_cv_c_inline in
19253 case $ac_cv_c_inline in
19255 *) ac_val=$ac_cv_c_inline;;
19257 cat >>confdefs.h <<_ACEOF
19258 #ifndef __cplusplus
19259 #define inline $ac_val
19265 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19266 if test "x$ac_cv_type_off_t" = xyes; then :
19270 cat >>confdefs.h <<_ACEOF
19271 #define off_t long int
19276 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19277 if test "x$ac_cv_type_size_t" = xyes; then :
19281 cat >>confdefs.h <<_ACEOF
19282 #define size_t unsigned int
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19289 $as_echo_n "checking for long long... " >&6; }
19290 if ${ac_cv_type_long_long+:} false; then :
19291 $as_echo_n "(cached) " >&6
19293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19294 /* end confdefs.h. */
19295 long long ll = 1LL; int i = 63;
19299 long long llmax = (long long) -1;
19300 return ll << i | ll >> i | llmax / ll | llmax % ll;
19305 if ac_fn_c_try_link "$LINENO"; then :
19306 ac_cv_type_long_long=yes
19308 ac_cv_type_long_long=no
19310 rm -f core conftest.err conftest.$ac_objext \
19311 conftest$ac_exeext conftest.$ac_ext
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19314 $as_echo "$ac_cv_type_long_long" >&6; }
19315 if test $ac_cv_type_long_long = yes; then
19317 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19323 $as_echo_n "checking for long double... " >&6; }
19324 if ${gt_cv_c_long_double+:} false; then :
19325 $as_echo_n "(cached) " >&6
19327 if test "$GCC" = yes; then
19328 gt_cv_c_long_double=yes
19330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h. */
19333 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19334 long double foo = 0.0;
19335 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19336 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19346 if ac_fn_c_try_compile "$LINENO"; then :
19347 gt_cv_c_long_double=yes
19349 gt_cv_c_long_double=no
19351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19355 $as_echo "$gt_cv_c_long_double" >&6; }
19356 if test $gt_cv_c_long_double = yes; then
19358 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19364 $as_echo_n "checking for wchar_t... " >&6; }
19365 if ${gt_cv_c_wchar_t+:} false; then :
19366 $as_echo_n "(cached) " >&6
19368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19369 /* end confdefs.h. */
19370 #include <stddef.h>
19371 wchar_t foo = (wchar_t)'\0';
19380 if ac_fn_c_try_compile "$LINENO"; then :
19381 gt_cv_c_wchar_t=yes
19385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19388 $as_echo "$gt_cv_c_wchar_t" >&6; }
19389 if test $gt_cv_c_wchar_t = yes; then
19391 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19397 $as_echo_n "checking for wint_t... " >&6; }
19398 if ${gt_cv_c_wint_t+:} false; then :
19399 $as_echo_n "(cached) " >&6
19401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402 /* end confdefs.h. */
19404 wint_t foo = (wchar_t)'\0';
19413 if ac_fn_c_try_compile "$LINENO"; then :
19418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19421 $as_echo "$gt_cv_c_wint_t" >&6; }
19422 if test $gt_cv_c_wint_t = yes; then
19424 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19430 $as_echo_n "checking for inttypes.h... " >&6; }
19431 if ${gl_cv_header_inttypes_h+:} false; then :
19432 $as_echo_n "(cached) " >&6
19434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19435 /* end confdefs.h. */
19436 #include <sys/types.h>
19437 #include <inttypes.h>
19441 uintmax_t i = (uintmax_t) -1;
19446 if ac_fn_c_try_compile "$LINENO"; then :
19447 gl_cv_header_inttypes_h=yes
19449 gl_cv_header_inttypes_h=no
19451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19454 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19455 if test $gl_cv_header_inttypes_h = yes; then
19457 cat >>confdefs.h <<_ACEOF
19458 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19465 $as_echo_n "checking for stdint.h... " >&6; }
19466 if ${gl_cv_header_stdint_h+:} false; then :
19467 $as_echo_n "(cached) " >&6
19469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19470 /* end confdefs.h. */
19471 #include <sys/types.h>
19472 #include <stdint.h>
19476 uintmax_t i = (uintmax_t) -1;
19481 if ac_fn_c_try_compile "$LINENO"; then :
19482 gl_cv_header_stdint_h=yes
19484 gl_cv_header_stdint_h=no
19486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19489 $as_echo "$gl_cv_header_stdint_h" >&6; }
19490 if test $gl_cv_header_stdint_h = yes; then
19492 cat >>confdefs.h <<_ACEOF
19493 #define HAVE_STDINT_H_WITH_UINTMAX 1
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19502 $as_echo_n "checking for intmax_t... " >&6; }
19503 if ${gt_cv_c_intmax_t+:} false; then :
19504 $as_echo_n "(cached) " >&6
19506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h. */
19509 #include <stddef.h>
19510 #include <stdlib.h>
19511 #if HAVE_STDINT_H_WITH_UINTMAX
19512 #include <stdint.h>
19514 #if HAVE_INTTYPES_H_WITH_UINTMAX
19515 #include <inttypes.h>
19526 if ac_fn_c_try_compile "$LINENO"; then :
19527 gt_cv_c_intmax_t=yes
19529 gt_cv_c_intmax_t=no
19531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19534 $as_echo "$gt_cv_c_intmax_t" >&6; }
19535 if test $gt_cv_c_intmax_t = yes; then
19537 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19544 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19545 if ${gt_cv_func_printf_posix+:} false; then :
19546 $as_echo_n "(cached) " >&6
19549 if test "$cross_compiling" = yes; then :
19551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19552 /* end confdefs.h. */
19554 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19560 $EGREP "notposix" >/dev/null 2>&1; then :
19561 gt_cv_func_printf_posix="guessing no"
19563 gt_cv_func_printf_posix="guessing yes"
19569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19570 /* end confdefs.h. */
19573 #include <string.h>
19574 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19575 dollar expansion (possibly an autoconf bug). */
19576 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19577 static char buf[100];
19580 sprintf (buf, format, 33, 55);
19581 return (strcmp (buf, "55 33") != 0);
19584 if ac_fn_c_try_run "$LINENO"; then :
19585 gt_cv_func_printf_posix=yes
19587 gt_cv_func_printf_posix=no
19589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19590 conftest.$ac_objext conftest.beam conftest.$ac_ext
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19596 $as_echo "$gt_cv_func_printf_posix" >&6; }
19597 case $gt_cv_func_printf_posix in
19600 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19605 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19606 # for constant arguments. Useless!
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19608 $as_echo_n "checking for working alloca.h... " >&6; }
19609 if ${ac_cv_working_alloca_h+:} false; then :
19610 $as_echo_n "(cached) " >&6
19612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19613 /* end confdefs.h. */
19614 #include <alloca.h>
19618 char *p = (char *) alloca (2 * sizeof (int));
19624 if ac_fn_c_try_link "$LINENO"; then :
19625 ac_cv_working_alloca_h=yes
19627 ac_cv_working_alloca_h=no
19629 rm -f core conftest.err conftest.$ac_objext \
19630 conftest$ac_exeext conftest.$ac_ext
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19633 $as_echo "$ac_cv_working_alloca_h" >&6; }
19634 if test $ac_cv_working_alloca_h = yes; then
19636 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19641 $as_echo_n "checking for alloca... " >&6; }
19642 if ${ac_cv_func_alloca_works+:} false; then :
19643 $as_echo_n "(cached) " >&6
19645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19646 /* end confdefs.h. */
19648 # define alloca __builtin_alloca
19651 # include <malloc.h>
19652 # define alloca _alloca
19654 # ifdef HAVE_ALLOCA_H
19655 # include <alloca.h>
19660 # ifndef alloca /* predefined by HP cc +Olibcalls */
19661 void *alloca (size_t);
19671 char *p = (char *) alloca (1);
19677 if ac_fn_c_try_link "$LINENO"; then :
19678 ac_cv_func_alloca_works=yes
19680 ac_cv_func_alloca_works=no
19682 rm -f core conftest.err conftest.$ac_objext \
19683 conftest$ac_exeext conftest.$ac_ext
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19686 $as_echo "$ac_cv_func_alloca_works" >&6; }
19688 if test $ac_cv_func_alloca_works = yes; then
19690 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19693 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19694 # that cause trouble. Some versions do not even contain alloca or
19695 # contain a buggy version. If you still want to use their alloca,
19696 # use ar to extract alloca.o from them instead of compiling alloca.c.
19698 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19700 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19704 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19705 if ${ac_cv_os_cray+:} false; then :
19706 $as_echo_n "(cached) " >&6
19708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19709 /* end confdefs.h. */
19710 #if defined CRAY && ! defined CRAY2
19717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19718 $EGREP "webecray" >/dev/null 2>&1; then :
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19727 $as_echo "$ac_cv_os_cray" >&6; }
19728 if test $ac_cv_os_cray = yes; then
19729 for ac_func in _getb67 GETB67 getb67; do
19730 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19731 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19732 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19734 cat >>confdefs.h <<_ACEOF
19735 #define CRAY_STACKSEG_END $ac_func
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19745 $as_echo_n "checking stack direction for C alloca... " >&6; }
19746 if ${ac_cv_c_stack_direction+:} false; then :
19747 $as_echo_n "(cached) " >&6
19749 if test "$cross_compiling" = yes; then :
19750 ac_cv_c_stack_direction=0
19752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19753 /* end confdefs.h. */
19754 $ac_includes_default
19756 find_stack_direction ()
19758 static char *addr = 0;
19763 return find_stack_direction ();
19766 return (&dummy > addr) ? 1 : -1;
19772 return find_stack_direction () < 0;
19775 if ac_fn_c_try_run "$LINENO"; then :
19776 ac_cv_c_stack_direction=1
19778 ac_cv_c_stack_direction=-1
19780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19781 conftest.$ac_objext conftest.beam conftest.$ac_ext
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19786 $as_echo "$ac_cv_c_stack_direction" >&6; }
19787 cat >>confdefs.h <<_ACEOF
19788 #define STACK_DIRECTION $ac_cv_c_stack_direction
19797 for ac_header in $ac_header_list
19799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19800 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19802 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19803 cat >>confdefs.h <<_ACEOF
19804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19818 for ac_func in getpagesize
19820 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19821 if test "x$ac_cv_func_getpagesize" = xyes; then :
19822 cat >>confdefs.h <<_ACEOF
19823 #define HAVE_GETPAGESIZE 1
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19830 $as_echo_n "checking for working mmap... " >&6; }
19831 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19832 $as_echo_n "(cached) " >&6
19834 if test "$cross_compiling" = yes; then :
19835 ac_cv_func_mmap_fixed_mapped=no
19837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19838 /* end confdefs.h. */
19839 $ac_includes_default
19840 /* malloc might have been renamed as rpl_malloc. */
19843 /* Thanks to Mike Haertel and Jim Avera for this test.
19844 Here is a matrix of mmap possibilities:
19845 mmap private not fixed
19846 mmap private fixed at somewhere currently unmapped
19847 mmap private fixed at somewhere already mapped
19848 mmap shared not fixed
19849 mmap shared fixed at somewhere currently unmapped
19850 mmap shared fixed at somewhere already mapped
19851 For private mappings, we should verify that changes cannot be read()
19852 back from the file, nor mmap's back from the file at a different
19853 address. (There have been systems where private was not correctly
19854 implemented like the infamous i386 svr4.0, and systems where the
19855 VM page cache was not coherent with the file system buffer cache
19856 like early versions of FreeBSD and possibly contemporary NetBSD.)
19857 For shared mappings, we should conversely verify that changes get
19858 propagated back to all the places they're supposed to be.
19860 Grep wants private fixed already mapped.
19861 The main things grep needs to know about mmap are:
19862 * does it exist and is it safe to write into the mmap'd area
19863 * how to use it (BSD variants) */
19866 #include <sys/mman.h>
19868 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19872 /* This mess was copied from the GNU getpagesize.h. */
19873 #ifndef HAVE_GETPAGESIZE
19874 # ifdef _SC_PAGESIZE
19875 # define getpagesize() sysconf(_SC_PAGESIZE)
19876 # else /* no _SC_PAGESIZE */
19877 # ifdef HAVE_SYS_PARAM_H
19878 # include <sys/param.h>
19879 # ifdef EXEC_PAGESIZE
19880 # define getpagesize() EXEC_PAGESIZE
19881 # else /* no EXEC_PAGESIZE */
19883 # define getpagesize() NBPG * CLSIZE
19886 # endif /* no CLSIZE */
19887 # else /* no NBPG */
19889 # define getpagesize() NBPC
19890 # else /* no NBPC */
19892 # define getpagesize() PAGESIZE
19893 # endif /* PAGESIZE */
19894 # endif /* no NBPC */
19895 # endif /* no NBPG */
19896 # endif /* no EXEC_PAGESIZE */
19897 # else /* no HAVE_SYS_PARAM_H */
19898 # define getpagesize() 8192 /* punt totally */
19899 # endif /* no HAVE_SYS_PARAM_H */
19900 # endif /* no _SC_PAGESIZE */
19902 #endif /* no HAVE_GETPAGESIZE */
19907 char *data, *data2, *data3;
19908 const char *cdata2;
19912 pagesize = getpagesize ();
19914 /* First, make a file with some known garbage in it. */
19915 data = (char *) malloc (pagesize);
19918 for (i = 0; i < pagesize; ++i)
19919 *(data + i) = rand ();
19921 fd = creat ("conftest.mmap", 0600);
19924 if (write (fd, data, pagesize) != pagesize)
19928 /* Next, check that the tail of a page is zero-filled. File must have
19929 non-zero length, otherwise we risk SIGBUS for entire page. */
19930 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19934 if (write (fd2, cdata2, 1) != 1)
19936 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19937 if (data2 == MAP_FAILED)
19939 for (i = 0; i < pagesize; ++i)
19943 if (munmap (data2, pagesize))
19946 /* Next, try to mmap the file at a fixed address which already has
19947 something else allocated at it. If we can, also make sure that
19948 we see the same garbage. */
19949 fd = open ("conftest.mmap", O_RDWR);
19952 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19953 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19955 for (i = 0; i < pagesize; ++i)
19956 if (*(data + i) != *(data2 + i))
19959 /* Finally, make sure that changes to the mapped area do not
19960 percolate back to the file as seen by read(). (This is a bug on
19961 some variants of i386 svr4.0.) */
19962 for (i = 0; i < pagesize; ++i)
19963 *(data2 + i) = *(data2 + i) + 1;
19964 data3 = (char *) malloc (pagesize);
19967 if (read (fd, data3, pagesize) != pagesize)
19969 for (i = 0; i < pagesize; ++i)
19970 if (*(data + i) != *(data3 + i))
19976 if ac_fn_c_try_run "$LINENO"; then :
19977 ac_cv_func_mmap_fixed_mapped=yes
19979 ac_cv_func_mmap_fixed_mapped=no
19981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19982 conftest.$ac_objext conftest.beam conftest.$ac_ext
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19987 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19988 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19990 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19993 rm -f conftest.mmap conftest.txt
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
19997 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
19998 if ${ac_cv_gnu_library_2_1+:} false; then :
19999 $as_echo_n "(cached) " >&6
20001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20002 /* end confdefs.h. */
20004 #include <features.h>
20005 #ifdef __GNU_LIBRARY__
20006 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20013 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20014 ac_cv_gnu_library_2_1=yes
20016 ac_cv_gnu_library_2_1=no
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20024 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20026 GLIBC21="$ac_cv_gnu_library_2_1"
20031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20032 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20033 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20034 $as_echo_n "(cached) " >&6
20037 if test "$cross_compiling" = yes; then :
20039 # Guess based on the CPU.
20040 case "$host_cpu" in
20041 alpha* | i3456786 | m68k | s390*)
20042 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20044 gt_cv_int_divbyzero_sigfpe="guessing no";;
20048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20049 /* end confdefs.h. */
20051 #include <stdlib.h>
20052 #include <signal.h>
20056 sigfpe_handler (int sig)
20058 sigfpe_handler (sig) int sig;
20061 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20062 exit (sig != SIGFPE);
20072 signal (SIGFPE, sigfpe_handler);
20073 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20074 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20075 signal (SIGTRAP, sigfpe_handler);
20077 /* Linux/SPARC yields signal SIGILL. */
20078 #if defined (__sparc__) && defined (__linux__)
20079 signal (SIGILL, sigfpe_handler);
20088 if ac_fn_c_try_run "$LINENO"; then :
20089 gt_cv_int_divbyzero_sigfpe=yes
20091 gt_cv_int_divbyzero_sigfpe=no
20093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20094 conftest.$ac_objext conftest.beam conftest.$ac_ext
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20100 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20101 case "$gt_cv_int_divbyzero_sigfpe" in
20106 cat >>confdefs.h <<_ACEOF
20107 #define INTDIV0_RAISES_SIGFPE $value
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20113 $as_echo_n "checking for unsigned long long... " >&6; }
20114 if ${ac_cv_type_unsigned_long_long+:} false; then :
20115 $as_echo_n "(cached) " >&6
20117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20118 /* end confdefs.h. */
20119 unsigned long long ull = 1ULL; int i = 63;
20123 unsigned long long ullmax = (unsigned long long) -1;
20124 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20129 if ac_fn_c_try_link "$LINENO"; then :
20130 ac_cv_type_unsigned_long_long=yes
20132 ac_cv_type_unsigned_long_long=no
20134 rm -f core conftest.err conftest.$ac_objext \
20135 conftest$ac_exeext conftest.$ac_ext
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20138 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20139 if test $ac_cv_type_unsigned_long_long = yes; then
20141 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20148 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20150 test $ac_cv_type_unsigned_long_long = yes \
20151 && ac_type='unsigned long long' \
20152 || ac_type='unsigned long'
20154 cat >>confdefs.h <<_ACEOF
20155 #define uintmax_t $ac_type
20160 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20166 $as_echo_n "checking for inttypes.h... " >&6; }
20167 if ${gt_cv_header_inttypes_h+:} false; then :
20168 $as_echo_n "(cached) " >&6
20171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20172 /* end confdefs.h. */
20173 #include <sys/types.h>
20174 #include <inttypes.h>
20183 if ac_fn_c_try_compile "$LINENO"; then :
20184 gt_cv_header_inttypes_h=yes
20186 gt_cv_header_inttypes_h=no
20188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20192 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20193 if test $gt_cv_header_inttypes_h = yes; then
20195 cat >>confdefs.h <<_ACEOF
20196 #define HAVE_INTTYPES_H 1
20203 if test $gt_cv_header_inttypes_h = yes; then
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20205 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20206 if ${gt_cv_inttypes_pri_broken+:} false; then :
20207 $as_echo_n "(cached) " >&6
20210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20211 /* end confdefs.h. */
20212 #include <inttypes.h>
20225 if ac_fn_c_try_compile "$LINENO"; then :
20226 gt_cv_inttypes_pri_broken=no
20228 gt_cv_inttypes_pri_broken=yes
20230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20234 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20236 if test "$gt_cv_inttypes_pri_broken" = yes; then
20238 cat >>confdefs.h <<_ACEOF
20239 #define PRI_MACROS_BROKEN 1
20245 for ac_header in stdint.h
20247 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20248 if test "x$ac_cv_header_stdint_h" = xyes; then :
20249 cat >>confdefs.h <<_ACEOF
20250 #define HAVE_STDINT_H 1
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20258 $as_echo_n "checking for SIZE_MAX... " >&6; }
20260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20261 /* end confdefs.h. */
20263 #include <limits.h>
20265 #include <stdint.h>
20272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20273 $EGREP "Found it" >/dev/null 2>&1; then :
20278 if test -z "$result"; then
20279 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20286 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20293 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20300 if test "$fits_in_uint" = 1; then
20301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20302 /* end confdefs.h. */
20303 #include <stddef.h>
20305 extern unsigned long foo;
20315 if ac_fn_c_try_compile "$LINENO"; then :
20318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20320 if test -z "$result"; then
20321 if test "$fits_in_uint" = 1; then
20322 result="$res_hi$res_lo"U
20324 result="$res_hi$res_lo"UL
20327 result='~(size_t)0'
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20331 $as_echo "$result" >&6; }
20332 if test "$result" != yes; then
20334 cat >>confdefs.h <<_ACEOF
20335 #define SIZE_MAX $result
20343 for ac_header in stdint.h
20345 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20346 if test "x$ac_cv_header_stdint_h" = xyes; then :
20347 cat >>confdefs.h <<_ACEOF
20348 #define HAVE_STDINT_H 1
20362 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20363 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20367 $as_echo "#define ptrdiff_t long" >>confdefs.h
20372 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20373 stdlib.h string.h unistd.h sys/param.h
20375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20376 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20377 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20378 cat >>confdefs.h <<_ACEOF
20379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20386 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20387 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20388 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20391 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20392 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20393 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20394 cat >>confdefs.h <<_ACEOF
20395 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20404 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20405 if ${ac_cv_have_decl__snprintf+:} false; then :
20406 $as_echo_n "(cached) " >&6
20408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20409 /* end confdefs.h. */
20416 char *p = (char *) _snprintf;
20423 if ac_fn_c_try_compile "$LINENO"; then :
20424 ac_cv_have_decl__snprintf=yes
20426 ac_cv_have_decl__snprintf=no
20428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20431 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20432 if test $ac_cv_have_decl__snprintf = yes; then
20438 cat >>confdefs.h <<_ACEOF
20439 #define HAVE_DECL__SNPRINTF $gt_value
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20445 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20446 if ${ac_cv_have_decl__snwprintf+:} false; then :
20447 $as_echo_n "(cached) " >&6
20449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20450 /* end confdefs.h. */
20457 char *p = (char *) _snwprintf;
20464 if ac_fn_c_try_compile "$LINENO"; then :
20465 ac_cv_have_decl__snwprintf=yes
20467 ac_cv_have_decl__snwprintf=no
20469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20472 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20473 if test $ac_cv_have_decl__snwprintf = yes; then
20479 cat >>confdefs.h <<_ACEOF
20480 #define HAVE_DECL__SNWPRINTF $gt_value
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20487 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20488 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20489 $as_echo_n "(cached) " >&6
20491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20492 /* end confdefs.h. */
20498 #ifndef feof_unlocked
20499 char *p = (char *) feof_unlocked;
20506 if ac_fn_c_try_compile "$LINENO"; then :
20507 ac_cv_have_decl_feof_unlocked=yes
20509 ac_cv_have_decl_feof_unlocked=no
20511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20514 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20515 if test $ac_cv_have_decl_feof_unlocked = yes; then
20521 cat >>confdefs.h <<_ACEOF
20522 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20528 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20529 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20530 $as_echo_n "(cached) " >&6
20532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20533 /* end confdefs.h. */
20539 #ifndef fgets_unlocked
20540 char *p = (char *) fgets_unlocked;
20547 if ac_fn_c_try_compile "$LINENO"; then :
20548 ac_cv_have_decl_fgets_unlocked=yes
20550 ac_cv_have_decl_fgets_unlocked=no
20552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20555 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20556 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20562 cat >>confdefs.h <<_ACEOF
20563 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20569 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20570 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20571 $as_echo_n "(cached) " >&6
20573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20574 /* end confdefs.h. */
20580 #ifndef getc_unlocked
20581 char *p = (char *) getc_unlocked;
20588 if ac_fn_c_try_compile "$LINENO"; then :
20589 ac_cv_have_decl_getc_unlocked=yes
20591 ac_cv_have_decl_getc_unlocked=no
20593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20596 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20597 if test $ac_cv_have_decl_getc_unlocked = yes; then
20603 cat >>confdefs.h <<_ACEOF
20604 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20609 case $gt_cv_func_printf_posix in
20610 *yes) HAVE_POSIX_PRINTF=1 ;;
20611 *) HAVE_POSIX_PRINTF=0 ;;
20614 if test "$ac_cv_func_asprintf" = yes; then
20620 if test "$ac_cv_func_snprintf" = yes; then
20626 if test "$ac_cv_func_wprintf" = yes; then
20638 am_save_CPPFLAGS="$CPPFLAGS"
20640 for element in $INCICONV; do
20642 for x in $CPPFLAGS; do
20644 acl_save_prefix="$prefix"
20645 prefix="$acl_final_prefix"
20646 acl_save_exec_prefix="$exec_prefix"
20647 exec_prefix="$acl_final_exec_prefix"
20649 exec_prefix="$acl_save_exec_prefix"
20650 prefix="$acl_save_prefix"
20652 if test "X$x" = "X$element"; then
20657 if test -z "$haveit"; then
20658 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20664 $as_echo_n "checking for iconv... " >&6; }
20665 if ${am_cv_func_iconv+:} false; then :
20666 $as_echo_n "(cached) " >&6
20669 am_cv_func_iconv="no, consider installing GNU libiconv"
20671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20672 /* end confdefs.h. */
20673 #include <stdlib.h>
20678 iconv_t cd = iconv_open("","");
20679 iconv(cd,NULL,NULL,NULL,NULL);
20685 if ac_fn_c_try_link "$LINENO"; then :
20686 am_cv_func_iconv=yes
20688 rm -f core conftest.err conftest.$ac_objext \
20689 conftest$ac_exeext conftest.$ac_ext
20690 if test "$am_cv_func_iconv" != yes; then
20691 am_save_LIBS="$LIBS"
20692 LIBS="$LIBS $LIBICONV"
20693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20694 /* end confdefs.h. */
20695 #include <stdlib.h>
20700 iconv_t cd = iconv_open("","");
20701 iconv(cd,NULL,NULL,NULL,NULL);
20707 if ac_fn_c_try_link "$LINENO"; then :
20708 am_cv_lib_iconv=yes
20709 am_cv_func_iconv=yes
20711 rm -f core conftest.err conftest.$ac_objext \
20712 conftest$ac_exeext conftest.$ac_ext
20713 LIBS="$am_save_LIBS"
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20718 $as_echo "$am_cv_func_iconv" >&6; }
20719 if test "$am_cv_func_iconv" = yes; then
20721 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20724 if test "$am_cv_lib_iconv" = yes; then
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20726 $as_echo_n "checking how to link with libiconv... " >&6; }
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20728 $as_echo "$LIBICONV" >&6; }
20730 CPPFLAGS="$am_save_CPPFLAGS"
20737 if test "$am_cv_func_iconv" = yes; then
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20739 $as_echo_n "checking for iconv declaration... " >&6; }
20740 if ${am_cv_proto_iconv+:} false; then :
20741 $as_echo_n "(cached) " >&6
20744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20745 /* end confdefs.h. */
20747 #include <stdlib.h>
20753 #if defined(__STDC__) || defined(__cplusplus)
20754 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20767 if ac_fn_c_try_compile "$LINENO"; then :
20768 am_cv_proto_iconv_arg1=""
20770 am_cv_proto_iconv_arg1="const"
20772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20773 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);"
20776 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20778 }$am_cv_proto_iconv" >&5
20780 }$am_cv_proto_iconv" >&6; }
20782 cat >>confdefs.h <<_ACEOF
20783 #define ICONV_CONST $am_cv_proto_iconv_arg1
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20790 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20791 if ${am_cv_langinfo_codeset+:} false; then :
20792 $as_echo_n "(cached) " >&6
20794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20795 /* end confdefs.h. */
20796 #include <langinfo.h>
20800 char* cs = nl_langinfo(CODESET);
20805 if ac_fn_c_try_link "$LINENO"; then :
20806 am_cv_langinfo_codeset=yes
20808 am_cv_langinfo_codeset=no
20810 rm -f core conftest.err conftest.$ac_objext \
20811 conftest$ac_exeext conftest.$ac_ext
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20815 $as_echo "$am_cv_langinfo_codeset" >&6; }
20816 if test $am_cv_langinfo_codeset = yes; then
20818 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20822 if test $ac_cv_header_locale_h = yes; then
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20825 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20826 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20827 $as_echo_n "(cached) " >&6
20829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20830 /* end confdefs.h. */
20831 #include <locale.h>
20840 if ac_fn_c_try_link "$LINENO"; then :
20841 gt_cv_val_LC_MESSAGES=yes
20843 gt_cv_val_LC_MESSAGES=no
20845 rm -f core conftest.err conftest.$ac_objext \
20846 conftest$ac_exeext conftest.$ac_ext
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20849 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20850 if test $gt_cv_val_LC_MESSAGES = yes; then
20852 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20858 if test -n "$INTL_MACOSX_LIBS"; then
20859 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20862 for ac_prog in bison
20864 # Extract the first word of "$ac_prog", so it can be a program name with args.
20865 set dummy $ac_prog; ac_word=$2
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20867 $as_echo_n "checking for $ac_word... " >&6; }
20868 if ${ac_cv_prog_INTLBISON+:} false; then :
20869 $as_echo_n "(cached) " >&6
20871 if test -n "$INTLBISON"; then
20872 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20875 for as_dir in $PATH
20878 test -z "$as_dir" && as_dir=.
20879 for ac_exec_ext in '' $ac_executable_extensions; do
20880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20881 ac_cv_prog_INTLBISON="$ac_prog"
20882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20891 INTLBISON=$ac_cv_prog_INTLBISON
20892 if test -n "$INTLBISON"; then
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20894 $as_echo "$INTLBISON" >&6; }
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20897 $as_echo "no" >&6; }
20901 test -n "$INTLBISON" && break
20904 if test -z "$INTLBISON"; then
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20908 $as_echo_n "checking version of bison... " >&6; }
20909 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20910 case $ac_prog_version in
20911 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20912 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20913 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20914 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20917 $as_echo "$ac_prog_version" >&6; }
20919 if test $ac_verc_fail = yes; then
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20939 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20940 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20941 $as_echo_n "(cached) " >&6
20943 gt_save_CPPFLAGS="$CPPFLAGS"
20944 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20945 gt_save_LIBS="$LIBS"
20946 LIBS="$LIBS -framework CoreFoundation"
20947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20948 /* end confdefs.h. */
20949 #include <CFPreferences.h>
20953 CFPreferencesCopyAppValue(NULL, NULL)
20958 if ac_fn_c_try_link "$LINENO"; then :
20959 gt_cv_func_CFPreferencesCopyAppValue=yes
20961 gt_cv_func_CFPreferencesCopyAppValue=no
20963 rm -f core conftest.err conftest.$ac_objext \
20964 conftest$ac_exeext conftest.$ac_ext
20965 CPPFLAGS="$gt_save_CPPFLAGS"
20966 LIBS="$gt_save_LIBS"
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20969 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20970 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20972 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20976 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20977 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
20978 $as_echo_n "(cached) " >&6
20980 gt_save_CPPFLAGS="$CPPFLAGS"
20981 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20982 gt_save_LIBS="$LIBS"
20983 LIBS="$LIBS -framework CoreFoundation"
20984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20985 /* end confdefs.h. */
20986 #include <CFLocale.h>
20990 CFLocaleCopyCurrent();
20995 if ac_fn_c_try_link "$LINENO"; then :
20996 gt_cv_func_CFLocaleCopyCurrent=yes
20998 gt_cv_func_CFLocaleCopyCurrent=no
21000 rm -f core conftest.err conftest.$ac_objext \
21001 conftest$ac_exeext conftest.$ac_ext
21002 CPPFLAGS="$gt_save_CPPFLAGS"
21003 LIBS="$gt_save_LIBS"
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21006 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21007 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21009 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21013 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21014 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21021 $as_echo_n "checking whether NLS is requested... " >&6; }
21022 # Check whether --enable-nls was given.
21023 if test "${enable_nls+set}" = set; then :
21024 enableval=$enable_nls; USE_NLS=$enableval
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21030 $as_echo "$USE_NLS" >&6; }
21035 BUILD_INCLUDED_LIBINTL=no
21036 USE_INCLUDED_LIBINTL=no
21042 if test "$USE_NLS" = "yes"; then
21043 gt_use_preinstalled_gnugettext=no
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21046 $as_echo_n "checking whether included gettext is requested... " >&6; }
21048 # Check whether --with-included-gettext was given.
21049 if test "${with_included_gettext+set}" = set; then :
21050 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21052 nls_cv_force_use_gnu_gettext=no
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21056 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21058 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21059 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21067 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21068 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21069 $as_echo_n "(cached) " >&6
21071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21072 /* end confdefs.h. */
21073 #include <libintl.h>
21074 extern int _nl_msg_cat_cntr;
21075 extern int *_nl_domain_bindings;
21079 bindtextdomain ("", "");
21080 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21085 if ac_fn_c_try_link "$LINENO"; then :
21086 gt_cv_func_gnugettext1_libc=yes
21088 gt_cv_func_gnugettext1_libc=no
21090 rm -f core conftest.err conftest.$ac_objext \
21091 conftest$ac_exeext conftest.$ac_ext
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21094 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21096 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21102 acl_save_prefix="$prefix"
21103 prefix="$acl_final_prefix"
21104 acl_save_exec_prefix="$exec_prefix"
21105 exec_prefix="$acl_final_exec_prefix"
21107 eval additional_includedir=\"$includedir\"
21108 eval additional_libdir=\"$libdir\"
21110 exec_prefix="$acl_save_exec_prefix"
21111 prefix="$acl_save_prefix"
21114 # Check whether --with-libintl-prefix was given.
21115 if test "${with_libintl_prefix+set}" = set; then :
21116 withval=$with_libintl_prefix;
21117 if test "X$withval" = "Xno"; then
21120 if test "X$withval" = "X"; then
21122 acl_save_prefix="$prefix"
21123 prefix="$acl_final_prefix"
21124 acl_save_exec_prefix="$exec_prefix"
21125 exec_prefix="$acl_final_exec_prefix"
21127 eval additional_includedir=\"$includedir\"
21128 eval additional_libdir=\"$libdir\"
21130 exec_prefix="$acl_save_exec_prefix"
21131 prefix="$acl_save_prefix"
21134 additional_includedir="$withval/include"
21135 additional_libdir="$withval/lib"
21146 names_already_handled=
21147 names_next_round='intl '
21148 while test -n "$names_next_round"; do
21149 names_this_round="$names_next_round"
21151 for name in $names_this_round; do
21153 for n in $names_already_handled; do
21154 if test "$n" = "$name"; then
21155 already_handled=yes
21159 if test -z "$already_handled"; then
21160 names_already_handled="$names_already_handled $name"
21161 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21162 eval value=\"\$HAVE_LIB$uppername\"
21163 if test -n "$value"; then
21164 if test "$value" = yes; then
21165 eval value=\"\$LIB$uppername\"
21166 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21167 eval value=\"\$LTLIB$uppername\"
21168 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21177 if test $use_additional = yes; then
21178 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21179 found_dir="$additional_libdir"
21180 found_so="$additional_libdir/lib$name.$shlibext"
21181 if test -f "$additional_libdir/lib$name.la"; then
21182 found_la="$additional_libdir/lib$name.la"
21185 if test -f "$additional_libdir/lib$name.$libext"; then
21186 found_dir="$additional_libdir"
21187 found_a="$additional_libdir/lib$name.$libext"
21188 if test -f "$additional_libdir/lib$name.la"; then
21189 found_la="$additional_libdir/lib$name.la"
21194 if test "X$found_dir" = "X"; then
21195 for x in $LDFLAGS $LTLIBINTL; do
21197 acl_save_prefix="$prefix"
21198 prefix="$acl_final_prefix"
21199 acl_save_exec_prefix="$exec_prefix"
21200 exec_prefix="$acl_final_exec_prefix"
21202 exec_prefix="$acl_save_exec_prefix"
21203 prefix="$acl_save_prefix"
21207 dir=`echo "X$x" | sed -e 's/^X-L//'`
21208 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21210 found_so="$dir/lib$name.$shlibext"
21211 if test -f "$dir/lib$name.la"; then
21212 found_la="$dir/lib$name.la"
21215 if test -f "$dir/lib$name.$libext"; then
21217 found_a="$dir/lib$name.$libext"
21218 if test -f "$dir/lib$name.la"; then
21219 found_la="$dir/lib$name.la"
21225 if test "X$found_dir" != "X"; then
21230 if test "X$found_dir" != "X"; then
21231 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21232 if test "X$found_so" != "X"; then
21233 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21234 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21237 for x in $ltrpathdirs; do
21238 if test "X$x" = "X$found_dir"; then
21243 if test -z "$haveit"; then
21244 ltrpathdirs="$ltrpathdirs $found_dir"
21246 if test "$hardcode_direct" = yes; then
21247 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21249 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21250 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21252 for x in $rpathdirs; do
21253 if test "X$x" = "X$found_dir"; then
21258 if test -z "$haveit"; then
21259 rpathdirs="$rpathdirs $found_dir"
21263 for x in $LDFLAGS $LIBINTL; do
21265 acl_save_prefix="$prefix"
21266 prefix="$acl_final_prefix"
21267 acl_save_exec_prefix="$exec_prefix"
21268 exec_prefix="$acl_final_exec_prefix"
21270 exec_prefix="$acl_save_exec_prefix"
21271 prefix="$acl_save_prefix"
21273 if test "X$x" = "X-L$found_dir"; then
21278 if test -z "$haveit"; then
21279 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21281 if test "$hardcode_minus_L" != no; then
21282 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21284 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21290 if test "X$found_a" != "X"; then
21291 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21293 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21296 additional_includedir=
21297 case "$found_dir" in
21299 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21300 additional_includedir="$basedir/include"
21303 if test "X$additional_includedir" != "X"; then
21304 if test "X$additional_includedir" != "X/usr/include"; then
21306 if test "X$additional_includedir" = "X/usr/local/include"; then
21307 if test -n "$GCC"; then
21309 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21313 if test -z "$haveit"; then
21314 for x in $CPPFLAGS $INCINTL; do
21316 acl_save_prefix="$prefix"
21317 prefix="$acl_final_prefix"
21318 acl_save_exec_prefix="$exec_prefix"
21319 exec_prefix="$acl_final_exec_prefix"
21321 exec_prefix="$acl_save_exec_prefix"
21322 prefix="$acl_save_prefix"
21324 if test "X$x" = "X-I$additional_includedir"; then
21329 if test -z "$haveit"; then
21330 if test -d "$additional_includedir"; then
21331 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21337 if test -n "$found_la"; then
21338 save_libdir="$libdir"
21339 case "$found_la" in
21340 */* | *\\*) . "$found_la" ;;
21341 *) . "./$found_la" ;;
21343 libdir="$save_libdir"
21344 for dep in $dependency_libs; do
21347 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21348 if test "X$additional_libdir" != "X/usr/lib"; then
21350 if test "X$additional_libdir" = "X/usr/local/lib"; then
21351 if test -n "$GCC"; then
21353 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21357 if test -z "$haveit"; then
21359 for x in $LDFLAGS $LIBINTL; do
21361 acl_save_prefix="$prefix"
21362 prefix="$acl_final_prefix"
21363 acl_save_exec_prefix="$exec_prefix"
21364 exec_prefix="$acl_final_exec_prefix"
21366 exec_prefix="$acl_save_exec_prefix"
21367 prefix="$acl_save_prefix"
21369 if test "X$x" = "X-L$additional_libdir"; then
21374 if test -z "$haveit"; then
21375 if test -d "$additional_libdir"; then
21376 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21380 for x in $LDFLAGS $LTLIBINTL; do
21382 acl_save_prefix="$prefix"
21383 prefix="$acl_final_prefix"
21384 acl_save_exec_prefix="$exec_prefix"
21385 exec_prefix="$acl_final_exec_prefix"
21387 exec_prefix="$acl_save_exec_prefix"
21388 prefix="$acl_save_prefix"
21390 if test "X$x" = "X-L$additional_libdir"; then
21395 if test -z "$haveit"; then
21396 if test -d "$additional_libdir"; then
21397 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21404 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21405 if test "$enable_rpath" != no; then
21407 for x in $rpathdirs; do
21408 if test "X$x" = "X$dir"; then
21413 if test -z "$haveit"; then
21414 rpathdirs="$rpathdirs $dir"
21417 for x in $ltrpathdirs; do
21418 if test "X$x" = "X$dir"; then
21423 if test -z "$haveit"; then
21424 ltrpathdirs="$ltrpathdirs $dir"
21429 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21432 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21435 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21436 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21442 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21443 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21449 if test "X$rpathdirs" != "X"; then
21450 if test -n "$hardcode_libdir_separator"; then
21452 for found_dir in $rpathdirs; do
21453 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21455 acl_save_libdir="$libdir"
21457 eval flag=\"$hardcode_libdir_flag_spec\"
21458 libdir="$acl_save_libdir"
21459 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21461 for found_dir in $rpathdirs; do
21462 acl_save_libdir="$libdir"
21463 libdir="$found_dir"
21464 eval flag=\"$hardcode_libdir_flag_spec\"
21465 libdir="$acl_save_libdir"
21466 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21470 if test "X$ltrpathdirs" != "X"; then
21471 for found_dir in $ltrpathdirs; do
21472 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21477 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21478 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21479 $as_echo_n "(cached) " >&6
21481 gt_save_CPPFLAGS="$CPPFLAGS"
21482 CPPFLAGS="$CPPFLAGS $INCINTL"
21483 gt_save_LIBS="$LIBS"
21484 LIBS="$LIBS $LIBINTL"
21485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21486 /* end confdefs.h. */
21487 #include <libintl.h>
21488 extern int _nl_msg_cat_cntr;
21493 const char *_nl_expand_alias (const char *);
21497 bindtextdomain ("", "");
21498 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21503 if ac_fn_c_try_link "$LINENO"; then :
21504 gt_cv_func_gnugettext1_libintl=yes
21506 gt_cv_func_gnugettext1_libintl=no
21508 rm -f core conftest.err conftest.$ac_objext \
21509 conftest$ac_exeext conftest.$ac_ext
21510 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21511 LIBS="$LIBS $LIBICONV"
21512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21513 /* end confdefs.h. */
21514 #include <libintl.h>
21515 extern int _nl_msg_cat_cntr;
21520 const char *_nl_expand_alias (const char *);
21524 bindtextdomain ("", "");
21525 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21530 if ac_fn_c_try_link "$LINENO"; then :
21531 LIBINTL="$LIBINTL $LIBICONV"
21532 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21533 gt_cv_func_gnugettext1_libintl=yes
21536 rm -f core conftest.err conftest.$ac_objext \
21537 conftest$ac_exeext conftest.$ac_ext
21539 CPPFLAGS="$gt_save_CPPFLAGS"
21540 LIBS="$gt_save_LIBS"
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21543 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21546 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21547 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21548 && test "$PACKAGE" != gettext-runtime \
21549 && test "$PACKAGE" != gettext-tools; }; then
21550 gt_use_preinstalled_gnugettext=yes
21558 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21559 nls_cv_use_gnu_gettext=yes
21563 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21564 BUILD_INCLUDED_LIBINTL=yes
21565 USE_INCLUDED_LIBINTL=yes
21566 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21567 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21568 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21572 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21573 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21578 if test -n "$INTL_MACOSX_LIBS"; then
21579 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21580 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21581 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21582 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21586 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21587 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21589 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21597 $as_echo_n "checking whether to use NLS... " >&6; }
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21599 $as_echo "$USE_NLS" >&6; }
21600 if test "$USE_NLS" = "yes"; then
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21602 $as_echo_n "checking where the gettext function comes from... " >&6; }
21603 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21604 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21605 gt_source="external libintl"
21610 gt_source="included intl directory"
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21613 $as_echo "$gt_source" >&6; }
21616 if test "$USE_NLS" = "yes"; then
21618 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21619 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21621 $as_echo_n "checking how to link with libintl... " >&6; }
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21623 $as_echo "$LIBINTL" >&6; }
21625 for element in $INCINTL; do
21627 for x in $CPPFLAGS; do
21629 acl_save_prefix="$prefix"
21630 prefix="$acl_final_prefix"
21631 acl_save_exec_prefix="$exec_prefix"
21632 exec_prefix="$acl_final_exec_prefix"
21634 exec_prefix="$acl_save_exec_prefix"
21635 prefix="$acl_save_prefix"
21637 if test "X$x" = "X$element"; then
21642 if test -z "$haveit"; then
21643 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21650 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21653 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21661 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21662 BUILD_INCLUDED_LIBINTL=yes
21669 nls_cv_header_intl=
21670 nls_cv_header_libgt=
21682 if test "$USE_INCLUDED_LIBINTL" = yes; then
21683 INTLOBJS="\$(GETTOBJS)"
21687 INTL_LIBTOOL_SUFFIX_PREFIX=
21691 INTLLIBS="$LIBINTL"
21700 support_smartalloc=yes
21701 support_readline=yes
21707 support_static_tools=no
21708 support_static_fd=no
21709 support_static_sd=no
21710 support_static_dir=no
21711 support_static_cons=no
21713 build_client_only=no
21717 batch_insert_db_backends=""
21721 # Check whether --enable-bat was given.
21722 if test "${enable_bat+set}" = set; then :
21723 enableval=$enable_bat;
21724 if test x$enableval = xyes; then
21726 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21736 if test x$support_bat = xyes; then
21737 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21739 if test $pkg = 0; then
21740 BAT_DIR=src/qt-console
21742 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21761 # Check whether --enable-smartalloc was given.
21762 if test "${enable_smartalloc+set}" = set; then :
21763 enableval=$enable_smartalloc;
21764 if test x$enableval = xno; then
21765 support_smartalloc=no
21772 if test x$support_smartalloc = xyes; then
21774 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21778 # Check whether --enable-lockmgr was given.
21779 if test "${enable_lockmgr+set}" = set; then :
21780 enableval=$enable_lockmgr;
21781 if test x$enableval = xyes; then
21782 support_lockmgr=yes
21789 if test x$support_lockmgr = xyes; then
21791 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21796 # Check whether --enable-static-tools was given.
21797 if test "${enable_static_tools+set}" = set; then :
21798 enableval=$enable_static_tools;
21799 if test x$enableval = xyes; then
21800 if test x$use_libtool = xyes; then
21801 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21802 please rerun configure with --disable-libtool" "$LINENO" 5
21804 support_static_tools=yes
21812 if test x$support_static_tools = xyes; then
21813 TTOOL_LDFLAGS="-static"
21817 # Check whether --enable-static-fd was given.
21818 if test "${enable_static_fd+set}" = set; then :
21819 enableval=$enable_static_fd;
21820 if test x$enableval = xyes; then
21821 if test x$use_libtool = xyes; then
21822 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21823 please rerun configure with --disable-libtool" "$LINENO" 5
21825 support_static_fd=yes
21833 if test x$support_static_fd = xyes; then
21834 STATIC_FD="static-bacula-fd"
21838 # Check whether --enable-static-sd was given.
21839 if test "${enable_static_sd+set}" = set; then :
21840 enableval=$enable_static_sd;
21841 if test x$enableval = xyes; then
21842 if test x$use_libtool = xyes; then
21843 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21844 please rerun configure with --disable-libtool" "$LINENO" 5
21846 support_static_sd=yes
21854 if test x$support_static_sd = xyes; then
21855 STATIC_SD="static-bacula-sd"
21859 # Check whether --enable-static-dir was given.
21860 if test "${enable_static_dir+set}" = set; then :
21861 enableval=$enable_static_dir;
21862 if test x$enableval = xyes; then
21863 if test x$use_libtool = xyes; then
21864 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21865 please rerun configure with --disable-libtool" "$LINENO" 5
21867 support_static_dir=yes
21875 if test x$support_static_dir = xyes; then
21876 STATIC_DIR="static-bacula-dir"
21880 # Check whether --enable-static-cons was given.
21881 if test "${enable_static_cons+set}" = set; then :
21882 enableval=$enable_static_cons;
21883 if test x$enableval = xyes; then
21884 if test x$use_libtool = xyes; then
21885 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21886 please rerun configure with --disable-libtool" "$LINENO" 5
21888 support_static_cons=yes
21896 if test x$support_static_cons = xyes; then
21897 STATIC_CONS="static-bconsole"
21901 # Check whether --enable-client-only was given.
21902 if test "${enable_client_only+set}" = set; then :
21903 enableval=$enable_client_only;
21904 if test x$enableval = xyes; then
21905 build_client_only=yes
21913 if test x$build_client_only = xno; then
21920 # Check whether --enable-build-dird was given.
21921 if test "${enable_build_dird+set}" = set; then :
21922 enableval=$enable_build_dird;
21923 if test x$enableval = xno; then
21930 if test x$build_dird = xyes; then
21931 DIRD_DIR="src/dird"
21932 DIR_TOOLS="DIRTOOLS"
21935 DIR_TOOLS="NODIRTOOLS"
21940 # Check whether --enable-build-stored was given.
21941 if test "${enable_build_stored+set}" = set; then :
21942 enableval=$enable_build_stored;
21943 if test x$enableval = xno; then
21950 if test x$build_stored = xyes; then
21951 STORED_DIR="src/stored"
21957 # Check whether --enable-conio was given.
21958 if test "${enable_conio+set}" = set; then :
21959 enableval=$enable_conio;
21960 if test x$enableval = xno; then
21970 # Check whether --enable-ipv6 was given.
21971 if test "${enable_ipv6+set}" = set; then :
21972 enableval=$enable_ipv6;
21973 if test x$enableval = xno; then
21981 if test x$support_ipv6 = xyes; then
21982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21983 /* end confdefs.h. */
21984 #include <sys/types.h>
21985 #include <sys/socket.h>
21986 #include <netinet/in.h>
21990 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21995 if ac_fn_c_try_link "$LINENO"; then :
22000 rm -f core conftest.err conftest.$ac_objext \
22001 conftest$ac_exeext conftest.$ac_ext
22004 if test x$support_ipv6 = xyes; then
22006 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22011 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22012 if test "x$ac_cv_header_curses_h" = xyes; then :
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22015 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22016 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22017 $as_echo_n "(cached) " >&6
22019 ac_check_lib_save_LIBS=$LIBS
22020 LIBS="-ltinfo $LIBS"
22021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22022 /* end confdefs.h. */
22024 /* Override any GCC internal prototype to avoid an error.
22025 Use char because int might match the return type of a GCC
22026 builtin and then its argument prototype would still apply. */
22039 if ac_fn_c_try_link "$LINENO"; then :
22040 ac_cv_lib_tinfo_tgetent=yes
22042 ac_cv_lib_tinfo_tgetent=no
22044 rm -f core conftest.err conftest.$ac_objext \
22045 conftest$ac_exeext conftest.$ac_ext
22046 LIBS=$ac_check_lib_save_LIBS
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22049 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22050 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22055 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22056 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22057 $as_echo_n "(cached) " >&6
22059 ac_check_lib_save_LIBS=$LIBS
22060 LIBS="-lncurses $LIBS"
22061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22062 /* end confdefs.h. */
22064 /* Override any GCC internal prototype to avoid an error.
22065 Use char because int might match the return type of a GCC
22066 builtin and then its argument prototype would still apply. */
22079 if ac_fn_c_try_link "$LINENO"; then :
22080 ac_cv_lib_ncurses_tgetent=yes
22082 ac_cv_lib_ncurses_tgetent=no
22084 rm -f core conftest.err conftest.$ac_objext \
22085 conftest$ac_exeext conftest.$ac_ext
22086 LIBS=$ac_check_lib_save_LIBS
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22089 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22090 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22091 TERM_LIB="-lncurses"
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22095 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22096 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22097 $as_echo_n "(cached) " >&6
22099 ac_check_lib_save_LIBS=$LIBS
22100 LIBS="-ltermcap $LIBS"
22101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22102 /* end confdefs.h. */
22104 /* Override any GCC internal prototype to avoid an error.
22105 Use char because int might match the return type of a GCC
22106 builtin and then its argument prototype would still apply. */
22119 if ac_fn_c_try_link "$LINENO"; then :
22120 ac_cv_lib_termcap_tgetent=yes
22122 ac_cv_lib_termcap_tgetent=no
22124 rm -f core conftest.err conftest.$ac_objext \
22125 conftest$ac_exeext conftest.$ac_ext
22126 LIBS=$ac_check_lib_save_LIBS
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22129 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22130 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22131 TERM_LIB="-ltermcap"
22142 for ac_header in curses.h
22144 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22145 if test "x$ac_cv_header_curses_h" = xyes; then :
22146 cat >>confdefs.h <<_ACEOF
22147 #define HAVE_CURSES_H 1
22154 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22155 if test "x$ac_cv_header_term_h" = xyes; then :
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22157 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22158 if ${ac_cv_lib_curses_tgetent+:} false; then :
22159 $as_echo_n "(cached) " >&6
22161 ac_check_lib_save_LIBS=$LIBS
22162 LIBS="-lcurses $LIBS"
22163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22164 /* end confdefs.h. */
22166 /* Override any GCC internal prototype to avoid an error.
22167 Use char because int might match the return type of a GCC
22168 builtin and then its argument prototype would still apply. */
22181 if ac_fn_c_try_link "$LINENO"; then :
22182 ac_cv_lib_curses_tgetent=yes
22184 ac_cv_lib_curses_tgetent=no
22186 rm -f core conftest.err conftest.$ac_objext \
22187 conftest$ac_exeext conftest.$ac_ext
22188 LIBS=$ac_check_lib_save_LIBS
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22191 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22192 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22193 TERM_LIB="-lcurses"
22207 if test x$support_conio = xyes; then
22208 if test x$TERM_LIB != x; then
22209 CONS_LIBS=$TERM_LIB
22213 support_readline=no
22215 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22218 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22223 # Check whether --enable-readline was given.
22224 if test "${enable_readline+set}" = set; then :
22225 enableval=$enable_readline;
22226 if test x$enableval = xno; then
22227 support_readline=no
22236 if test x$support_readline = xyes; then
22238 # Check whether --with-readline was given.
22239 if test "${with_readline+set}" = set; then :
22240 withval=$with_readline;
22241 case "$with_readline" in
22246 if test -f ${with_readline}/readline.h; then
22247 CONS_INC="-I${with_readline}"
22248 CONS_LDFLAGS="-L$with_readline"
22249 elif test -f ${with_readline}/include/readline/readline.h; then
22250 CONS_INC="-I${with_readline}/include/readline"
22251 CONS_LDFLAGS="-L${with_readline}/lib"
22252 with_readline="${with_readline}/include/readline"
22254 with_readline="/usr/include/readline"
22257 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22258 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22259 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22262 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22264 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22270 echo "readline.h not found. readline turned off ..."
22282 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22283 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22286 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22289 CONS_INC="-I/usr/include/readline"
22290 CONS_LIBS="-lreadline ${TERM_LIB}"
22294 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22295 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22296 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22299 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22302 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22303 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22304 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22305 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22310 echo "readline.h not found. readline turned off ..."
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22338 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22339 if ${ac_cv_header_stat_broken+:} false; then :
22340 $as_echo_n "(cached) " >&6
22342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22343 /* end confdefs.h. */
22344 #include <sys/types.h>
22345 #include <sys/stat.h>
22347 #if defined S_ISBLK && defined S_IFDIR
22348 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22351 #if defined S_ISBLK && defined S_IFCHR
22352 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22355 #if defined S_ISLNK && defined S_IFREG
22356 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22359 #if defined S_ISSOCK && defined S_IFREG
22360 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22364 if ac_fn_c_try_compile "$LINENO"; then :
22365 ac_cv_header_stat_broken=no
22367 ac_cv_header_stat_broken=yes
22369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22372 $as_echo "$ac_cv_header_stat_broken" >&6; }
22373 if test $ac_cv_header_stat_broken = yes; then
22375 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22379 ac_header_dirent=no
22380 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22381 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22383 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22384 if eval \${$as_ac_Header+:} false; then :
22385 $as_echo_n "(cached) " >&6
22387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22388 /* end confdefs.h. */
22389 #include <sys/types.h>
22401 if ac_fn_c_try_compile "$LINENO"; then :
22402 eval "$as_ac_Header=yes"
22404 eval "$as_ac_Header=no"
22406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22408 eval ac_res=\$$as_ac_Header
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22410 $as_echo "$ac_res" >&6; }
22411 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22412 cat >>confdefs.h <<_ACEOF
22413 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22416 ac_header_dirent=$ac_hdr; break
22420 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22421 if test $ac_header_dirent = dirent.h; then
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22423 $as_echo_n "checking for library containing opendir... " >&6; }
22424 if ${ac_cv_search_opendir+:} false; then :
22425 $as_echo_n "(cached) " >&6
22427 ac_func_search_save_LIBS=$LIBS
22428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22429 /* end confdefs.h. */
22431 /* Override any GCC internal prototype to avoid an error.
22432 Use char because int might match the return type of a GCC
22433 builtin and then its argument prototype would still apply. */
22446 for ac_lib in '' dir; do
22447 if test -z "$ac_lib"; then
22448 ac_res="none required"
22451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22453 if ac_fn_c_try_link "$LINENO"; then :
22454 ac_cv_search_opendir=$ac_res
22456 rm -f core conftest.err conftest.$ac_objext \
22458 if ${ac_cv_search_opendir+:} false; then :
22462 if ${ac_cv_search_opendir+:} false; then :
22465 ac_cv_search_opendir=no
22467 rm conftest.$ac_ext
22468 LIBS=$ac_func_search_save_LIBS
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22471 $as_echo "$ac_cv_search_opendir" >&6; }
22472 ac_res=$ac_cv_search_opendir
22473 if test "$ac_res" != no; then :
22474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22480 $as_echo_n "checking for library containing opendir... " >&6; }
22481 if ${ac_cv_search_opendir+:} false; then :
22482 $as_echo_n "(cached) " >&6
22484 ac_func_search_save_LIBS=$LIBS
22485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22486 /* end confdefs.h. */
22488 /* Override any GCC internal prototype to avoid an error.
22489 Use char because int might match the return type of a GCC
22490 builtin and then its argument prototype would still apply. */
22503 for ac_lib in '' x; do
22504 if test -z "$ac_lib"; then
22505 ac_res="none required"
22508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22510 if ac_fn_c_try_link "$LINENO"; then :
22511 ac_cv_search_opendir=$ac_res
22513 rm -f core conftest.err conftest.$ac_objext \
22515 if ${ac_cv_search_opendir+:} false; then :
22519 if ${ac_cv_search_opendir+:} false; then :
22522 ac_cv_search_opendir=no
22524 rm conftest.$ac_ext
22525 LIBS=$ac_func_search_save_LIBS
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22528 $as_echo "$ac_cv_search_opendir" >&6; }
22529 ac_res=$ac_cv_search_opendir
22530 if test "$ac_res" != no; then :
22531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22537 for ac_func in strcasecmp select setenv putenv tcgetattr
22539 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22540 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22541 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22542 cat >>confdefs.h <<_ACEOF
22543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22549 for ac_func in lstat lchown lchmod futimes fchmod fchown
22551 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22552 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22553 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22554 cat >>confdefs.h <<_ACEOF
22555 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22561 for ac_func in nanosleep nl_langinfo
22563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22564 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22565 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22566 cat >>confdefs.h <<_ACEOF
22567 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22573 for ac_header in varargs.h
22575 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22576 if test "x$ac_cv_header_varargs_h" = xyes; then :
22577 cat >>confdefs.h <<_ACEOF
22578 #define HAVE_VARARGS_H 1
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22588 $as_echo_n "checking for Python support... " >&6; }
22590 # Check whether --with-python was given.
22591 if test "${with_python+set}" = set; then :
22592 withval=$with_python;
22595 if test "$withval" != "no"; then
22596 if test "$withval" = "yes"; then
22597 if test -e /usr/bin/python-config ; then
22598 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22599 PYTHON_LIBS=`/usr/bin/python-config --libs`
22601 for python_root in /usr /usr/local /usr/sfw; do
22602 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python2.7 python3; do
22603 if test -f $python_root/include/${ver}/Python.h; then
22604 PYTHON_INCDIR=-I$python_root/include/${ver}
22605 if test -d $python_root/lib64/${ver}/config; then
22606 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22608 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22615 if test x$PYTHON_INCDIR = x; then
22616 if test -f $prefix/include/Python.h; then
22617 PYTHON_INCDIR=-I$prefix/include
22618 if test -d $prefix/lib64/config; then
22619 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22621 PYTHON_LIBS="-L$prefix/lib/config -lpython"
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22625 $as_echo "no" >&6; }
22626 as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
22631 if test -e $withval/bin/python-config ; then
22632 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22633 PYTHON_LIBS=`$withval/bin/python-config --libs`
22634 elif test -f $withval/Python.h; then
22635 PYTHON_INCDIR=-I$withval
22636 PYTHON_LIBS="-L$withval/config -lpython"
22637 elif test -f $withval/include/Python.h; then
22638 PYTHON_INCDIR=-I$withval/include
22639 if test -d $withval/lib64/config; then
22640 PYTHON_LIBS="-L$withval/lib64/config -lpython"
22642 PYTHON_LIBS="-L$withval/lib/config -lpython"
22644 elif test -f $withval/include/python/Python.h; then
22645 PYTHON_INCDIR=-I$withval/include/python
22646 if test -d $withval/lib64/python/config; then
22647 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22649 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22653 $as_echo "no" >&6; }
22654 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22658 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22661 $as_echo "yes" >&6; }
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22664 $as_echo "$as_me: checking for more Python libs" >&6;}
22665 saved_LIBS="$LIBS"; LIBS=
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22667 $as_echo_n "checking for library containing shm_open... " >&6; }
22668 if ${ac_cv_search_shm_open+:} false; then :
22669 $as_echo_n "(cached) " >&6
22671 ac_func_search_save_LIBS=$LIBS
22672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22673 /* end confdefs.h. */
22675 /* Override any GCC internal prototype to avoid an error.
22676 Use char because int might match the return type of a GCC
22677 builtin and then its argument prototype would still apply. */
22685 return shm_open ();
22690 for ac_lib in '' rt; do
22691 if test -z "$ac_lib"; then
22692 ac_res="none required"
22695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22697 if ac_fn_c_try_link "$LINENO"; then :
22698 ac_cv_search_shm_open=$ac_res
22700 rm -f core conftest.err conftest.$ac_objext \
22702 if ${ac_cv_search_shm_open+:} false; then :
22706 if ${ac_cv_search_shm_open+:} false; then :
22709 ac_cv_search_shm_open=no
22711 rm conftest.$ac_ext
22712 LIBS=$ac_func_search_save_LIBS
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22715 $as_echo "$ac_cv_search_shm_open" >&6; }
22716 ac_res=$ac_cv_search_shm_open
22717 if test "$ac_res" != no; then :
22718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22723 $as_echo_n "checking for openpty in -lutil... " >&6; }
22724 if ${ac_cv_lib_util_openpty+:} false; then :
22725 $as_echo_n "(cached) " >&6
22727 ac_check_lib_save_LIBS=$LIBS
22728 LIBS="-lutil $LIBS"
22729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22730 /* end confdefs.h. */
22732 /* Override any GCC internal prototype to avoid an error.
22733 Use char because int might match the return type of a GCC
22734 builtin and then its argument prototype would still apply. */
22747 if ac_fn_c_try_link "$LINENO"; then :
22748 ac_cv_lib_util_openpty=yes
22750 ac_cv_lib_util_openpty=no
22752 rm -f core conftest.err conftest.$ac_objext \
22753 conftest$ac_exeext conftest.$ac_ext
22754 LIBS=$ac_check_lib_save_LIBS
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22757 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22758 if test "x$ac_cv_lib_util_openpty" = xyes; then :
22759 cat >>confdefs.h <<_ACEOF
22760 #define HAVE_LIBUTIL 1
22763 LIBS="-lutil $LIBS"
22767 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22771 $as_echo "no" >&6; }
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22777 $as_echo "no" >&6; }
22785 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22786 if test "x$ac_cv_func_socket" = xyes; then :
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22788 $as_echo "using libc's socket" >&6; }
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22791 $as_echo_n "checking for socket in -lxnet... " >&6; }
22792 if ${ac_cv_lib_xnet_socket+:} false; then :
22793 $as_echo_n "(cached) " >&6
22795 ac_check_lib_save_LIBS=$LIBS
22796 LIBS="-lxnet $LIBS"
22797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22798 /* end confdefs.h. */
22800 /* Override any GCC internal prototype to avoid an error.
22801 Use char because int might match the return type of a GCC
22802 builtin and then its argument prototype would still apply. */
22815 if ac_fn_c_try_link "$LINENO"; then :
22816 ac_cv_lib_xnet_socket=yes
22818 ac_cv_lib_xnet_socket=no
22820 rm -f core conftest.err conftest.$ac_objext \
22821 conftest$ac_exeext conftest.$ac_ext
22822 LIBS=$ac_check_lib_save_LIBS
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22825 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22826 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22827 cat >>confdefs.h <<_ACEOF
22828 #define HAVE_LIBXNET 1
22831 LIBS="-lxnet $LIBS"
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22836 $as_echo_n "checking for socket in -lsocket... " >&6; }
22837 if ${ac_cv_lib_socket_socket+:} false; then :
22838 $as_echo_n "(cached) " >&6
22840 ac_check_lib_save_LIBS=$LIBS
22841 LIBS="-lsocket $LIBS"
22842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22843 /* end confdefs.h. */
22845 /* Override any GCC internal prototype to avoid an error.
22846 Use char because int might match the return type of a GCC
22847 builtin and then its argument prototype would still apply. */
22860 if ac_fn_c_try_link "$LINENO"; then :
22861 ac_cv_lib_socket_socket=yes
22863 ac_cv_lib_socket_socket=no
22865 rm -f core conftest.err conftest.$ac_objext \
22866 conftest$ac_exeext conftest.$ac_ext
22867 LIBS=$ac_check_lib_save_LIBS
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22870 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22871 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22872 cat >>confdefs.h <<_ACEOF
22873 #define HAVE_LIBSOCKET 1
22876 LIBS="-lsocket $LIBS"
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22881 $as_echo_n "checking for socket in -linet... " >&6; }
22882 if ${ac_cv_lib_inet_socket+:} false; then :
22883 $as_echo_n "(cached) " >&6
22885 ac_check_lib_save_LIBS=$LIBS
22886 LIBS="-linet $LIBS"
22887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22888 /* end confdefs.h. */
22890 /* Override any GCC internal prototype to avoid an error.
22891 Use char because int might match the return type of a GCC
22892 builtin and then its argument prototype would still apply. */
22905 if ac_fn_c_try_link "$LINENO"; then :
22906 ac_cv_lib_inet_socket=yes
22908 ac_cv_lib_inet_socket=no
22910 rm -f core conftest.err conftest.$ac_objext \
22911 conftest$ac_exeext conftest.$ac_ext
22912 LIBS=$ac_check_lib_save_LIBS
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22915 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22916 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22917 cat >>confdefs.h <<_ACEOF
22918 #define HAVE_LIBINET 1
22921 LIBS="-linet $LIBS"
22931 # Check whether --with-tcp-wrappers was given.
22932 if test "${with_tcp_wrappers+set}" = set; then :
22933 withval=$with_tcp_wrappers;
22934 if test "x$withval" != "xno" ; then
22936 LIBS="$saved_LIBS -lwrap"
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22938 $as_echo_n "checking for library containing nanosleep... " >&6; }
22939 if ${ac_cv_search_nanosleep+:} false; then :
22940 $as_echo_n "(cached) " >&6
22942 ac_func_search_save_LIBS=$LIBS
22943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22944 /* end confdefs.h. */
22946 /* Override any GCC internal prototype to avoid an error.
22947 Use char because int might match the return type of a GCC
22948 builtin and then its argument prototype would still apply. */
22956 return nanosleep ();
22961 for ac_lib in '' rt; do
22962 if test -z "$ac_lib"; then
22963 ac_res="none required"
22966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22968 if ac_fn_c_try_link "$LINENO"; then :
22969 ac_cv_search_nanosleep=$ac_res
22971 rm -f core conftest.err conftest.$ac_objext \
22973 if ${ac_cv_search_nanosleep+:} false; then :
22977 if ${ac_cv_search_nanosleep+:} false; then :
22980 ac_cv_search_nanosleep=no
22982 rm conftest.$ac_ext
22983 LIBS=$ac_func_search_save_LIBS
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22986 $as_echo "$ac_cv_search_nanosleep" >&6; }
22987 ac_res=$ac_cv_search_nanosleep
22988 if test "$ac_res" != no; then :
22989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22994 $as_echo_n "checking for libwrap... " >&6; }
22995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22996 /* end confdefs.h. */
22998 #include <sys/types.h>
23000 int deny_severity = 0;
23001 int allow_severity = 0;
23002 struct request_info *req;
23014 if ac_fn_c_try_link "$LINENO"; then :
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23017 $as_echo "yes" >&6; }
23019 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23027 LIBS="$saved_LIBS -lwrap -lnsl"
23028 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
23029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23030 /* end confdefs.h. */
23032 #include <sys/types.h>
23034 int deny_severity = 0;
23035 int allow_severity = 0;
23036 struct request_info *req;
23048 if ac_fn_c_try_link "$LINENO"; then :
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23051 $as_echo "yes" >&6; }
23053 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23061 as_fn_error $? "*** libwrap missing" "$LINENO" 5
23065 rm -f core conftest.err conftest.$ac_objext \
23066 conftest$ac_exeext conftest.$ac_ext
23070 rm -f core conftest.err conftest.$ac_objext \
23071 conftest$ac_exeext conftest.$ac_ext
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23080 $as_echo_n "checking for OpenSSL... " >&6; }
23082 # Check whether --with-openssl was given.
23083 if test "${with_openssl+set}" = set; then :
23084 withval=$with_openssl;
23085 with_openssl_directory=${withval}
23091 if test "x$with_openssl_directory" != "xno"; then
23092 OPENSSL_LIBS="-lssl -lcrypto"
23095 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23097 # Make sure the $with_openssl_directory also makes sense
23099 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23100 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23101 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23105 saved_LIBS="${LIBS}"
23106 saved_CFLAGS="${CFLAGS}"
23107 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23108 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23111 /* end confdefs.h. */
23113 #include <openssl/ssl.h>
23119 CRYPTO_set_id_callback(NULL);
23125 if ac_fn_c_try_link "$LINENO"; then :
23128 support_crypto="yes"
23133 support_crypto="no"
23137 rm -f core conftest.err conftest.$ac_objext \
23138 conftest$ac_exeext conftest.$ac_ext
23140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23141 /* end confdefs.h. */
23143 #include <openssl/evp.h>
23155 if ac_fn_c_try_link "$LINENO"; then :
23157 ac_cv_openssl_sha2="yes"
23161 ac_cv_openssl_sha2="no"
23165 rm -f core conftest.err conftest.$ac_objext \
23166 conftest$ac_exeext conftest.$ac_ext
23168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23169 /* end confdefs.h. */
23171 #include <openssl/evp.h>
23183 if ac_fn_c_try_link "$LINENO"; then :
23185 ac_cv_openssl_export="no"
23189 ac_cv_openssl_export="yes"
23193 rm -f core conftest.err conftest.$ac_objext \
23194 conftest$ac_exeext conftest.$ac_ext
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23197 $as_echo "$support_tls" >&6; }
23198 if test "$support_tls" = "yes"; then
23200 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23203 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23206 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23210 if test "$ac_cv_openssl_sha2" = "yes"; then
23212 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23216 if test "$ac_cv_openssl_export" = "yes"; then
23218 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23222 if test "$support_crypto" = "yes"; then
23223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23224 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23225 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23226 $as_echo_n "(cached) " >&6
23228 ac_check_lib_save_LIBS=$LIBS
23229 LIBS="-lcrypto $LIBS"
23230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23231 /* end confdefs.h. */
23233 /* Override any GCC internal prototype to avoid an error.
23234 Use char because int might match the return type of a GCC
23235 builtin and then its argument prototype would still apply. */
23239 char EVP_PKEY_encrypt_old ();
23243 return EVP_PKEY_encrypt_old ();
23248 if ac_fn_c_try_link "$LINENO"; then :
23249 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23251 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23253 rm -f core conftest.err conftest.$ac_objext \
23254 conftest$ac_exeext conftest.$ac_ext
23255 LIBS=$ac_check_lib_save_LIBS
23257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23258 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23259 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23261 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23267 LIBS="${saved_LIBS}"
23268 CFLAGS="${saved_CFLAGS}"
23271 support_crypto="no"
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23273 $as_echo "$support_tls" >&6; }
23276 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23285 $as_echo_n "checking for library containing dlopen... " >&6; }
23286 if ${ac_cv_search_dlopen+:} false; then :
23287 $as_echo_n "(cached) " >&6
23289 ac_func_search_save_LIBS=$LIBS
23290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23291 /* end confdefs.h. */
23293 /* Override any GCC internal prototype to avoid an error.
23294 Use char because int might match the return type of a GCC
23295 builtin and then its argument prototype would still apply. */
23308 for ac_lib in '' dl; do
23309 if test -z "$ac_lib"; then
23310 ac_res="none required"
23313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23315 if ac_fn_c_try_link "$LINENO"; then :
23316 ac_cv_search_dlopen=$ac_res
23318 rm -f core conftest.err conftest.$ac_objext \
23320 if ${ac_cv_search_dlopen+:} false; then :
23324 if ${ac_cv_search_dlopen+:} false; then :
23327 ac_cv_search_dlopen=no
23329 rm conftest.$ac_ext
23330 LIBS=$ac_func_search_save_LIBS
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23333 $as_echo "$ac_cv_search_dlopen" >&6; }
23334 ac_res=$ac_cv_search_dlopen
23335 if test "$ac_res" != no; then :
23336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23341 working_dir=`eval echo /opt/bacula/working`
23343 # Check whether --with-working-dir was given.
23344 if test "${with_working_dir+set}" = set; then :
23345 withval=$with_working_dir;
23346 if test "x$withval" != "xno" ; then
23347 working_dir=$withval
23358 # Check whether --with-archivedir was given.
23359 if test "${with_archivedir+set}" = set; then :
23360 withval=$with_archivedir;
23361 if test "x$withval" != "xno" ; then
23362 archivedir=$withval
23371 basename=`hostname`
23373 # Check whether --with-basename was given.
23374 if test "${with_basename+set}" = set; then :
23375 withval=$with_basename;
23376 if test "x$withval" != "xno" ; then
23386 hostname=`uname -n | cut -d '.' -f 1`
23387 if test x${hostname} = x ; then
23388 hostname="localhost"
23390 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23391 if test ! $? = 0; then
23392 hostname="localhost"
23395 # Check whether --with-hostname was given.
23396 if test "${with_hostname+set}" = set; then :
23397 withval=$with_hostname;
23398 if test "x$withval" != "xno" ; then
23409 scriptdir=`eval echo ${sysconfdir}`
23411 # Check whether --with-scriptdir was given.
23412 if test "${with_scriptdir+set}" = set; then :
23413 withval=$with_scriptdir;
23414 if test "x$withval" != "xno" ; then
23425 bsrdir=`eval echo /opt/bacula/bsr`
23427 # Check whether --with-bsrdir was given.
23428 if test "${with_bsrdir+set}" = set; then :
23429 withval=$with_bsrdir;
23430 if test "x$withval" != "xno" ; then
23440 logdir=`eval echo /opt/bacula/log`
23442 # Check whether --with-logdir was given.
23443 if test "${with_logdir+set}" = set; then :
23444 withval=$with_logdir;
23445 if test "x$withval" != "xno" ; then
23456 # ------------------------------------------
23457 # Where to place plugindir (plugin files)
23458 # ------------------------------------------
23459 plugindir=`eval echo ${libdir}`
23461 # Check whether --with-plugindir was given.
23462 if test "${with_plugindir+set}" = set; then :
23463 withval=$with_plugindir;
23464 if test "x$withval" != "xno" ; then
23474 dump_email=root@localhost
23476 # Check whether --with-dump-email was given.
23477 if test "${with_dump_email+set}" = set; then :
23478 withval=$with_dump_email;
23479 if test "x$withval" != "xno" ; then
23480 dump_email=$withval
23489 job_email=root@localhost
23491 # Check whether --with-job-email was given.
23492 if test "${with_job_email+set}" = set; then :
23493 withval=$with_job_email;
23494 if test "x$withval" != "xno" ; then
23504 smtp_host=localhost
23506 # Check whether --with-smtp_host was given.
23507 if test "${with_smtp_host+set}" = set; then :
23508 withval=$with_smtp_host;
23509 if test "x$withval" != "xno" ; then
23521 # Check whether --with-pid-dir was given.
23522 if test "${with_pid_dir+set}" = set; then :
23523 withval=$with_pid_dir;
23524 if test "x$withval" != "xno" ; then
23532 cat >>confdefs.h <<_ACEOF
23533 #define _PATH_BACULA_PIDDIR "$piddir"
23538 subsysdir=/var/run/subsys
23539 if test -d /var/run/subsys; then
23540 subsysdir=/var/run/subsys
23541 elif test -d /var/lock/subsys; then
23542 subsysdir=/var/lock/subsys
23544 subsysdir=/var/run/subsys
23547 # Check whether --with-subsys-dir was given.
23548 if test "${with_subsys_dir+set}" = set; then :
23549 withval=$with_subsys_dir;
23550 if test "x$withval" != "xno" ; then
23562 # Check whether --with-baseport was given.
23563 if test "${with_baseport+set}" = set; then :
23564 withval=$with_baseport;
23565 if test "x$withval" != "xno" ; then
23574 dir_port=`expr $baseport`
23575 fd_port=`expr $baseport + 1`
23576 sd_port=`expr $fd_port + 1`
23584 # Check whether --with-dir-password was given.
23585 if test "${with_dir_password+set}" = set; then :
23586 withval=$with_dir_password;
23587 if test "x$withval" != "xno" ; then
23588 dir_password=$withval
23595 if test "x$dir_password" = "x" ; then
23596 if test "x$OPENSSL" = "xnone" ; then
23597 key=`autoconf/randpass 33`
23599 key=`openssl rand -base64 33`
23606 # Check whether --with-fd-password was given.
23607 if test "${with_fd_password+set}" = set; then :
23608 withval=$with_fd_password;
23609 if test "x$withval" != "xno" ; then
23610 fd_password=$withval
23617 if test "x$fd_password" = "x" ; then
23618 if test "x$OPENSSL" = "xnone" ; then
23619 key=`autoconf/randpass 37`
23621 key=`openssl rand -base64 33`
23628 # Check whether --with-sd-password was given.
23629 if test "${with_sd_password+set}" = set; then :
23630 withval=$with_sd_password;
23631 if test "x$withval" != "xno" ; then
23632 sd_password=$withval
23639 if test "x$sd_password" = "x" ; then
23640 if test "x$OPENSSL" = "xnone" ; then
23641 key=`autoconf/randpass 41`
23643 key=`openssl rand -base64 33`
23650 # Check whether --with-mon-dir-password was given.
23651 if test "${with_mon_dir_password+set}" = set; then :
23652 withval=$with_mon_dir_password;
23653 if test "x$withval" != "xno" ; then
23654 mon_dir_password=$withval
23661 if test "x$mon_dir_password" = "x" ; then
23662 if test "x$OPENSSL" = "xnone" ; then
23663 key=`autoconf/randpass 33`
23665 key=`openssl rand -base64 33`
23667 mon_dir_password=$key
23672 # Check whether --with-mon-fd-password was given.
23673 if test "${with_mon_fd_password+set}" = set; then :
23674 withval=$with_mon_fd_password;
23675 if test "x$withval" != "xno" ; then
23676 mon_fd_password=$withval
23683 if test "x$mon_fd_password" = "x" ; then
23684 if test "x$OPENSSL" = "xnone" ; then
23685 key=`autoconf/randpass 37`
23687 key=`openssl rand -base64 33`
23689 mon_fd_password=$key
23694 # Check whether --with-mon-sd-password was given.
23695 if test "${with_mon_sd_password+set}" = set; then :
23696 withval=$with_mon_sd_password;
23697 if test "x$withval" != "xno" ; then
23698 mon_sd_password=$withval
23705 if test "x$mon_sd_password" = "x" ; then
23706 if test "x$OPENSSL" = "xnone" ; then
23707 key=`autoconf/randpass 41`
23709 key=`openssl rand -base64 33`
23711 mon_sd_password=$key
23723 # Check whether --with-db_name was given.
23724 if test "${with_db_name+set}" = set; then :
23725 withval=$with_db_name;
23726 if test "x$withval" != "x" ; then
23737 # Check whether --with-db_user was given.
23738 if test "${with_db_user+set}" = set; then :
23739 withval=$with_db_user;
23740 if test "x$withval" != "x" ; then
23751 # Check whether --with-db_password was given.
23752 if test "${with_db_password+set}" = set; then :
23753 withval=$with_db_password;
23754 if test "x$withval" != "x" ; then
23755 db_password=$withval
23765 # Check whether --with-db_port was given.
23766 if test "${with_db_port+set}" = set; then :
23767 withval=$with_db_port;
23768 if test "x$withval" != "x" ; then
23778 # Handle users and groups for each daemon
23782 # Check whether --with-dir_user was given.
23783 if test "${with_dir_user+set}" = set; then :
23784 withval=$with_dir_user;
23785 if test "x$withval" != "x" ; then
23795 # Check whether --with-dir_group was given.
23796 if test "${with_dir_group+set}" = set; then :
23797 withval=$with_dir_group;
23798 if test "x$withval" != "x" ; then
23808 # Check whether --with-sd_user was given.
23809 if test "${with_sd_user+set}" = set; then :
23810 withval=$with_sd_user;
23811 if test "x$withval" != "x" ; then
23821 # Check whether --with-sd_group was given.
23822 if test "${with_sd_group+set}" = set; then :
23823 withval=$with_sd_group;
23824 if test "x$withval" != "x" ; then
23834 # Check whether --with-fd_user was given.
23835 if test "${with_fd_user+set}" = set; then :
23836 withval=$with_fd_user;
23837 if test "x$withval" != "x" ; then
23847 # Check whether --with-fd_group was given.
23848 if test "${with_fd_group+set}" = set; then :
23849 withval=$with_fd_group;
23850 if test "x$withval" != "x" ; then
23867 # Check whether --with-sbin-perm was given.
23868 if test "${with_sbin_perm+set}" = set; then :
23869 withval=$with_sbin_perm;
23870 if test "x$withval" != "x" ; then
23880 support_batch_insert=yes
23881 # Check whether --enable-batch-insert was given.
23882 if test "${enable_batch_insert+set}" = set; then :
23883 enableval=$enable_batch_insert;
23884 if test x$enableval = xno; then
23885 support_batch_insert=no
23892 if test x$support_batch_insert = xyes; then
23894 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23903 $as_echo_n "checking for PostgreSQL support... " >&6; }
23905 # Check whether --with-postgresql was given.
23906 if test "${with_postgresql+set}" = set; then :
23907 withval=$with_postgresql;
23908 if test "$withval" != "no"; then
23909 if test "$withval" = "yes"; then
23910 PG_CONFIG=`which pg_config 2>/dev/null`
23911 if test -n "$PG_CONFIG"; then
23912 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23913 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23914 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23915 elif test -f /usr/local/include/libpq-fe.h; then
23916 POSTGRESQL_INCDIR=/usr/local/include
23917 if test -d /usr/local/lib64; then
23918 POSTGRESQL_LIBDIR=/usr/local/lib64
23920 POSTGRESQL_LIBDIR=/usr/local/lib
23922 POSTGRESQL_BINDIR=/usr/local/bin
23923 elif test -f /usr/include/libpq-fe.h; then
23924 POSTGRESQL_INCDIR=/usr/include
23925 if test -d /usr/lib64; then
23926 POSTGRESQL_LIBDIR=/usr/lib64
23928 POSTGRESQL_LIBDIR=/usr/lib
23930 POSTGRESQL_BINDIR=/usr/bin
23931 elif test -f /usr/include/pgsql/libpq-fe.h; then
23932 POSTGRESQL_INCDIR=/usr/include/pgsql
23933 if test -d /usr/lib64/pgsql; then
23934 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23936 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23938 POSTGRESQL_BINDIR=/usr/bin
23939 elif test -f /usr/include/postgresql/libpq-fe.h; then
23940 POSTGRESQL_INCDIR=/usr/include/postgresql
23941 if test -d /usr/lib64/postgresql; then
23942 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23944 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23946 POSTGRESQL_BINDIR=/usr/bin
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23949 $as_echo "no" >&6; }
23950 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23952 elif test -f $withval/include/libpq-fe.h; then
23953 POSTGRESQL_INCDIR=$withval/include
23954 POSTGRESQL_LIBDIR=$withval/lib
23955 POSTGRESQL_BINDIR=$withval/bin
23956 elif test -f $withval/include/postgresql/libpq-fe.h; then
23957 POSTGRESQL_INCDIR=$withval/include/postgresql
23958 if test -d $withval/lib64; then
23959 POSTGRESQL_LIBDIR=$withval/lib64
23961 POSTGRESQL_LIBDIR=$withval/lib
23963 POSTGRESQL_BINDIR=$withval/bin
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23966 $as_echo "no" >&6; }
23967 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23970 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23973 $as_echo "yes" >&6; }
23975 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23976 if test x$use_libtool != xno; then
23977 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23979 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23981 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23982 if test "x$ac_cv_func_crypt" = xyes; then :
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23986 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23987 if ${ac_cv_lib_crypt_crypt+:} false; then :
23988 $as_echo_n "(cached) " >&6
23990 ac_check_lib_save_LIBS=$LIBS
23991 LIBS="-lcrypt $LIBS"
23992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23993 /* end confdefs.h. */
23995 /* Override any GCC internal prototype to avoid an error.
23996 Use char because int might match the return type of a GCC
23997 builtin and then its argument prototype would still apply. */
24010 if ac_fn_c_try_link "$LINENO"; then :
24011 ac_cv_lib_crypt_crypt=yes
24013 ac_cv_lib_crypt_crypt=no
24015 rm -f core conftest.err conftest.$ac_objext \
24016 conftest$ac_exeext conftest.$ac_ext
24017 LIBS=$ac_check_lib_save_LIBS
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
24020 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
24021 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
24022 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
24027 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
24028 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
24030 if test -z "${db_backends}"; then
24031 db_backends="PostgreSQL"
24033 db_backends="${db_backends} PostgreSQL"
24035 if test -z "${DB_BACKENDS}"; then
24036 DB_BACKENDS="postgresql"
24038 DB_BACKENDS="${DB_BACKENDS} postgresql"
24041 if test "x$support_batch_insert" = "xyes"; then
24042 saved_LDFLAGS="${LDFLAGS}"
24043 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
24044 saved_LIBS="${LIBS}"
24045 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
24046 LIBS="${saved_LIBS} -lcrypt"
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24050 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24051 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24052 $as_echo_n "(cached) " >&6
24054 ac_check_lib_save_LIBS=$LIBS
24056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24057 /* end confdefs.h. */
24059 /* Override any GCC internal prototype to avoid an error.
24060 Use char because int might match the return type of a GCC
24061 builtin and then its argument prototype would still apply. */
24065 char PQisthreadsafe ();
24069 return PQisthreadsafe ();
24074 if ac_fn_c_try_link "$LINENO"; then :
24075 ac_cv_lib_pq_PQisthreadsafe=yes
24077 ac_cv_lib_pq_PQisthreadsafe=no
24079 rm -f core conftest.err conftest.$ac_objext \
24080 conftest$ac_exeext conftest.$ac_ext
24081 LIBS=$ac_check_lib_save_LIBS
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24084 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24085 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24087 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24092 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24093 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24094 $as_echo_n "(cached) " >&6
24096 ac_check_lib_save_LIBS=$LIBS
24098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24099 /* end confdefs.h. */
24101 /* Override any GCC internal prototype to avoid an error.
24102 Use char because int might match the return type of a GCC
24103 builtin and then its argument prototype would still apply. */
24107 char PQputCopyData ();
24111 return PQputCopyData ();
24116 if ac_fn_c_try_link "$LINENO"; then :
24117 ac_cv_lib_pq_PQputCopyData=yes
24119 ac_cv_lib_pq_PQputCopyData=no
24121 rm -f core conftest.err conftest.$ac_objext \
24122 conftest$ac_exeext conftest.$ac_ext
24123 LIBS=$ac_check_lib_save_LIBS
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24126 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24127 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24129 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24133 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24134 if test $support_batch_insert = yes ; then
24136 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24138 if test -z "${batch_insert_db_backends}"; then
24139 batch_insert_db_backends="PostgreSQL"
24141 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24146 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24148 echo "WARNING: Your PostgreSQL client library is too old to detect "
24149 echo "if it was compiled with --enable-thread-safety, consider to "
24150 echo "upgrade it in order to avoid problems with Batch insert mode"
24153 LDFLAGS="${saved_LDFLAGS}"
24154 LIBS="${saved_LIBS}"
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24158 $as_echo "no" >&6; }
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24164 $as_echo "no" >&6; }
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24176 $as_echo_n "checking for MySQL support... " >&6; }
24178 # Check whether --with-mysql was given.
24179 if test "${with_mysql+set}" = set; then :
24180 withval=$with_mysql;
24181 if test "$withval" != "no"; then
24182 if test "$withval" = "yes"; then
24184 # This code is very broken on older systems
24186 # MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24187 # if test "x${MYSQL_CONFIG}" != x; then
24188 # MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24189 # ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24190 # if test $? = 0 ; then
24191 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24192 # MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24194 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs | sed -e 's/.*-L//' -e 's/ .*//'`
24195 # MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24197 # elif test -f /usr/local/mysql/include/mysql/mysql.h; then
24198 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24199 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24200 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24201 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24202 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24204 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24206 MYSQL_BINDIR=/usr/local/mysql/bin
24207 elif test -f /usr/include/mysql/mysql.h; then
24208 MYSQL_INCDIR=/usr/include/mysql
24209 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24210 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24211 MYSQL_LIBDIR=/usr/lib64/mysql
24212 elif test -f /usr/lib64/libmysqlclient_r.a \
24213 -o -f /usr/lib64/libmysqlclient_r.so; then
24214 MYSQL_LIBDIR=/usr/lib64
24215 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24216 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24217 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24218 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24219 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24220 MYSQL_LIBDIR=/usr/lib/mysql
24222 MYSQL_LIBDIR=/usr/lib
24224 MYSQL_BINDIR=/usr/bin
24225 elif test -f /usr/include/mysql.h; then
24226 MYSQL_INCDIR=/usr/include
24227 if test -f /usr/lib64/libmysqlclient_r.a \
24228 -o -f /usr/lib64/libmysqlclient_r.so; then
24229 MYSQL_LIBDIR=/usr/lib64
24231 MYSQL_LIBDIR=/usr/lib
24233 MYSQL_BINDIR=/usr/bin
24234 elif test -f /usr/local/include/mysql/mysql.h; then
24235 MYSQL_INCDIR=/usr/local/include/mysql
24236 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24237 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24238 MYSQL_LIBDIR=/usr/local/lib64/mysql
24240 MYSQL_LIBDIR=/usr/local/lib/mysql
24242 MYSQL_BINDIR=/usr/local/bin
24243 elif test -f /usr/local/include/mysql.h; then
24244 MYSQL_INCDIR=/usr/local/include
24245 if test -f /usr/local/lib64/libmysqlclient_r.a \
24246 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24247 MYSQL_LIBDIR=/usr/local/lib64
24249 MYSQL_LIBDIR=/usr/local/lib
24251 MYSQL_BINDIR=/usr/local/bin
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24254 $as_echo "no" >&6; }
24255 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24258 if test -f $withval/include/mysql/mysql.h; then
24259 MYSQL_INCDIR=$withval/include/mysql
24260 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24261 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24262 MYSQL_LIBDIR=$withval/lib64/mysql
24263 elif test -f $withval/lib64/libmysqlclient_r.a \
24264 -o -f $withval/lib64/libmysqlclient_r.so; then
24265 MYSQL_LIBDIR=$withval/lib64
24266 elif test -f $withval/lib/libmysqlclient_r.a \
24267 -o -f $withval/lib/libmysqlclient_r.so; then
24268 MYSQL_LIBDIR=$withval/lib
24270 MYSQL_LIBDIR=$withval/lib/mysql
24272 MYSQL_BINDIR=$withval/bin
24273 elif test -f $withval/include/mysql.h; then
24274 MYSQL_INCDIR=$withval/include
24275 if test -f $withval/lib64/libmysqlclient_r.a \
24276 -o -f $withval/lib64/libmysqlclient_r.so; then
24277 MYSQL_LIBDIR=$withval/lib64
24279 MYSQL_LIBDIR=$withval/lib
24281 MYSQL_BINDIR=$withval/bin
24283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24284 $as_echo "no" >&6; }
24285 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24288 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24289 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24290 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24291 if test x$use_libtool != xno; then
24292 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24294 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24296 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24298 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24301 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24304 $as_echo "yes" >&6; }
24306 if test -z "${db_backends}" ; then
24307 db_backends="MySQL"
24309 db_backends="${db_backends} MySQL"
24311 if test -z "${DB_BACKENDS}" ; then
24312 DB_BACKENDS="mysql"
24314 DB_BACKENDS="${DB_BACKENDS} mysql"
24317 if test "x$support_batch_insert" = "xyes"; then
24318 saved_LDFLAGS="${LDFLAGS}"
24319 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24320 saved_LIBS="${LIBS}"
24321 LIBS="${saved_LIBS} -lz"
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24324 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24325 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24326 $as_echo_n "(cached) " >&6
24328 ac_check_lib_save_LIBS=$LIBS
24329 LIBS="-lmysqlclient_r $LIBS"
24330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24331 /* end confdefs.h. */
24333 /* Override any GCC internal prototype to avoid an error.
24334 Use char because int might match the return type of a GCC
24335 builtin and then its argument prototype would still apply. */
24339 char mysql_thread_safe ();
24343 return mysql_thread_safe ();
24348 if ac_fn_c_try_link "$LINENO"; then :
24349 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24351 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24353 rm -f core conftest.err conftest.$ac_objext \
24354 conftest$ac_exeext conftest.$ac_ext
24355 LIBS=$ac_check_lib_save_LIBS
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24358 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24359 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24361 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24365 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24366 if test -z "${batch_insert_db_backends}"; then
24367 batch_insert_db_backends="MySQL"
24369 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24373 LDFLAGS="${saved_LDFLAGS}"
24374 LIBS="${saved_LIBS}"
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24378 $as_echo "no" >&6; }
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24384 $as_echo "no" >&6; }
24389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24390 $as_echo_n "checking for MySQL embedded support... " >&6; }
24392 # Check whether --with-embedded-mysql was given.
24393 if test "${with_embedded_mysql+set}" = set; then :
24394 withval=$with_embedded_mysql;
24395 if test "$withval" != "no"; then
24396 if test "$withval" = "yes"; then
24397 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24398 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24399 if test -d /usr/local/mysql/lib64/mysql; then
24400 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24402 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24404 MYSQL_BINDIR=/usr/local/mysql/bin
24405 elif test -f /usr/include/mysql/mysql.h; then
24406 MYSQL_INCDIR=/usr/include/mysql
24407 if test -d /usr/lib64/mysql; then
24408 MYSQL_LIBDIR=/usr/lib64/mysql
24410 MYSQL_LIBDIR=/usr/lib/mysql
24412 MYSQL_BINDIR=/usr/bin
24413 elif test -f /usr/include/mysql.h; then
24414 MYSQL_INCDIR=/usr/include
24415 if test -d /usr/lib64; then
24416 MYSQL_LIBDIR=/usr/lib64
24418 MYSQL_LIBDIR=/usr/lib
24420 MYSQL_BINDIR=/usr/bin
24421 elif test -f /usr/local/include/mysql/mysql.h; then
24422 MYSQL_INCDIR=/usr/local/include/mysql
24423 if test -d /usr/local/lib64/mysql; then
24424 MYSQL_LIBDIR=/usr/local/lib64/mysql
24426 MYSQL_LIBDIR=/usr/local/lib/mysql
24428 MYSQL_BINDIR=/usr/local/bin
24429 elif test -f /usr/local/include/mysql.h; then
24430 MYSQL_INCDIR=/usr/local/include
24431 if test -d /usr/local/lib64; then
24432 MYSQL_LIBDIR=/usr/local/lib64
24434 MYSQL_LIBDIR=/usr/local/lib
24436 MYSQL_BINDIR=/usr/local/bin
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24439 $as_echo "no" >&6; }
24440 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24443 if test -f $withval/include/mysql/mysql.h; then
24444 MYSQL_INCDIR=$withval/include/mysql
24445 if test -d $withval/lib64/mysql; then
24446 MYSQL_LIBDIR=$withval/lib64/mysql
24448 MYSQL_LIBDIR=$withval/lib/mysql
24450 MYSQL_BINDIR=$withval/bin
24451 elif test -f $withval/include/mysql.h; then
24452 MYSQL_INCDIR=$withval/include
24453 if test -d $withval/lib64; then
24454 MYSQL_LIBDIR=$withval/lib64
24456 MYSQL_LIBDIR=$withval/lib
24458 MYSQL_BINDIR=$withval/bin
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24461 $as_echo "no" >&6; }
24462 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24465 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24466 if test x$use_libtool != xno; then
24467 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24469 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24471 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24472 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24475 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24478 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24481 $as_echo "yes" >&6; }
24483 if test -z "${db_backends}"; then
24484 db_backends="MySQL"
24486 db_backends="${db_backends} MySQL"
24488 if test -z "${DB_BACKENDS}"; then
24489 DB_BACKENDS="mysql"
24491 DB_BACKENDS="${DB_BACKENDS} mysql"
24494 if test "x$support_batch_insert" = "xyes"; then
24495 saved_LDFLAGS="${LDFLAGS}"
24496 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24497 saved_LIBS="${LIBS}"
24498 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24501 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24502 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24503 $as_echo_n "(cached) " >&6
24505 ac_check_lib_save_LIBS=$LIBS
24506 LIBS="-lmysqlclient_r $LIBS"
24507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24508 /* end confdefs.h. */
24510 /* Override any GCC internal prototype to avoid an error.
24511 Use char because int might match the return type of a GCC
24512 builtin and then its argument prototype would still apply. */
24516 char mysql_thread_safe ();
24520 return mysql_thread_safe ();
24525 if ac_fn_c_try_link "$LINENO"; then :
24526 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24528 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24530 rm -f core conftest.err conftest.$ac_objext \
24531 conftest$ac_exeext conftest.$ac_ext
24532 LIBS=$ac_check_lib_save_LIBS
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24535 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24536 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24538 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24542 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24543 if test -z "${batch_insert_db_backends}"; then
24544 batch_insert_db_backends="MySQL"
24546 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24550 LDFLAGS="${saved_LDFLAGS}"
24551 LIBS="${saved_LIBS}"
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24555 $as_echo "no" >&6; }
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24561 $as_echo "no" >&6; }
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24574 $as_echo_n "checking for SQLite3 support... " >&6; }
24576 # Check whether --with-sqlite3 was given.
24577 if test "${with_sqlite3+set}" = set; then :
24578 withval=$with_sqlite3;
24579 if test "$withval" != "no"; then
24580 if test "$withval" = "yes"; then
24581 if test -f /usr/local/include/sqlite3.h; then
24582 SQLITE_INCDIR=/usr/local/include
24583 if test -d /usr/local/lib64; then
24584 SQLITE_LIBDIR=/usr/local/lib64
24586 SQLITE_LIBDIR=/usr/local/lib
24588 SQLITE_BINDIR=/usr/local/bin
24589 elif test -f /usr/include/sqlite3.h; then
24590 SQLITE_INCDIR=/usr/include
24591 if test -d /usr/lib64; then
24592 SQLITE_LIBDIR=/usr/lib64
24594 SQLITE_LIBDIR=/usr/lib
24596 SQLITE_BINDIR=/usr/bin
24597 elif test -f $prefix/include/sqlite3.h; then
24598 SQLITE_INCDIR=$prefix/include
24599 if test -d $prefix/lib64; then
24600 SQLITE_LIBDIR=$prefix/lib64
24602 SQLITE_LIBDIR=$prefix/lib
24604 SQLITE_BINDIR=$prefix/bin
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24607 $as_echo "no" >&6; }
24608 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24611 if test -f $withval/sqlite3.h; then
24612 SQLITE_INCDIR=$withval
24613 SQLITE_LIBDIR=$withval
24614 SQLITE_BINDIR=$withval
24615 elif test -f $withval/include/sqlite3.h; then
24616 SQLITE_INCDIR=$withval/include
24617 if test -d $withval/lib64; then
24618 SQLITE_LIBDIR=$withval/lib64
24620 SQLITE_LIBDIR=$withval/lib
24622 SQLITE_BINDIR=$withval/bin
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24625 $as_echo "no" >&6; }
24626 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24629 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24630 if test x$use_libtool != xno; then
24631 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24633 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24635 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24636 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24639 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24642 $as_echo "yes" >&6; }
24644 if test -z "${db_backends}"; then
24645 db_backends="SQLite3"
24647 db_backends="${db_backends} SQLite3"
24649 if test -z "${DB_BACKENDS}"; then
24650 DB_BACKENDS="sqlite3"
24652 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24655 if test "x$support_batch_insert" = "xyes"; then
24656 saved_LDFLAGS="${LDFLAGS}"
24657 LDFLAGS="${saved_LDFLAGS} -L$SQLITE_LIBDIR"
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24660 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24661 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24662 $as_echo_n "(cached) " >&6
24664 ac_check_lib_save_LIBS=$LIBS
24665 LIBS="-lsqlite3 $LIBS"
24666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24667 /* end confdefs.h. */
24669 /* Override any GCC internal prototype to avoid an error.
24670 Use char because int might match the return type of a GCC
24671 builtin and then its argument prototype would still apply. */
24675 char sqlite3_threadsafe ();
24679 return sqlite3_threadsafe ();
24684 if ac_fn_c_try_link "$LINENO"; then :
24685 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24687 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24689 rm -f core conftest.err conftest.$ac_objext \
24690 conftest$ac_exeext conftest.$ac_ext
24691 LIBS=$ac_check_lib_save_LIBS
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24694 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24695 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24697 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24701 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24702 if test -z "${batch_insert_db_backends}"; then
24703 batch_insert_db_backends="SQLite3"
24705 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24709 LDFLAGS="${saved_LDFLAGS}"
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24713 $as_echo "no" >&6; }
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24719 $as_echo "no" >&6; }
24729 if test -z "${batch_insert_db_backends}"; then
24730 batch_insert_db_backends="None"
24733 if test "x${db_backends}" = "x" ; then
24736 echo "You have not specified either --enable-client-only or one of the"
24737 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24738 echo "This is not permitted. Please reconfigure."
24740 echo "Aborting the configuration ..."
24746 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24748 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24749 if test x$use_libtool = xno; then
24750 SHARED_CATALOG_TARGETS=""
24752 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24756 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24758 if test x$use_libtool = xno; then
24761 echo "You have specified two or more of the"
24762 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24763 echo "This is not permitted when not using libtool Please reconfigure."
24765 echo "Aborting the configuration ..."
24771 SHARED_CATALOG_TARGETS=""
24772 for db_type in ${DB_BACKENDS}
24774 if test -z "${SHARED_CATALOG_TARGETS}"; then
24775 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24777 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24783 if test x$use_libtool = xyes; then
24793 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24796 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24797 if test -z "$CCOPTS"; then
24798 CCOPTS='-g -O2 -Wall'
24805 largefile_support="no"
24807 # Check whether --enable-largefile was given.
24808 if test "${enable_largefile+set}" = set; then :
24809 enableval=$enable_largefile;
24812 if test "$enable_largefile" != no; then
24813 if test -n "$ac_tool_prefix"; then
24814 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24815 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24817 $as_echo_n "checking for $ac_word... " >&6; }
24818 if ${ac_cv_prog_GETCONF+:} false; then :
24819 $as_echo_n "(cached) " >&6
24821 if test -n "$GETCONF"; then
24822 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24825 for as_dir in $PATH
24828 test -z "$as_dir" && as_dir=.
24829 for ac_exec_ext in '' $ac_executable_extensions; do
24830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24831 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24841 GETCONF=$ac_cv_prog_GETCONF
24842 if test -n "$GETCONF"; then
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24844 $as_echo "$GETCONF" >&6; }
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24847 $as_echo "no" >&6; }
24852 if test -z "$ac_cv_prog_GETCONF"; then
24853 ac_ct_GETCONF=$GETCONF
24854 # Extract the first word of "getconf", so it can be a program name with args.
24855 set dummy getconf; ac_word=$2
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24857 $as_echo_n "checking for $ac_word... " >&6; }
24858 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24859 $as_echo_n "(cached) " >&6
24861 if test -n "$ac_ct_GETCONF"; then
24862 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24865 for as_dir in $PATH
24868 test -z "$as_dir" && as_dir=.
24869 for ac_exec_ext in '' $ac_executable_extensions; do
24870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24871 ac_cv_prog_ac_ct_GETCONF="getconf"
24872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24881 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24882 if test -n "$ac_ct_GETCONF"; then
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24884 $as_echo "$ac_ct_GETCONF" >&6; }
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24887 $as_echo "no" >&6; }
24890 if test "x$ac_ct_GETCONF" = x; then
24893 case $cross_compiling:$ac_tool_warned in
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24897 ac_tool_warned=yes ;;
24899 GETCONF=$ac_ct_GETCONF
24902 GETCONF="$ac_cv_prog_GETCONF"
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24906 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24907 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24908 $as_echo_n "(cached) " >&6
24910 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24911 ac_cv_sys_largefile_CFLAGS=no
24913 # IRIX 6.2 and later require cc -n32.
24914 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24915 if test "$GCC" != yes; then
24916 ac_cv_sys_largefile_CFLAGS=-n32
24919 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24921 /* end confdefs.h. */
24931 if ac_fn_c_try_link "$LINENO"; then :
24934 ac_cv_sys_largefile_CFLAGS=no
24936 rm -f core conftest.err conftest.$ac_objext \
24937 conftest$ac_exeext conftest.$ac_ext
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24943 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24945 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24946 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24947 $as_echo_n "(cached) " >&6
24949 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24950 ac_cv_sys_largefile_LDFLAGS=no
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24955 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24957 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24958 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24959 $as_echo_n "(cached) " >&6
24961 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24962 ac_cv_sys_largefile_LIBS=no
24966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24967 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24969 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24972 -D_FILE_OFFSET_BITS=*) ;;
24973 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24974 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24979 case "$CPPFLAGS" in
24980 '') CPPFLAGS="$ac_flag" ;;
24981 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24989 '') CFLAGS="$ac_flag" ;;
24990 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24995 case "$ac_cv_sys_largefile_LDFLAGS" in
24999 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
25000 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
25003 case "$ac_cv_sys_largefile_LIBS" in
25007 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
25008 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
25012 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
25013 if ${ac_cv_sys_file_offset_bits+:} false; then :
25014 $as_echo_n "(cached) " >&6
25016 ac_cv_sys_file_offset_bits=no
25017 ac_cv_sys_file_offset_bits=64
25018 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25020 -D_FILE_OFFSET_BITS)
25021 ac_cv_sys_file_offset_bits=1 ;;
25022 -D_FILE_OFFSET_BITS=*)
25023 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25029 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25030 if test "$ac_cv_sys_file_offset_bits" != no; then
25032 cat >>confdefs.h <<_ACEOF
25033 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25038 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25039 if ${ac_cv_sys_largefile_source+:} false; then :
25040 $as_echo_n "(cached) " >&6
25042 ac_cv_sys_largefile_source=no
25043 ac_cv_sys_largefile_source=1
25044 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25046 -D_LARGEFILE_SOURCE)
25047 ac_cv_sys_largefile_source=1 ;;
25048 -D_LARGEFILE_SOURCE=*)
25049 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25055 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25056 if test "$ac_cv_sys_largefile_source" != no; then
25058 cat >>confdefs.h <<_ACEOF
25059 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25064 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25065 if ${ac_cv_sys_large_files+:} false; then :
25066 $as_echo_n "(cached) " >&6
25068 ac_cv_sys_large_files=no
25069 ac_cv_sys_large_files=1
25070 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25073 ac_cv_sys_large_files=1 ;;
25075 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25081 $as_echo "$ac_cv_sys_large_files" >&6; }
25082 if test "$ac_cv_sys_large_files" != no; then
25084 cat >>confdefs.h <<_ACEOF
25085 #define _LARGE_FILES $ac_cv_sys_large_files
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25093 $as_echo_n "checking for X... " >&6; }
25096 # Check whether --with-x was given.
25097 if test "${with_x+set}" = set; then :
25101 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25102 if test "x$with_x" = xno; then
25103 # The user explicitly disabled X.
25106 case $x_includes,$x_libraries in #(
25107 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25108 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25109 $as_echo_n "(cached) " >&6
25111 # One or both of the vars are not set, and there is no cached value.
25112 ac_x_includes=no ac_x_libraries=no
25113 rm -f -r conftest.dir
25114 if mkdir conftest.dir; then
25116 cat >Imakefile <<'_ACEOF'
25118 @echo incroot='${INCROOT}'
25120 @echo usrlibdir='${USRLIBDIR}'
25122 @echo libdir='${LIBDIR}'
25124 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25125 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25126 for ac_var in incroot usrlibdir libdir; do
25127 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25129 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25130 for ac_extension in a so sl dylib la dll; do
25131 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25132 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25133 ac_im_usrlibdir=$ac_im_libdir; break
25136 # Screen out bogus values from the imake configuration. They are
25137 # bogus both because they are the default anyway, and because
25138 # using them would break gcc on systems where it needs fixed includes.
25139 case $ac_im_incroot in
25140 /usr/include) ac_x_includes= ;;
25141 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25143 case $ac_im_usrlibdir in
25144 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25145 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25149 rm -f -r conftest.dir
25152 # Standard set of common directories for X headers.
25153 # Check X11 before X11Rn because it is often a symlink to the current release.
25167 /usr/local/X11/include
25168 /usr/local/X11R7/include
25169 /usr/local/X11R6/include
25170 /usr/local/X11R5/include
25171 /usr/local/X11R4/include
25173 /usr/local/include/X11
25174 /usr/local/include/X11R7
25175 /usr/local/include/X11R6
25176 /usr/local/include/X11R5
25177 /usr/local/include/X11R4
25181 /usr/XFree86/include/X11
25185 /usr/unsupported/include
25186 /usr/athena/include
25187 /usr/local/x11r5/include
25188 /usr/lpp/Xamples/include
25190 /usr/openwin/include
25191 /usr/openwin/share/include'
25193 if test "$ac_x_includes" = no; then
25194 # Guess where to find include files, by looking for Xlib.h.
25195 # First, try using that file with no special directory specified.
25196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25197 /* end confdefs.h. */
25198 #include <X11/Xlib.h>
25200 if ac_fn_c_try_cpp "$LINENO"; then :
25201 # We can compile using X headers with no special include directory.
25204 for ac_dir in $ac_x_header_dirs; do
25205 if test -r "$ac_dir/X11/Xlib.h"; then
25206 ac_x_includes=$ac_dir
25211 rm -f conftest.err conftest.i conftest.$ac_ext
25212 fi # $ac_x_includes = no
25214 if test "$ac_x_libraries" = no; then
25215 # Check for the libraries.
25216 # See if we find them without any special options.
25217 # Don't add to $LIBS permanently.
25220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25221 /* end confdefs.h. */
25222 #include <X11/Xlib.h>
25231 if ac_fn_c_try_link "$LINENO"; then :
25233 # We can link X programs with no special library path.
25237 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25239 # Don't even attempt the hair of trying to link an X program!
25240 for ac_extension in a so sl dylib la dll; do
25241 if test -r "$ac_dir/libX11.$ac_extension"; then
25242 ac_x_libraries=$ac_dir
25248 rm -f core conftest.err conftest.$ac_objext \
25249 conftest$ac_exeext conftest.$ac_ext
25250 fi # $ac_x_libraries = no
25252 case $ac_x_includes,$ac_x_libraries in #(
25253 no,* | *,no | *\'*)
25254 # Didn't find X, or a directory has "'" in its name.
25255 ac_cv_have_x="have_x=no";; #(
25257 # Record where we found X for the cache.
25258 ac_cv_have_x="have_x=yes\
25259 ac_x_includes='$ac_x_includes'\
25260 ac_x_libraries='$ac_x_libraries'"
25266 eval "$ac_cv_have_x"
25269 if test "$have_x" != yes; then
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25271 $as_echo "$have_x" >&6; }
25274 # If each of the values was on the command line, it overrides each guess.
25275 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25276 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25277 # Update the cache value to reflect the command line values.
25278 ac_cv_have_x="have_x=yes\
25279 ac_x_includes='$x_includes'\
25280 ac_x_libraries='$x_libraries'"
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25282 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25285 if test "$no_x" = yes; then
25286 # Not all programs may use this symbol, but it does not hurt to define it.
25288 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25290 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25292 if test -n "$x_includes"; then
25293 X_CFLAGS="$X_CFLAGS -I$x_includes"
25296 # It would also be nice to do this for all -L options, not just this one.
25297 if test -n "$x_libraries"; then
25298 X_LIBS="$X_LIBS -L$x_libraries"
25299 # For Solaris; some versions of Sun CC require a space after -R and
25300 # others require no space. Words are not sufficient . . . .
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25302 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25303 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25304 ac_xsave_c_werror_flag=$ac_c_werror_flag
25305 ac_c_werror_flag=yes
25306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25307 /* end confdefs.h. */
25317 if ac_fn_c_try_link "$LINENO"; then :
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25319 $as_echo "no" >&6; }
25320 X_LIBS="$X_LIBS -R$x_libraries"
25322 LIBS="$ac_xsave_LIBS -R $x_libraries"
25323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25324 /* end confdefs.h. */
25334 if ac_fn_c_try_link "$LINENO"; then :
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25336 $as_echo "yes" >&6; }
25337 X_LIBS="$X_LIBS -R $x_libraries"
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25340 $as_echo "neither works" >&6; }
25342 rm -f core conftest.err conftest.$ac_objext \
25343 conftest$ac_exeext conftest.$ac_ext
25345 rm -f core conftest.err conftest.$ac_objext \
25346 conftest$ac_exeext conftest.$ac_ext
25347 ac_c_werror_flag=$ac_xsave_c_werror_flag
25348 LIBS=$ac_xsave_LIBS
25351 # Check for system-dependent libraries X programs must link with.
25352 # Do this before checking for the system-independent R6 libraries
25353 # (-lICE), since we may need -lsocket or whatever for X linking.
25355 if test "$ISC" = yes; then
25356 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25358 # Martyn Johnson says this is needed for Ultrix, if the X
25359 # libraries were built with DECnet support. And Karl Berry says
25360 # the Alpha needs dnet_stub (dnet does not exist).
25361 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25363 /* end confdefs.h. */
25365 /* Override any GCC internal prototype to avoid an error.
25366 Use char because int might match the return type of a GCC
25367 builtin and then its argument prototype would still apply. */
25371 char XOpenDisplay ();
25375 return XOpenDisplay ();
25380 if ac_fn_c_try_link "$LINENO"; then :
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25384 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25385 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25386 $as_echo_n "(cached) " >&6
25388 ac_check_lib_save_LIBS=$LIBS
25389 LIBS="-ldnet $LIBS"
25390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25391 /* end confdefs.h. */
25393 /* Override any GCC internal prototype to avoid an error.
25394 Use char because int might match the return type of a GCC
25395 builtin and then its argument prototype would still apply. */
25403 return dnet_ntoa ();
25408 if ac_fn_c_try_link "$LINENO"; then :
25409 ac_cv_lib_dnet_dnet_ntoa=yes
25411 ac_cv_lib_dnet_dnet_ntoa=no
25413 rm -f core conftest.err conftest.$ac_objext \
25414 conftest$ac_exeext conftest.$ac_ext
25415 LIBS=$ac_check_lib_save_LIBS
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25418 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25419 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25420 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25423 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25425 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25426 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25427 $as_echo_n "(cached) " >&6
25429 ac_check_lib_save_LIBS=$LIBS
25430 LIBS="-ldnet_stub $LIBS"
25431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25432 /* end confdefs.h. */
25434 /* Override any GCC internal prototype to avoid an error.
25435 Use char because int might match the return type of a GCC
25436 builtin and then its argument prototype would still apply. */
25444 return dnet_ntoa ();
25449 if ac_fn_c_try_link "$LINENO"; then :
25450 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25452 ac_cv_lib_dnet_stub_dnet_ntoa=no
25454 rm -f core conftest.err conftest.$ac_objext \
25455 conftest$ac_exeext conftest.$ac_ext
25456 LIBS=$ac_check_lib_save_LIBS
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25459 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25460 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25461 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25466 rm -f core conftest.err conftest.$ac_objext \
25467 conftest$ac_exeext conftest.$ac_ext
25468 LIBS="$ac_xsave_LIBS"
25470 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25471 # to get the SysV transport functions.
25472 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25474 # The nsl library prevents programs from opening the X display
25475 # on Irix 5.2, according to T.E. Dickey.
25476 # The functions gethostbyname, getservbyname, and inet_addr are
25477 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25478 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25479 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25483 if test $ac_cv_func_gethostbyname = no; then
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25485 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25486 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25487 $as_echo_n "(cached) " >&6
25489 ac_check_lib_save_LIBS=$LIBS
25491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25492 /* end confdefs.h. */
25494 /* Override any GCC internal prototype to avoid an error.
25495 Use char because int might match the return type of a GCC
25496 builtin and then its argument prototype would still apply. */
25500 char gethostbyname ();
25504 return gethostbyname ();
25509 if ac_fn_c_try_link "$LINENO"; then :
25510 ac_cv_lib_nsl_gethostbyname=yes
25512 ac_cv_lib_nsl_gethostbyname=no
25514 rm -f core conftest.err conftest.$ac_objext \
25515 conftest$ac_exeext conftest.$ac_ext
25516 LIBS=$ac_check_lib_save_LIBS
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25519 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25520 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25521 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25524 if test $ac_cv_lib_nsl_gethostbyname = no; then
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25526 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25527 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25528 $as_echo_n "(cached) " >&6
25530 ac_check_lib_save_LIBS=$LIBS
25532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25533 /* end confdefs.h. */
25535 /* Override any GCC internal prototype to avoid an error.
25536 Use char because int might match the return type of a GCC
25537 builtin and then its argument prototype would still apply. */
25541 char gethostbyname ();
25545 return gethostbyname ();
25550 if ac_fn_c_try_link "$LINENO"; then :
25551 ac_cv_lib_bsd_gethostbyname=yes
25553 ac_cv_lib_bsd_gethostbyname=no
25555 rm -f core conftest.err conftest.$ac_objext \
25556 conftest$ac_exeext conftest.$ac_ext
25557 LIBS=$ac_check_lib_save_LIBS
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25560 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25561 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25562 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25568 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25569 # socket/setsockopt and other routines are undefined under SCO ODT
25570 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25571 # on later versions), says Simon Leinen: it contains gethostby*
25572 # variants that don't use the name server (or something). -lsocket
25573 # must be given before -lnsl if both are needed. We assume that
25574 # if connect needs -lnsl, so does gethostbyname.
25575 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25576 if test "x$ac_cv_func_connect" = xyes; then :
25580 if test $ac_cv_func_connect = no; then
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25582 $as_echo_n "checking for connect in -lsocket... " >&6; }
25583 if ${ac_cv_lib_socket_connect+:} false; then :
25584 $as_echo_n "(cached) " >&6
25586 ac_check_lib_save_LIBS=$LIBS
25587 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25589 /* end confdefs.h. */
25591 /* Override any GCC internal prototype to avoid an error.
25592 Use char because int might match the return type of a GCC
25593 builtin and then its argument prototype would still apply. */
25606 if ac_fn_c_try_link "$LINENO"; then :
25607 ac_cv_lib_socket_connect=yes
25609 ac_cv_lib_socket_connect=no
25611 rm -f core conftest.err conftest.$ac_objext \
25612 conftest$ac_exeext conftest.$ac_ext
25613 LIBS=$ac_check_lib_save_LIBS
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25616 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25617 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25618 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25623 # Guillermo Gomez says -lposix is necessary on A/UX.
25624 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25625 if test "x$ac_cv_func_remove" = xyes; then :
25629 if test $ac_cv_func_remove = no; then
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25631 $as_echo_n "checking for remove in -lposix... " >&6; }
25632 if ${ac_cv_lib_posix_remove+:} false; then :
25633 $as_echo_n "(cached) " >&6
25635 ac_check_lib_save_LIBS=$LIBS
25636 LIBS="-lposix $LIBS"
25637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25638 /* end confdefs.h. */
25640 /* Override any GCC internal prototype to avoid an error.
25641 Use char because int might match the return type of a GCC
25642 builtin and then its argument prototype would still apply. */
25655 if ac_fn_c_try_link "$LINENO"; then :
25656 ac_cv_lib_posix_remove=yes
25658 ac_cv_lib_posix_remove=no
25660 rm -f core conftest.err conftest.$ac_objext \
25661 conftest$ac_exeext conftest.$ac_ext
25662 LIBS=$ac_check_lib_save_LIBS
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25665 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25666 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25667 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25672 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25673 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25674 if test "x$ac_cv_func_shmat" = xyes; then :
25678 if test $ac_cv_func_shmat = no; then
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25680 $as_echo_n "checking for shmat in -lipc... " >&6; }
25681 if ${ac_cv_lib_ipc_shmat+:} false; then :
25682 $as_echo_n "(cached) " >&6
25684 ac_check_lib_save_LIBS=$LIBS
25686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25687 /* end confdefs.h. */
25689 /* Override any GCC internal prototype to avoid an error.
25690 Use char because int might match the return type of a GCC
25691 builtin and then its argument prototype would still apply. */
25704 if ac_fn_c_try_link "$LINENO"; then :
25705 ac_cv_lib_ipc_shmat=yes
25707 ac_cv_lib_ipc_shmat=no
25709 rm -f core conftest.err conftest.$ac_objext \
25710 conftest$ac_exeext conftest.$ac_ext
25711 LIBS=$ac_check_lib_save_LIBS
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25714 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25715 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25716 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25722 # Check for libraries that X11R6 Xt/Xaw programs need.
25723 ac_save_LDFLAGS=$LDFLAGS
25724 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25725 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25726 # check for ICE first), but we must link in the order -lSM -lICE or
25727 # we get undefined symbols. So assume we have SM if we have ICE.
25728 # These have to be linked with before -lX11, unlike the other
25729 # libraries we check for below, so use a different variable.
25730 # John Interrante, Karl Berry
25731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25732 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25733 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25734 $as_echo_n "(cached) " >&6
25736 ac_check_lib_save_LIBS=$LIBS
25737 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25739 /* end confdefs.h. */
25741 /* Override any GCC internal prototype to avoid an error.
25742 Use char because int might match the return type of a GCC
25743 builtin and then its argument prototype would still apply. */
25747 char IceConnectionNumber ();
25751 return IceConnectionNumber ();
25756 if ac_fn_c_try_link "$LINENO"; then :
25757 ac_cv_lib_ICE_IceConnectionNumber=yes
25759 ac_cv_lib_ICE_IceConnectionNumber=no
25761 rm -f core conftest.err conftest.$ac_objext \
25762 conftest$ac_exeext conftest.$ac_ext
25763 LIBS=$ac_check_lib_save_LIBS
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25766 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25767 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25768 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25771 LDFLAGS=$ac_save_LDFLAGS
25809 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25810 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25811 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25812 cat >>confdefs.h <<_ACEOF
25813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25821 $as_echo_n "checking for ANSI C header files... " >&6; }
25822 if ${ac_cv_header_stdc+:} false; then :
25823 $as_echo_n "(cached) " >&6
25825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25826 /* end confdefs.h. */
25827 #include <stdlib.h>
25828 #include <stdarg.h>
25829 #include <string.h>
25840 if ac_fn_c_try_compile "$LINENO"; then :
25841 ac_cv_header_stdc=yes
25843 ac_cv_header_stdc=no
25845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25847 if test $ac_cv_header_stdc = yes; then
25848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25850 /* end confdefs.h. */
25851 #include <string.h>
25854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25855 $EGREP "memchr" >/dev/null 2>&1; then :
25858 ac_cv_header_stdc=no
25864 if test $ac_cv_header_stdc = yes; then
25865 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25867 /* end confdefs.h. */
25868 #include <stdlib.h>
25871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25872 $EGREP "free" >/dev/null 2>&1; then :
25875 ac_cv_header_stdc=no
25881 if test $ac_cv_header_stdc = yes; then
25882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25883 if test "$cross_compiling" = yes; then :
25886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25887 /* end confdefs.h. */
25889 #include <stdlib.h>
25890 #if ((' ' & 0x0FF) == 0x020)
25891 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25892 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25894 # define ISLOWER(c) \
25895 (('a' <= (c) && (c) <= 'i') \
25896 || ('j' <= (c) && (c) <= 'r') \
25897 || ('s' <= (c) && (c) <= 'z'))
25898 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25901 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25906 for (i = 0; i < 256; i++)
25907 if (XOR (islower (i), ISLOWER (i))
25908 || toupper (i) != TOUPPER (i))
25913 if ac_fn_c_try_run "$LINENO"; then :
25916 ac_cv_header_stdc=no
25918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25919 conftest.$ac_objext conftest.beam conftest.$ac_ext
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25925 $as_echo "$ac_cv_header_stdc" >&6; }
25926 if test $ac_cv_header_stdc = yes; then
25928 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25933 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25934 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25935 $as_echo_n "(cached) " >&6
25937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25938 /* end confdefs.h. */
25939 #include <sys/types.h>
25943 return makedev(0, 0);
25948 if ac_fn_c_try_link "$LINENO"; then :
25949 ac_cv_header_sys_types_h_makedev=yes
25951 ac_cv_header_sys_types_h_makedev=no
25953 rm -f core conftest.err conftest.$ac_objext \
25954 conftest$ac_exeext conftest.$ac_ext
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25958 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25960 if test $ac_cv_header_sys_types_h_makedev = no; then
25961 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25962 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25964 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25970 if test $ac_cv_header_sys_mkdev_h = no; then
25971 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25972 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25974 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25982 ac_header_dirent=no
25983 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25984 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25986 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25987 if eval \${$as_ac_Header+:} false; then :
25988 $as_echo_n "(cached) " >&6
25990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25991 /* end confdefs.h. */
25992 #include <sys/types.h>
26004 if ac_fn_c_try_compile "$LINENO"; then :
26005 eval "$as_ac_Header=yes"
26007 eval "$as_ac_Header=no"
26009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26011 eval ac_res=\$$as_ac_Header
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26013 $as_echo "$ac_res" >&6; }
26014 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26015 cat >>confdefs.h <<_ACEOF
26016 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26019 ac_header_dirent=$ac_hdr; break
26023 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26024 if test $ac_header_dirent = dirent.h; then
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26026 $as_echo_n "checking for library containing opendir... " >&6; }
26027 if ${ac_cv_search_opendir+:} false; then :
26028 $as_echo_n "(cached) " >&6
26030 ac_func_search_save_LIBS=$LIBS
26031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26032 /* end confdefs.h. */
26034 /* Override any GCC internal prototype to avoid an error.
26035 Use char because int might match the return type of a GCC
26036 builtin and then its argument prototype would still apply. */
26049 for ac_lib in '' dir; do
26050 if test -z "$ac_lib"; then
26051 ac_res="none required"
26054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26056 if ac_fn_c_try_link "$LINENO"; then :
26057 ac_cv_search_opendir=$ac_res
26059 rm -f core conftest.err conftest.$ac_objext \
26061 if ${ac_cv_search_opendir+:} false; then :
26065 if ${ac_cv_search_opendir+:} false; then :
26068 ac_cv_search_opendir=no
26070 rm conftest.$ac_ext
26071 LIBS=$ac_func_search_save_LIBS
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26074 $as_echo "$ac_cv_search_opendir" >&6; }
26075 ac_res=$ac_cv_search_opendir
26076 if test "$ac_res" != no; then :
26077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26083 $as_echo_n "checking for library containing opendir... " >&6; }
26084 if ${ac_cv_search_opendir+:} false; then :
26085 $as_echo_n "(cached) " >&6
26087 ac_func_search_save_LIBS=$LIBS
26088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26089 /* end confdefs.h. */
26091 /* Override any GCC internal prototype to avoid an error.
26092 Use char because int might match the return type of a GCC
26093 builtin and then its argument prototype would still apply. */
26106 for ac_lib in '' x; do
26107 if test -z "$ac_lib"; then
26108 ac_res="none required"
26111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26113 if ac_fn_c_try_link "$LINENO"; then :
26114 ac_cv_search_opendir=$ac_res
26116 rm -f core conftest.err conftest.$ac_objext \
26118 if ${ac_cv_search_opendir+:} false; then :
26122 if ${ac_cv_search_opendir+:} false; then :
26125 ac_cv_search_opendir=no
26127 rm conftest.$ac_ext
26128 LIBS=$ac_func_search_save_LIBS
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26131 $as_echo "$ac_cv_search_opendir" >&6; }
26132 ac_res=$ac_cv_search_opendir
26133 if test "$ac_res" != no; then :
26134 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26141 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26142 if ${ac_cv_header_stat_broken+:} false; then :
26143 $as_echo_n "(cached) " >&6
26145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26146 /* end confdefs.h. */
26147 #include <sys/types.h>
26148 #include <sys/stat.h>
26150 #if defined S_ISBLK && defined S_IFDIR
26151 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26154 #if defined S_ISBLK && defined S_IFCHR
26155 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26158 #if defined S_ISLNK && defined S_IFREG
26159 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26162 #if defined S_ISSOCK && defined S_IFREG
26163 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26167 if ac_fn_c_try_compile "$LINENO"; then :
26168 ac_cv_header_stat_broken=no
26170 ac_cv_header_stat_broken=yes
26172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26175 $as_echo "$ac_cv_header_stat_broken" >&6; }
26176 if test $ac_cv_header_stat_broken = yes; then
26178 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26183 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26184 if ${ac_cv_header_sys_wait_h+:} false; then :
26185 $as_echo_n "(cached) " >&6
26187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26188 /* end confdefs.h. */
26189 #include <sys/types.h>
26190 #include <sys/wait.h>
26191 #ifndef WEXITSTATUS
26192 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26195 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26203 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26208 if ac_fn_c_try_compile "$LINENO"; then :
26209 ac_cv_header_sys_wait_h=yes
26211 ac_cv_header_sys_wait_h=no
26213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26216 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26217 if test $ac_cv_header_sys_wait_h = yes; then
26219 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26224 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26225 if ${ac_cv_header_time+:} false; then :
26226 $as_echo_n "(cached) " >&6
26228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26229 /* end confdefs.h. */
26230 #include <sys/types.h>
26231 #include <sys/time.h>
26237 if ((struct tm *) 0)
26243 if ac_fn_c_try_compile "$LINENO"; then :
26244 ac_cv_header_time=yes
26246 ac_cv_header_time=no
26248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26251 $as_echo "$ac_cv_header_time" >&6; }
26252 if test $ac_cv_header_time = yes; then
26254 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26258 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26259 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26261 cat >>confdefs.h <<_ACEOF
26262 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26266 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26271 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26272 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26274 cat >>confdefs.h <<_ACEOF
26275 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26279 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26282 case " $LIBOBJS " in
26283 *" fileblocks.$ac_objext "* ) ;;
26284 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26292 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26293 if ${ac_cv_struct_tm+:} false; then :
26294 $as_echo_n "(cached) " >&6
26296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26297 /* end confdefs.h. */
26298 #include <sys/types.h>
26305 int *p = &tm.tm_sec;
26311 if ac_fn_c_try_compile "$LINENO"; then :
26312 ac_cv_struct_tm=time.h
26314 ac_cv_struct_tm=sys/time.h
26316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26319 $as_echo "$ac_cv_struct_tm" >&6; }
26320 if test $ac_cv_struct_tm = sys/time.h; then
26322 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26326 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26327 #include <$ac_cv_struct_tm>
26330 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26332 cat >>confdefs.h <<_ACEOF
26333 #define HAVE_STRUCT_TM_TM_ZONE 1
26339 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26341 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26344 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26346 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26352 cat >>confdefs.h <<_ACEOF
26353 #define HAVE_DECL_TZNAME $ac_have_decl
26356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26357 $as_echo_n "checking for tzname... " >&6; }
26358 if ${ac_cv_var_tzname+:} false; then :
26359 $as_echo_n "(cached) " >&6
26361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26362 /* end confdefs.h. */
26364 #if !HAVE_DECL_TZNAME
26365 extern char *tzname[];
26371 return tzname[0][0];
26376 if ac_fn_c_try_link "$LINENO"; then :
26377 ac_cv_var_tzname=yes
26379 ac_cv_var_tzname=no
26381 rm -f core conftest.err conftest.$ac_objext \
26382 conftest$ac_exeext conftest.$ac_ext
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26385 $as_echo "$ac_cv_var_tzname" >&6; }
26386 if test $ac_cv_var_tzname = yes; then
26388 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26395 $as_echo_n "checking for utime.h... " >&6; }
26396 if ${ba_cv_header_utime_h+:} false; then :
26397 $as_echo_n "(cached) " >&6
26400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26401 /* end confdefs.h. */
26403 #include <sys/types.h>
26416 if ac_fn_c_try_compile "$LINENO"; then :
26418 ba_cv_header_utime_h=yes
26422 ba_cv_header_utime_h=no
26426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26431 $as_echo "$ba_cv_header_utime_h" >&6; }
26432 test $ba_cv_header_utime_h = yes &&
26433 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26437 $as_echo_n "checking for socklen_t... " >&6; }
26438 if ${ba_cv_header_socklen_t+:} false; then :
26439 $as_echo_n "(cached) " >&6
26442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26443 /* end confdefs.h. */
26445 #include <sys/types.h>
26446 #include <sys/socket.h>
26458 if ac_fn_c_try_compile "$LINENO"; then :
26460 ba_cv_header_socklen_t=yes
26464 ba_cv_header_socklen_t=no
26468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26473 $as_echo "$ba_cv_header_socklen_t" >&6; }
26474 test $ba_cv_header_socklen_t = yes &&
26475 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26479 ac_cpp='$CXXCPP $CPPFLAGS'
26480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26485 $as_echo_n "checking for ioctl_req_t... " >&6; }
26486 if ${ba_cv_header_ioctl_req_t+:} false; then :
26487 $as_echo_n "(cached) " >&6
26490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26491 /* end confdefs.h. */
26493 #include <unistd.h>
26494 #include <sys/types.h>
26495 #include <sys/ioctl.h>
26501 int (*d_ioctl)(int fd, unsigned long int request, ...);
26508 if ac_fn_cxx_try_compile "$LINENO"; then :
26510 ba_cv_header_ioctl_req_t=yes
26514 ba_cv_header_ioctl_req_t=no
26518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26523 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26524 test $ba_cv_header_ioctl_req_t = yes &&
26525 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26529 ac_cpp='$CPP $CPPFLAGS'
26530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26536 ac_cpp='$CXXCPP $CPPFLAGS'
26537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26542 $as_echo_n "checking for typeof... " >&6; }
26543 if ${ba_cv_have_typeof+:} false; then :
26544 $as_echo_n "(cached) " >&6
26547 if test "$cross_compiling" = yes; then :
26549 ba_cv_have_typeof=no
26553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26554 /* end confdefs.h. */
26556 main(){char *a = 0; a = (typeof a)a;}
26559 if ac_fn_cxx_try_run "$LINENO"; then :
26561 ba_cv_have_typeof=yes
26565 ba_cv_have_typeof=no
26568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26569 conftest.$ac_objext conftest.beam conftest.$ac_ext
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26576 $as_echo "$ba_cv_have_typeof" >&6; }
26577 test $ba_cv_have_typeof = yes &&
26578 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26581 ac_cpp='$CPP $CPPFLAGS'
26582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26588 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26589 if ${ac_cv_c_const+:} false; then :
26590 $as_echo_n "(cached) " >&6
26592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26593 /* end confdefs.h. */
26598 /* FIXME: Include the comments suggested by Paul. */
26599 #ifndef __cplusplus
26600 /* Ultrix mips cc rejects this. */
26601 typedef int charset[2];
26603 /* SunOS 4.1.1 cc rejects this. */
26604 char const *const *pcpcc;
26606 /* NEC SVR4.0.2 mips cc rejects this. */
26607 struct point {int x, y;};
26608 static struct point const zero = {0,0};
26609 /* AIX XL C 1.02.0.0 rejects this.
26610 It does not let you subtract one const X* pointer from another in
26611 an arm of an if-expression whose if-part is not a constant
26613 const char *g = "string";
26614 pcpcc = &g + (g ? g-g : 0);
26615 /* HPUX 7.0 cc rejects these. */
26617 ppc = (char**) pcpcc;
26618 pcpcc = (char const *const *) ppc;
26619 { /* SCO 3.2v4 cc rejects this. */
26621 char const *s = 0 ? (char *) 0 : (char const *) 0;
26626 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26627 int x[] = {25, 17};
26628 const int *foo = &x[0];
26631 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26632 typedef const int *iptr;
26636 { /* AIX XL C 1.02.0.0 rejects this saying
26637 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26638 struct s { int j; const int *ap[3]; };
26639 struct s *b; b->j = 5;
26641 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26642 const int foo = 10;
26643 if (!foo) return 0;
26645 return !cs[0] && !zero.x;
26652 if ac_fn_c_try_compile "$LINENO"; then :
26657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26660 $as_echo "$ac_cv_c_const" >&6; }
26661 if test $ac_cv_c_const = no; then
26663 $as_echo "#define const /**/" >>confdefs.h
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26669 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26670 if ${ac_cv_c_bigendian+:} false; then :
26671 $as_echo_n "(cached) " >&6
26673 ac_cv_c_bigendian=unknown
26674 # See if we're dealing with a universal compiler.
26675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26676 /* end confdefs.h. */
26677 #ifndef __APPLE_CC__
26678 not a universal capable compiler
26683 if ac_fn_c_try_compile "$LINENO"; then :
26685 # Check for potential -arch flags. It is not universal unless
26686 # there are at least two -arch flags with different values.
26689 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26690 if test -n "$ac_prev"; then
26692 i?86 | x86_64 | ppc | ppc64)
26693 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26696 ac_cv_c_bigendian=universal
26702 elif test "x$ac_word" = "x-arch"; then
26707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26708 if test $ac_cv_c_bigendian = unknown; then
26709 # See if sys/param.h defines the BYTE_ORDER macro.
26710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26711 /* end confdefs.h. */
26712 #include <sys/types.h>
26713 #include <sys/param.h>
26718 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26719 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26721 bogus endian macros
26728 if ac_fn_c_try_compile "$LINENO"; then :
26729 # It does; now see whether it defined to BIG_ENDIAN or not.
26730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26731 /* end confdefs.h. */
26732 #include <sys/types.h>
26733 #include <sys/param.h>
26738 #if BYTE_ORDER != BIG_ENDIAN
26746 if ac_fn_c_try_compile "$LINENO"; then :
26747 ac_cv_c_bigendian=yes
26749 ac_cv_c_bigendian=no
26751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26755 if test $ac_cv_c_bigendian = unknown; then
26756 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26758 /* end confdefs.h. */
26759 #include <limits.h>
26764 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26765 bogus endian macros
26772 if ac_fn_c_try_compile "$LINENO"; then :
26773 # It does; now see whether it defined to _BIG_ENDIAN or not.
26774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26775 /* end confdefs.h. */
26776 #include <limits.h>
26781 #ifndef _BIG_ENDIAN
26789 if ac_fn_c_try_compile "$LINENO"; then :
26790 ac_cv_c_bigendian=yes
26792 ac_cv_c_bigendian=no
26794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26798 if test $ac_cv_c_bigendian = unknown; then
26799 # Compile a test program.
26800 if test "$cross_compiling" = yes; then :
26801 # Try to guess by grepping values from an object file.
26802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26803 /* end confdefs.h. */
26804 short int ascii_mm[] =
26805 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26806 short int ascii_ii[] =
26807 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26808 int use_ascii (int i) {
26809 return ascii_mm[i] + ascii_ii[i];
26811 short int ebcdic_ii[] =
26812 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26813 short int ebcdic_mm[] =
26814 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26815 int use_ebcdic (int i) {
26816 return ebcdic_mm[i] + ebcdic_ii[i];
26823 return use_ascii (foo) == use_ebcdic (foo);
26828 if ac_fn_c_try_compile "$LINENO"; then :
26829 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26830 ac_cv_c_bigendian=yes
26832 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26833 if test "$ac_cv_c_bigendian" = unknown; then
26834 ac_cv_c_bigendian=no
26836 # finding both strings is unlikely to happen, but who knows?
26837 ac_cv_c_bigendian=unknown
26841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26844 /* end confdefs.h. */
26845 $ac_includes_default
26850 /* Are we little or big endian? From Harbison&Steele. */
26854 char c[sizeof (long int)];
26857 return u.c[sizeof (long int) - 1] == 1;
26863 if ac_fn_c_try_run "$LINENO"; then :
26864 ac_cv_c_bigendian=no
26866 ac_cv_c_bigendian=yes
26868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26869 conftest.$ac_objext conftest.beam conftest.$ac_ext
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26875 $as_echo "$ac_cv_c_bigendian" >&6; }
26876 case $ac_cv_c_bigendian in #(
26879 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26883 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26887 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26891 as_fn_error $? "unknown endianness
26892 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26897 $as_echo_n "checking how to get filesystem type... " >&6; }
26899 # The order of these tests is important.
26900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26901 /* end confdefs.h. */
26903 #include <sys/statvfs.h>
26904 #include <sys/fstyp.h>
26907 if ac_fn_c_try_cpp "$LINENO"; then :
26908 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26912 rm -f conftest.err conftest.i conftest.$ac_ext
26913 if test $fstype = no; then
26914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26915 /* end confdefs.h. */
26917 #include <sys/statfs.h>
26918 #include <sys/fstyp.h>
26921 if ac_fn_c_try_cpp "$LINENO"; then :
26922 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26926 rm -f conftest.err conftest.i conftest.$ac_ext
26928 if test $fstype = no; then
26929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26930 /* end confdefs.h. */
26932 #include <sys/statfs.h>
26933 #include <sys/vmount.h>
26936 if ac_fn_c_try_cpp "$LINENO"; then :
26937 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26941 rm -f conftest.err conftest.i conftest.$ac_ext
26943 if test $fstype = no; then
26944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26945 /* end confdefs.h. */
26947 #include <mntent.h>
26950 if ac_fn_c_try_cpp "$LINENO"; then :
26951 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26955 rm -f conftest.err conftest.i conftest.$ac_ext
26957 if test $fstype = no; then
26958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26959 /* end confdefs.h. */
26960 #include <sys/mount.h>
26963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26964 $EGREP "f_type;" >/dev/null 2>&1; then :
26965 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26971 if test $fstype = no; then
26972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26973 /* end confdefs.h. */
26975 #include <sys/mount.h>
26976 #include <sys/fs_types.h>
26979 if ac_fn_c_try_cpp "$LINENO"; then :
26980 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26984 rm -f conftest.err conftest.i conftest.$ac_ext
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26987 $as_echo "$fstype" >&6; }
26989 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26990 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26992 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26999 ac_cpp='$CXXCPP $CPPFLAGS'
27000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27004 for ac_func in backtrace
27006 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27007 if test "x$ac_cv_func_backtrace" = xyes; then :
27008 cat >>confdefs.h <<_ACEOF
27009 #define HAVE_BACKTRACE 1
27016 ac_cpp='$CPP $CPPFLAGS'
27017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27023 $as_echo_n "checking return type of signal handlers... " >&6; }
27024 if ${ac_cv_type_signal+:} false; then :
27025 $as_echo_n "(cached) " >&6
27027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27028 /* end confdefs.h. */
27029 #include <sys/types.h>
27030 #include <signal.h>
27035 return *(signal (0, 0)) (0) == 1;
27040 if ac_fn_c_try_compile "$LINENO"; then :
27041 ac_cv_type_signal=int
27043 ac_cv_type_signal=void
27045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27048 $as_echo "$ac_cv_type_signal" >&6; }
27050 cat >>confdefs.h <<_ACEOF
27051 #define RETSIGTYPE $ac_cv_type_signal
27056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27057 $as_echo_n "checking for type of signal functions... " >&6; }
27058 if ${bash_cv_signal_vintage+:} false; then :
27059 $as_echo_n "(cached) " >&6
27062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27063 /* end confdefs.h. */
27064 #include <signal.h>
27070 struct sigaction sa;
27071 sigemptyset(&ss); sigsuspend(&ss);
27072 sigaction(SIGINT, &sa, (struct sigaction *) 0);
27073 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27079 if ac_fn_c_try_link "$LINENO"; then :
27080 bash_cv_signal_vintage="posix"
27083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27084 /* end confdefs.h. */
27085 #include <signal.h>
27090 int mask = sigmask(SIGINT);
27091 sigsetmask(mask); sigblock(mask); sigpause(mask);
27097 if ac_fn_c_try_link "$LINENO"; then :
27098 bash_cv_signal_vintage="4.2bsd"
27101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27102 /* end confdefs.h. */
27104 #include <signal.h>
27105 RETSIGTYPE foo() { }
27110 int mask = sigmask(SIGINT);
27111 sigset(SIGINT, foo); sigrelse(SIGINT);
27112 sighold(SIGINT); sigpause(SIGINT);
27118 if ac_fn_c_try_link "$LINENO"; then :
27119 bash_cv_signal_vintage="svr3"
27121 bash_cv_signal_vintage="v7"
27124 rm -f core conftest.err conftest.$ac_objext \
27125 conftest$ac_exeext conftest.$ac_ext
27128 rm -f core conftest.err conftest.$ac_objext \
27129 conftest$ac_exeext conftest.$ac_ext
27132 rm -f core conftest.err conftest.$ac_objext \
27133 conftest$ac_exeext conftest.$ac_ext
27137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27138 $as_echo "$bash_cv_signal_vintage" >&6; }
27139 if test "$bash_cv_signal_vintage" = "posix"; then
27140 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27142 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27143 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27145 elif test "$bash_cv_signal_vintage" = "svr3"; then
27146 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27150 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27151 if test "x$ac_cv_type_mode_t" = xyes; then :
27155 cat >>confdefs.h <<_ACEOF
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27162 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27163 if ${ac_cv_type_uid_t+:} false; then :
27164 $as_echo_n "(cached) " >&6
27166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27167 /* end confdefs.h. */
27168 #include <sys/types.h>
27171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27172 $EGREP "uid_t" >/dev/null 2>&1; then :
27173 ac_cv_type_uid_t=yes
27175 ac_cv_type_uid_t=no
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27181 $as_echo "$ac_cv_type_uid_t" >&6; }
27182 if test $ac_cv_type_uid_t = no; then
27184 $as_echo "#define uid_t int" >>confdefs.h
27187 $as_echo "#define gid_t int" >>confdefs.h
27191 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27192 if test "x$ac_cv_type_size_t" = xyes; then :
27196 cat >>confdefs.h <<_ACEOF
27197 #define size_t unsigned int
27202 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27203 if test "x$ac_cv_type_pid_t" = xyes; then :
27207 cat >>confdefs.h <<_ACEOF
27213 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27214 if test "x$ac_cv_type_off_t" = xyes; then :
27218 cat >>confdefs.h <<_ACEOF
27219 #define off_t long int
27225 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27226 if test "x$ac_cv_type_intptr_t" = xyes; then :
27228 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27231 for ac_type in 'int' 'long int' 'long long int'; do
27232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27233 /* end confdefs.h. */
27234 $ac_includes_default
27238 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27245 if ac_fn_c_try_compile "$LINENO"; then :
27247 cat >>confdefs.h <<_ACEOF
27248 #define intptr_t $ac_type
27253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27254 test -z "$ac_type" && break
27260 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27261 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27263 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27266 for ac_type in 'unsigned int' 'unsigned long int' \
27267 'unsigned long long int'; do
27268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27269 /* end confdefs.h. */
27270 $ac_includes_default
27274 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27281 if ac_fn_c_try_compile "$LINENO"; then :
27283 cat >>confdefs.h <<_ACEOF
27284 #define uintptr_t $ac_type
27289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27290 test -z "$ac_type" && break
27295 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27296 if test "x$ac_cv_type_ino_t" = xyes; then :
27300 cat >>confdefs.h <<_ACEOF
27301 #define ino_t unsigned long
27306 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27307 if test "x$ac_cv_type_dev_t" = xyes; then :
27311 cat >>confdefs.h <<_ACEOF
27312 #define dev_t unsigned long
27317 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27318 if test "x$ac_cv_type_daddr_t" = xyes; then :
27322 cat >>confdefs.h <<_ACEOF
27323 #define daddr_t long
27328 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27329 if test "x$ac_cv_type_major_t" = xyes; then :
27333 cat >>confdefs.h <<_ACEOF
27334 #define major_t int
27339 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27340 if test "x$ac_cv_type_minor_t" = xyes; then :
27344 cat >>confdefs.h <<_ACEOF
27345 #define minor_t int
27350 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27351 if test "x$ac_cv_type_ssize_t" = xyes; then :
27355 cat >>confdefs.h <<_ACEOF
27356 #define ssize_t int
27361 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27362 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27364 cat >>confdefs.h <<_ACEOF
27365 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27369 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27372 case " $LIBOBJS " in
27373 *" fileblocks.$ac_objext "* ) ;;
27374 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27381 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27382 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27384 cat >>confdefs.h <<_ACEOF
27385 #define HAVE_STRUCT_STAT_ST_RDEV 1
27389 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27395 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27396 if ${ac_cv_struct_tm+:} false; then :
27397 $as_echo_n "(cached) " >&6
27399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27400 /* end confdefs.h. */
27401 #include <sys/types.h>
27408 int *p = &tm.tm_sec;
27414 if ac_fn_c_try_compile "$LINENO"; then :
27415 ac_cv_struct_tm=time.h
27417 ac_cv_struct_tm=sys/time.h
27419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27422 $as_echo "$ac_cv_struct_tm" >&6; }
27423 if test $ac_cv_struct_tm = sys/time.h; then
27425 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27430 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27431 if ${ac_cv_c_const+:} false; then :
27432 $as_echo_n "(cached) " >&6
27434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27435 /* end confdefs.h. */
27440 /* FIXME: Include the comments suggested by Paul. */
27441 #ifndef __cplusplus
27442 /* Ultrix mips cc rejects this. */
27443 typedef int charset[2];
27445 /* SunOS 4.1.1 cc rejects this. */
27446 char const *const *pcpcc;
27448 /* NEC SVR4.0.2 mips cc rejects this. */
27449 struct point {int x, y;};
27450 static struct point const zero = {0,0};
27451 /* AIX XL C 1.02.0.0 rejects this.
27452 It does not let you subtract one const X* pointer from another in
27453 an arm of an if-expression whose if-part is not a constant
27455 const char *g = "string";
27456 pcpcc = &g + (g ? g-g : 0);
27457 /* HPUX 7.0 cc rejects these. */
27459 ppc = (char**) pcpcc;
27460 pcpcc = (char const *const *) ppc;
27461 { /* SCO 3.2v4 cc rejects this. */
27463 char const *s = 0 ? (char *) 0 : (char const *) 0;
27468 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27469 int x[] = {25, 17};
27470 const int *foo = &x[0];
27473 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27474 typedef const int *iptr;
27478 { /* AIX XL C 1.02.0.0 rejects this saying
27479 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27480 struct s { int j; const int *ap[3]; };
27481 struct s *b; b->j = 5;
27483 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27484 const int foo = 10;
27485 if (!foo) return 0;
27487 return !cs[0] && !zero.x;
27494 if ac_fn_c_try_compile "$LINENO"; then :
27499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27502 $as_echo "$ac_cv_c_const" >&6; }
27503 if test $ac_cv_c_const = no; then
27505 $as_echo "#define const /**/" >>confdefs.h
27510 # The cast to long int works around a bug in the HP C Compiler
27511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27513 # This bug is HP SR number 8606223364.
27514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27515 $as_echo_n "checking size of char... " >&6; }
27516 if ${ac_cv_sizeof_char+:} false; then :
27517 $as_echo_n "(cached) " >&6
27519 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27522 if test "$ac_cv_type_char" = yes; then
27523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27525 as_fn_error 77 "cannot compute sizeof (char)
27526 See \`config.log' for more details" "$LINENO" 5; }
27528 ac_cv_sizeof_char=0
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27534 $as_echo "$ac_cv_sizeof_char" >&6; }
27538 cat >>confdefs.h <<_ACEOF
27539 #define SIZEOF_CHAR $ac_cv_sizeof_char
27543 # The cast to long int works around a bug in the HP C Compiler
27544 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27545 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27546 # This bug is HP SR number 8606223364.
27547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27548 $as_echo_n "checking size of short int... " >&6; }
27549 if ${ac_cv_sizeof_short_int+:} false; then :
27550 $as_echo_n "(cached) " >&6
27552 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27555 if test "$ac_cv_type_short_int" = yes; then
27556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27558 as_fn_error 77 "cannot compute sizeof (short int)
27559 See \`config.log' for more details" "$LINENO" 5; }
27561 ac_cv_sizeof_short_int=0
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27567 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27571 cat >>confdefs.h <<_ACEOF
27572 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27576 # The cast to long int works around a bug in the HP C Compiler
27577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27579 # This bug is HP SR number 8606223364.
27580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27581 $as_echo_n "checking size of int... " >&6; }
27582 if ${ac_cv_sizeof_int+:} false; then :
27583 $as_echo_n "(cached) " >&6
27585 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27588 if test "$ac_cv_type_int" = yes; then
27589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27591 as_fn_error 77 "cannot compute sizeof (int)
27592 See \`config.log' for more details" "$LINENO" 5; }
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27600 $as_echo "$ac_cv_sizeof_int" >&6; }
27604 cat >>confdefs.h <<_ACEOF
27605 #define SIZEOF_INT $ac_cv_sizeof_int
27609 # The cast to long int works around a bug in the HP C Compiler
27610 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27611 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27612 # This bug is HP SR number 8606223364.
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27614 $as_echo_n "checking size of long int... " >&6; }
27615 if ${ac_cv_sizeof_long_int+:} false; then :
27616 $as_echo_n "(cached) " >&6
27618 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27621 if test "$ac_cv_type_long_int" = yes; then
27622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27624 as_fn_error 77 "cannot compute sizeof (long int)
27625 See \`config.log' for more details" "$LINENO" 5; }
27627 ac_cv_sizeof_long_int=0
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27633 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27637 cat >>confdefs.h <<_ACEOF
27638 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27642 # The cast to long int works around a bug in the HP C Compiler
27643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27645 # This bug is HP SR number 8606223364.
27646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27647 $as_echo_n "checking size of long long int... " >&6; }
27648 if ${ac_cv_sizeof_long_long_int+:} false; then :
27649 $as_echo_n "(cached) " >&6
27651 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27654 if test "$ac_cv_type_long_long_int" = yes; then
27655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27657 as_fn_error 77 "cannot compute sizeof (long long int)
27658 See \`config.log' for more details" "$LINENO" 5; }
27660 ac_cv_sizeof_long_long_int=0
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27666 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27670 cat >>confdefs.h <<_ACEOF
27671 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27675 # The cast to long int works around a bug in the HP C Compiler
27676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27678 # This bug is HP SR number 8606223364.
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27680 $as_echo_n "checking size of int *... " >&6; }
27681 if ${ac_cv_sizeof_int_p+:} false; then :
27682 $as_echo_n "(cached) " >&6
27684 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27687 if test "$ac_cv_type_int_p" = yes; then
27688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27690 as_fn_error 77 "cannot compute sizeof (int *)
27691 See \`config.log' for more details" "$LINENO" 5; }
27693 ac_cv_sizeof_int_p=0
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27699 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27703 cat >>confdefs.h <<_ACEOF
27704 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27710 $as_echo_n "checking for u_int type... " >&6; }
27711 if ${ac_cv_have_u_int+:} false; then :
27712 $as_echo_n "(cached) " >&6
27715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27716 /* end confdefs.h. */
27718 #include <sys/types.h>
27730 if ac_fn_c_try_compile "$LINENO"; then :
27732 ac_cv_have_u_int="yes"
27736 ac_cv_have_u_int="no"
27740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27745 $as_echo "$ac_cv_have_u_int" >&6; }
27746 if test "x$ac_cv_have_u_int" = "xyes" ; then
27747 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27753 $as_echo_n "checking for intmax_t type... " >&6; }
27754 if ${ac_cv_have_intmax_t+:} false; then :
27755 $as_echo_n "(cached) " >&6
27758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27759 /* end confdefs.h. */
27761 #include <sys/types.h>
27773 if ac_fn_c_try_compile "$LINENO"; then :
27775 ac_cv_have_intmax_t="yes"
27779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27780 /* end confdefs.h. */
27782 #include <stdint.h>
27794 if ac_fn_c_try_compile "$LINENO"; then :
27796 ac_cv_have_intmax_t="yes"
27800 ac_cv_have_intmax_t="no"
27804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27813 $as_echo "$ac_cv_have_intmax_t" >&6; }
27814 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27815 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27821 $as_echo_n "checking for u_intmax_t type... " >&6; }
27822 if ${ac_cv_have_u_intmax_t+:} false; then :
27823 $as_echo_n "(cached) " >&6
27826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27827 /* end confdefs.h. */
27829 #include <sys/types.h>
27835 u_intmax_t a; a = 1;
27841 if ac_fn_c_try_compile "$LINENO"; then :
27843 ac_cv_have_u_intmax_t="yes"
27847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27848 /* end confdefs.h. */
27850 #include <stdint.h>
27856 u_intmax_t a; a = 1;
27862 if ac_fn_c_try_compile "$LINENO"; then :
27864 ac_cv_have_u_intmax_t="yes"
27868 ac_cv_have_u_intmax_t="no"
27872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27881 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27882 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27883 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27889 $as_echo_n "checking for intXX_t types... " >&6; }
27890 if ${ac_cv_have_intxx_t+:} false; then :
27891 $as_echo_n "(cached) " >&6
27894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27895 /* end confdefs.h. */
27897 #include <sys/types.h>
27903 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27909 if ac_fn_c_try_compile "$LINENO"; then :
27911 ac_cv_have_intxx_t="yes"
27915 ac_cv_have_intxx_t="no"
27919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27924 $as_echo "$ac_cv_have_intxx_t" >&6; }
27925 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27926 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27932 $as_echo_n "checking for int64_t type... " >&6; }
27933 if ${ac_cv_have_int64_t+:} false; then :
27934 $as_echo_n "(cached) " >&6
27937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27938 /* end confdefs.h. */
27940 #include <sys/types.h>
27952 if ac_fn_c_try_compile "$LINENO"; then :
27954 ac_cv_have_int64_t="yes"
27958 ac_cv_have_int64_t="no"
27962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27967 $as_echo "$ac_cv_have_int64_t" >&6; }
27968 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27969 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27975 $as_echo_n "checking for u_intXX_t types... " >&6; }
27976 if ${ac_cv_have_u_intxx_t+:} false; then :
27977 $as_echo_n "(cached) " >&6
27980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27981 /* end confdefs.h. */
27983 #include <sys/types.h>
27989 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27995 if ac_fn_c_try_compile "$LINENO"; then :
27997 ac_cv_have_u_intxx_t="yes"
28001 ac_cv_have_u_intxx_t="no"
28005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28010 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28011 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28012 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28018 $as_echo_n "checking for u_int64_t types... " >&6; }
28019 if ${ac_cv_have_u_int64_t+:} false; then :
28020 $as_echo_n "(cached) " >&6
28023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28024 /* end confdefs.h. */
28026 #include <sys/types.h>
28032 u_int64_t a; a = 1;
28038 if ac_fn_c_try_compile "$LINENO"; then :
28040 ac_cv_have_u_int64_t="yes"
28044 ac_cv_have_u_int64_t="no"
28048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28053 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28054 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28055 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28060 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28061 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28064 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28066 /* end confdefs.h. */
28068 #include <sys/bitypes.h>
28074 int8_t a; int16_t b; int32_t c;
28075 u_int8_t e; u_int16_t f; u_int32_t g;
28076 a = b = c = e = f = g = 1;
28082 if ac_fn_c_try_compile "$LINENO"; then :
28084 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28086 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28088 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28091 $as_echo "yes" >&6; }
28095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28096 $as_echo "no" >&6; }
28100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28103 if test -z "$have_u_intxx_t" ; then
28104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28105 $as_echo_n "checking for uintXX_t types... " >&6; }
28106 if ${ac_cv_have_uintxx_t+:} false; then :
28107 $as_echo_n "(cached) " >&6
28110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28111 /* end confdefs.h. */
28113 #include <sys/types.h>
28119 uint8_t a; uint16_t b;
28120 uint32_t c; a = b = c = 1;
28126 if ac_fn_c_try_compile "$LINENO"; then :
28128 ac_cv_have_uintxx_t="yes"
28132 ac_cv_have_uintxx_t="no"
28136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28141 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28142 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28143 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28148 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28149 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28152 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28154 /* end confdefs.h. */
28156 #include <sys/bitypes.h>
28162 int64_t a; u_int64_t b;
28169 if ac_fn_c_try_compile "$LINENO"; then :
28171 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28173 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28176 $as_echo "yes" >&6; }
28180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28181 $as_echo "no" >&6; }
28185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28188 if (test -z "$have_uintxx_t" && \
28189 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28192 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28194 /* end confdefs.h. */
28196 #include <sys/bitypes.h>
28202 uint8_t a; uint16_t b;
28203 uint32_t c; a = b = c = 1;
28209 if ac_fn_c_try_compile "$LINENO"; then :
28211 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28214 $as_echo "yes" >&6; }
28218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28219 $as_echo "no" >&6; }
28223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28242 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28243 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28244 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28245 cat >>confdefs.h <<_ACEOF
28246 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28250 echo 'configure: cannot find needed function.'; exit 1
28256 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28259 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28261 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28266 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28267 if test "x$ac_cv_func_closefrom" = xyes; then :
28269 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28273 for ac_func in getpagesize
28275 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28276 if test "x$ac_cv_func_getpagesize" = xyes; then :
28277 cat >>confdefs.h <<_ACEOF
28278 #define HAVE_GETPAGESIZE 1
28281 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28286 for ac_func in malloc_trim
28288 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28289 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28290 cat >>confdefs.h <<_ACEOF
28291 #define HAVE_MALLOC_TRIM 1
28294 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28300 for ac_func in fchdir
28302 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28303 if test "x$ac_cv_func_fchdir" = xyes; then :
28304 cat >>confdefs.h <<_ACEOF
28305 #define HAVE_FCHDIR 1
28307 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28312 for ac_func in strtoll
28314 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28315 if test "x$ac_cv_func_strtoll" = xyes; then :
28316 cat >>confdefs.h <<_ACEOF
28317 #define HAVE_STRTOLL 1
28319 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28324 for ac_func in posix_fadvise
28326 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28327 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28328 cat >>confdefs.h <<_ACEOF
28329 #define HAVE_POSIX_FADVISE 1
28335 for ac_func in fdatasync
28337 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28338 if test "x$ac_cv_func_fdatasync" = xyes; then :
28339 cat >>confdefs.h <<_ACEOF
28340 #define HAVE_FDATASYNC 1
28347 for ac_func in chflags
28349 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28350 if test "x$ac_cv_func_chflags" = xyes; then :
28351 cat >>confdefs.h <<_ACEOF
28352 #define HAVE_CHFLAGS 1
28359 for ac_func in snprintf vsnprintf gethostid fseeko
28361 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28362 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28363 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28364 cat >>confdefs.h <<_ACEOF
28365 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28373 $as_echo_n "checking for va_copy... " >&6; }
28374 if ${ba_cv_va_copy+:} false; then :
28375 $as_echo_n "(cached) " >&6
28378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28379 /* end confdefs.h. */
28381 #include <stdarg.h>
28382 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28383 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28389 call_use_va_copy(1,2,3)
28395 if ac_fn_c_try_link "$LINENO"; then :
28405 rm -f core conftest.err conftest.$ac_objext \
28406 conftest$ac_exeext conftest.$ac_ext
28410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28411 $as_echo "$ba_cv_va_copy" >&6; }
28412 test $ba_cv_va_copy = yes &&
28413 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28416 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28418 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28419 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28420 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28421 cat >>confdefs.h <<_ACEOF
28422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28429 # If resolver functions are not in libc check for -lnsl or -lresolv.
28430 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28431 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28433 $as_echo "using libc's resolver" >&6; }
28435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28436 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28437 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28438 $as_echo_n "(cached) " >&6
28440 ac_check_lib_save_LIBS=$LIBS
28442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28443 /* end confdefs.h. */
28445 /* Override any GCC internal prototype to avoid an error.
28446 Use char because int might match the return type of a GCC
28447 builtin and then its argument prototype would still apply. */
28451 char gethostbyname_r ();
28455 return gethostbyname_r ();
28460 if ac_fn_c_try_link "$LINENO"; then :
28461 ac_cv_lib_nsl_gethostbyname_r=yes
28463 ac_cv_lib_nsl_gethostbyname_r=no
28465 rm -f core conftest.err conftest.$ac_objext \
28466 conftest$ac_exeext conftest.$ac_ext
28467 LIBS=$ac_check_lib_save_LIBS
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28470 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28471 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28472 cat >>confdefs.h <<_ACEOF
28473 #define HAVE_LIBNSL 1
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28481 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28482 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28483 $as_echo_n "(cached) " >&6
28485 ac_check_lib_save_LIBS=$LIBS
28486 LIBS="-lresolv $LIBS"
28487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28488 /* end confdefs.h. */
28490 /* Override any GCC internal prototype to avoid an error.
28491 Use char because int might match the return type of a GCC
28492 builtin and then its argument prototype would still apply. */
28496 char gethostbyname_r ();
28500 return gethostbyname_r ();
28505 if ac_fn_c_try_link "$LINENO"; then :
28506 ac_cv_lib_resolv_gethostbyname_r=yes
28508 ac_cv_lib_resolv_gethostbyname_r=no
28510 rm -f core conftest.err conftest.$ac_objext \
28511 conftest$ac_exeext conftest.$ac_ext
28512 LIBS=$ac_check_lib_save_LIBS
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28515 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28516 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28517 cat >>confdefs.h <<_ACEOF
28518 #define HAVE_LIBRESOLV 1
28521 LIBS="-lresolv $LIBS"
28528 for ac_func in inet_pton
28530 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28531 if test "x$ac_cv_func_inet_pton" = xyes; then :
28532 cat >>confdefs.h <<_ACEOF
28533 #define HAVE_INET_PTON 1
28535 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28540 for ac_func in inet_ntop
28542 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28543 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28544 cat >>confdefs.h <<_ACEOF
28545 #define HAVE_INET_NTOP 1
28547 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28552 for ac_func in gethostbyname2
28554 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28555 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28556 cat >>confdefs.h <<_ACEOF
28557 #define HAVE_GETHOSTBYNAME2 1
28559 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28564 for ac_func in getnameinfo
28566 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28567 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28568 cat >>confdefs.h <<_ACEOF
28569 #define HAVE_GETNAMEINFO 1
28571 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28579 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28580 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28581 $as_echo_n "(cached) " >&6
28584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28585 /* end confdefs.h. */
28587 #include <sys/socket.h>
28593 struct sockaddr s; s.sa_len;
28599 if ac_fn_c_try_compile "$LINENO"; then :
28601 ac_cv_struct_sockaddr_sa_len=yes
28604 ac_cv_struct_sockaddr_sa_len=no
28608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28613 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28615 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28617 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28622 $as_echo_n "checking for working getaddrinfo... " >&6; }
28623 if ${ac_cv_working_getaddrinfo+:} false; then :
28624 $as_echo_n "(cached) " >&6
28627 if test "$cross_compiling" = yes; then :
28629 ac_cv_working_getaddrinfo="yes"
28633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28634 /* end confdefs.h. */
28637 #include <string.h>
28638 #include <sys/types.h>
28639 #include <sys/socket.h>
28642 struct addrinfo hints, *ai;
28645 memset(&hints, 0, sizeof(hints));
28646 hints.ai_family = AF_UNSPEC;
28647 hints.ai_socktype = SOCK_STREAM;
28648 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28652 if (ai->ai_addr->sa_family != AF_INET) {
28659 if ac_fn_c_try_run "$LINENO"; then :
28661 ac_cv_working_getaddrinfo="yes"
28665 ac_cv_working_getaddrinfo="no"
28668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28669 conftest.$ac_objext conftest.beam conftest.$ac_ext
28675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28676 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28677 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28678 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28680 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28685 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28686 if test "$ac_cv_func_gai_strerror" != "yes"; then
28687 ac_cv_working_getaddrinfo="no"
28690 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28695 for ac_func in strftime
28697 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28698 if test "x$ac_cv_func_strftime" = xyes; then :
28699 cat >>confdefs.h <<_ACEOF
28700 #define HAVE_STRFTIME 1
28704 # strftime is in -lintl on SCO UNIX.
28705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28706 $as_echo_n "checking for strftime in -lintl... " >&6; }
28707 if ${ac_cv_lib_intl_strftime+:} false; then :
28708 $as_echo_n "(cached) " >&6
28710 ac_check_lib_save_LIBS=$LIBS
28711 LIBS="-lintl $LIBS"
28712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28713 /* end confdefs.h. */
28715 /* Override any GCC internal prototype to avoid an error.
28716 Use char because int might match the return type of a GCC
28717 builtin and then its argument prototype would still apply. */
28725 return strftime ();
28730 if ac_fn_c_try_link "$LINENO"; then :
28731 ac_cv_lib_intl_strftime=yes
28733 ac_cv_lib_intl_strftime=no
28735 rm -f core conftest.err conftest.$ac_objext \
28736 conftest$ac_exeext conftest.$ac_ext
28737 LIBS=$ac_check_lib_save_LIBS
28739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28740 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28741 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28742 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28744 LIBS="-lintl $LIBS"
28750 for ac_func in vprintf
28752 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28753 if test "x$ac_cv_func_vprintf" = xyes; then :
28754 cat >>confdefs.h <<_ACEOF
28755 #define HAVE_VPRINTF 1
28758 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28759 if test "x$ac_cv_func__doprnt" = xyes; then :
28761 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28769 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28770 # for constant arguments. Useless!
28771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28772 $as_echo_n "checking for working alloca.h... " >&6; }
28773 if ${ac_cv_working_alloca_h+:} false; then :
28774 $as_echo_n "(cached) " >&6
28776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28777 /* end confdefs.h. */
28778 #include <alloca.h>
28782 char *p = (char *) alloca (2 * sizeof (int));
28788 if ac_fn_c_try_link "$LINENO"; then :
28789 ac_cv_working_alloca_h=yes
28791 ac_cv_working_alloca_h=no
28793 rm -f core conftest.err conftest.$ac_objext \
28794 conftest$ac_exeext conftest.$ac_ext
28796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28797 $as_echo "$ac_cv_working_alloca_h" >&6; }
28798 if test $ac_cv_working_alloca_h = yes; then
28800 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28805 $as_echo_n "checking for alloca... " >&6; }
28806 if ${ac_cv_func_alloca_works+:} false; then :
28807 $as_echo_n "(cached) " >&6
28809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28810 /* end confdefs.h. */
28812 # define alloca __builtin_alloca
28815 # include <malloc.h>
28816 # define alloca _alloca
28818 # ifdef HAVE_ALLOCA_H
28819 # include <alloca.h>
28824 # ifndef alloca /* predefined by HP cc +Olibcalls */
28825 void *alloca (size_t);
28835 char *p = (char *) alloca (1);
28841 if ac_fn_c_try_link "$LINENO"; then :
28842 ac_cv_func_alloca_works=yes
28844 ac_cv_func_alloca_works=no
28846 rm -f core conftest.err conftest.$ac_objext \
28847 conftest$ac_exeext conftest.$ac_ext
28849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28850 $as_echo "$ac_cv_func_alloca_works" >&6; }
28852 if test $ac_cv_func_alloca_works = yes; then
28854 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28857 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28858 # that cause trouble. Some versions do not even contain alloca or
28859 # contain a buggy version. If you still want to use their alloca,
28860 # use ar to extract alloca.o from them instead of compiling alloca.c.
28862 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28864 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28868 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28869 if ${ac_cv_os_cray+:} false; then :
28870 $as_echo_n "(cached) " >&6
28872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28873 /* end confdefs.h. */
28874 #if defined CRAY && ! defined CRAY2
28881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28882 $EGREP "webecray" >/dev/null 2>&1; then :
28890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28891 $as_echo "$ac_cv_os_cray" >&6; }
28892 if test $ac_cv_os_cray = yes; then
28893 for ac_func in _getb67 GETB67 getb67; do
28894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28895 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28896 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28898 cat >>confdefs.h <<_ACEOF
28899 #define CRAY_STACKSEG_END $ac_func
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28909 $as_echo_n "checking stack direction for C alloca... " >&6; }
28910 if ${ac_cv_c_stack_direction+:} false; then :
28911 $as_echo_n "(cached) " >&6
28913 if test "$cross_compiling" = yes; then :
28914 ac_cv_c_stack_direction=0
28916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28917 /* end confdefs.h. */
28918 $ac_includes_default
28920 find_stack_direction ()
28922 static char *addr = 0;
28927 return find_stack_direction ();
28930 return (&dummy > addr) ? 1 : -1;
28936 return find_stack_direction () < 0;
28939 if ac_fn_c_try_run "$LINENO"; then :
28940 ac_cv_c_stack_direction=1
28942 ac_cv_c_stack_direction=-1
28944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28945 conftest.$ac_objext conftest.beam conftest.$ac_ext
28949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28950 $as_echo "$ac_cv_c_stack_direction" >&6; }
28951 cat >>confdefs.h <<_ACEOF
28952 #define STACK_DIRECTION $ac_cv_c_stack_direction
28958 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28959 # -lseq on Dynix/PTX, -lgen on Unixware.
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28961 $as_echo_n "checking for library containing getmntent... " >&6; }
28962 if ${ac_cv_search_getmntent+:} false; then :
28963 $as_echo_n "(cached) " >&6
28965 ac_func_search_save_LIBS=$LIBS
28966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28967 /* end confdefs.h. */
28969 /* Override any GCC internal prototype to avoid an error.
28970 Use char because int might match the return type of a GCC
28971 builtin and then its argument prototype would still apply. */
28979 return getmntent ();
28984 for ac_lib in '' sun seq gen; do
28985 if test -z "$ac_lib"; then
28986 ac_res="none required"
28989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28991 if ac_fn_c_try_link "$LINENO"; then :
28992 ac_cv_search_getmntent=$ac_res
28994 rm -f core conftest.err conftest.$ac_objext \
28996 if ${ac_cv_search_getmntent+:} false; then :
29000 if ${ac_cv_search_getmntent+:} false; then :
29003 ac_cv_search_getmntent=no
29005 rm conftest.$ac_ext
29006 LIBS=$ac_func_search_save_LIBS
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29009 $as_echo "$ac_cv_search_getmntent" >&6; }
29010 ac_res=$ac_cv_search_getmntent
29011 if test "$ac_res" != no; then :
29012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29013 ac_cv_func_getmntent=yes
29015 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29018 ac_cv_func_getmntent=no
29022 for ac_func in getmntinfo
29024 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29025 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29026 cat >>confdefs.h <<_ACEOF
29027 #define HAVE_GETMNTINFO 1
29029 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29035 $as_echo_n "checking whether closedir returns void... " >&6; }
29036 if ${ac_cv_func_closedir_void+:} false; then :
29037 $as_echo_n "(cached) " >&6
29039 if test "$cross_compiling" = yes; then :
29040 ac_cv_func_closedir_void=yes
29042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29043 /* end confdefs.h. */
29044 $ac_includes_default
29045 #include <$ac_header_dirent>
29046 #ifndef __cplusplus
29053 return closedir (opendir (".")) != 0;
29058 if ac_fn_c_try_run "$LINENO"; then :
29059 ac_cv_func_closedir_void=no
29061 ac_cv_func_closedir_void=yes
29063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29064 conftest.$ac_objext conftest.beam conftest.$ac_ext
29068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29069 $as_echo "$ac_cv_func_closedir_void" >&6; }
29070 if test $ac_cv_func_closedir_void = yes; then
29072 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29077 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29078 if ${ac_cv_func_setpgrp_void+:} false; then :
29079 $as_echo_n "(cached) " >&6
29081 if test "$cross_compiling" = yes; then :
29082 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29085 /* end confdefs.h. */
29086 $ac_includes_default
29090 /* If this system has a BSD-style setpgrp which takes arguments,
29091 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29092 exit successfully. */
29093 return setpgrp (1,1) != -1;
29098 if ac_fn_c_try_run "$LINENO"; then :
29099 ac_cv_func_setpgrp_void=no
29101 ac_cv_func_setpgrp_void=yes
29103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29104 conftest.$ac_objext conftest.beam conftest.$ac_ext
29108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29109 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29110 if test $ac_cv_func_setpgrp_void = yes; then
29112 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29115 # AC_FUNC_FNMATCH dnl use local version
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29118 $as_echo_n "checking for gettext in -lintl... " >&6; }
29119 if ${ac_cv_lib_intl_gettext+:} false; then :
29120 $as_echo_n "(cached) " >&6
29122 ac_check_lib_save_LIBS=$LIBS
29123 LIBS="-lintl $LIBS"
29124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29125 /* end confdefs.h. */
29127 /* Override any GCC internal prototype to avoid an error.
29128 Use char because int might match the return type of a GCC
29129 builtin and then its argument prototype would still apply. */
29142 if ac_fn_c_try_link "$LINENO"; then :
29143 ac_cv_lib_intl_gettext=yes
29145 ac_cv_lib_intl_gettext=no
29147 rm -f core conftest.err conftest.$ac_objext \
29148 conftest$ac_exeext conftest.$ac_ext
29149 LIBS=$ac_check_lib_save_LIBS
29151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29152 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29153 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29154 LIBS="$LIBS -lintl"
29158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29159 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29160 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29161 $as_echo_n "(cached) " >&6
29163 ac_check_lib_save_LIBS=$LIBS
29165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29166 /* end confdefs.h. */
29168 /* Override any GCC internal prototype to avoid an error.
29169 Use char because int might match the return type of a GCC
29170 builtin and then its argument prototype would still apply. */
29178 return getpwnam ();
29183 if ac_fn_c_try_link "$LINENO"; then :
29184 ac_cv_lib_sun_getpwnam=yes
29186 ac_cv_lib_sun_getpwnam=no
29188 rm -f core conftest.err conftest.$ac_objext \
29189 conftest$ac_exeext conftest.$ac_ext
29190 LIBS=$ac_check_lib_save_LIBS
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29193 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29194 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29195 cat >>confdefs.h <<_ACEOF
29196 #define HAVE_LIBSUN 1
29204 for ac_header in zlib.h
29206 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29207 if test "x$ac_cv_header_zlib_h" = xyes; then :
29208 cat >>confdefs.h <<_ACEOF
29209 #define HAVE_ZLIB_H 1
29216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29217 $as_echo_n "checking for deflate in -lz... " >&6; }
29218 if ${ac_cv_lib_z_deflate+:} false; then :
29219 $as_echo_n "(cached) " >&6
29221 ac_check_lib_save_LIBS=$LIBS
29223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29224 /* end confdefs.h. */
29226 /* Override any GCC internal prototype to avoid an error.
29227 Use char because int might match the return type of a GCC
29228 builtin and then its argument prototype would still apply. */
29241 if ac_fn_c_try_link "$LINENO"; then :
29242 ac_cv_lib_z_deflate=yes
29244 ac_cv_lib_z_deflate=no
29246 rm -f core conftest.err conftest.$ac_objext \
29247 conftest$ac_exeext conftest.$ac_ext
29248 LIBS=$ac_check_lib_save_LIBS
29250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29251 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29252 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29257 if test x$ZLIBS = x-lz; then
29258 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29267 # Check whether --enable-afs was given.
29268 if test "${enable_afs+set}" = set; then :
29269 enableval=$enable_afs;
29270 if test x$enableval = xyes; then
29272 elif test x$enableval = xno; then
29281 if test x$support_afs = xyes -o x$support_afs = xauto; then
29283 # Check whether --with-afsdir was given.
29284 if test "${with_afsdir+set}" = set; then :
29285 withval=$with_afsdir; with_afsdir=$withval
29290 if test x$with_afsdir = x; then
29291 for root in /usr /usr/local; do
29292 if test -d ${root}/include/afs/ ; then
29293 with_afsdir=${root}
29296 if test -d ${root}/include/openafs/afs/ ; then
29297 with_afsdir=${root}
29303 if test -d ${with_afsdir}/include/afs/ ; then
29304 AFS_CFLAGS="-I${with_afsdir}/include"
29306 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29307 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29311 saved_CFLAGS="${CFLAGS}"
29312 saved_CPPFLAGS="${CPPFLAGS}"
29313 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29314 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29316 for ac_header in afs/afsint.h
29318 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29319 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29320 cat >>confdefs.h <<_ACEOF
29321 #define HAVE_AFS_AFSINT_H 1
29328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29329 /* end confdefs.h. */
29331 #include <afs/afsint.h>
29332 #include <afs/venus.h>
29335 if ac_fn_c_try_cpp "$LINENO"; then :
29337 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29341 rm -f conftest.err conftest.i conftest.$ac_ext
29343 CFLAGS="${saved_CFLAGS}"
29344 CPPFLAGS="${saved_CPPFLAGS}"
29346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29347 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29348 for dir in ${with_afsdir}/lib \
29349 ${with_afsdir}/lib/afs \
29350 ${with_afsdir}/lib/openafs \
29351 ${with_afsdir}/lib64 \
29352 ${with_afsdir}/lib64/afs \
29353 ${with_afsdir}/lib64/openafs
29355 for arch_type in .a .so
29357 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29359 if test $pkg = 0; then
29361 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29367 if test $have_afs = yes; then
29368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29369 $as_echo "yes" >&6; }
29371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29372 $as_echo "no" >&6; }
29375 if test x$support_afs = xyes -a $have_afs != yes; then
29376 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29377 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29379 if test $have_afs = yes; then
29381 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29384 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29393 # Check whether --enable-lzo was given.
29394 if test "${enable_lzo+set}" = set; then :
29395 enableval=$enable_lzo;
29396 if test x$enableval = xno; then
29409 if test x$support_lzo = xyes; then
29411 # Check whether --with-lzo was given.
29412 if test "${with_lzo+set}" = set; then :
29414 case "$with_lzo" in
29419 if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29420 LZO_INC="-I${with_lzo}/include"
29421 LZO_LDFLAGS="-L${with_lzo}/lib"
29422 with_lzo="${with_lzo}/include"
29424 with_lzo="/usr/include"
29427 as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29428 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29429 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29432 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29434 LZO_LIBS="${LZO_LDFLAGS} -lzo2"
29440 echo "lzoconf.h not found. lzo turned off ..."
29452 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29453 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29455 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29456 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29459 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29460 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29461 $as_echo_n "(cached) " >&6
29463 ac_check_lib_save_LIBS=$LIBS
29464 LIBS="-llzo2 $LIBS"
29465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29466 /* end confdefs.h. */
29468 /* Override any GCC internal prototype to avoid an error.
29469 Use char because int might match the return type of a GCC
29470 builtin and then its argument prototype would still apply. */
29474 char lzo1x_1_compress ();
29478 return lzo1x_1_compress ();
29483 if ac_fn_c_try_link "$LINENO"; then :
29484 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29486 ac_cv_lib_lzo2_lzo1x_1_compress=no
29488 rm -f core conftest.err conftest.$ac_objext \
29489 conftest$ac_exeext conftest.$ac_ext
29490 LIBS=$ac_check_lib_save_LIBS
29492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29493 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29494 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29498 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29522 # Check whether --enable-acl was given.
29523 if test "${enable_acl+set}" = set; then :
29524 enableval=$enable_acl;
29525 if test x$enableval = xyes; then
29527 elif test x$enableval = xno; then
29536 have_extended_acl=no
29537 if test x$support_acl = xyes -o x$support_acl = xauto; then
29538 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29539 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29541 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29547 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29548 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29556 if test $have_acl = no; then
29557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29558 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29559 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29560 $as_echo_n "(cached) " >&6
29562 ac_check_lib_save_LIBS=$LIBS
29564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29565 /* end confdefs.h. */
29567 /* Override any GCC internal prototype to avoid an error.
29568 Use char because int might match the return type of a GCC
29569 builtin and then its argument prototype would still apply. */
29573 char acl_get_file ();
29577 return acl_get_file ();
29582 if ac_fn_c_try_link "$LINENO"; then :
29583 ac_cv_lib_acl_acl_get_file=yes
29585 ac_cv_lib_acl_acl_get_file=no
29587 rm -f core conftest.err conftest.$ac_objext \
29588 conftest$ac_exeext conftest.$ac_ext
29589 LIBS=$ac_check_lib_save_LIBS
29591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29592 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29593 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29596 if test $have_afs = yes; then
29597 if test -d /usr/lib64/; then
29598 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29600 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29603 FDLIBS="-lacl $FDLIBS"
29611 if test $have_acl = no -a \
29612 x${HAVE_OSF1_OS_TRUE} = x; then
29613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29614 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29615 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29616 $as_echo_n "(cached) " >&6
29618 ac_check_lib_save_LIBS=$LIBS
29619 LIBS="-lpacl $LIBS"
29620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29621 /* end confdefs.h. */
29623 /* Override any GCC internal prototype to avoid an error.
29624 Use char because int might match the return type of a GCC
29625 builtin and then its argument prototype would still apply. */
29629 char acl_get_file ();
29633 return acl_get_file ();
29638 if ac_fn_c_try_link "$LINENO"; then :
29639 ac_cv_lib_pacl_acl_get_file=yes
29641 ac_cv_lib_pacl_acl_get_file=no
29643 rm -f core conftest.err conftest.$ac_objext \
29644 conftest$ac_exeext conftest.$ac_ext
29645 LIBS=$ac_check_lib_save_LIBS
29647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29648 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29649 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29652 FDLIBS="-lpacl $FDLIBS"
29658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29659 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29660 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29661 if test $? = 0; then
29663 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29666 $as_echo "yes" >&6; }
29668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29669 $as_echo "no" >&6; }
29673 if test $have_acl = yes -a \
29674 x${HAVE_DARWIN_OS_TRUE} = x; then
29675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29676 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29677 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29678 if test $? = 0; then
29680 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29683 $as_echo "yes" >&6; }
29685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29686 $as_echo "no" >&6; }
29690 if test $have_acl = yes -a \
29691 x${HAVE_FREEBSD_OS_TRUE} = x; then
29692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29693 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29694 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29695 if test $? = 0; then
29697 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29700 $as_echo "yes" >&6; }
29702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29703 $as_echo "no" >&6; }
29707 if test $have_acl = no -a \
29708 x${HAVE_SUN_OS_TRUE} = x; then
29709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29710 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29711 if ${ac_cv_lib_sec_acltotext+:} false; then :
29712 $as_echo_n "(cached) " >&6
29714 ac_check_lib_save_LIBS=$LIBS
29716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29717 /* end confdefs.h. */
29719 /* Override any GCC internal prototype to avoid an error.
29720 Use char because int might match the return type of a GCC
29721 builtin and then its argument prototype would still apply. */
29729 return acltotext ();
29734 if ac_fn_c_try_link "$LINENO"; then :
29735 ac_cv_lib_sec_acltotext=yes
29737 ac_cv_lib_sec_acltotext=no
29739 rm -f core conftest.err conftest.$ac_objext \
29740 conftest$ac_exeext conftest.$ac_ext
29741 LIBS=$ac_check_lib_save_LIBS
29743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29744 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29745 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29748 FDLIBS="-lsec $FDLIBS"
29750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29751 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29752 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29753 $as_echo_n "(cached) " >&6
29755 ac_check_lib_save_LIBS=$LIBS
29757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29758 /* end confdefs.h. */
29760 /* Override any GCC internal prototype to avoid an error.
29761 Use char because int might match the return type of a GCC
29762 builtin and then its argument prototype would still apply. */
29766 char acl_totext ();
29770 return acl_totext ();
29775 if ac_fn_c_try_link "$LINENO"; then :
29776 ac_cv_lib_sec_acl_totext=yes
29778 ac_cv_lib_sec_acl_totext=no
29780 rm -f core conftest.err conftest.$ac_objext \
29781 conftest$ac_exeext conftest.$ac_ext
29782 LIBS=$ac_check_lib_save_LIBS
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29785 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29786 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29788 have_extended_acl=yes
29799 if test $have_acl = no -a \
29800 x${HAVE_AIX_OS_TRUE} = x; then
29801 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29802 if test "x$ac_cv_func_acl_get" = xyes; then :
29806 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29807 if test "x$ac_cv_func_aclx_get" = xyes; then :
29809 have_extended_acl=yes
29820 if test x$support_acl = xyes -a $have_acl != yes; then
29821 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29822 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29824 if test $have_acl = yes; then
29826 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29830 if test $have_extended_acl = yes; then
29832 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29839 # Check whether --enable-xattr was given.
29840 if test "${enable_xattr+set}" = set; then :
29841 enableval=$enable_xattr;
29842 if test x$enableval = xyes; then
29844 elif test x$enableval = xno; then
29853 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29854 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29855 x${HAVE_NETBSD_OS_TRUE} = x -o \
29856 x${HAVE_OPENBSD_OS_TRUE} = x; then
29857 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29858 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29860 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29865 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29866 if test "x$ac_cv_header_libutil_h" = xyes; then :
29868 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29873 for ac_func in extattr_get_link extattr_set_link extattr_list_link
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_EXTATTR_GET_LINK 1" >>confdefs.h
29887 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29890 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29898 if test $have_xattr = no; then
29899 for ac_func in extattr_get_file extattr_set_file extattr_list_file
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_EXTATTR_GET_FILE 1" >>confdefs.h
29913 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29916 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29925 if test $have_xattr = yes; then
29926 have_extattr_string_in_libc=no
29927 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29930 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29931 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29932 cat >>confdefs.h <<_ACEOF
29933 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29936 have_extattr_string_in_libc=yes
29938 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29941 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29949 if test $have_extattr_string_in_libc = no; then
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29951 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29952 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29953 $as_echo_n "(cached) " >&6
29955 ac_check_lib_save_LIBS=$LIBS
29956 LIBS="-lutil $LIBS"
29957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29958 /* end confdefs.h. */
29960 /* Override any GCC internal prototype to avoid an error.
29961 Use char because int might match the return type of a GCC
29962 builtin and then its argument prototype would still apply. */
29966 char extattr_namespace_to_string extattr_string_to_namespace ();
29970 return extattr_namespace_to_string extattr_string_to_namespace ();
29975 if ac_fn_c_try_link "$LINENO"; then :
29976 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29978 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29980 rm -f core conftest.err conftest.$ac_objext \
29981 conftest$ac_exeext conftest.$ac_ext
29982 LIBS=$ac_check_lib_save_LIBS
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29985 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29986 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29989 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29992 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29994 FDLIBS="-lutil $FDLIBS"
30003 if test $have_xattr = no -a \
30004 x${HAVE_AIX_OS_TRUE} = x; then
30005 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30006 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30008 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30013 for ac_func in llistea lgetea lsetea
30015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30016 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30017 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30018 cat >>confdefs.h <<_ACEOF
30019 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30024 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30027 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30030 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30038 if test $have_xattr = no; then
30039 for ac_func in listea getea setea
30041 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30042 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30043 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30044 cat >>confdefs.h <<_ACEOF
30045 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30050 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30053 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30056 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30066 if test $have_xattr = no -a \
30067 x${HAVE_OSF1_OS_TRUE} = x; then
30068 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30069 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30071 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30076 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30078 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30079 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30080 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30081 cat >>confdefs.h <<_ACEOF
30082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30087 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30090 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30093 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30096 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30099 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30108 if test $have_xattr = no -a \
30109 x${HAVE_SUN_OS_TRUE} = x; then
30110 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30111 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30113 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30118 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30119 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30121 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30126 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30127 if test "x$ac_cv_header_attr_h" = xyes; then :
30129 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30135 for ac_func in openat fstatat unlinkat fchownat futimesat
30137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30138 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30139 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30140 cat >>confdefs.h <<_ACEOF
30141 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30146 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30149 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30152 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30155 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30158 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30166 if test $have_xattr = yes; then
30167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30168 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30169 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30170 $as_echo_n "(cached) " >&6
30172 ac_check_lib_save_LIBS=$LIBS
30173 LIBS="-lnvpair $LIBS"
30174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30175 /* end confdefs.h. */
30177 /* Override any GCC internal prototype to avoid an error.
30178 Use char because int might match the return type of a GCC
30179 builtin and then its argument prototype would still apply. */
30183 char nvlist_next_nvpair ();
30187 return nvlist_next_nvpair ();
30192 if ac_fn_c_try_link "$LINENO"; then :
30193 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30195 ac_cv_lib_nvpair_nvlist_next_nvpair=no
30197 rm -f core conftest.err conftest.$ac_objext \
30198 conftest$ac_exeext conftest.$ac_ext
30199 LIBS=$ac_check_lib_save_LIBS
30201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30202 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30203 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30206 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30208 FDLIBS="-lnvpair $FDLIBS"
30216 if test $have_xattr = no; then
30217 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30218 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30220 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30225 for ac_func in llistxattr lgetxattr lsetxattr
30227 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30228 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30229 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30230 cat >>confdefs.h <<_ACEOF
30231 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30236 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30239 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30242 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30250 if test $have_xattr = no; then
30251 for ac_func in listxattr getxattr setxattr
30253 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30254 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30255 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30256 cat >>confdefs.h <<_ACEOF
30257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30262 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30265 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30268 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30278 if test x$support_xattr = xyes -a $have_xattr != yes; then
30279 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30280 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30282 if test $have_xattr = yes; then
30284 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30292 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30293 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30294 $as_echo_n "(cached) " >&6
30296 ac_check_lib_save_LIBS=$LIBS
30297 LIBS="-lpthread $LIBS"
30298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30299 /* end confdefs.h. */
30301 /* Override any GCC internal prototype to avoid an error.
30302 Use char because int might match the return type of a GCC
30303 builtin and then its argument prototype would still apply. */
30307 char pthread_create ();
30311 return pthread_create ();
30316 if ac_fn_c_try_link "$LINENO"; then :
30317 ac_cv_lib_pthread_pthread_create=yes
30319 ac_cv_lib_pthread_pthread_create=no
30321 rm -f core conftest.err conftest.$ac_objext \
30322 conftest$ac_exeext conftest.$ac_ext
30323 LIBS=$ac_check_lib_save_LIBS
30325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30326 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30327 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30328 PTHREAD_LIB="-lpthread"
30331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30332 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30333 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30334 $as_echo_n "(cached) " >&6
30336 ac_check_lib_save_LIBS=$LIBS
30337 LIBS="-lpthreads $LIBS"
30338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30339 /* end confdefs.h. */
30341 /* Override any GCC internal prototype to avoid an error.
30342 Use char because int might match the return type of a GCC
30343 builtin and then its argument prototype would still apply. */
30347 char pthread_create ();
30351 return pthread_create ();
30356 if ac_fn_c_try_link "$LINENO"; then :
30357 ac_cv_lib_pthreads_pthread_create=yes
30359 ac_cv_lib_pthreads_pthread_create=no
30361 rm -f core conftest.err conftest.$ac_objext \
30362 conftest$ac_exeext conftest.$ac_ext
30363 LIBS=$ac_check_lib_save_LIBS
30365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30366 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30367 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30368 PTHREAD_LIB="-lpthreads"
30371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30372 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30373 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30374 $as_echo_n "(cached) " >&6
30376 ac_check_lib_save_LIBS=$LIBS
30378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30379 /* end confdefs.h. */
30381 /* Override any GCC internal prototype to avoid an error.
30382 Use char because int might match the return type of a GCC
30383 builtin and then its argument prototype would still apply. */
30387 char pthread_create ();
30391 return pthread_create ();
30396 if ac_fn_c_try_link "$LINENO"; then :
30397 ac_cv_lib_c_r_pthread_create=yes
30399 ac_cv_lib_c_r_pthread_create=no
30401 rm -f core conftest.err conftest.$ac_objext \
30402 conftest$ac_exeext conftest.$ac_ext
30403 LIBS=$ac_check_lib_save_LIBS
30405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30406 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30407 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30408 PTHREAD_LIB="-lc_r"
30411 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30412 if test "x$ac_cv_func_pthread_create" = xyes; then :
30429 for ac_header in sys/prctl.h sys/capability.h
30431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30432 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30433 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30434 cat >>confdefs.h <<_ACEOF
30435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30442 for ac_func in prctl setreuid
30444 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30445 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30446 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30447 cat >>confdefs.h <<_ACEOF
30448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30455 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30456 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30457 $as_echo_n "(cached) " >&6
30459 ac_check_lib_save_LIBS=$LIBS
30461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30462 /* end confdefs.h. */
30464 /* Override any GCC internal prototype to avoid an error.
30465 Use char because int might match the return type of a GCC
30466 builtin and then its argument prototype would still apply. */
30470 char cap_set_proc ();
30474 return cap_set_proc ();
30479 if ac_fn_c_try_link "$LINENO"; then :
30480 ac_cv_lib_cap_cap_set_proc=yes
30482 ac_cv_lib_cap_cap_set_proc=no
30484 rm -f core conftest.err conftest.$ac_objext \
30485 conftest$ac_exeext conftest.$ac_ext
30486 LIBS=$ac_check_lib_save_LIBS
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30489 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30490 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30496 if test x$CAP_LIBS = x-lcap; then
30498 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30504 $as_echo "#define FDLIBS 1" >>confdefs.h
30507 CFLAGS=${CFLAGS--O}
30509 if test x$have_gcc = xyes ; then
30510 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30511 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30513 LDFLAGS=${LDFLAGS--O}
30514 CPPFLAGS="$CPPFLAGS"
30540 PFILES="platforms/Makefile"
30543 COMPRESS_MANPAGES=yes
30545 case "$DISTNAME" in
30548 PSCMD="ps -e -o pid,comm"
30549 PFILES="${PFILES} \
30550 platforms/aix/Makefile"
30551 TAPEDRIVE="/dev/rmt0.1"
30555 PTHREAD_LIB="-lpthread -lexc"
30556 if test "${CC}" = "gcc" ; then
30563 TAPEDRIVE="/dev/nrmt0"
30566 DISTVER=`uname -a |awk '{print $3}'`
30567 TAPEDRIVE="/dev/nrmt0"
30568 PTHREAD_LIB="-pthread"
30569 CFLAGS="${CFLAGS} -pthread"
30570 PSCMD="ps -ax -o pid,command"
30573 PFILES="${PFILES} \
30574 platforms/bsdi/Makefile \
30575 platforms/bsdi/bacula-fd \
30576 platforms/bsdi/bacula-sd \
30577 platforms/bsdi/bacula-dir"
30578 largefile_support="yes"
30582 TAPEDRIVE="/dev/nst0"
30583 PSCMD="ps -e -o pid,command"
30585 PFILES="${PFILES} \
30586 platforms/darwin/Makefile"
30590 TAPEDRIVE="/dev/nst0"
30591 PSCMD="ps -e -o pid,command"
30593 PFILES="${PFILES} \
30594 platforms/osx/Makefile"
30597 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30600 DISTVER=`cat /etc/debian_version`
30601 if test -f /etc/lsb-release ; then
30603 if test "x$DISTRIB_ID" != "x" ; then
30604 DISTNAME=$DISTRIB_ID
30606 if test "x$DISTRIB_RELEASE" != "x" ; then
30607 DISTVER=$DISTRIB_RELEASE
30610 if test "$DISTNAME" = "Ubuntu" ; then
30613 TAPEDRIVE="/dev/nst0"
30614 PSCMD="ps -e -o pid,command"
30615 if test "$DISTNAME" = "ubuntu" ; then
30616 PFILES="${PFILES} \
30617 platforms/ubuntu/Makefile \
30618 platforms/ubuntu/bacula-fd \
30619 platforms/ubuntu/bacula-sd \
30620 platforms/ubuntu/bacula-dir"
30622 PFILES="${PFILES} \
30623 platforms/debian/Makefile \
30624 platforms/debian/bacula-fd \
30625 platforms/debian/bacula-sd \
30626 platforms/debian/bacula-dir"
30630 DISTVER=`uname -a |awk '{print $3}'`
30631 VER=`echo $DISTVER | cut -c 1`
30632 if test x$VER = x4 ; then
30633 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30634 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30638 TAPEDRIVE="/dev/nrsa0"
30639 PSCMD="ps -ax -o pid,command"
30640 PFILES="${PFILES} \
30641 platforms/freebsd/Makefile \
30642 platforms/freebsd/bacula-fd \
30643 platforms/freebsd/bacula-sd \
30644 platforms/freebsd/bacula-dir"
30645 largefile_support="yes"
30649 TAPEDRIVE="/dev/nst0"
30650 PSCMD="ps -e -o pid,command"
30651 PFILES="${PFILES} \
30652 platforms/hurd/Makefile \
30653 platforms/hurd/bacula-fd \
30654 platforms/hurd/bacula-sd \
30655 platforms/hurd/bacula-dir"
30658 PSCMD="UNIX95=1; ps -e -o pid,comm"
30659 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30661 TAPEDRIVE="/dev/rmt/0hnb"
30662 PTHREAD_LIB="-lpthread"
30663 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30668 TAPEDRIVE="/dev/rmt/0cbn"
30669 PSCMD="ps -e -o pid,comm"
30670 PFILES="${PFILES} \
30671 platforms/irix/Makefile \
30672 platforms/irix/bacula-fd \
30673 platforms/irix/bacula-sd \
30674 platforms/irix/bacula-dir"
30677 DISTVER=`uname -a |awk '{print $3}'`
30680 TAPEDRIVE="/dev/nrst0"
30681 PSCMD="ps -ax -o pid,command"
30682 PTHREAD_LIB="-pthread"
30683 CFLAGS="${CFLAGS} -pthread"
30686 DISTVER=`uname -a |awk '{print $3}'`
30689 TAPEDRIVE="/dev/nrst0"
30690 PSCMD="ps -ax -o pid,command"
30691 PTHREAD_LIB="-pthread"
30692 CFLAGS="${CFLAGS} -pthread"
30693 PFILES="${PFILES} \
30694 platforms/openbsd/Makefile \
30695 platforms/openbsd/bacula-fd \
30696 platforms/openbsd/bacula-sd \
30697 platforms/openbsd/bacula-dir"
30700 if test -f /etc/whitebox-release ; then
30701 f=/etc/whitebox-release
30703 f=/etc/redhat-release
30705 if test `cat $f | grep release |\
30706 cut -f 3 -d ' '`x = "Enterprise"x ; then
30707 DISTVER="Enterprise "`cat $f | grep release |\
30710 DISTVER=`cat /etc/redhat-release | grep release |\
30713 TAPEDRIVE="/dev/nst0"
30714 PSCMD="ps -e -o pid,command"
30715 PFILES="${PFILES} \
30716 platforms/redhat/Makefile \
30717 platforms/redhat/bacula-fd \
30718 platforms/redhat/bacula-sd \
30719 platforms/redhat/bacula-dir
30723 DISTVER=`cat /etc/mandrake-release | grep release |\
30725 TAPEDRIVE="/dev/nst0"
30726 PSCMD="ps -e -o pid,command"
30727 PFILES="${PFILES} \
30728 platforms/mandrake/Makefile \
30729 platforms/mandrake/bacula-fd \
30730 platforms/mandrake/bacula-sd \
30731 platforms/mandrake/bacula-dir \
30735 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30736 TAPEDRIVE="/dev/nst0"
30737 PSCMD="ps -e -o pid,command"
30738 PFILES="${PFILES} \
30739 platforms/gentoo/Makefile \
30740 platforms/gentoo/bacula-init \
30741 platforms/gentoo/bacula-fd \
30742 platforms/gentoo/bacula-sd \
30743 platforms/gentoo/bacula-dir"
30746 DISTVER=`cat /etc/slackware-version`
30747 TAPEDRIVE="/dev/nst0"
30748 PSCMD="ps -e -o pid,command"
30749 PFILES="${PFILES} \
30750 platforms/slackware/Makefile \
30751 platforms/slackware/rc.bacula-fd \
30752 platforms/slackware/rc.bacula-sd \
30753 platforms/slackware/rc.bacula-dir\
30754 platforms/slackware/functions.bacula"
30758 TAPEDRIVE="/dev/rmt/0cbn"
30759 PSCMD="ps -e -o pid,comm"
30760 PFILES="${PFILES} \
30761 platforms/solaris/Makefile \
30762 platforms/solaris/bacula-fd \
30763 platforms/solaris/bacula-sd \
30764 platforms/solaris/bacula-dir"
30768 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30770 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30774 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30780 LIBS="$LIBS -lresolv -lrt"
30783 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30785 TAPEDRIVE="/dev/nst0"
30786 PSCMD="ps -e -o pid,command"
30787 PFILES="${PFILES} \
30788 platforms/suse/Makefile \
30789 platforms/suse/bacula-fd \
30790 platforms/suse/bacula-sd \
30791 platforms/suse/bacula-dir \
30792 platforms/suse/bacula"
30797 TAPEDRIVE="/dev/nst0"
30798 PSCMD="ps -e -o pid,command"
30799 PFILES="${PFILES} \
30800 platforms/suse/Makefile \
30801 platforms/suse/bacula-fd \
30802 platforms/suse/bacula-sd \
30803 platforms/suse/bacula-dir"
30807 TAPEDRIVE="/dev/nst0"
30810 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30815 $as_echo_n "checking for systemd support... " >&6; }
30817 # Check whether --with-systemd was given.
30818 if test "${with_systemd+set}" = set; then :
30819 withval=$with_systemd;
30820 if test "$withval" != "no"; then
30821 if test "$withval" = "yes"; then
30822 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30824 SYSTEMD_UNITDIR="${withval}"
30827 PFILES="${PFILES} \
30828 platforms/systemd/Makefile \
30829 platforms/systemd/bacula.conf \
30830 platforms/systemd/bacula-dir.service \
30831 platforms/systemd/bacula-fd.service \
30832 platforms/systemd/bacula-sd.service"
30834 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30837 $as_echo "yes" >&6; }
30838 support_systemd="yes"
30840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30841 $as_echo "no" >&6; }
30842 support_systemd="no"
30847 support_systemd="no"
30848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30849 $as_echo "no" >&6; }
30858 LIBS="$PTHREAD_LIB $LIBS"
30860 cat >>confdefs.h <<_ACEOF
30864 cat >>confdefs.h <<_ACEOF
30875 MCOMMON=./autoconf/Make.common
30878 if test "x${subsysdir}" = "x${sbindir}" ; then
30881 echo "You have set both --sbindir and --with-subsys-dir"
30882 echo " equal to: ${subsysdir} "
30883 echo "This is not permitted. Please reconfigure."
30885 echo "Aborting configuration ..."
30891 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 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"
30893 ac_config_commands="$ac_config_commands default"
30895 cat >confcache <<\_ACEOF
30896 # This file is a shell script that caches the results of configure
30897 # tests run on this system so they can be shared between configure
30898 # scripts and configure runs, see configure's option --config-cache.
30899 # It is not useful on other systems. If it contains results you don't
30900 # want to keep, you may remove or edit it.
30902 # config.status only pays attention to the cache file if you give it
30903 # the --recheck option to rerun configure.
30905 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30906 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30907 # following values.
30911 # The following way of writing the cache mishandles newlines in values,
30912 # but we know of no workaround that is simple, portable, and efficient.
30913 # So, we kill variables containing newlines.
30914 # Ultrix sh set writes to stderr and can't be redirected directly,
30915 # and sets the high bit in the cache file unless we assign to the vars.
30917 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30918 eval ac_val=\$$ac_var
30922 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30923 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30926 _ | IFS | as_nl) ;; #(
30927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30928 *) { eval $ac_var=; unset $ac_var;} ;;
30934 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30935 *${as_nl}ac_space=\ *)
30936 # `set' does not quote correctly, so add quotes: double-quote
30937 # substitution turns \\\\ into \\, and sed turns \\ into \.
30940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30943 # `set' quotes correctly as required by POSIX, so do not add quotes.
30944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30953 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30955 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30957 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30958 if test -w "$cache_file"; then
30959 if test "x$cache_file" != "x/dev/null"; then
30960 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30961 $as_echo "$as_me: updating cache $cache_file" >&6;}
30962 if test ! -f "$cache_file" || test -h "$cache_file"; then
30963 cat confcache >"$cache_file"
30965 case $cache_file in #(
30967 mv -f confcache "$cache_file"$$ &&
30968 mv -f "$cache_file"$$ "$cache_file" ;; #(
30970 mv -f confcache "$cache_file" ;;
30975 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30976 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30981 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30982 # Let make expand exec_prefix.
30983 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30985 DEFS=-DHAVE_CONFIG_H
30990 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30991 # 1. Remove the extension, and $U if already installed.
30992 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30993 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30994 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30995 # will be set to the directory where LIBOBJS objects are built.
30996 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30997 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30999 LIBOBJS=$ac_libobjs
31001 LTLIBOBJS=$ac_ltlibobjs
31006 : "${CONFIG_STATUS=./config.status}"
31008 ac_clean_files_save=$ac_clean_files
31009 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31010 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31011 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31013 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31015 # Generated by $as_me.
31016 # Run this file to recreate the current configuration.
31017 # Compiler output produced by configure, useful for debugging
31018 # configure, is in config.log if it exists.
31021 ac_cs_recheck=false
31024 SHELL=\${CONFIG_SHELL-$SHELL}
31027 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31028 ## -------------------- ##
31029 ## M4sh Initialization. ##
31030 ## -------------------- ##
31032 # Be more Bourne compatible
31033 DUALCASE=1; export DUALCASE # for MKS sh
31034 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31037 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31038 # is contrary to our usage. Disable this feature.
31039 alias -g '${1+"$@"}'='"$@"'
31040 setopt NO_GLOB_SUBST
31042 case `(set -o) 2>/dev/null` in #(
31054 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31055 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31056 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31057 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31058 # Prefer a ksh shell builtin over an external printf program on Solaris,
31059 # but without wasting forks for bash or zsh.
31060 if test -z "$BASH_VERSION$ZSH_VERSION" \
31061 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31062 as_echo='print -r --'
31063 as_echo_n='print -rn --'
31064 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31065 as_echo='printf %s\n'
31066 as_echo_n='printf %s'
31068 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31069 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31070 as_echo_n='/usr/ucb/echo -n'
31072 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31073 as_echo_n_body='eval
31077 expr "X$arg" : "X\\(.*\\)$as_nl";
31078 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31080 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31082 export as_echo_n_body
31083 as_echo_n='sh -c $as_echo_n_body as_echo'
31085 export as_echo_body
31086 as_echo='sh -c $as_echo_body as_echo'
31089 # The user is always right.
31090 if test "${PATH_SEPARATOR+set}" != set; then
31092 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31093 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31100 # We need space, tab and new line, in precisely that order. Quoting is
31101 # there to prevent editors from complaining about space-tab.
31102 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31103 # splitting by setting IFS to empty value.)
31106 # Find who we are. Look in the path if we contain no directory separator.
31109 *[\\/]* ) as_myself=$0 ;;
31110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31111 for as_dir in $PATH
31114 test -z "$as_dir" && as_dir=.
31115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31121 # We did not find ourselves, most probably we were run as `sh COMMAND'
31122 # in which case we are not to be found in the path.
31123 if test "x$as_myself" = x; then
31126 if test ! -f "$as_myself"; then
31127 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31131 # Unset variables that we do not need and which cause bugs (e.g. in
31132 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31133 # suppresses any "Segmentation fault" message there. '((' could
31134 # trigger a bug in pdksh 5.2.14.
31135 for as_var in BASH_ENV ENV MAIL MAILPATH
31136 do eval test x\${$as_var+set} = xset \
31137 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31150 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31153 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31154 # ----------------------------------------
31155 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31156 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31157 # script with STATUS, using 1 if that was 0.
31160 as_status=$1; test $as_status -eq 0 && as_status=1
31162 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31163 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31165 $as_echo "$as_me: error: $2" >&2
31166 as_fn_exit $as_status
31170 # as_fn_set_status STATUS
31171 # -----------------------
31172 # Set $? to STATUS, without forking.
31173 as_fn_set_status ()
31176 } # as_fn_set_status
31178 # as_fn_exit STATUS
31179 # -----------------
31180 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31184 as_fn_set_status $1
31190 # Portably unset VAR.
31193 { eval $1=; unset $1;}
31195 as_unset=as_fn_unset
31196 # as_fn_append VAR VALUE
31197 # ----------------------
31198 # Append the text in VALUE to the end of the definition contained in VAR. Take
31199 # advantage of any shell optimizations that allow amortized linear growth over
31200 # repeated appends, instead of the typical quadratic growth present in naive
31202 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31203 eval 'as_fn_append ()
31214 # as_fn_arith ARG...
31215 # ------------------
31216 # Perform arithmetic evaluation on the ARGs, and store the result in the
31217 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31218 # must be portable across $(()) and expr.
31219 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31220 eval 'as_fn_arith ()
31227 as_val=`expr "$@" || test $? -eq 1`
31232 if expr a : '\(a\)' >/dev/null 2>&1 &&
31233 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31239 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31240 as_basename=basename
31245 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31251 as_me=`$as_basename -- "$0" ||
31252 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31253 X"$0" : 'X\(//\)$' \| \
31254 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31256 sed '/^.*\/\([^/][^/]*\)\/*$/{
31270 # Avoid depending upon Character Ranges.
31271 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31272 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31273 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31274 as_cr_digits='0123456789'
31275 as_cr_alnum=$as_cr_Letters$as_cr_digits
31277 ECHO_C= ECHO_N= ECHO_T=
31278 case `echo -n x` in #(((((
31280 case `echo 'xy\c'` in
31281 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31283 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31290 rm -f conf$$ conf$$.exe conf$$.file
31291 if test -d conf$$.dir; then
31292 rm -f conf$$.dir/conf$$.file
31295 mkdir conf$$.dir 2>/dev/null
31297 if (echo >conf$$.file) 2>/dev/null; then
31298 if ln -s conf$$.file conf$$ 2>/dev/null; then
31300 # ... but there are two gotchas:
31301 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31302 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31303 # In both cases, we have to default to `cp -p'.
31304 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31306 elif ln conf$$.file conf$$ 2>/dev/null; then
31314 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31315 rmdir conf$$.dir 2>/dev/null
31320 # Create "$as_dir" as a directory, including parents if necessary.
31325 -*) as_dir=./$as_dir;;
31327 test -d "$as_dir" || eval $as_mkdir_p || {
31331 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31332 *) as_qdir=$as_dir;;
31334 as_dirs="'$as_qdir' $as_dirs"
31335 as_dir=`$as_dirname -- "$as_dir" ||
31336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31337 X"$as_dir" : 'X\(//\)[^/]' \| \
31338 X"$as_dir" : 'X\(//\)$' \| \
31339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31340 $as_echo X"$as_dir" |
31341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31345 /^X\(\/\/\)[^/].*/{
31358 test -d "$as_dir" && break
31360 test -z "$as_dirs" || eval "mkdir $as_dirs"
31361 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31365 if mkdir -p . 2>/dev/null; then
31366 as_mkdir_p='mkdir -p "$as_dir"'
31368 test -d ./-p && rmdir ./-p
31372 if test -x / >/dev/null 2>&1; then
31373 as_test_x='test -x'
31375 if ls -dL / >/dev/null 2>&1; then
31382 if test -d "$1"; then
31388 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31389 ???[sx]*):;;*)false;;esac;fi
31393 as_executable_p=$as_test_x
31395 # Sed expression to map a string onto a valid CPP name.
31396 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31398 # Sed expression to map a string onto a valid variable name.
31399 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31403 ## ----------------------------------- ##
31404 ## Main body of $CONFIG_STATUS script. ##
31405 ## ----------------------------------- ##
31407 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31410 # Save the log message, to keep $0 and so on meaningful, and to
31411 # report actual input values of CONFIG_FILES etc. instead of their
31412 # values after options handling.
31414 This file was extended by bacula $as_me 7.0.0, which was
31415 generated by GNU Autoconf 2.68. Invocation command line was
31417 CONFIG_FILES = $CONFIG_FILES
31418 CONFIG_HEADERS = $CONFIG_HEADERS
31419 CONFIG_LINKS = $CONFIG_LINKS
31420 CONFIG_COMMANDS = $CONFIG_COMMANDS
31423 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31428 case $ac_config_files in *"
31429 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31432 case $ac_config_headers in *"
31433 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31438 # Files that config.status was made for.
31439 config_files="$ac_config_files"
31440 config_headers="$ac_config_headers"
31441 config_commands="$ac_config_commands"
31445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31447 \`$as_me' instantiates files and other configuration actions
31448 from templates according to the current configuration. Unless the files
31449 and actions are specified as TAGs, all are instantiated by default.
31451 Usage: $0 [OPTION]... [TAG]...
31453 -h, --help print this help, then exit
31454 -V, --version print version number and configuration settings, then exit
31455 --config print configuration, then exit
31456 -q, --quiet, --silent
31457 do not print progress messages
31458 -d, --debug don't remove temporary files
31459 --recheck update $as_me by reconfiguring in the same conditions
31460 --file=FILE[:TEMPLATE]
31461 instantiate the configuration file FILE
31462 --header=FILE[:TEMPLATE]
31463 instantiate the configuration header FILE
31465 Configuration files:
31468 Configuration headers:
31471 Configuration commands:
31474 Report bugs to the package provider."
31477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31478 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31480 bacula config.status 7.0.0
31481 configured by $0, generated by GNU Autoconf 2.68,
31482 with options \\"\$ac_cs_config\\"
31484 Copyright (C) 2010 Free Software Foundation, Inc.
31485 This config.status script is free software; the Free Software Foundation
31486 gives unlimited permission to copy, distribute and modify it."
31492 test -n "\$AWK" || AWK=awk
31495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31496 # The default lists apply if the user does not specify any file.
31502 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31503 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31507 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31519 # Handling of the options.
31520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31522 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31523 $as_echo "$ac_cs_version"; exit ;;
31524 --config | --confi | --conf | --con | --co | --c )
31525 $as_echo "$ac_cs_config"; exit ;;
31526 --debug | --debu | --deb | --de | --d | -d )
31528 --file | --fil | --fi | --f )
31531 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31532 '') as_fn_error $? "missing file argument" ;;
31534 as_fn_append CONFIG_FILES " '$ac_optarg'"
31535 ac_need_defaults=false;;
31536 --header | --heade | --head | --hea )
31539 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31541 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31542 ac_need_defaults=false;;
31544 # Conflict between --help and --header
31545 as_fn_error $? "ambiguous option: \`$1'
31546 Try \`$0 --help' for more information.";;
31547 --help | --hel | -h )
31548 $as_echo "$ac_cs_usage"; exit ;;
31549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31550 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31553 # This is an error.
31554 -*) as_fn_error $? "unrecognized option: \`$1'
31555 Try \`$0 --help' for more information." ;;
31557 *) as_fn_append ac_config_targets " $1"
31558 ac_need_defaults=false ;;
31564 ac_configure_extra_args=
31566 if $ac_cs_silent; then
31568 ac_configure_extra_args="$ac_configure_extra_args --silent"
31572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31573 if \$ac_cs_recheck; then
31574 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31576 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31577 CONFIG_SHELL='$SHELL'
31578 export CONFIG_SHELL
31583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31587 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31588 ## Running $as_me. ##
31594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31600 # The HP-UX ksh and POSIX shell print the target directory to stdout
31601 # if CDPATH is set.
31602 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31604 sed_quote_subst='$sed_quote_subst'
31605 double_quote_subst='$double_quote_subst'
31606 delay_variable_subst='$delay_variable_subst'
31607 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31608 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31609 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31610 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31611 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31612 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31613 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31614 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31615 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31616 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31617 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31618 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31619 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31620 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31621 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31622 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31623 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31624 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31625 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31626 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31627 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31628 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31629 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31630 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31631 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31632 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31633 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31634 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31635 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31636 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31637 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31638 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31639 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31640 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31641 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31642 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31643 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31644 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31645 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31646 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31647 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31648 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31649 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31650 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31651 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31652 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31653 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31654 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31655 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31656 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31657 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31658 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31659 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31660 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31661 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31662 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"`'
31663 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31664 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31665 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31666 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31667 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31668 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31669 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31670 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31671 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31672 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31673 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31674 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31675 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31676 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31677 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31678 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31679 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31680 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31681 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31682 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31683 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31684 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31685 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31686 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31687 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31688 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31689 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31690 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31691 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31692 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31693 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31694 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31695 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31696 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31697 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31698 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31699 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31700 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31701 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31702 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31703 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31704 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31705 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31706 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31707 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31708 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31709 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31710 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31711 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31712 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31713 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31714 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31715 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31716 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31717 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31718 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31719 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31720 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31721 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31722 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31723 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31724 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31725 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31726 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31727 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31728 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31729 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31730 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31731 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31732 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31733 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31734 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31735 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31736 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31737 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31738 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31739 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31740 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31741 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31742 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31743 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31744 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31745 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31746 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31747 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31748 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31749 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31750 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31751 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31752 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31753 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31754 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31755 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31756 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31757 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31758 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31759 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31760 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31761 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31762 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31763 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31764 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31765 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31766 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31767 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31768 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31769 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31770 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31771 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31772 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31773 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31774 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31775 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31776 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31777 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31778 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31779 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31780 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31781 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31782 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31783 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31784 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31785 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31786 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31787 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31788 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31789 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31790 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31791 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31794 LTCFLAGS='$LTCFLAGS'
31795 compiler='$compiler_DEFAULT'
31797 # A function that is used when there is no print builtin or printf.
31798 func_fallback_echo ()
31800 eval 'cat <<_LTECHO_EOF
31805 # Quote evaled strings.
31819 deplibs_check_method \
31824 sharedlib_from_linklib_cmd \
31827 archiver_list_spec \
31833 lt_cv_sys_global_symbol_pipe \
31834 lt_cv_sys_global_symbol_to_cdecl \
31835 lt_cv_sys_global_symbol_to_c_name_address \
31836 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31837 nm_file_list_spec \
31838 lt_prog_compiler_no_builtin_flag \
31839 lt_prog_compiler_pic \
31840 lt_prog_compiler_wl \
31841 lt_prog_compiler_static \
31842 lt_cv_prog_compiler_c_o \
31851 export_dynamic_flag_spec \
31852 whole_archive_flag_spec \
31853 compiler_needs_object \
31855 allow_undefined_flag \
31856 no_undefined_flag \
31857 hardcode_libdir_flag_spec \
31858 hardcode_libdir_flag_spec_ld \
31859 hardcode_libdir_separator \
31863 variables_saved_for_relink \
31865 library_names_spec \
31867 install_override_mode \
31871 compiler_lib_search_dirs \
31876 compiler_lib_search_path \
31880 lt_prog_compiler_no_builtin_flag_CXX \
31881 lt_prog_compiler_pic_CXX \
31882 lt_prog_compiler_wl_CXX \
31883 lt_prog_compiler_static_CXX \
31884 lt_cv_prog_compiler_c_o_CXX \
31885 export_dynamic_flag_spec_CXX \
31886 whole_archive_flag_spec_CXX \
31887 compiler_needs_object_CXX \
31889 allow_undefined_flag_CXX \
31890 no_undefined_flag_CXX \
31891 hardcode_libdir_flag_spec_CXX \
31892 hardcode_libdir_flag_spec_ld_CXX \
31893 hardcode_libdir_separator_CXX \
31894 exclude_expsyms_CXX \
31895 include_expsyms_CXX \
31896 file_list_spec_CXX \
31897 compiler_lib_search_dirs_CXX \
31898 predep_objects_CXX \
31899 postdep_objects_CXX \
31902 compiler_lib_search_path_CXX; do
31903 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31904 *[\\\\\\\`\\"\\\$]*)
31905 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31908 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31913 # Double-quote double-evaled strings.
31914 for var in reload_cmds \
31915 old_postinstall_cmds \
31916 old_postuninstall_cmds \
31918 extract_expsyms_cmds \
31919 old_archive_from_new_cmds \
31920 old_archive_from_expsyms_cmds \
31922 archive_expsym_cmds \
31924 module_expsym_cmds \
31925 export_symbols_cmds \
31929 postuninstall_cmds \
31931 sys_lib_search_path_spec \
31932 sys_lib_dlsearch_path_spec \
31934 old_archive_cmds_CXX \
31935 old_archive_from_new_cmds_CXX \
31936 old_archive_from_expsyms_cmds_CXX \
31938 archive_expsym_cmds_CXX \
31940 module_expsym_cmds_CXX \
31941 export_symbols_cmds_CXX \
31943 postlink_cmds_CXX; do
31944 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31945 *[\\\\\\\`\\"\\\$]*)
31946 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31949 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31954 ac_aux_dir='$ac_aux_dir'
31955 xsi_shell='$xsi_shell'
31956 lt_shell_append='$lt_shell_append'
31958 # See if we are running on zsh, and set the options which allow our
31959 # commands through without removal of \ escapes INIT.
31960 if test -n "\${ZSH_VERSION+set}" ; then
31961 setopt NO_GLOB_SUBST
31967 TIMESTAMP='$TIMESTAMP'
31975 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31976 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31978 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31979 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31980 LINGUAS="${LINGUAS-%UNSET%}"
31985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31987 # Handling of arguments.
31988 for ac_config_target in $ac_config_targets
31990 case $ac_config_target in
31991 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31992 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31993 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31994 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31995 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31996 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31997 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31998 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31999 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32000 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32001 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32002 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32003 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32004 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32005 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32006 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32007 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32008 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32009 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32010 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32011 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32012 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32013 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32014 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32015 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32016 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32017 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32018 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32019 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32020 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32021 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32022 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32023 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32024 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32025 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32026 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32027 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32028 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32029 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32030 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32031 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32032 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32033 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32034 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32035 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32036 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32037 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32038 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32039 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32040 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32041 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32042 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32043 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32044 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32045 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32046 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32047 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32048 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32049 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32050 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32051 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32052 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32053 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32054 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32055 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32056 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32057 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32058 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32059 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32060 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32061 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32062 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32063 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32064 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32065 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32066 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32067 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32068 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32069 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32070 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32071 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32072 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32073 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32074 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32075 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32076 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32077 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32078 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32079 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32080 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32081 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32082 "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32083 "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32084 "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32085 "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32086 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32087 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32089 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32094 # If the user did not use the arguments to specify the items to instantiate,
32095 # then the envvar interface is used. Set only those that are not.
32096 # We use the long form for the default assignment because of an extremely
32097 # bizarre bug on SunOS 4.1.3.
32098 if $ac_need_defaults; then
32099 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32100 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32101 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32104 # Have a temporary directory for convenience. Make it in the build tree
32105 # simply because there is no reason against having it here, and in addition,
32106 # creating and moving files from /tmp can sometimes cause problems.
32107 # Hook for its removal unless debugging.
32108 # Note that there is a small window in which the directory will not be cleaned:
32109 # after its creation but before its name has been assigned to `$tmp'.
32113 trap 'exit_status=$?
32114 : "${ac_tmp:=$tmp}"
32115 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32117 trap 'as_fn_exit 1' 1 2 13 15
32119 # Create a (secure) tmp directory for tmp files.
32122 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32126 tmp=./conf$$-$RANDOM
32127 (umask 077 && mkdir "$tmp")
32128 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32131 # Set up the scripts for CONFIG_FILES section.
32132 # No need to generate them if there are no CONFIG_FILES.
32133 # This happens for instance with `./config.status config.h'.
32134 if test -n "$CONFIG_FILES"; then
32136 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32137 ac_cs_awk_getline=:
32138 ac_cs_awk_pipe_init=
32139 ac_cs_awk_read_file='
32140 while ((getline aline < (F[key])) > 0)
32143 ac_cs_awk_pipe_fini=
32145 ac_cs_awk_getline=false
32146 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32147 ac_cs_awk_read_file='
32149 print "cat " F[key] " &&"
32150 '$ac_cs_awk_pipe_init
32151 # The final `:' finishes the AND list.
32152 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32154 ac_cr=`echo X | tr X '\015'`
32155 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32156 # But we know of no other shell where ac_cr would be empty at this
32157 # point, so we can use a bashism as a fallback.
32158 if test "x$ac_cr" = x; then
32159 eval ac_cr=\$\'\\r\'
32161 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32162 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32165 ac_cs_awk_cr=$ac_cr
32168 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32171 # Create commands to substitute file output variables.
32173 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32174 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32175 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32178 } >conf$$files.sh &&
32179 . ./conf$$files.sh ||
32180 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32181 rm -f conf$$files.sh
32184 echo "cat >conf$$subs.awk <<_ACEOF" &&
32185 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32187 } >conf$$subs.sh ||
32188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32189 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32191 for ac_last_try in false false false false false :; do
32192 . ./conf$$subs.sh ||
32193 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32195 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32196 if test $ac_delim_n = $ac_delim_num; then
32198 elif $ac_last_try; then
32199 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32204 rm -f conf$$subs.sh
32206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32207 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32211 s/^/S["/; s/!.*/"]=/
32221 s/\(.\{148\}\)..*/\1/
32223 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32228 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32235 s/\(.\{148\}\)..*/\1/
32237 s/["\\]/\\&/g; s/^/"/; s/$/"/
32241 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32246 ' <conf$$subs.awk | sed '
32251 ' >>$CONFIG_STATUS || ac_write_fail=1
32252 rm -f conf$$subs.awk
32253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32255 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32256 for (key in S) S_is_set[key] = 1
32258 \$ac_cs_awk_pipe_init
32262 nfields = split(line, field, "@")
32264 len = length(field[1])
32265 for (i = 2; i < nfields; i++) {
32267 keylen = length(key)
32268 if (S_is_set[key]) {
32270 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32271 len += length(value) + length(field[++i])
32276 if (nfields == 3 && !substed) {
32278 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32279 \$ac_cs_awk_read_file
32285 \$ac_cs_awk_pipe_fini
32288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32289 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32290 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32293 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32294 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32297 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32298 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32299 # trailing colons and then remove the whole line if VPATH becomes empty
32300 # (actually we leave an empty line to preserve line numbers).
32301 if test "x$srcdir" = x.; then
32302 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32321 fi # test -n "$CONFIG_FILES"
32323 # Set up the scripts for CONFIG_HEADERS section.
32324 # No need to generate them if there are no CONFIG_HEADERS.
32325 # This happens for instance with `./config.status Makefile'.
32326 if test -n "$CONFIG_HEADERS"; then
32327 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32331 # Transform confdefs.h into an awk script `defines.awk', embedded as
32332 # here-document in config.status, that substitutes the proper values into
32333 # config.h.in to produce config.h.
32335 # Create a delimiter string that does not exist in confdefs.h, to ease
32336 # handling of long lines.
32338 for ac_last_try in false false :; do
32339 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32340 if test -z "$ac_tt"; then
32342 elif $ac_last_try; then
32343 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32345 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32349 # For the awk script, D is an array of macro values keyed by name,
32350 # likewise P contains macro parameters if any. Preserve backslash
32351 # newline sequences.
32353 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32355 s/.\{148\}/&'"$ac_delim"'/g
32358 s/^[ ]*#[ ]*define[ ][ ]*/ /
32365 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32367 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32371 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32372 D["\1"]=" \3\\\\\\n"\\/p
32374 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32379 s/.\{148\}/&'"$ac_delim"'/g
32384 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32387 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32389 ' <confdefs.h | sed '
32390 s/'"$ac_delim"'/"\\\
32391 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32394 for (key in D) D_is_set[key] = 1
32397 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32399 split(line, arg, " ")
32400 if (arg[1] == "#") {
32404 defundef = substr(arg[1], 2)
32407 split(mac1, mac2, "(") #)
32409 prefix = substr(line, 1, index(line, defundef) - 1)
32410 if (D_is_set[macro]) {
32411 # Preserve the white space surrounding the "#".
32412 print prefix "define", macro P[macro] D[macro]
32415 # Replace #undef with comments. This is necessary, for example,
32416 # in the case of _POSIX_SOURCE, which is predefined and required
32417 # on some systems where configure will not decide to define it.
32418 if (defundef == "undef") {
32419 print "/*", prefix defundef, macro, "*/"
32427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32428 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32429 fi # test -n "$CONFIG_HEADERS"
32432 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32437 :[FHLC]) ac_mode=$ac_tag; continue;;
32439 case $ac_mode$ac_tag in
32441 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32442 :[FH]-) ac_tag=-:-;;
32443 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32460 -) ac_f="$ac_tmp/stdin";;
32461 *) # Look for the file first in the build tree, then in the source tree
32462 # (if the path is not absolute). The absolute path cannot be DOS-style,
32463 # because $ac_f cannot contain `:'.
32467 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32469 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32471 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32472 as_fn_append ac_file_inputs " '$ac_f'"
32475 # Let's still pretend it is `configure' which instantiates (i.e., don't
32476 # use $as_me), people would be surprised to read:
32477 # /* config.h. Generated by config.status. */
32478 configure_input='Generated from '`
32479 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32481 if test x"$ac_file" != x-; then
32482 configure_input="$ac_file. $configure_input"
32483 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32484 $as_echo "$as_me: creating $ac_file" >&6;}
32486 # Neutralize special characters interpreted by sed in replacement strings.
32487 case $configure_input in #(
32488 *\&* | *\|* | *\\* )
32489 ac_sed_conf_input=`$as_echo "$configure_input" |
32490 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32491 *) ac_sed_conf_input=$configure_input;;
32495 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32496 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32501 ac_dir=`$as_dirname -- "$ac_file" ||
32502 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32503 X"$ac_file" : 'X\(//\)[^/]' \| \
32504 X"$ac_file" : 'X\(//\)$' \| \
32505 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32506 $as_echo X"$ac_file" |
32507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32511 /^X\(\/\/\)[^/].*/{
32524 as_dir="$ac_dir"; as_fn_mkdir_p
32528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32531 # A ".." for each directory in $ac_dir_suffix.
32532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32533 case $ac_top_builddir_sub in
32534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32538 ac_abs_top_builddir=$ac_pwd
32539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32540 # for backward compatibility:
32541 ac_top_builddir=$ac_top_build_prefix
32544 .) # We are building in place.
32546 ac_top_srcdir=$ac_top_builddir_sub
32547 ac_abs_top_srcdir=$ac_pwd ;;
32548 [\\/]* | ?:[\\/]* ) # Absolute name.
32549 ac_srcdir=$srcdir$ac_dir_suffix;
32550 ac_top_srcdir=$srcdir
32551 ac_abs_top_srcdir=$srcdir ;;
32552 *) # Relative name.
32553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32554 ac_top_srcdir=$ac_top_build_prefix$srcdir
32555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32567 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32568 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32573 # If the template does not know about datarootdir, expand it.
32574 # FIXME: This hack should be removed a few years after 2.60.
32575 ac_datarootdir_hack=; ac_datarootdir_seen=
32586 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32587 *datarootdir*) ac_datarootdir_seen=yes;;
32588 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32590 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32593 ac_datarootdir_hack='
32594 s&@datadir@&$datadir&g
32595 s&@docdir@&$docdir&g
32596 s&@infodir@&$infodir&g
32597 s&@localedir@&$localedir&g
32598 s&@mandir@&$mandir&g
32599 s&\\\${datarootdir}&$datarootdir&g' ;;
32603 # Neutralize VPATH when `$srcdir' = `.'.
32604 # Shell code in configure.ac might set extrasub.
32605 # FIXME: do we really want to maintain this feature?
32606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32607 ac_sed_extra="$ac_vpsub
32610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32613 s|@configure_input@|$ac_sed_conf_input|;t t
32614 s&@top_builddir@&$ac_top_builddir_sub&;t t
32615 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32616 s&@srcdir@&$ac_srcdir&;t t
32617 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32618 s&@top_srcdir@&$ac_top_srcdir&;t t
32619 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32620 s&@builddir@&$ac_builddir&;t t
32621 s&@abs_builddir@&$ac_abs_builddir&;t t
32622 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32623 s&@INSTALL@&$ac_INSTALL&;t t
32624 $ac_datarootdir_hack
32626 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32627 if $ac_cs_awk_getline; then
32628 $AWK -f "$ac_tmp/subs.awk"
32630 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32632 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32634 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32635 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32636 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32637 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32639 which seems to be undefined. Please make sure it is defined" >&5
32640 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32641 which seems to be undefined. Please make sure it is defined" >&2;}
32643 rm -f "$ac_tmp/stdin"
32645 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32646 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32648 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32654 if test x"$ac_file" != x-; then
32656 $as_echo "/* $configure_input */" \
32657 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32658 } >"$ac_tmp/config.h" \
32659 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32660 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32661 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32662 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32665 mv "$ac_tmp/config.h" "$ac_file" \
32666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32669 $as_echo "/* $configure_input */" \
32670 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32671 || as_fn_error $? "could not create -" "$LINENO" 5
32675 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32676 $as_echo "$as_me: executing $ac_file commands" >&6;}
32681 case $ac_file$ac_mode in
32684 # See if we are running on zsh, and set the options which allow our
32685 # commands through without removal of \ escapes.
32686 if test -n "${ZSH_VERSION+set}" ; then
32687 setopt NO_GLOB_SUBST
32690 cfgfile="${ofile}T"
32691 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32694 cat <<_LT_EOF >> "$cfgfile"
32697 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32698 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32699 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32700 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32702 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32703 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32705 # Written by Gordon Matzigkeit, 1996
32707 # This file is part of GNU Libtool.
32709 # GNU Libtool is free software; you can redistribute it and/or
32710 # modify it under the terms of the GNU General Public License as
32711 # published by the Free Software Foundation; either version 2 of
32712 # the License, or (at your option) any later version.
32714 # As a special exception to the GNU General Public License,
32715 # if you distribute this file as part of a program or library that
32716 # is built using GNU Libtool, you may include this file under the
32717 # same distribution terms that you use for the rest of that program.
32719 # GNU Libtool is distributed in the hope that it will be useful,
32720 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32721 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32722 # GNU General Public License for more details.
32724 # You should have received a copy of the GNU General Public License
32725 # along with GNU Libtool; see the file COPYING. If not, a copy
32726 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32727 # obtained by writing to the Free Software Foundation, Inc.,
32728 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32731 # The names of the tagged configurations supported by this script.
32732 available_tags="CXX "
32734 # ### BEGIN LIBTOOL CONFIG
32736 # Which release of libtool.m4 was used?
32737 macro_version=$macro_version
32738 macro_revision=$macro_revision
32740 # Whether or not to build shared libraries.
32741 build_libtool_libs=$enable_shared
32743 # Whether or not to build static libraries.
32744 build_old_libs=$enable_static
32746 # What type of objects to build.
32749 # Whether or not to optimize for fast installation.
32750 fast_install=$enable_fast_install
32752 # Shell to use when invoking shell scripts.
32755 # An echo program that protects backslashes.
32759 host_alias=$host_alias
32763 # The build system.
32764 build_alias=$build_alias
32768 # A sed program that does not truncate output.
32771 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32772 Xsed="\$SED -e 1s/^X//"
32774 # A grep program that handles long lines.
32780 # A literal string matcher.
32783 # A BSD- or MS-compatible name lister.
32786 # Whether we need soft or hard links.
32789 # What is the maximum length of a command?
32790 max_cmd_len=$max_cmd_len
32792 # Object file suffix (normally "o").
32795 # Executable file suffix (normally "").
32798 # whether the shell understands "unset".
32801 # turn spaces into newlines.
32804 # turn newlines into spaces.
32807 # convert \$build file names to \$host format.
32808 to_host_file_cmd=$lt_cv_to_host_file_cmd
32810 # convert \$build files to toolchain format.
32811 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32813 # An object symbol dumper.
32814 OBJDUMP=$lt_OBJDUMP
32816 # Method to check whether dependent libraries are shared objects.
32817 deplibs_check_method=$lt_deplibs_check_method
32819 # Command to use when deplibs_check_method = "file_magic".
32820 file_magic_cmd=$lt_file_magic_cmd
32822 # How to find potential files when deplibs_check_method = "file_magic".
32823 file_magic_glob=$lt_file_magic_glob
32825 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32826 want_nocaseglob=$lt_want_nocaseglob
32828 # DLL creation program.
32829 DLLTOOL=$lt_DLLTOOL
32831 # Command to associate shared and link libraries.
32832 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32837 # Flags to create an archive.
32838 AR_FLAGS=$lt_AR_FLAGS
32840 # How to feed a file listing to the archiver.
32841 archiver_list_spec=$lt_archiver_list_spec
32843 # A symbol stripping program.
32846 # Commands used to install an old-style archive.
32848 old_postinstall_cmds=$lt_old_postinstall_cmds
32849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32851 # Whether to use a lock for old archive extraction.
32852 lock_old_archive_extraction=$lock_old_archive_extraction
32857 # LTCC compiler flags.
32858 LTCFLAGS=$lt_CFLAGS
32860 # Take the output of nm and produce a listing of raw symbols and C names.
32861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32863 # Transform the output of nm in a proper C declaration.
32864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32866 # Transform the output of nm in a C name address pair.
32867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32869 # Transform the output of nm in a C name address pair when lib prefix is needed.
32870 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32872 # Specify filename containing input files for \$NM.
32873 nm_file_list_spec=$lt_nm_file_list_spec
32875 # The root where to search for dependent libraries,and in which our libraries should be installed.
32876 lt_sysroot=$lt_sysroot
32878 # The name of the directory that contains temporary libtool files.
32881 # Used to examine libraries when file_magic_cmd begins with "file".
32882 MAGIC_CMD=$MAGIC_CMD
32884 # Must we lock files when doing compilation?
32885 need_locks=$lt_need_locks
32888 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32890 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32891 DSYMUTIL=$lt_DSYMUTIL
32893 # Tool to change global to local symbols on Mac OS X.
32896 # Tool to manipulate fat objects and archives on Mac OS X.
32899 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32902 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32903 OTOOL64=$lt_OTOOL64
32905 # Old archive suffix (normally "a").
32908 # Shared library suffix (normally ".so").
32909 shrext_cmds=$lt_shrext_cmds
32911 # The commands to extract the exported symbol list from a shared archive.
32912 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32914 # Variables whose values should be saved in libtool wrapper scripts and
32915 # restored at link time.
32916 variables_saved_for_relink=$lt_variables_saved_for_relink
32918 # Do we need the "lib" prefix for modules?
32919 need_lib_prefix=$need_lib_prefix
32921 # Do we need a version for libraries?
32922 need_version=$need_version
32924 # Library versioning type.
32925 version_type=$version_type
32927 # Shared library runtime path variable.
32928 runpath_var=$runpath_var
32930 # Shared library path variable.
32931 shlibpath_var=$shlibpath_var
32933 # Is shlibpath searched before the hard-coded library search path?
32934 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32936 # Format of library name prefix.
32937 libname_spec=$lt_libname_spec
32939 # List of archive names. First name is the real one, the rest are links.
32940 # The last name is the one that the linker finds with -lNAME
32941 library_names_spec=$lt_library_names_spec
32943 # The coded name of the library, if different from the real name.
32944 soname_spec=$lt_soname_spec
32946 # Permission mode override for installation of shared libraries.
32947 install_override_mode=$lt_install_override_mode
32949 # Command to use after installation of a shared archive.
32950 postinstall_cmds=$lt_postinstall_cmds
32952 # Command to use after uninstallation of a shared archive.
32953 postuninstall_cmds=$lt_postuninstall_cmds
32955 # Commands used to finish a libtool library installation in a directory.
32956 finish_cmds=$lt_finish_cmds
32958 # As "finish_cmds", except a single script fragment to be evaled but
32960 finish_eval=$lt_finish_eval
32962 # Whether we should hardcode library paths into libraries.
32963 hardcode_into_libs=$hardcode_into_libs
32965 # Compile-time system search path for libraries.
32966 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32968 # Run-time system search path for libraries.
32969 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32971 # Whether dlopen is supported.
32972 dlopen_support=$enable_dlopen
32974 # Whether dlopen of programs is supported.
32975 dlopen_self=$enable_dlopen_self
32977 # Whether dlopen of statically linked programs is supported.
32978 dlopen_self_static=$enable_dlopen_self_static
32980 # Commands to strip libraries.
32981 old_striplib=$lt_old_striplib
32982 striplib=$lt_striplib
32985 # The linker used to build libraries.
32988 # How to create reloadable object files.
32989 reload_flag=$lt_reload_flag
32990 reload_cmds=$lt_reload_cmds
32992 # Commands used to build an old-style archive.
32993 old_archive_cmds=$lt_old_archive_cmds
32995 # A language specific compiler.
32998 # Is the compiler the GNU compiler?
33001 # Compiler flag to turn off builtin functions.
33002 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33004 # Additional compiler flags for building library objects.
33005 pic_flag=$lt_lt_prog_compiler_pic
33007 # How to pass a linker flag through the compiler.
33008 wl=$lt_lt_prog_compiler_wl
33010 # Compiler flag to prevent dynamic linking.
33011 link_static_flag=$lt_lt_prog_compiler_static
33013 # Does compiler simultaneously support -c and -o options?
33014 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33016 # Whether or not to add -lc for building shared libraries.
33017 build_libtool_need_lc=$archive_cmds_need_lc
33019 # Whether or not to disallow shared libs when runtime libs are static.
33020 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33022 # Compiler flag to allow reflexive dlopens.
33023 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33025 # Compiler flag to generate shared objects directly from archives.
33026 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33028 # Whether the compiler copes with passing no objects directly.
33029 compiler_needs_object=$lt_compiler_needs_object
33031 # Create an old-style archive from a shared archive.
33032 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33034 # Create a temporary old-style archive to link instead of a shared archive.
33035 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33037 # Commands used to build a shared archive.
33038 archive_cmds=$lt_archive_cmds
33039 archive_expsym_cmds=$lt_archive_expsym_cmds
33041 # Commands used to build a loadable module if different from building
33042 # a shared archive.
33043 module_cmds=$lt_module_cmds
33044 module_expsym_cmds=$lt_module_expsym_cmds
33046 # Whether we are building with GNU ld or not.
33047 with_gnu_ld=$lt_with_gnu_ld
33049 # Flag that allows shared libraries with undefined symbols to be built.
33050 allow_undefined_flag=$lt_allow_undefined_flag
33052 # Flag that enforces no undefined symbols.
33053 no_undefined_flag=$lt_no_undefined_flag
33055 # Flag to hardcode \$libdir into a binary during linking.
33056 # This must work even if \$libdir does not exist
33057 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33059 # If ld is used when linking, flag to hardcode \$libdir into a binary
33060 # during linking. This must work even if \$libdir does not exist.
33061 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33063 # Whether we need a single "-rpath" flag with a separated argument.
33064 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33066 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33067 # DIR into the resulting binary.
33068 hardcode_direct=$hardcode_direct
33070 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33071 # DIR into the resulting binary and the resulting library dependency is
33072 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33073 # library is relocated.
33074 hardcode_direct_absolute=$hardcode_direct_absolute
33076 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33077 # into the resulting binary.
33078 hardcode_minus_L=$hardcode_minus_L
33080 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33081 # into the resulting binary.
33082 hardcode_shlibpath_var=$hardcode_shlibpath_var
33084 # Set to "yes" if building a shared library automatically hardcodes DIR
33085 # into the library and all subsequent libraries and executables linked
33087 hardcode_automatic=$hardcode_automatic
33089 # Set to yes if linker adds runtime paths of dependent libraries
33090 # to runtime path list.
33091 inherit_rpath=$inherit_rpath
33093 # Whether libtool must link a program against all its dependency libraries.
33094 link_all_deplibs=$link_all_deplibs
33096 # Set to "yes" if exported symbols are required.
33097 always_export_symbols=$always_export_symbols
33099 # The commands to list exported symbols.
33100 export_symbols_cmds=$lt_export_symbols_cmds
33102 # Symbols that should not be listed in the preloaded symbols.
33103 exclude_expsyms=$lt_exclude_expsyms
33105 # Symbols that must always be exported.
33106 include_expsyms=$lt_include_expsyms
33108 # Commands necessary for linking programs (against libraries) with templates.
33109 prelink_cmds=$lt_prelink_cmds
33111 # Commands necessary for finishing linking programs.
33112 postlink_cmds=$lt_postlink_cmds
33114 # Specify filename containing input files.
33115 file_list_spec=$lt_file_list_spec
33117 # How to hardcode a shared library path into an executable.
33118 hardcode_action=$hardcode_action
33120 # The directories searched by this compiler when creating a shared library.
33121 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33123 # Dependencies to place before and after the objects being linked to
33124 # create a shared library.
33125 predep_objects=$lt_predep_objects
33126 postdep_objects=$lt_postdep_objects
33127 predeps=$lt_predeps
33128 postdeps=$lt_postdeps
33130 # The library search path used internally by the compiler when linking
33131 # a shared library.
33132 compiler_lib_search_path=$lt_compiler_lib_search_path
33134 # ### END LIBTOOL CONFIG
33140 cat <<\_LT_EOF >> "$cfgfile"
33141 # AIX sometimes has problems with the GCC collect2 program. For some
33142 # reason, if we set the COLLECT_NAMES environment variable, the problems
33143 # vanish in a puff of smoke.
33144 if test "X${COLLECT_NAMES+set}" != Xset; then
33146 export COLLECT_NAMES
33153 ltmain="$ac_aux_dir/ltmain.sh"
33156 # We use sed instead of cat because bash on DJGPP gets confused if
33157 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33158 # text mode, it properly converts lines to CR/LF. This bash problem
33159 # is reportedly fixed, but why not run on old versions too?
33160 sed '$q' "$ltmain" >> "$cfgfile" \
33161 || (rm -f "$cfgfile"; exit 1)
33163 if test x"$xsi_shell" = xyes; then
33164 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33168 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33169 \ * ) func_dirname_result="${3}" ;;\
33171 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33172 && mv -f "$cfgfile.tmp" "$cfgfile" \
33173 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33174 test 0 -eq $? || _lt_function_replace_fail=:
33177 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33180 \ func_basename_result="${1##*/}"\
33181 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33182 && mv -f "$cfgfile.tmp" "$cfgfile" \
33183 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33184 test 0 -eq $? || _lt_function_replace_fail=:
33187 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33188 func_dirname_and_basename ()\
33191 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33192 \ * ) func_dirname_result="${3}" ;;\
33194 \ func_basename_result="${1##*/}"\
33195 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33196 && mv -f "$cfgfile.tmp" "$cfgfile" \
33197 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33198 test 0 -eq $? || _lt_function_replace_fail=:
33201 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33204 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33205 \ # positional parameters, so assign one to ordinary parameter first.\
33206 \ func_stripname_result=${3}\
33207 \ func_stripname_result=${func_stripname_result#"${1}"}\
33208 \ func_stripname_result=${func_stripname_result%"${2}"}\
33209 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33210 && mv -f "$cfgfile.tmp" "$cfgfile" \
33211 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33212 test 0 -eq $? || _lt_function_replace_fail=:
33215 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33216 func_split_long_opt ()\
33218 \ func_split_long_opt_name=${1%%=*}\
33219 \ func_split_long_opt_arg=${1#*=}\
33220 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33221 && mv -f "$cfgfile.tmp" "$cfgfile" \
33222 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33223 test 0 -eq $? || _lt_function_replace_fail=:
33226 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33227 func_split_short_opt ()\
33229 \ func_split_short_opt_arg=${1#??}\
33230 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33231 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33232 && mv -f "$cfgfile.tmp" "$cfgfile" \
33233 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33234 test 0 -eq $? || _lt_function_replace_fail=:
33237 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33241 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33242 \ *) func_lo2o_result=${1} ;;\
33244 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33245 && mv -f "$cfgfile.tmp" "$cfgfile" \
33246 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33247 test 0 -eq $? || _lt_function_replace_fail=:
33250 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33253 func_xform_result=${1%.*}.lo\
33254 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33255 && mv -f "$cfgfile.tmp" "$cfgfile" \
33256 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33257 test 0 -eq $? || _lt_function_replace_fail=:
33260 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33263 func_arith_result=$(( $* ))\
33264 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33265 && mv -f "$cfgfile.tmp" "$cfgfile" \
33266 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33267 test 0 -eq $? || _lt_function_replace_fail=:
33270 sed -e '/^func_len ()$/,/^} # func_len /c\
33273 func_len_result=${#1}\
33274 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33275 && mv -f "$cfgfile.tmp" "$cfgfile" \
33276 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33277 test 0 -eq $? || _lt_function_replace_fail=:
33281 if test x"$lt_shell_append" = xyes; then
33282 sed -e '/^func_append ()$/,/^} # func_append /c\
33285 eval "${1}+=\\${2}"\
33286 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33287 && mv -f "$cfgfile.tmp" "$cfgfile" \
33288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33289 test 0 -eq $? || _lt_function_replace_fail=:
33292 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33293 func_append_quoted ()\
33295 \ func_quote_for_eval "${2}"\
33296 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33297 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33298 && mv -f "$cfgfile.tmp" "$cfgfile" \
33299 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33300 test 0 -eq $? || _lt_function_replace_fail=:
33303 # Save a `func_append' function call where possible by direct use of '+='
33304 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33305 && mv -f "$cfgfile.tmp" "$cfgfile" \
33306 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33307 test 0 -eq $? || _lt_function_replace_fail=:
33309 # Save a `func_append' function call even when '+=' is not available
33310 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33311 && mv -f "$cfgfile.tmp" "$cfgfile" \
33312 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33313 test 0 -eq $? || _lt_function_replace_fail=:
33316 if test x"$_lt_function_replace_fail" = x":"; then
33317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33318 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33322 mv -f "$cfgfile" "$ofile" ||
33323 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33327 cat <<_LT_EOF >> "$ofile"
33329 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33331 # The linker used to build libraries.
33334 # How to create reloadable object files.
33335 reload_flag=$lt_reload_flag_CXX
33336 reload_cmds=$lt_reload_cmds_CXX
33338 # Commands used to build an old-style archive.
33339 old_archive_cmds=$lt_old_archive_cmds_CXX
33341 # A language specific compiler.
33342 CC=$lt_compiler_CXX
33344 # Is the compiler the GNU compiler?
33347 # Compiler flag to turn off builtin functions.
33348 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33350 # Additional compiler flags for building library objects.
33351 pic_flag=$lt_lt_prog_compiler_pic_CXX
33353 # How to pass a linker flag through the compiler.
33354 wl=$lt_lt_prog_compiler_wl_CXX
33356 # Compiler flag to prevent dynamic linking.
33357 link_static_flag=$lt_lt_prog_compiler_static_CXX
33359 # Does compiler simultaneously support -c and -o options?
33360 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33362 # Whether or not to add -lc for building shared libraries.
33363 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33365 # Whether or not to disallow shared libs when runtime libs are static.
33366 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33368 # Compiler flag to allow reflexive dlopens.
33369 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33371 # Compiler flag to generate shared objects directly from archives.
33372 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33374 # Whether the compiler copes with passing no objects directly.
33375 compiler_needs_object=$lt_compiler_needs_object_CXX
33377 # Create an old-style archive from a shared archive.
33378 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33380 # Create a temporary old-style archive to link instead of a shared archive.
33381 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33383 # Commands used to build a shared archive.
33384 archive_cmds=$lt_archive_cmds_CXX
33385 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33387 # Commands used to build a loadable module if different from building
33388 # a shared archive.
33389 module_cmds=$lt_module_cmds_CXX
33390 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33392 # Whether we are building with GNU ld or not.
33393 with_gnu_ld=$lt_with_gnu_ld_CXX
33395 # Flag that allows shared libraries with undefined symbols to be built.
33396 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33398 # Flag that enforces no undefined symbols.
33399 no_undefined_flag=$lt_no_undefined_flag_CXX
33401 # Flag to hardcode \$libdir into a binary during linking.
33402 # This must work even if \$libdir does not exist
33403 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33405 # If ld is used when linking, flag to hardcode \$libdir into a binary
33406 # during linking. This must work even if \$libdir does not exist.
33407 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33409 # Whether we need a single "-rpath" flag with a separated argument.
33410 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33412 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33413 # DIR into the resulting binary.
33414 hardcode_direct=$hardcode_direct_CXX
33416 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33417 # DIR into the resulting binary and the resulting library dependency is
33418 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33419 # library is relocated.
33420 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33422 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33423 # into the resulting binary.
33424 hardcode_minus_L=$hardcode_minus_L_CXX
33426 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33427 # into the resulting binary.
33428 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33430 # Set to "yes" if building a shared library automatically hardcodes DIR
33431 # into the library and all subsequent libraries and executables linked
33433 hardcode_automatic=$hardcode_automatic_CXX
33435 # Set to yes if linker adds runtime paths of dependent libraries
33436 # to runtime path list.
33437 inherit_rpath=$inherit_rpath_CXX
33439 # Whether libtool must link a program against all its dependency libraries.
33440 link_all_deplibs=$link_all_deplibs_CXX
33442 # Set to "yes" if exported symbols are required.
33443 always_export_symbols=$always_export_symbols_CXX
33445 # The commands to list exported symbols.
33446 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33448 # Symbols that should not be listed in the preloaded symbols.
33449 exclude_expsyms=$lt_exclude_expsyms_CXX
33451 # Symbols that must always be exported.
33452 include_expsyms=$lt_include_expsyms_CXX
33454 # Commands necessary for linking programs (against libraries) with templates.
33455 prelink_cmds=$lt_prelink_cmds_CXX
33457 # Commands necessary for finishing linking programs.
33458 postlink_cmds=$lt_postlink_cmds_CXX
33460 # Specify filename containing input files.
33461 file_list_spec=$lt_file_list_spec_CXX
33463 # How to hardcode a shared library path into an executable.
33464 hardcode_action=$hardcode_action_CXX
33466 # The directories searched by this compiler when creating a shared library.
33467 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33469 # Dependencies to place before and after the objects being linked to
33470 # create a shared library.
33471 predep_objects=$lt_predep_objects_CXX
33472 postdep_objects=$lt_postdep_objects_CXX
33473 predeps=$lt_predeps_CXX
33474 postdeps=$lt_postdeps_CXX
33476 # The library search path used internally by the compiler when linking
33477 # a shared library.
33478 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33480 # ### END LIBTOOL TAG CONFIG: CXX
33485 for ac_file in $CONFIG_FILES; do
33486 # Support "outfile[:infile[:infile...]]"
33488 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33490 # PO directories have a Makefile.in generated from Makefile.in.in.
33491 case "$ac_file" in */Makefile.in)
33492 # Adjust a relative srcdir.
33493 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33494 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33495 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33496 # In autoconf-2.13 it is called $ac_given_srcdir.
33497 # In autoconf-2.50 it is called $srcdir.
33498 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33499 case "$ac_given_srcdir" in
33500 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33501 /*) top_srcdir="$ac_given_srcdir" ;;
33502 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33504 # Treat a directory as a PO directory if and only if it has a
33505 # POTFILES.in file. This allows packages to have multiple PO
33506 # directories under different names or in different locations.
33507 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33508 rm -f "$ac_dir/POTFILES"
33509 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33510 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33511 POMAKEFILEDEPS="POTFILES.in"
33512 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33513 # on $ac_dir but don't depend on user-specified configuration
33515 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33516 # The LINGUAS file contains the set of available languages.
33517 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33518 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33520 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33521 # Hide the ALL_LINGUAS assigment from automake.
33522 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33523 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33525 # The set of available languages was given in configure.in.
33526 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33529 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33530 # Compute UPDATEPOFILES
33531 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33532 # Compute DUMMYPOFILES
33533 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33535 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33536 case "$ac_given_srcdir" in
33538 *) srcdirpre='$(srcdir)/' ;;
33544 for lang in $ALL_LINGUAS; do
33545 POFILES="$POFILES $srcdirpre$lang.po"
33546 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33547 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33548 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33550 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33551 # environment variable.
33553 if test -n "$ALL_LINGUAS"; then
33554 for presentlang in $ALL_LINGUAS; do
33556 if test "%UNSET%" != "$LINGUAS"; then
33557 desiredlanguages="$LINGUAS"
33559 desiredlanguages="$ALL_LINGUAS"
33561 for desiredlang in $desiredlanguages; do
33562 # Use the presentlang catalog if desiredlang is
33563 # a. equal to presentlang, or
33564 # b. a variant of presentlang (because in this case,
33565 # presentlang can be used as a fallback for messages
33566 # which are not translated in the desiredlang catalog).
33567 case "$desiredlang" in
33568 "$presentlang"*) useit=yes;;
33571 if test $useit = yes; then
33572 INST_LINGUAS="$INST_LINGUAS $presentlang"
33577 if test -n "$INST_LINGUAS"; then
33578 for lang in $INST_LINGUAS; do
33579 CATALOGS="$CATALOGS $lang.gmo"
33582 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33583 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"
33584 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33585 if test -f "$f"; then
33587 *.orig | *.bak | *~) ;;
33588 *) cat "$f" >> "$ac_dir/Makefile" ;;
33605 ac_clean_files=$ac_clean_files_save
33607 test $ac_write_fail = 0 ||
33608 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33611 # configure is writing to config.log, and then calls config.status.
33612 # config.status does its own redirection, appending to config.log.
33613 # Unfortunately, on DOS this fails, as config.log is still kept open
33614 # by configure, so config.status won't be able to write to it; its
33615 # output is simply discarded. So we exec the FD to /dev/null,
33616 # effectively closing config.log, so it can be properly (re)opened and
33617 # appended to by config.status. When coming back to configure, we
33618 # need to make the FD available again.
33619 if test "$no_create" != yes; then
33621 ac_config_status_args=
33622 test "$silent" = yes &&
33623 ac_config_status_args="$ac_config_status_args --quiet"
33625 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33627 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33628 # would make configure fail if this is the last instruction.
33629 $ac_cs_success || as_fn_exit 1
33631 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33633 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33637 if test "${support_bat}" = "yes" ; then
33638 if test "x$QMAKE" = "xnone"; then
33639 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33643 echo "Creating bat Makefile"
33649 ${MAKE:-make} clean
33653 if test X"$GCC" = "Xyes" ; then
33654 echo "Doing make of dependencies"
33655 ${MAKE:-make} depend
33659 chmod 755 install_conf_file build-depkgs-qt-console
33663 chmod 755 bacula btraceback mtx-changer storage-ctl bsg_persist
33664 chmod 755 dvd-handler dvd-simulator
33665 chmod 755 bconsole disk-changer devel_bacula logrotate
33669 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33670 chmod 755 $c/update_postgresql_tables_10_to_11
33671 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33672 chmod 755 $c/update_postgresql_tables_11_to_12
33677 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33678 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33680 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33681 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33683 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33684 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33686 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33687 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33689 #chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
33690 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
33693 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33694 chmod 755 $c/sqlite
33697 chmod 755 $c/install-default-backend
33699 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33700 largefile_support="yes"
33703 if test X"$GCC" = "Xyes" ; then
33704 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33705 if test "x${CCVERSION}" = "x" ; then
33706 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33708 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33709 if test x"${CXXVERSION}" = x ; then
33710 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33714 # clean up any old junk
33718 ${MAKE:-make} clean
33721 Configuration on `date`:
33723 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33724 Bacula version: ${BACULA} ${VERSION} (${DATE})
33725 Source code location: ${srcdir}
33726 Install binaries: ${sbindir}
33727 Install libraries: ${libdir}
33728 Install config files: ${sysconfdir}
33729 Scripts directory: ${scriptdir}
33730 Archive directory: ${archivedir}
33731 Working directory: ${working_dir}
33732 PID directory: ${piddir}
33733 Subsys directory: ${subsysdir}
33734 Man directory: ${mandir}
33735 Data directory: ${datarootdir}
33736 Plugin directory: ${plugindir}
33737 C Compiler: ${CC} ${CCVERSION}
33738 C++ Compiler: ${CXX} ${CXXVERSION}
33739 Compiler flags: ${WCFLAGS} ${CFLAGS}
33740 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33742 Statically Linked Tools: ${support_static_tools}
33743 Statically Linked FD: ${support_static_fd}
33744 Statically Linked SD: ${support_static_sd}
33745 Statically Linked DIR: ${support_static_dir}
33746 Statically Linked CONS: ${support_static_cons}
33747 Database backends: ${db_backends}
33748 Database port: ${db_port}
33749 Database name: ${db_name}
33750 Database user: ${db_user}
33752 Job Output Email: ${job_email}
33753 Traceback Email: ${dump_email}
33754 SMTP Host Address: ${smtp_host}
33756 Director Port: ${dir_port}
33757 File daemon Port: ${fd_port}
33758 Storage daemon Port: ${sd_port}
33760 Director User: ${dir_user}
33761 Director Group: ${dir_group}
33762 Storage Daemon User: ${sd_user}
33763 Storage DaemonGroup: ${sd_group}
33764 File Daemon User: ${fd_user}
33765 File Daemon Group: ${fd_group}
33767 Large file support: $largefile_support
33768 Bacula conio support: ${got_conio} ${CONS_LIBS}
33769 readline support: ${got_readline} ${PRTREADLINE_SRC}
33770 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33771 TLS support: ${support_tls}
33772 Encryption support: ${support_crypto}
33773 ZLIB support: ${have_zlib}
33774 LZO support: ${have_lzo}
33775 enable-smartalloc: ${support_smartalloc}
33776 enable-lockmgr: ${support_lockmgr}
33777 bat support: ${support_bat}
33778 client-only: ${build_client_only}
33779 build-dird: ${build_dird}
33780 build-stored: ${build_stored}
33781 Plugin support: ${have_plugins}
33782 AFS support: ${have_afs}
33783 ACL support: ${have_acl}
33784 XATTR support: ${have_xattr}
33785 Python support: ${support_python} ${PYTHON_LIBS}
33786 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
33787 Batch insert enabled: ${batch_insert_db_backends}
33791 # create a small shell script useful for support with
33792 # configure options and config.out info
33793 cat > scripts/bacula_config << EOF
33796 $ $0 $ac_configure_args
33798 cat config.out >> scripts/bacula_config
33799 echo __EOC__ >> scripts/bacula_config
33800 chmod 755 scripts/bacula_config